Public bug reported:
$ cat test.c
int main(void) {return 0;}
$ clang test.c -v
clang version 2.9 (tags/RELEASE_29/final)
Target: powerpc-unknown-linux-gnu
Thread model: posix
"/usr/bin/clang" -cc1 -triple powerpc-unknown-linux-gnu -S -disable-free
-disable-llvm-verifier -main-file-name test.c -mrelocation-model static
-mdisable-fp-elim -mconstructor-aliases -target-linker-version 2.21.53.20110810
-momit-leaf-frame-pointer -v -resource-dir /usr/bin/../lib/clang/2.9
-ferror-limit 19 -fmessage-length 156 -fno-signed-char -fgnu-runtime
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-1iWOrb.s -x c test.c
clang -cc1 version 2.9 based upon llvm 2.9 hosted on powerpc-unknown-linux-gnu
ignoring duplicate directory "/usr/include/powerpc-linux-gnu"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/usr/include/powerpc-linux-gnu
/usr/bin/../lib/clang/2.9/include
/usr/include
End of search list.
"/usr/bin/as" -o /tmp/cc-SP2vIc.o /tmp/cc-1iWOrb.s
"/usr/bin/ld" --eh-frame-hdr -m elf_x86_64 -dynamic-linker
/lib64/ld-linux-x86-64.so.2 -o a.out crt1.o crti.o crtbegin.o -L -L/../../..
/tmp/cc-SP2vIc.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed
-lgcc_s --no-as-needed crtend.o crtn.o
/usr/bin/ld: unrecognised emulation mode: elf_x86_64
Supported emulations: elf32ppclinux elf32ppc elf32ppcsim elf64ppc elf32_spu
clang: error: linker command failed with exit code 1 (use -v to see invocation)
End of search list.
"/usr/bin/as" -o /tmp/cc-ueQtlM.o /tmp/cc-WJTRgt.s
"/usr/bin/ld" --eh-frame-hdr -m elf_x86_64 -dynamic-linker
/lib64/ld-linux-x86-64.so.2 -o a.out crt1.o crti.o crtbegin.o -L -L/../../..
/tmp/cc-ueQtlM.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed
-lgcc_s --no-as-needed crtend.o crtn.o
/usr/bin/ld: unrecognised emulation mode: elf_x86_64
Supported emulations: elf32ppclinux elf32ppc elf32ppcsim elf64ppc elf32_spu
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** Affects: clang (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/837673
Title:
clang linker problem on PowerPC
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/clang/+bug/837673/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs