building binutils on Solaris 9

Eric Botcazou ebotcazou@libertysurf.fr
Fri Jan 28 07:54:00 GMT 2005


> Attached is the output of `make check` for snapshot 050126 (downloaded
> from ftp://sources.redhat.com/pub/binutils/snapshots/
>
> These binutils were built with gcc-3.3.5 (bootstrapped using native Sun's
> cc) with the following:
> ../binutils-050126/configure --prefix=/opt/builder/toolchain
> --disable-nls --host=sparc64-sun-solaris2.9
> make (this is GNU make)

I presume your gcc-3.3.5 uses the Sun tools and not GNU binutils, right?
If so, take a look at the full log: almost all failures come from an 
invocation of the compiler.  Specifically, the compiler is asking the Sun 
linker to do things it doesn't support.  Of course the Sun linker should 
never be invoked in the first place but it is.  I can reproduce with a 
compiler configured --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld.

The nominal mainline CVS testsuite results on sparc64-sun-solaris2.9 are:

Native configuration is sparc64-sun-solaris2.9

                === binutils tests ===


Running target unix

                === binutils Summary ===

# of expected passes            29
# of untested testcases         4
                === gas tests ===


Running target unix

                === gas Summary ===

# of expected passes            81
                === ld tests ===


Running target unix
FAIL: bootstrap with --static
FAIL: shared (non PIC)
FAIL: shared (non PIC, load offset)
FAIL: shared (PIC main, non PIC so)

                === ld Summary ===

# of expected passes            153
# of unexpected failures        4
# of expected failures          4
# of untested testcases         9

with GCC 3.3.x, 3.4.x or 4.0.0exp.


FAIL: bootstrap with --static:
Solaris doesn't provide a static 64-bit libc.

FAIL: shared (non PIC)
FAIL: shared (non PIC, load offset)
FAIL: shared (PIC main, non PIC so)
Limitation of the Solaris dynamic linker: it doesn't seem to like DSO compiled 
without -fPIC.  We don't really care.

In other words, the testsuite is clean.

-- 
Eric Botcazou



More information about the Binutils mailing list