Jeffrey Walton noloader@gmail.com writes:
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'm not familiar with how redhat packages gcc, but on debian, the plain gcc package supports only the default (64-bit abi), and one has to install a separate gcc-multilib package to get headers and libraries needed for building 32-bit (and x32, on x86_64) binaries.
Regards, /Niels