On Wed, Aug 19, 2020 at 5:42 PM Maamoun TK <[email protected]> wrote:
> ...
> > Another question: When looking at the powerpc64 things in configure.ac,
> > I wonder if powerpc64 supports 32-bit binaries, which would be built
> > with something like CC='gcc -m32' ?
> >
> > If 32-bit builds are possible, and are incompatible with the assembly
> > files, we need to add an ABI check similar to the one for x86_64 and
> > sparc, and add powerpc64 to asm_path only for ABI=64.
> >
>
> Right, I missed the '-m32' thing. I will add the ABI check to configure.ac
You might want to check this. In practice I don't believe 32-bit ABIs
are supported on the 64-bit iron.
I don't recall if the Linux ABI supports 32-bit on these machines. I
thought Steven Monroe said something about this (i.e., not supported),
but I cannot find it in my inbox.
If the ABI does specify a 32-bit interface, then GCC does not support
it. Here's from GCC112 on the compile farm. GCC112 offers GCC 4.8 and
GCC 8.3.
# GCC 4.8
$ gcc -m32 test.c -o test
In file included from /usr/include/features.h:399:0,
from /usr/include/stdint.h:25,
from
/usr/lib/gcc/ppc64le-redhat-linux/4.8.5/include/stdint.h:9,
from test.c:1:
/usr/include/gnu/stubs.h:8:27: fatal error: gnu/stubs-32.h: No such
file or directory
# include <gnu/stubs-32.h>
# GCC 8.3
gcc112:~$ /opt/at12.0/bin/gcc -m32 test.c -o test
cc1: error: ‘-m32’ not supported in this configuration
I don't know what Clang offers.
Jeff
_______________________________________________
nettle-bugs mailing list
[email protected]
http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs