Skip to content

Instantly share code, notes, and snippets.

@thoughtpolice
Created February 24, 2014 20:59
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 thoughtpolice/9196947 to your computer and use it in GitHub Desktop.
Save thoughtpolice/9196947 to your computer and use it in GitHub Desktop.
[a@snake:~]$ cat test.c
int main() { return 42; }
[a@snake:~]$ clang -v test.c
clang version 3.4 (tags/RELEASE_34/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
Found candidate GCC installation: /nix/store/94l17wjg65wpkwcm4x51pr5dlvarip6a-gcc-4.8.2/lib/gcc/x86_64-unknown-linux-gnu/4.8.2
Selected GCC installation: /nix/store/94l17wjg65wpkwcm4x51pr5dlvarip6a-gcc-4.8.2/lib/gcc/x86_64-unknown-linux-gnu/4.8.2
"/nix/store/5bw9l0mgdjnnb2gppiijx4c44i4n8d6r-clang-3.4/bin/clang-3.4" -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name test.c -mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -v -resource-dir /nix/store/5bw9l0mgdjnnb2gppiijx4c44i4n8d6r-clang-3.4/bin/../lib/clang/3.4 -internal-isystem /usr/local/include -internal-isystem /nix/store/5bw9l0mgdjnnb2gppiijx4c44i4n8d6r-clang-3.4/bin/../lib/clang/3.4/include -internal-externc-isystem /nix/store/q784x64hp3nwdxx7lbgb16f74i2bhxxk-glibc-2.18/include -fdebug-compilation-dir /home/a -ferror-limit 19 -fmessage-length 180 -mstackrealign -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -vectorize-slp -o /tmp/test-23f41f.o -x c test.c
clang -cc1 version 3.4 based upon LLVM 3.4svn default target x86_64-unknown-linux-gnu
ignoring nonexistent directory "/usr/local/include"
#include "..." search starts here:
#include <...> search starts here:
/nix/store/5bw9l0mgdjnnb2gppiijx4c44i4n8d6r-clang-3.4/bin/../lib/clang/3.4/include
/nix/store/q784x64hp3nwdxx7lbgb16f74i2bhxxk-glibc-2.18/include
End of search list.
"/run/current-system/sw/bin/ld" --eh-frame-hdr -m elf_x86_64 -o a.out crt1.o crti.o /nix/store/94l17wjg65wpkwcm4x51pr5dlvarip6a-gcc-4.8.2/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/crtbegin.o -L/nix/store/94l17wjg65wpkwcm4x51pr5dlvarip6a-gcc-4.8.2/lib/gcc/x86_64-unknown-linux-gnu/4.8.2 -L/nix/store/94l17wjg65wpkwcm4x51pr5dlvarip6a-gcc-4.8.2/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../../lib64 -L/nix/store/94l17wjg65wpkwcm4x51pr5dlvarip6a-gcc-4.8.2/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/../../.. /tmp/test-23f41f.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /nix/store/94l17wjg65wpkwcm4x51pr5dlvarip6a-gcc-4.8.2/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/crtend.o crtn.o
/nix/store/dyb8q2dx4dnbxpajf9inycjh49mabmdy-binutils-2.23.1/bin/ld: cannot find crt1.o: No such file or directory
/nix/store/dyb8q2dx4dnbxpajf9inycjh49mabmdy-binutils-2.23.1/bin/ld: cannot find crti.o: No such file or directory
clang-3.4: error: linker 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