Support for ILP32 ABI for AArch64 is still work-in-progress. There are no publicly released toolchains that support ILP32 yet. -- Maxim Kuvyrkov www.linaro.org > On Feb 16, 2015, at 9:44 AM, loody <miloody@xxxxxxxxx> wrote: > > hi all: > I follow below link and try to generate aarch32/64 user mode program. > http://permalink.gmane.org/gmane.comp.gcc.help/47571 > > > But I get below error message: > aarch64-linux-gnu-gcc -mabi=ilp32 test.c > /media/sdb2/toolchain/arm/gcc-linaro-aarch64-linux-gnu-4.9-2014.09_linux/bin/../lib/gcc/aarch64-linux-gnu/4.9.2/../../../../aarch64-linux-gnu/bin/ld: > skipping incompatible > /media/sdb2/toolchain/arm/gcc-linaro-aarch64-linux-gnu-4.9-2014.09_linux/bin/../lib/gcc/aarch64-linux-gnu/4.9.2/libgcc.a > when searching for -lgcc > > Did I miss anything else to cross-compile aarch32/64? > appreciate your help in advance, > > PS: below is my gcc information > # aarch64-linux-gnu-gcc -v > Using built-in specs. > COLLECT_GCC=aarch64-linux-gnu-gcc > COLLECT_LTO_WRAPPER=/media/sdb2/toolchain/arm/gcc-linaro-aarch64-linux-gnu-4.9-2014.09_linux/bin/../libexec/gcc/aarch64-linux-gnu/4.9.2/lto-wrapper > Target: aarch64-linux-gnu > Configured with: > /cbuild/slaves/oorts/crosstool-ng/builds/aarch64-linux-gnu-linux/.build/src/gcc-linaro-4.9-2014.09/configure > --build=i686-build_pc-linux-gnu --host=i686-build_pc-linux-gnu > --target=aarch64-linux-gnu > --prefix=/cbuild/slaves/oorts/crosstool-ng/builds/aarch64-linux-gnu-linux/install > --with-sysroot=/cbuild/slaves/oorts/crosstool-ng/builds/aarch64-linux-gnu-linux/install/aarch64-linux-gnu/libc > --enable-languages=c,c++,fortran --disable-multilib --enable-multiarch > --with-arch=armv8-a --with-pkgversion='crosstool-NG > linaro-1.13.1-4.9-2014.09 - Linaro GCC 4.9-2014.09' > --with-bugurl=https://bugs.launchpad.net/gcc-linaro > --enable-__cxa_atexit --disable-libmudflap --enable-libgomp > --disable-libssp > --with-gmp=/cbuild/slaves/oorts/crosstool-ng/builds/aarch64-linux-gnu-linux/.build/aarch64-linux-gnu/build/static > --with-mpfr=/cbuild/slaves/oorts/crosstool-ng/builds/aarch64-linux-gnu-linux/.build/aarch64-linux-gnu/build/static > --with-mpc=/cbuild/slaves/oorts/crosstool-ng/builds/aarch64-linux-gnu-linux/.build/aarch64-linux-gnu/build/static > --with-isl=/cbuild/slaves/oorts/crosstool-ng/builds/aarch64-linux-gnu-linux/.build/aarch64-linux-gnu/build/static > --with-cloog=/cbuild/slaves/oorts/crosstool-ng/builds/aarch64-linux-gnu-linux/.build/aarch64-linux-gnu/build/static > --with-libelf=/cbuild/slaves/oorts/crosstool-ng/builds/aarch64-linux-gnu-linux/.build/aarch64-linux-gnu/build/static > --enable-threads=posix --disable-libstdcxx-pch > --enable-linker-build-id --enable-plugin > --with-local-prefix=/cbuild/slaves/oorts/crosstool-ng/builds/aarch64-linux-gnu-linux/install/aarch64-linux-gnu/libc > --enable-c99 --enable-long-long > Thread model: posix > gcc version 4.9.2 20140904 (prerelease) (crosstool-NG > linaro-1.13.1-4.9-2014.09 - Linaro GCC 4.9-2014.09)