[LLVMbugs] [Bug 9543] New: linux ppc: clang linking invokes ld for x86_64 rather than ppc

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Mar 24 12:08:55 PDT 2011


http://llvm.org/bugs/show_bug.cgi?id=9543

           Summary: linux ppc: clang linking invokes ld for x86_64 rather
                    than ppc
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: jeremyhu at apple.com
                CC: llvmbugs at cs.uiuc.edu


$ /opt/llvm/bin/clang -c test.c 

$ file test.o
test.o: ELF 32-bit MSB relocatable, PowerPC or cisco 4500, version 1 (SYSV),
not stripped

$ /opt/llvm/bin/clang test.o -o test 
/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)

$ /opt/llvm/bin/clang --version
clang version 3.0 (trunk 128223)
Target: powerpc-unknown-linux-gnu
Thread model: posix

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list