Skip to content
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

Open
jbollmeyer opened this issue Jul 18, 2022 · 1 comment
Open

Comments

@jbollmeyer
Copy link

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

@jbollmeyer
Copy link
Author

[hamersjbo@erstapfrk004 pdfalto]$ g++ --version
g++ (GCC) 8.5.0 20210514 (Red Hat 8.5.0-10)
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[hamersjbo@erstapfrk004 pdfalto]$ dcc --version
-bash: dcc: command not found
[hamersjbo@erstapfrk004 pdfalto]$ gcc --version
gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-10)
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[hamersjbo@erstapfrk004 pdfalto]$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant