From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18100 invoked by alias); 16 Aug 2012 21:49:05 -0000 Received: (qmail 18077 invoked by uid 22791); 16 Aug 2012 21:49:02 -0000 X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 16 Aug 2012 21:48:50 +0000 From: "tobi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/54292] New: Errors due to conflicting strsignal headers Date: Thu, 16 Aug 2012 21:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tobi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-08/txt/msg01102.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54292 Bug #: 54292 Summary: Errors due to conflicting strsignal headers Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassigned@gcc.gnu.org ReportedBy: tobi@gcc.gnu.org Target: Darwin This resembles PR31776. My build from current HEAD fails with g++ -c -g -DIN_GCC -fno-exceptions -fno-rtti -W -Wall -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../../gcc -I../../gcc/build -I../../gcc/../include -I./../intl -I../../gcc/../libcpp/include -I/Users/tobi/src/gcc/build/./gmp -I/Users/tobi/src/gcc/gmp -I/Users/tobi/src/gcc/build/./mpfr -I/Users/tobi/src/gcc/mpfr -I/Users/tobi/src/gcc/mpc/src -I../../gcc/../libdecnumber -I../../gcc/../libdecnumber/dpd -I../libdecnumber \ -o build/genconstants.o ../../gcc/genconstants.c In file included from /usr/include/sys/wait.h:117, from /usr/include/stdlib.h:65, from ../../gcc/system.h:228, from ../../gcc/genconstants.c:29: /usr/include/sys/resource.h:89: error: declaration does not declare anything In file included from ../../gcc/genconstants.c:29: ../../gcc/system.h:499: error: declaration of C function 'const char* strsignal(int)' conflicts with /usr/include/string.h:144: error: previous declaration 'char* strsignal(int)' here make[3]: *** [build/genconstants.o] Error 1 make[2]: *** [all-stage1-gcc] Error 2 make[1]: *** [stage1-bubble] Error 2 make: *** [all] Error 2 I'm using an in-tree gmp, mpfr etc setup with contrib/download_prerequisites. I mention this because in gcc/config.log (attached) I see that the strsignal configure tests apparently got confused by the location of gmp.h.