public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "tobi at gcc dot gnu.org" <gcc-bugzilla@gcc.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	[thread overview]
Message-ID: <bug-54292-4@http.gcc.gnu.org/bugzilla/> (raw)

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.


             reply	other threads:[~2012-08-16 21:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-16 21:49 tobi at gcc dot gnu.org [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-54292-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).