LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-28-2011, 08:05 AM   #1
mahmoodn
Member
 
Registered: May 2010
Posts: 427

Rep: Reputation: 16
/usr/bin/ld: cannot find -lstdc++


When I make a program from source, I get this error:

Code:
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/libstdc++.a when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/libstdc++.a when searching for -lstdc++
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
make[3]: *** [isa_gen] Error 1
make[3]: Leaving directory `/root/temp-build/osprey/targdir/targ_info'
make[2]: *** [default] Error 2
make[2]: Leaving directory `/root/temp-build/osprey/targdir/targ_info'
make[1]: *** [targ_info] Error 2
make[1]: Leaving directory `/root/temp-build'
make: *** [build] Error 2
I don't know why it complain about libstdc++ because I have installed it
Code:
root@srv:~/temp-build# dpkg -l | grep -r -i "libstdc"
ii  libstdc++6                           4.4.3-4ubuntu5                        The GNU Standard C++ Library v3
ii  libstdc++6-4.1-dev                   4.1.2-27ubuntu1                       The GNU Standard C++ Library v3 (development
ii  libstdc++6-4.4-dbg                   4.4.3-4ubuntu5                        The GNU Standard C++ Library v3 (debugging f
ii  libstdc++6-4.4-dev                   4.4.3-4ubuntu5                        The GNU Standard C++ Library v3 (development
ii  libstdc++6-dev                       3.4.6-1ubuntu2                        The GNU Standard C++ Library v3 (development
 
Old 07-28-2011, 08:13 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Maybe it's looking for libstdc++5. Many systems provide the older libstc++ for compatibility. For examples Red Hat provides the package compat-libstdc++-33. Ubuntu provides libstdc++5 and ia32-libs.

Last edited by colucix; 07-28-2011 at 08:15 AM.
 
Old 07-28-2011, 08:17 AM   #3
mahmoodn
Member
 
Registered: May 2010
Posts: 427

Original Poster
Rep: Reputation: 16
How can I find which version is required?
 
Old 07-28-2011, 08:53 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Still using Ubuntu ? Which version ?

Is this about osprey → Open64 ?
http://svn.open64.net/listing.php?re...sprey%2F&rev=0
http://www.open64.net/home.html
http://www.open64.net/download/open64-4x-releases.html
 
Old 07-29-2011, 12:41 AM   #5
mahmoodn
Member
 
Registered: May 2010
Posts: 427

Original Poster
Rep: Reputation: 16
Yes that is possible. I downloaded from AMD site.
 
Old 08-08-2011, 04:25 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
By default, on x86_64 machines, the osprey compiler will be built in
32bit mode and libraries will be built in 32 and 64 bit modes to support
compilation in either mode. See "HOWTO-INSTALL-* and other documentation.

A 32bit libstdc++ library is required ( to create some objects.)
Ubuntu 10.04, amd64 : sudo apt-get install g++-4.4-multilib


The binary osprey 'open64-4.2.4-0.x86_64.rpm' works perfect on Ubuntu 10.*
https://sourceforge.net/projects/ope...4.rpm/download
sudo rpm -Uvh --nodeps open64-4.2.4-0.x86_64.rpm

..

Last edited by knudfl; 08-08-2011 at 04:31 AM.
 
Old 08-08-2011, 04:32 AM   #7
hackertecuci
LQ Newbie
 
Registered: Aug 2011
Posts: 6

Rep: Reputation: Disabled
Can everyone give me a linux root ?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
echo $PATH = /home/g3rc4n/bin:/usr/local/bin:/usr/bin:/bin:/usr/games ? i_heart_pandas Linux - Software 7 09-18-2009 08:33 AM
Failed to chck remot comnd executin using shells /usr/bin/ssh and /usr/bin/rsh farnaw4u Linux - Software 2 04-06-2009 12:08 AM
/tools/bin/ld: cannot find -lstdc++ -- Error in " make check " of Glibc lfs_rocks Linux From Scratch 1 02-15-2008 09:23 AM
path in services wrong for clamav updated frm 0.75 to 0.80 usr/bin vs usr/local/bin Emmanuel_uk Linux - Newbie 3 04-22-2005 01:02 AM
Is '/usr/bin/find' reliable if '/bin/ls' has been replaced? DigaMe Linux - Security 2 11-12-2004 10:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration