-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compile error on RHEL 8.6 (Ootpa): /usr/bin/ld: cannot find -lstdc++ #146
Comments
[hamersjbo@erstapfrk004 pdfalto]$ g++ --version [hamersjbo@erstapfrk004 pdfalto]$ dcc --version [hamersjbo@erstapfrk004 pdfalto]$ |
Hi,
again with compiler error. Now on newer REDHAT.
[hamersjbo@erstapfrk004 pdfalto]$ make Consolidate compiler generated dependencies of target xpdf [ 35%] Built target xpdf Consolidate compiler generated dependencies of target goo_objs [ 41%] Built target goo_objs [ 42%] Built target goo Consolidate compiler generated dependencies of target fofi_objs [ 47%] Built target fofi_objs [ 47%] Built target fofi Consolidate compiler generated dependencies of target splash_objs [ 59%] Built target splash_objs [ 60%] Built target splash Consolidate compiler generated dependencies of target pdfalto [ 61%] Linking CXX executable pdfalto /usr/bin/ld: cannot find -lstdc++ collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/pdfalto.dir/build.make:219: pdfalto] Error 1 make[1]: *** [CMakeFiles/Makefile2:180: CMakeFiles/pdfalto.dir/all] Error 2 make: *** [Makefile:136: all] Error 2
libstdc++ is installed
[hamersjbo@erstapfrk004 pdfalto]$ sudo yum install libstdc++
Updating Subscription Management repositories.
Red Hat Enterprise Linux 8 for x86_64 - Supplementary (RPMs) 416 B/s | 2.1 kB 00:05
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) 551 B/s | 2.8 kB 00:05
Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs) 549 B/s | 2.8 kB 00:05
Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) 468 B/s | 2.4 kB 00:05
Package libstdc++-8.5.0-10.el8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[hamersjbo@erstapfrk004 pdfalto]$ ldd $(which cmake) | grep libstdc++
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f28146bc000)
Find nothing on google, never had problems compiling packages on debian/ubuntu
The text was updated successfully, but these errors were encountered: