Open dssds opened 7 years ago
I build llvm and clang cross compile environment, but test has error: USE follow command: clang -O0 -emit-llvm -target or1k-linux filename.c -S -o filename.ll --sysroot /opt/or1k-tool-chain/or32-linux/ -I /opt/or1k-tool-chain/or32-linux/include/ clang hello.ll -target or1k-linux -c -o hello.o ##############but I can't generate ELF FIles clang hello.o -target or1k -o hello /usr/bin/ld: hello.o: Relocations in generic ELF (EM: 92) hello.o: could not read symbols: File in wrong format collect2: error: ld returned 1 exit status clang-3.9: error: linker (via gcc) command failed with exit code 1 (use -v to see invocation) clang hello.o -target or1k -o hello --sysroot /opt/or1k-tool-chain/or32-linux/ -I /opt/or1k-tool-chain/or32-linux/include/ -L /opt/or1k-tool-chain/or32-linux/lib/ /usr/bin/ld: hello.o: Relocations in generic ELF (EM: 92) hello.o: could not read symbols: File in wrong format collect2: error: ld returned 1 exit status clang-3.9: error: linker (via gcc) command failed with exit code 1 (use -v to see invocation)
How did you install it? Would you please tell me?
I build llvm and clang cross compile environment, but test has error: USE follow command: clang -O0 -emit-llvm -target or1k-linux filename.c -S -o filename.ll --sysroot /opt/or1k-tool-chain/or32-linux/ -I /opt/or1k-tool-chain/or32-linux/include/ clang hello.ll -target or1k-linux -c -o hello.o ##############but I can't generate ELF FIles clang hello.o -target or1k -o hello /usr/bin/ld: hello.o: Relocations in generic ELF (EM: 92) hello.o: could not read symbols: File in wrong format collect2: error: ld returned 1 exit status clang-3.9: error: linker (via gcc) command failed with exit code 1 (use -v to see invocation) clang hello.o -target or1k -o hello --sysroot /opt/or1k-tool-chain/or32-linux/ -I /opt/or1k-tool-chain/or32-linux/include/ -L /opt/or1k-tool-chain/or32-linux/lib/ /usr/bin/ld: hello.o: Relocations in generic ELF (EM: 92) hello.o: could not read symbols: File in wrong format collect2: error: ld returned 1 exit status clang-3.9: error: linker (via gcc) command failed with exit code 1 (use -v to see invocation)