public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/4626: g++ 3.0.1 fails to find "stddef.h" when recompiling templates
@ 2001-12-02 16:56 rodrigc
  0 siblings, 0 replies; 4+ messages in thread
From: rodrigc @ 2001-12-02 16:56 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c++/4626; it has been noted by GNATS.

From: rodrigc@gcc.gnu.org
To: gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org,
  nobody@gcc.gnu.org, rankincj@yahoo.com
Cc:  
Subject: Re: c++/4626: g++ 3.0.1 fails to find "stddef.h" when recompiling templates
Date: 3 Dec 2001 00:51:55 -0000

 Synopsis: g++ 3.0.1 fails to find "stddef.h" when recompiling templates
 
 State-Changed-From-To: feedback->closed
 State-Changed-By: rodrigc
 State-Changed-When: Sun Dec  2 16:51:54 2001
 State-Changed-Why:
     Cannot reproduce your problem with gcc 3.0.2.
     
     Type:
     cpp -v
     and see if stddef.h is located within any
     of those directories. 
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4626&database=gcc


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: c++/4626: g++ 3.0.1 fails to find "stddef.h" when recompiling templates
@ 2001-12-02 16:51 rodrigc
  0 siblings, 0 replies; 4+ messages in thread
From: rodrigc @ 2001-12-02 16:51 UTC (permalink / raw)
  To: gcc-bugs, gcc-gnats, gcc-prs, nobody, rankincj

Synopsis: g++ 3.0.1 fails to find "stddef.h" when recompiling templates

State-Changed-From-To: feedback->closed
State-Changed-By: rodrigc
State-Changed-When: Sun Dec  2 16:51:54 2001
State-Changed-Why:
    Cannot reproduce your problem with gcc 3.0.2.
    
    Type:
    cpp -v
    and see if stddef.h is located within any
    of those directories. 

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4626&database=gcc


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: c++/4626: g++ 3.0.1 fails to find "stddef.h" when recompiling templates
@ 2001-10-20 20:23 rodrigc
  0 siblings, 0 replies; 4+ messages in thread
From: rodrigc @ 2001-10-20 20:23 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, rankincj

Synopsis: g++ 3.0.1 fails to find "stddef.h" when recompiling templates

State-Changed-From-To: open->feedback
State-Changed-By: rodrigc
State-Changed-When: Sat Oct 20 20:23:36 2001
State-Changed-Why:
    Read http://gcc.gnu.org/bugs.html and submit preprocessed
    source illustrating your problem, otherwise we cannot
    analyze it.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4626&database=gcc


^ permalink raw reply	[flat|nested] 4+ messages in thread

* c++/4626: g++ 3.0.1 fails to find "stddef.h" when recompiling templates
@ 2001-10-19 20:06 rankincj
  0 siblings, 0 replies; 4+ messages in thread
From: rankincj @ 2001-10-19 20:06 UTC (permalink / raw)
  To: gcc-gnats

>Number:         4626
>Category:       c++
>Synopsis:       g++ 3.0.1 fails to find "stddef.h" when recompiling templates
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 19 20:06:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Chris Rankin
>Release:        3.0.1
>Organization:
>Environment:
i686-pc-linux-gnu
>Description:
$ g++ -v
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.0.1/specs
Configured with: ../gcc-3.0.1/configure --prefix=/usr -enable-version-specific-runtime-libs --with-gnu-binutils --enable-shared --enable-nls
Thread model: single
gcc version 3.0.1


And then:
g++ -ansi -Wl,-s -O3 -fno-implement-inlines -pedantic -pipe -Wall -W -Wshadow -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wsign-compare -Winline -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199506L -D_BSD_SOURCE -D_XOPEN_SOURCE -D__EXTENSIONS__ -DARCH="Linux 2.4.12 i686" -DUSERNAME=chris -DHOSTNAME=twopit -DMAJOR_VERSION="2" -DMINOR_VERSION="1"  banner.cpp main.o phonedata.o eventdata.o parser.o header.o footer.o controlfile.o eventfile.o write.o hardcoded.o long2string.o string2long.o datatypes.o destinationtype.o libgnutemplate.a -o genevent 
collect: recompiling datatypes.cpp
In file included from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.0.1/include/g++/bits/std_cstring.h:37,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.0.1/include/g++/cstring:31,
                 from datatypes.cpp:1:
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.0.1/include/g++/bits/std_cstddef.h:38:25: stddef.h: No such file or directory
In file included from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.0.1/include/g++/bits/std_cstring.h:37,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.0.1/include/g++/cstring:31,
                 from datatypes.cpp:1:
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.0.1/include/g++/bits/std_cstddef.h:42: `ptrdiff_t'
   not declared
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.0.1/include/g++/bits/std_cstddef.h:43: `size_t'
   not declared
In file included from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.0.1/include/g++/bits/fpos.h:39,
...
It all goes downhill from there.
>How-To-Repeat:
>From the Makefile:

CXX=g++ -ansi
CXXFLAGS=-O3 \
         -fno-implement-inlines \
         -pedantic \
         -pipe \
         -Wall -W \
         -Wshadow \
         -Wwrite-strings \
         -Wstrict-prototypes \
         -Wmissing-prototypes \
         -Wmissing-declarations \
         -Wredundant-decls \
         -Wsign-compare \
         -Winline \
         $(CXXDEFINE) \
         $(INCLUDE)

CXXDEFINE=-D_POSIX_SOURCE -D_POSIX_C_SOURCE=199506L \
          -D_BSD_SOURCE -D_XOPEN_SOURCE \
          -D__EXTENSIONS__

The code makes heavy use of the STL. The first-pass compilation works fine, but it fails when recompiling the templates.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-12-03  0:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-02 16:56 c++/4626: g++ 3.0.1 fails to find "stddef.h" when recompiling templates rodrigc
  -- strict thread matches above, loose matches on Subject: below --
2001-12-02 16:51 rodrigc
2001-10-20 20:23 rodrigc
2001-10-19 20:06 rankincj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).