After downloading groff-1.19.1 from http://distro.ibiblio.org/pub/linux/distributions/gentoo/distfiles/ (and several other mirrors), when trying to compile, the following error is reported: # ./configure checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking that C++ compiler can compile simple program... no configure: error: a working C++ compiler is required This also affects the installation at stage 2.
# gcc-config -l [1] x86_64-pc-linux-gnu-3.4.2 [2] x86_64-pc-linux-gnu-3.4.2-hardened [3] x86_64-pc-linux-gnu-3.4.2-hardenednossp [4] x86_64-pc-linux-gnu-3.4.3 * [5] x86_64-pc-linux-gnu-3.4.3-hardened [6] x86_64-pc-linux-gnu-3.4.3-hardenednopie [7] x86_64-pc-linux-gnu-3.4.3-hardenednossp # * Switching to x86_64-pc-linux-gnu-3.4.3 compiler... [ ok ] g++: no input files
I tried to compile a simple program. It compiles but, on execution I get: "error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory" I did not find this library anywhere, nor a package to emerge.
it appears to be a multilib bug ... a friend of mine hit this and this is what we managed to debug: $ echo 'int main(){}' > test.cpp $ strace -f -o out ./a.out $ grep libstdc++ out 24087 open("/lib/tls/x86_64/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) 24087 open("/lib/tls/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) 24087 open("/lib/x86_64/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) 24087 open("/lib/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) 24087 open("/usr/lib/tls/x86_64/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) 24087 open("/usr/lib/tls/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) 24087 open("/usr/lib/x86_64/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) 24087 open("/usr/lib/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) 24087 writev(2, [{"./a.out", 7}, {": ", 2}, {"error while loading shared libra"..., 36}, {": ", 2}, {"libstdc++.so.6", 14}, {": ", 2}, {"cannot open shared object file", 30}, {": ", 2}, {"No such file or directory", 25}, {"\n", 1}], 10) = 121 that /lib/x86_64/ looks very wrong
*** This bug has been marked as a duplicate of 80434 ***