After 'make install', the installed compiler cannot find libgomp.spec. The problem seems to be that we are not looking in <inst>/lib64:
$ export PATH=$HOME/gomp.clean/native.x86_64/bin:$PATH $ which gcc ~/gomp.clean/native.x86_64/bin/gcc $ gcc -o a a.c -fopenmp -O2 a.c: In function 'main': gcc: libgomp.spec: No such file or directory $ find ~/gomp.clean/native.x86_64 -name libgomp.spec /home/cygnus/dnovillo/gomp.clean/native.x86_64/lib64/libgomp.spec $ cp /home/cygnus/dnovillo/gomp.clean/native.x86_64/lib64/libgomp.spec /home/cygnus/dnovillo/gomp.clean/native.x86_64/lib/libgomp.spec $ gcc -o a a.c -fopenmp -O2 $ ./a ./a: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory $ export LD_LIBRARY_PATH=$HOME/gomp.clean/native.x86_64/lib64:$LD_LIBRARY_PATH $ ./a I'm thread 0 I'm thread 3 I'm thread 1 I'm thread 2 Perhaps the two problems are related? This works just fine on x86. We neither have to set LD_LIBRARY_PATH by hand nor we need to move libgomp.spec around. -- Summary: Cannot find libgomp.spec after 'make install' on x86_64 and ppc64 Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgomp AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dnovillo at gcc dot gnu dot org GCC build triplet: x86_64-unknown-linux-gnu GCC host triplet: x86_64-unknown-linux-gnu GCC target triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26165