[LLVMbugs] [Bug 8808] New: clang -m32 does not pass -L/usr/lib32 to the linker
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Dec 18 13:07:08 PST 2010
http://llvm.org/bugs/show_bug.cgi?id=8808
Summary: clang -m32 does not pass -L/usr/lib32 to the linker
Product: clang
Version: trunk
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: Driver
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: michael.kostylev at gmail.com
CC: llvmbugs at cs.uiuc.edu
% uname -a
FreeBSD freebsd64 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:36:49 UTC
2010 root at mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
% echo 'int main(){ return 0; }' > test.c
% clang -m32 -v test.c
clang version 2.9 (trunk 122063)
Target: i386-unknown-freebsd8.1
Thread model: posix
"/opt/clang/bin/clang" -cc1 -triple i386-unknown-freebsd8.1 -emit-obj
-mrelax-all -disable-free -disable-llvm-verifier -main-file-name test.c
-mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases
-target-cpu pentium4 -target-linker-version 2.20.1.20100303 -v -resource-dir
/opt/clang/bin/../lib/clang/2.9 -ferror-limit 19 -fmessage-length 141
-fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-VZXw7r.o
-x c test.c
clang -cc1 version 2.9 based upon llvm 2.9svn hosted on
x86_64-unknown-freebsd8.1
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/opt/clang/bin/../lib/clang/2.9/include
/usr/include
End of search list.
"/usr/local/bin/ld" --eh-frame-hdr -dynamic-linker /libexec/ld-elf.so.1 -m
elf_i386_fbsd -o a.out /usr/lib32/crt1.o /usr/lib32/crti.o
/usr/lib32/crtbegin.o /tmp/cc-VZXw7r.o -lgcc --as-needed -lgcc_s --no-as-needed
-lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib32/crtend.o
/usr/lib32/crtn.o
/usr/local/bin/ld: skipping incompatible /usr/lib/libgcc.a when searching for
-lgcc
/usr/local/bin/ld: cannot find -lgcc
clang: error: linker command failed with exit code 1 (use -v to see invocation)
--
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