public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/40702]  New: lto-elf.c fails to compile on Solaris
@ 2009-07-09 19:10 ro at gcc dot gnu dot org
  2009-10-03 22:12 ` [Bug lto/40702] " rguenth at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: ro at gcc dot gnu dot org @ 2009-07-09 19:10 UTC (permalink / raw)
  To: gcc-bugs

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


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

end of thread, other threads:[~2010-07-24 16:24 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-09 19:10 [Bug bootstrap/40702] New: lto-elf.c fails to compile on Solaris ro at gcc dot gnu dot org
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

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