Ian Lance Taylor <i...@google.com> writes:

> Rainer Orth <r...@cebitec.uni-bielefeld.de> writes:
>
>> The patch allowed the bootstrap to complete successfully, but since
>> libgo.so now has undefined references to log2 and trunc, all Go
>> execution still fail.
>
> I went ahead and removed the uses of the libc log2 and trunc functions,
> on the basis that although they are in C99 they are not in C89.
> Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu.
> Committed to mainline.

Thanks, that worked wonders for Solaris 9/SPARC results :-)  (Solaris
8/SPARC bootstrap is currently broken for unrelated reasons.)

We're now down to four testsuite failures in libgo:

--- FAIL: math_test.TestLdexp (0.00 seconds)
        ???:1: Ldexp(-1, -1075) = 0, want -0
FAIL
FAIL: math

FAIL: time

No hint why.

--- FAIL: rand.TestRead (0.00 seconds)
        ???:1: Read(buf) = 1040, %!s(<nil>)
FAIL
FAIL: crypto/rand

Before Solaris 11, reads from /dev/urandom are restricted to 1040
bytes.  This always holds for /dev/random, but isn't documented in the
Solaris 10 random(7D) manpage.  On Solaris 11, I find:

     The limitation per read for /dev/random is 1040  bytes.  The
     limit for /dev/urandom is (128 * 1040).

and the change could be confirmed in the OpenSolaris sources.

FAIL: net/http

Again, no hint what's wrong.

        Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

Reply via email to