This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

bootstrap/8351: 3.3 20021024 (experimental) fails to bootstrap on cygwin


>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]