Incorrect linkage. ld: cannot find -lstdc++ and can't load .so/.DLL for: stdc++

Bug #674209 reported by Tiago Cogumbreiro
14
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/libstdc++.so{.6,}

description: updated
summary: - ld: cannot find -lstdc++
+ Incorrect linkage. ld: cannot find -lstdc++ and can't load .so/.DLL for:
+ stdc++
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in haskell-llvm (Ubuntu):
status: New → Confirmed
Revision history for this message
Peter Schachte (schachte) wrote :

The suggested symbolic link did not work for me under onieric x86_64. Instead this link solves this problem:

    sudo ln -s /usr/lib/gcc/x86_64-linux-gnu/4.6/libstdc++.so /usr/lib/libstdc++.so

However, another bug then stops me from using the package.

Revision history for this message
Andreas Moog (ampelbein) wrote :

This package has been removed from the Ubuntu development release, so I am closing all remaining open bug reports.

Sorry that we couldn't fix your problem properly.

For more information, see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=752488

Thank you for your understanding and please continue to report any bugs you may find.

Changed in haskell-llvm (Ubuntu):
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.