public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/39019]  New: Solaris and IRIX libelf cause trouble for build
@ 2009-01-29 15:53 ro at gcc dot gnu dot org
  2009-02-23  1:21 ` [Bug bootstrap/39019] " rob1weld at aol dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: ro at gcc dot gnu dot org @ 2009-01-29 15:53 UTC (permalink / raw)
  To: gcc-bugs

Despite they seem to have the same interface, the libelf bundled with Solaris
(at
least as far back as Solaris 8) cause trouble:

* The Solaris libelf.h isn't largefile aware:

#if defined(_ILP32) && (_FILE_OFFSET_BITS != 32)
#error "large files are not supported by libelf"
#endif

  This is explained in detail in

 
http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/cmd/sgs/libelf/common/README.LFS

* IRIX 6.5 has libelf.h, too, but lacks gelf.h.

* When I use libelf 0.8.10 instead (installed into /vol/gcc/{include, lib}),
  I have to be very careful: using CPPFLAGS=-I/vol/gcc/include doesn't work
  since libelf.h is preferred and thus the copy in /usr/include is used.  Using
  -I/vol/gcc/include/libelf doesn't work either since gelf.h includes
  libelf/libelf.h which isn't found than.  One needs to use
  -I/vol/gcc/include/libelf -I/vol/gcc/include, which is intricate to get
right.
  I think the use of libelf should be handled similarly to gmp/mpfr via
  --with-libelf or some such.


-- 
           Summary: Solaris and IRIX libelf cause trouble for build
           Product: gcc
           Version: lto
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: dnovillo 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=39019


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

end of thread, other threads:[~2009-07-15  3:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-29 15:53 [Bug bootstrap/39019] New: Solaris and IRIX libelf cause trouble for build ro at gcc dot gnu dot org
2009-02-23  1:21 ` [Bug bootstrap/39019] " rob1weld at aol dot com
2009-02-23  3:52 ` rob1weld at aol dot com
2009-02-23 14:52 ` rob1weld at aol dot com
2009-03-10  4:23 ` rob1weld at aol dot com
2009-07-09  5:09 ` bje at gcc dot gnu dot org
2009-07-15  3:29 ` bje 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).