Hi Niels,
Am 10.06.2014 um 10:47 schrieb Niels Möller nisse@lysator.liu.se:
Dagobert Michelsen dam@opencsw.org writes:
I have two failing tests on 64 bit Sparc:
And it's camellia and gcm, which is plain C code on that platform. The testsuite passes on the machine where I test it:
$ uname -a SunOS bacon 5.10 Generic_147147-26 sun4u sparc SUNW,Sun-Fire-15000
$ ./config.status --version nettle config.status 3.0 configured by /home/nisse/hack/nettle/configure, generated by GNU Autoconf 2.69, with options "'CC=gcc -m64' 'CXX=g++ -m64'"
$ gcc --version gcc (GCC) 3.4.5
Which compiler are you using?
This is Sun Studio 12. Sun Studio 12.3 fails also. Optflags are -xO3. Removing optflags leads to the same error. I just tested with GCC 4.9.0 and the testsuite passes. Looks like a compiler-interop issue. Would you think giving Sun Studio a try would be worth it? Maybe different alignment and differing pragmas?
Sparc 32 bit, i386 32 bit and amd64 64 bit work fine. Byte ordering?
Does your config.h define WORDS_BIGENDIAN correctly?
Good question:
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most significant byte first (like Motorola and SPARC, unlike Intel). */ #if defined AC_APPLE_UNIVERSAL_BUILD # if defined __BIG_ENDIAN__ # define WORDS_BIGENDIAN 1 # endif #else # ifndef WORDS_BIGENDIAN # define WORDS_BIGENDIAN 1 # endif #endif
I guess that is ok.
Best regards
— Dago