[CMake] make install gives cmake link errors for libstdc++

Jack Stalnaker jack.stalnaker at gmail.com
Tue Oct 25 16:26:23 EDT 2016


I'm having an odd problem. I built and installed cmake in a non-standard
location, using a compiler different from the system compiler on linux.
Cmake compiles without complaint, and installs without complaint. When I
attempt to build a piece of software using cmake, the configuration and
build stages are fine. However, when I run 'make install', I get errors
similar to:

/my/version/cmake: /usr/lib64/libstdc++.so.6: version 'GLIBCXX_3.4.20' not
found (required by cmake)

The funny thing is, though /my/version/cmake is not linked to
/usr/lib64/libstdc++.so.6. Instead, it's linked to
/my/version/libstdc++.so.6, as I intended. I've verified this with ldd,
which only shows the latter expected results. /my/version/libstdc++.so.6 is
in the library path, too, Not sure what's going on. Can someone help?

--Jack
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20161025/adfadec6/attachment.html>


More information about the CMake mailing list