public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* bootstrap/8351: 3.3 20021024 (experimental) fails to bootstrap on cygwin
@ 2002-10-25 7:26 roger
0 siblings, 0 replies; 2+ messages in thread
From: roger @ 2002-10-25 7:26 UTC (permalink / raw)
To: gcc-gnats
>Number: 8351
>Category: bootstrap
>Synopsis: 3.3 20021024 (experimental) fails to bootstrap on cygwin
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Oct 25 07:26:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: roger@eyesopen.com
>Release: 3.3 20021024 (experimental)
>Organization:
>Environment:
i686-pc-cygwin
Current cygwin 1.3.14(0.62/3/2) CYGWIN_NT-5.0
[updated today] on Windows 2000 on AMD athlon
>Description:
The bootstrap of the main compilers completes, but then
fails building libstdc++-v3. The last lines read:
/home/Roger/GCC/clean/gcc/xgcc -shared-libgcc -B/home/Roger/GCC/clean/gcc/ -nost
dinc++ -L/home/Roger/GCC/clean/i686-pc-cygwin/libstdc++-v3/src -L/home/Roger/GCC
/clean/i686-pc-cygwin/libstdc++-v3/src/.libs -B/usr/local/i686-pc-cygwin/bin/ -B
/usr/local/i686-pc-cygwin/lib/ -isystem /usr/local/i686-pc-cygwin/include -I../.
./../../gcc/libstdc++-v3/../gcc -I../../../../gcc/libstdc++-v3/../include -I/hom
e/Roger/GCC/clean/i686-pc-cygwin/libstdc++-v3/include/i686-pc-cygwin -I/home/Rog
er/GCC/clean/i686-pc-cygwin/libstdc++-v3/include -I../../../../gcc/libstdc++-v3/
libsupc++ -g -O2 -fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings -W
inline -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -g -
c ../../../../gcc/libstdc++-v3/libsupc++/pure.cc -o pure.o
cc1plus: warning: -ffunction-sections may affect debugging on some targets
In file included from /usr/include/unistd.h:8,
from ../../../../gcc/libstdc++-v3/libsupc++/pure.cc:34:
../../../../gcc/include/getopt.h:115: error: declaration of C function `int
getopt()' conflicts with
/usr/include/sys/unistd.h:125: error: previous declaration `int getopt(int,
char* const*, const char*)' here
make[4]: *** [pure.lo] Error 1
make[4]: Leaving directory `/home/Roger/GCC/clean/i686-pc-cygwin/libstdc++-v3/li
bsupc++'
The problem is that the prototype for getopt in /usr/include/sys/unistd.h
doesn't match the one provided by libiberty's getopt.h. I'm
not sure if this is then a libiberty problem (requiring a
change to getopt.h), a libstc++-v3 problem (requiring a change
to pure.cc) or a Makefile problem (for confusing the system
include paths).
Cygwin's unistd.h currently contains:
# define __UNISTD_GETOPT__
# include <getopt.h>
# undef __UNISTD_GETOPT__
but this isn't including the /usr/include/getopt.h that
it was expecting.
>How-To-Repeat:
../gcc/configure
make bootstrap
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: bootstrap/8351: 3.3 20021024 (experimental) fails to bootstrap on cygwin
@ 2002-10-26 22:43 sayle
0 siblings, 0 replies; 2+ messages in thread
From: sayle @ 2002-10-26 22:43 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, roger
Synopsis: 3.3 20021024 (experimental) fails to bootstrap on cygwin
State-Changed-From-To: open->closed
State-Changed-By: sayle
State-Changed-When: Sat Oct 26 22:43:58 2002
State-Changed-Why:
This has now been fixed by
2002-10-26 Roger Sayle <roger@eyesopen.com>
DJ Delorie <dj@redhat.com>
PR bootstrap/8351
* getopt.h: Avoid prototyping getopt with no arguments in C++.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8351
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-10-27 5:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-25 7:26 bootstrap/8351: 3.3 20021024 (experimental) fails to bootstrap on cygwin roger
2002-10-26 22:43 sayle
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).