bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/7024] New: gold doesn't build on Solaris 11


From: ro at TechFak dot Uni-Bielefeld dot DE
Subject: [Bug gold/7024] New: gold doesn't build on Solaris 11
Date: 11 Nov 2008 22:07:56 -0000

To check if gold has the same problems as ld (cf. PR ld/7023), I just tried to
build gold on binutils mainline, but failed for a couple of problems:

* gold seems to require a g++ newer than g++ 3.4.3, but doesn't document or
  check those requirements

* gold/yyscript.y needs a bison newer than 1.26, but neither documents nor 
checks
  for this

* elfcpp/elfcpp_swap.h included Linux-only <endian.h> and <byteswap.h>

  on Solaris 2, one can use <sys/types.h> instead which either defines
  _BIG_ENDIAN or _LITTLE_ENDIAN

  I've found no replacement for the swap_{16, 32, 64} functions from
  <byteswap.h>, though

* gold/output.h uses ffsll, which is missing

* gold/output.cc uses mmremap and MREMAP_MAYMOVE, which are missing

* gold/object.cc uses memmem, which is undefined

Overall, there is a considerable number of unconditional Linuxisms used
without any check or standards-based alternative, so this probably affects
every non-Linux platform and not only Solaris 2.

-- 
           Summary: gold doesn't build on Solaris 11
           Product: binutils
           Version: 2.20 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gold
        AssignedTo: ian at airs dot com
        ReportedBy: ro at TechFak dot Uni-Bielefeld dot DE
                CC: bug-binutils at 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://sourceware.org/bugzilla/show_bug.cgi?id=7024

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]