public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/54292] New: Errors due to conflicting strsignal headers
@ 2012-08-16 21:49 tobi at gcc dot gnu.org
  2012-08-16 21:50 ` [Bug bootstrap/54292] " tobi at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: tobi at gcc dot gnu.org @ 2012-08-16 21:49 UTC (permalink / raw)
  To: gcc-bugs

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.


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

end of thread, other threads:[~2012-08-17 19:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-16 21:49 [Bug bootstrap/54292] New: Errors due to conflicting strsignal headers tobi at gcc dot gnu.org
2012-08-16 21:50 ` [Bug bootstrap/54292] " tobi at gcc dot gnu.org
2012-08-16 21:59 ` [Bug bootstrap/54292] [4.8 Regression] " pinskia at gcc dot gnu.org
2012-08-17 12:29 ` rguenth at gcc dot gnu.org
2012-08-17 12:31 ` tobi at gcc dot gnu.org
2012-08-17 13:46 ` tobi at gcc dot gnu.org
2012-08-17 19:07 ` tobi at gcc dot gnu.org

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).