public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "ro at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/40702] New: lto-elf.c fails to compile on Solaris Date: Thu, 09 Jul 2009 19:10:00 -0000 [thread overview] Message-ID: <bug-40702-279@http.gcc.gnu.org/bugzilla/> (raw) Trying to build the lto branch as of 20090709 on Solaris (both SPARC and x86) fails compiling lto-elf.c: cc1: warnings being treated as errors In file included from /vol/gcc/src/gcc-lto/gcc/lto/lto-elf.c:21:0: /vol/gcc/include/libelf/gelf.h:102:1: error: function declaration isn't a prototype This happens because for some reason __STDC__ isn't defined at all (as revealed by rebuilding with -g3 -save-temps), so libelf/libelf.h defines __P() as empty. I've hacked around this by adding || defined(__sun) to the first __P definition in libelf/gelf.h and libelf/libelf.h, but this needs to be properly investigated. -- Summary: lto-elf.c fails to compile on Solaris Product: gcc Version: lto Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ro at gcc dot gnu dot org GCC build triplet: sparc-sun-solaris2.11 GCC host triplet: sparc-sun-solaris2.11 GCC target triplet: sparc-sun-solaris2.11 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40702
next reply other threads:[~2009-07-09 19:10 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-07-09 19:10 ro at gcc dot gnu dot org [this message] 2009-10-03 22:12 ` [Bug lto/40702] " rguenth at gcc dot gnu dot org 2009-10-05 12:56 ` ro at techfak dot uni-bielefeld dot de 2009-10-05 13:13 ` rguenth at gcc dot gnu dot org 2009-10-05 14:05 ` ro at techfak dot uni-bielefeld dot de 2010-04-23 14:34 ` rguenth at gcc dot gnu dot org 2010-04-23 18:09 ` ebotcazou at gcc dot gnu dot org 2010-04-28 11:16 ` ro at CeBiTec dot Uni-Bielefeld dot DE 2010-04-28 11:55 ` rguenth at gcc dot gnu dot org 2010-04-28 13:02 ` hubicka at gcc dot gnu dot org 2010-04-28 14:41 ` ro at CeBiTec dot Uni-Bielefeld dot DE 2010-06-03 13:47 ` rguenth at gcc dot gnu dot org 2010-06-04 15:21 ` ro at CeBiTec dot Uni-Bielefeld dot DE 2010-07-24 16:24 ` rguenth at gcc dot gnu dot 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-40702-279@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: linkBe 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).