On Thu, Aug 20, 2020 at 1:07 AM Jeffrey Walton <noloa...@gmail.com> wrote:

> 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
>

 Hi,

As Niels said, maybe a missing package is what stops the compilation
process. I tested it on  GCC119 which has AIX 7.2, gcc builds 32 bit binary
by default when -maix64 is enabled it builds 64 bit binary and both are
executed successfully.

I posted a patch that adds ABI check, thank you both.

regards,
Mamone
_______________________________________________
nettle-bugs mailing list
nettle-bugs@lists.lysator.liu.se
http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs

Reply via email to