Hi Niels,

Am 10.06.2014 um 10:47 schrieb Niels Möller <[email protected]>:
> Dagobert Michelsen <[email protected]> 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

-- 
"You don't become great by trying to be great, you become great by wanting to 
do something,
and then doing it so hard that you become great in the process." - xkcd #896

_______________________________________________
nettle-bugs mailing list
[email protected]
http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs

Reply via email to