https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78712
Bug ID: 78712 Summary: gcc-4.9.4:: libjavamath.so inconsistent gmp link Product: gcc Version: 4.9.4 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: edeveaud at pasteur dot fr Target Milestone: --- hello, whar I've done 1) extracted fresh gcc-4.9.4 archive 2) run contrib/download_prerequisites => gmp, mpfr and mpc are ok 3) run ./configure 4) make && make install 5) then check for linking and then found the following. ''' bigmess:gcc/4.9.4 > find . -type f -name \*.so | xargs ldd ./lib64/libgcj_bc.so: linux-vdso.so.1 => (0x00007fffe31f3000) libc.so.6 => /lib64/libc.so.6 (0x00007f58383d7000) libgcc_s.so.1 => /local/gensoft2/exe/gcc/4.9.0/lib64/libgcc_s.so.1 (0x00007f58381c0000) /lib64/ld-linux-x86-64.so.2 (0x0000003cb7600000) ./lib64/gcj-4.9.4-15/libjvm.so: linux-vdso.so.1 => (0x00007fffd6396000) libgcj.so.15 => /local/gensoft2/exe/gcc/4.9.4/lib/../lib64/libgcj.so.15 (0x00007f4be93b6000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f4be918a000) libdl.so.2 => /lib64/libdl.so.2 (0x00007f4be8f86000) librt.so.1 => /lib64/librt.so.1 (0x00007f4be8d7e000) libc.so.6 => /lib64/libc.so.6 (0x00007f4be89e9000) libgcc_s.so.1 => /local/gensoft2/exe/gcc/4.9.4/lib/../lib64/libgcc_s.so.1 (0x00007f4be87d3000) /lib64/ld-linux-x86-64.so.2 (0x0000003cb7600000) ./lib64/gcj-4.9.4-15/libjavamath.so: linux-vdso.so.1 => (0x00007ffebcd91000) libgmp.so.3 => /usr/lib64/libgmp.so.3 (0x00007f16cff73000) librt.so.1 => /lib64/librt.so.1 (0x00007f16cfd6a000) libc.so.6 => /lib64/libc.so.6 (0x00007f16cf9d6000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f16cf7b9000) /lib64/ld-linux-x86-64.so.2 (0x0000003cb7600000) ''' one can note that lib64/gcj-4.9.4-15/libjavamath.so is linked to system gmp not gcc "embeded" one. configure was run with the following arguments ''' configure --prefix=/local/gensoft2/exe/gcc/4.9.4 \ --enable-threads=posix \ --enable-__cxa_atexit \ --disable-multilib \ --disable-bootstrap \ --enable-java-home \ --with-jvm-root-dir=/local/gensoft2/exe/gcc/4.9.4/libexec/gcj \ --enable-languages=c,c++,fortran,java ''' FYI same problem with gcc-6.2.0 see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78711 did I missed something ? best regards Eric