From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4730 invoked by alias); 25 Oct 2002 14:26:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 4702 invoked by uid 71); 25 Oct 2002 14:26:00 -0000 Resent-Date: 25 Oct 2002 14:26:00 -0000 Resent-Message-ID: <20021025142600.4701.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, roger@eyesopen.com Received: (qmail 6131 invoked by uid 61); 25 Oct 2002 14:17:21 -0000 Message-Id: <20021025141721.6130.qmail@sources.redhat.com> Date: Fri, 25 Oct 2002 07:26:00 -0000 From: roger@eyesopen.com Reply-To: roger@eyesopen.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: bootstrap/8351: 3.3 20021024 (experimental) fails to bootstrap on cygwin X-SW-Source: 2002-10/txt/msg00997.txt.bz2 List-Id: >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 # 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: