Created
November 27, 2013 13:52
-
-
Save robstewart57/7676030 to your computer and use it in GitHub Desktop.
Clang unable to cross-compile from x86_64 to ARM, Cortex a9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ clang -v -target arm-none-eabi -mcpu=cortex-a9 -mfloat-abi=soft helloworld.c | |
clang version 3.3 (tags/RELEASE_33/rc3) | |
Target: arm-none--eabi | |
Thread model: posix | |
"/usr/bin/clang" -cc1 -triple armv7-none--eabi -S -disable-free -disable-llvm-verifier -main-file-name helloworld.c -mrelocation-model static -mdisable-fp-elim -fmath-errno -mconstructor-aliases -target-abi aapcs -target-cpu cortex-a9 -msoft-float -mfloat-abi soft -target-feature +soft-float -target-feature +soft-float-abi -target-feature -neon -target-linker-version 2.23.52.0.1 -v -resource-dir /usr/bin/../lib/clang/3.3 -fno-dwarf-directory-asm -fdebug-compilation-dir /home/rob/code/c/llvm -ferror-limit 19 -fmessage-length 157 -mstackrealign -fno-signed-char -fobjc-runtime=gcc -fobjc-default-synthesize-properties -fdiagnostics-show-option -fcolor-diagnostics -backend-option -vectorize-loops -o /tmp/helloworld-Iarp5R.s -x c helloworld.c | |
clang -cc1 version 3.3 based upon LLVM 3.3 default target x86_64-redhat-linux-gnu | |
#include "..." search starts here: | |
#include <...> search starts here: | |
/usr/local/include | |
/usr/bin/../lib/clang/3.3/include | |
/usr/include | |
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include | |
End of search list. | |
"/usr/bin/arm-none-eabi-gcc" -v -mcpu=cortex-a9 -mfloat-abi=soft -c -o /tmp/helloworld-2n4ZGp.o -x assembler /tmp/helloworld-Iarp5R.s | |
Using built-in specs. | |
COLLECT_GCC=/usr/bin/arm-none-eabi-gcc | |
Target: arm-none-eabi | |
Configured with: ../gcc-4.7-2012.09/configure --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib64 --with-pkgversion='Fedora 2012.09.63-1.fc19' --with-bugurl=https://bugzilla.redhat.com/ --enable-lto --infodir=/usr/share/info --target=arm-none-eabi --enable-interwork --enable-multilib --with-newlib --enable-languages=c --disable-nls --disable-shared --disable-threads --with-gnu-as --with-gnu-ld --with-gmp --with-mpfr --with-mpc --without-headers --with-system-zlib --disable-libssp | |
Thread model: single | |
gcc version 4.7.2 (Fedora 2012.09.63-1.fc19) | |
COLLECT_GCC_OPTIONS='-v' '-mcpu=cortex-a9' '-mfloat-abi=soft' '-c' '-o' '/tmp/helloworld-2n4ZGp.o' | |
/usr/lib64/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as -v -mcpu=cortex-a9 -mfloat-abi=soft -meabi=5 -o /tmp/helloworld-2n4ZGp.o /tmp/helloworld-Iarp5R.s | |
GNU assembler version 2.23.51 (arm-none-eabi) using BFD version (Fedora 2012.09.63-3.fc19) 2.23.51.20120829 | |
COMPILER_PATH=/usr/libexec/gcc/arm-none-eabi/4.7.2/:/usr/libexec/gcc/arm-none-eabi/4.7.2/:/usr/libexec/gcc/arm-none-eabi/:/usr/lib64/gcc/arm-none-eabi/4.7.2/:/usr/lib64/gcc/arm-none-eabi/:/usr/lib64/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/ | |
LIBRARY_PATH=/usr/lib64/gcc/arm-none-eabi/4.7.2/:/usr/lib64/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/lib/ | |
COLLECT_GCC_OPTIONS='-v' '-mcpu=cortex-a9' '-mfloat-abi=soft' '-c' '-o' '/tmp/helloworld-2n4ZGp.o' | |
"/usr/bin/arm-none-eabi-gcc" -v -mcpu=cortex-a9 -mfloat-abi=soft -o a.out /tmp/helloworld-2n4ZGp.o | |
Using built-in specs. | |
COLLECT_GCC=/usr/bin/arm-none-eabi-gcc | |
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/arm-none-eabi/4.7.2/lto-wrapper | |
Target: arm-none-eabi | |
Configured with: ../gcc-4.7-2012.09/configure --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib64 --with-pkgversion='Fedora 2012.09.63-1.fc19' --with-bugurl=https://bugzilla.redhat.com/ --enable-lto --infodir=/usr/share/info --target=arm-none-eabi --enable-interwork --enable-multilib --with-newlib --enable-languages=c --disable-nls --disable-shared --disable-threads --with-gnu-as --with-gnu-ld --with-gmp --with-mpfr --with-mpc --without-headers --with-system-zlib --disable-libssp | |
Thread model: single | |
gcc version 4.7.2 (Fedora 2012.09.63-1.fc19) | |
COMPILER_PATH=/usr/libexec/gcc/arm-none-eabi/4.7.2/:/usr/libexec/gcc/arm-none-eabi/4.7.2/:/usr/libexec/gcc/arm-none-eabi/:/usr/lib64/gcc/arm-none-eabi/4.7.2/:/usr/lib64/gcc/arm-none-eabi/:/usr/lib64/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/ | |
LIBRARY_PATH=/usr/lib64/gcc/arm-none-eabi/4.7.2/:/usr/lib64/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/lib/ | |
COLLECT_GCC_OPTIONS='-v' '-mcpu=cortex-a9' '-mfloat-abi=soft' '-o' 'a.out' | |
arm-none-eabi-gcc: fatal error: selected multilib '.' not installed | |
compilation terminated. | |
clang: error: linker (via gcc) command failed with exit code 1 (use -v to see invocation) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment