Saturday, October 12, 2013

Encountering error -static-libstdc++ not implemented when compiling GNU 4.8.1 on CentOS 6

When compiling GNU 4.8.1 according to blog entry Compiling GNU 4.8.1 on CentOS 6, you may encounter an error in the config.log

g++: unrecognized option '-static-libstdc++'
conftest.cpp:11:2: error: #error -static-libstdc++ not implemented

The error indicate that you may missed packages such as glibc-static, glibc-devel, glibc-static, libstdc++ libstdc++-devel.

# yum install  glibc-static glibc-devel glibc-static libstdc++ libstdc++-devel

Another thing you may want to check is that the /etc/ has /usr/lib

No comments: