llvm-g++ fails to links shared lib on amd64
Bug #251457 reported by
Václav Šmilauer
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
llvm-gcc-4.2 (Debian) |
Fix Released
|
Unknown
|
|||
llvm-gcc-4.2 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
llvm-g++ gives errors when linking shared library:
foo.cc:
int twice(int a){return 2*a;}
llvm-g++ -o foo.os -c -fPIC foo.cc
llvm-g++ -o libfoo.so -shared foo.os
/usr/bin/ld: /usr/lib/
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
The error suggests adding -fPIC which is the case already.
Any hints?
Changed in llvm-gcc-4.2: | |
status: | Unknown → New |
Changed in llvm-gcc-4.2 (Debian): | |
status: | New → Fix Released |
To post a comment you must log in.
(Confirmed as per debian report.)