Incorrect linkage. ld: cannot find -lstdc++ and can't load .so/.DLL for: stdc++
Bug #674209 reported by
Tiago Cogumbreiro
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
haskell-llvm (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
This package is broken.
$ ghc --make foo.hs
Linking foo ...
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
From 'ghci' I get this:
Loading package llvm-0.8.0.2 ... can't load .so/.DLL for: stdc++ (libstdc++.so: cannot open shared object file: No such file or directory)
Somehow it is linked to an incorrect file 'libstdc++.so' instead of to 'libstdc++.so.6'.
Dirty hack to fix it:
sudo ln -s /usr/lib/
description: | updated |
summary: |
- ld: cannot find -lstdc++ + Incorrect linkage. ld: cannot find -lstdc++ and can't load .so/.DLL for: + stdc++ |
To post a comment you must log in.
Status changed to 'Confirmed' because the bug affects multiple users.