FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
$ sudo dnf provides */libstdc++.so
Last metadata expiration check performed 2:09:38 ago on Tue Oct 6 10:11:03 2015.
compat-gcc-34-c++-3.4.6-36.fc22.x86_64 : C++ support for compatibility compiler
Repo : @System
gcc-c++-5.1.1-4.fc22.x86_64 : C++ support for GCC
Repo : @System
libstdc++-devel-5.1.1-4.fc22.i686 : Header files and libraries for C++ development
Repo : @System
compat-gcc-34-c++-3.4.6-36.fc22.x86_64 : C++ support for compatibility compiler
Repo : fedora
gcc-c++-5.1.1-1.fc22.x86_64 : C++ support for GCC
Repo : fedora
libstdc++-devel-5.1.1-1.fc22.i686 : Header files and libraries for C++ development
Repo : fedora
gcc-c++-5.1.1-4.fc22.x86_64 : C++ support for GCC
Repo : updates
libstdc++-devel-5.1.1-4.fc22.i686 : Header files and libraries for C++ development
Repo : updates
So I tried to install both x86_64 and i686 version of gcc-c++
Code:
$ sudo dnf install gcc-c++.x86_64
Last metadata expiration check performed 2:10:27 ago on Tue Oct 6 10:11:03 2015.
Package gcc-c++-5.1.1-4.fc22.x86_64 is already installed, skipping.
Dependencies resolved.
Nothing to do.
Complete!
[stralko@ca07lp515255 crosstool-ng]$ sudo dnf install gcc-c++.i686
Last metadata expiration check performed 2:10:33 ago on Tue Oct 6 10:11:03 2015.
Package gcc-c++-5.1.1-4.fc22.i686 is already installed, skipping.
Dependencies resolved.
Nothing to do.
Complete!
However I'm still getting the same error of
ld -lstdc++
ld: cannot find -lstdc++
Well this came up from building a cross compile toolchain. I'm using crosstool-ng and was running:
Code:
./ct-ng build
[DEBUG] Checking that gcc can statically link libstdc++ (CT_CC_GCC_STATIC_LIBSTDCXX)
[DEBUG] You may need to ensure that libstdc++.a is installed on your system
[DEBUG] ==> Executing: 'x86_64-build_unknown-linux-gnu-gcc' '-O2' '-g' '-pipe' '/home/stralko/src/embedded-linux-labs/toolchain/crosstool-ng/.build/arm-cortexa5-linux-uclibcgnueabihf/build/test.c' '-static' '-lstdc++' '-o' '/home/stralko/src/embedded-linux-labs/toolchain/crosstool-ng/.build/arm-cortexa5-linux-uclibcgnueabihf/build/.gccout'
[DEBUG] /usr/bin/ld: cannot find -lstdc++
[ERROR] collect2: error: ld returned 1 exit status
[ERROR]
[ERROR] >>
[ERROR] >> Build failed in step 'Checking that gcc can statically link libstdc++ (CT_CC_GCC_STATIC_LIBSTDCXX)'
[ERROR] >> called in step '(top-level)'
[ERROR] >>
[ERROR] >> Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR] >> called from: main[scripts/crosstool-NG.sh@554]
[ERROR] >>
[ERROR] >> For more info on this error, look at the file: 'build.log'
[ERROR] >> There is a list of known issues, some with workarounds, in:
[ERROR] >> 'docs/B - Known issues.txt'
[ERROR]
[ERROR] (elapsed: 0:01.60)
But when I try to run this from the command line I can the same error.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.