Skip to content

Instantly share code, notes, and snippets.

@flacjacket
Created February 26, 2017 03:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flacjacket/35d92ea619af96352d5ac06844f2f1b5 to your computer and use it in GitHub Desktop.
Save flacjacket/35d92ea619af96352d5ac06844f2f1b5 to your computer and use it in GitHub Desktop.
Output from 'clang -v -fuse-ld=lld -target arm-none-eabi main.c -o main'
clang version 4.0.0 (tags/RELEASE_400/rc2)
Target: arm-none--eabi
Thread model: posix
InstalledDir: /usr/lib/llvm/4/bin
"/usr/lib64/llvm/4/bin/clang-4.0" -cc1 -triple armv4t-none--eabi -emit-obj -mrelax-all -disable-free -main-file-name main.c -mrelocation-model static -mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -target-cpu arm7tdmi -target-feature +soft-float-abi -target-feature +strict-align -target-abi aapcs -mfloat-abi soft -v -dwarf-column-info -debugger-tuning=gdb -resource-dir /usr/lib64/llvm/4/bin/../../../../lib/clang/4.0.0 -fdebug-compilation-dir /home/sean/test -ferror-limit 19 -fmessage-length 0 -fallow-half-arguments-and-returns -fno-signed-char -fobjc-runtime=gcc -fdiagnostics-show-option -o /tmp/main-fcb4b1.o -x c main.c
clang -cc1 version 4.0.0 based upon LLVM 4.0.0 default target x86_64-pc-linux-gnu
ignoring nonexistent directory "/usr/local/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/lib64/llvm/4/bin/../../../../lib/clang/4.0.0/include
/usr/include
End of search list.
"/usr/bin/arm-none-eabi-gcc" -v -fuse-ld=lld -o main /tmp/main-fcb4b1.o
Using built-in specs.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/arm-none-eabi/gcc-bin/6.3.0/arm-none-eabi-gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/arm-none-eabi/6.3.0/lto-wrapper
arm-none-eabi-gcc: error: unrecognized command line option ‘-fuse-ld=lld’; did you mean ‘-fuse-ld=bfd’?
Target: arm-none-eabi
Configured with: /var/tmp/portage/cross-arm-none-eabi/gcc-6.3.0/work/gcc-6.3.0/configure --host=x86_64-pc-linux-gnu --target=arm-none-eabi --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/arm-none-eabi/gcc-bin/6.3.0 --includedir=/usr/lib/gcc/arm-none-eabi/6.3.0/include --datadir=/usr/share/gcc-data/arm-none-eabi/6.3.0 --mandir=/usr/share/gcc-data/arm-none-eabi/6.3.0/man --infodir=/usr/share/gcc-data/arm-none-eabi/6.3.0/info --with-gxx-include-dir=/usr/lib/gcc/arm-none-eabi/6.3.0/include/g++-v6 --with-python-dir=/share/gcc-data/arm-none-eabi/6.3.0/python --enable-languages=c --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 6.3.0 p1.0' --disable-esp --enable-poison-system-directories --with-sysroot=/usr/arm-none-eabi --disable-bootstrap --with-newlib --enable-multilib --disable-altivec --disable-fixed-point --disable-libgcj --disable-libgomp --disable-libmudflap --disable-libssp --disable-libcilkrts --disable-libmpx --disable-vtable-verify --disable-libvtv --disable-libquadmath --enable-lto --without-isl --disable-libsanitizer --disable-default-pie --disable-default-ssp --without-headers --disable-decimal-float --with-multilib-list=armv6-m,armv7-m,armv7e-m,armv7-r
Thread model: single
gcc version 6.3.0 (Gentoo 6.3.0 p1.0)
clang-4.0: error: linker (via gcc) command failed with exit code 1 (use -v to see invocation)
@TheDidgeridooMan
Copy link

Make sure you have lld linker installed on your computer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment