Bug 52877 - In gcc3-c++-3.0-6, g++3 -frepo fails to find #include stddef.h
Summary: In gcc3-c++-3.0-6, g++3 -frepo fails to find #include stddef.h
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: gcc3 (Show other bugs)
(Show other bugs)
Version: 1.0
Hardware: i386 Linux
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2001-08-30 12:38 UTC by jorma.laaksonen
Modified: 2008-05-01 15:38 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-04-10 15:24:22 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description jorma.laaksonen 2001-08-30 12:38:36 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.7 i686)

Description of problem:
When I run g++3 of gcc3-c++-3.0-6 first with -c -frepo and then with the .o
file generated in the first phase, g++ fails to find
/usr/lib/gcc-lib/i386-redhat-linux/3.0.1/include/stddef.h .

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Here is my main.C:
#include "myclass.h"

main() {
  myclass<int> x("Hello");

2. Here is my myclass.h:
#include <iostream>

template <class T> class myclass {
  myclass(const char *t);

template <class T> myclass<T>::myclass(const char *t) {
  std::cout << t << std::endl;

3. When I run "g++3 -c -frepo main.C" it goes OK.

4. When I then run "g++3 main.o" it fails.

Actual Results:  collect: recompiling main.C
In file included from /usr/include/g++-v3/bits/std_cstdio.h:38,
                 from /usr/include/g++-v3/cstdio:31,
                 from /usr/include/g++-v3/bits/fpos.h:39,
                 from /usr/include/g++-v3/bits/std_iosfwd.h:41,
                 from /usr/include/g++-v3/bits/std_ios.h:39,
                 from /usr/include/g++-v3/bits/std_ostream.h:39,
                 from /usr/include/g++-v3/bits/std_iostream.h:40,
                 from /usr/include/g++-v3/iostream:31,
                 from myclass.h:1,
                 from main.C:1:
/usr/include/g++-v3/bits/std_cstddef.h:38:25: stddef.h: No such file or

Expected Results:  a.out should have appeared.

Additional info:

Comment 1 Jakub Jelinek 2001-09-03 11:56:51 UTC
See http://gcc.gnu.org/ml/gcc/2001-09/msg00032.html for some analysis.

Comment 2 Jakub Jelinek 2001-09-06 16:06:44 UTC
Fixed in gcc3 3.0.1-2.

Comment 3 David Lawrence 2006-04-10 15:24:22 UTC
Closing due to inactivity. Please feel free to reopen this bug or refile this
bug against the latest release Fedora Core if you feel this bug is still
relevant today.

Thank you

Note You need to log in before you can comment on or make changes to this bug.