Reply To: unable to propagate location of libraries to scons for Rosetta 3.1 [FIXED…SORT OF…]

Member Site Forums Rosetta 3 Rosetta 3 – Build/Install unable to propagate location of libraries to scons for Rosetta 3.1 [FIXED…SORT OF…] Reply To: unable to propagate location of libraries to scons for Rosetta 3.1 [FIXED…SORT OF…]

#4896
Anonymous

    Dear Matt,

    I could not do the proposed test earlier since cluster has been down for maintenance since yesterday 17h00.

    So, first, here are the shared library dependencies for /software/gcc-4.4.2/libexec/gcc/x86_64-unknown-linux-gnu/4.4.2/cc1plus :
    $ ldd /software/gcc-4.4.2/libexec/gcc/x86_64-unknown-linux-gnu/4.4.2/cc1plus
    libmpfr.so.1 => /software/mpfr-2.4.1_gcc/lib/libmpfr.so.1 (0x00002b90a1def000)
    libgmp.so.3 => /software/gmp-4.3.1_gcc//lib/libgmp.so.3 (0x00002b90a2055000)
    libc.so.6 => /lib64/libc.so.6 (0x0000003b25e00000)
    /lib64/ld-linux-x86-64.so.2 (0x0000003b25a00000)

    Here is my wrapper script for g++ :
    $ cat ~/bin-wrapper/g++
    #!/bin/bash
    ldd /software/gcc-4.4.2/libexec/gcc/x86_64-unknown-linux-gnu/4.4.2/cc1plus
    /software/gcc-4.4.2/bin/g++ “$@”

    and finally, as expected, here is the result from a build attempt:

    ./scons.py bin mode=release
    scons: Reading SConscript files …
    cat: write error: Broken pipe
    svn: ‘.’ is not a working copy
    scons: done reading SConscript files.
    scons: Building targets …
    g++ -o build/src/release/linux/2.6/64/x86/gcc/apps/public/AbinitioRelax.o -c -std=c++98 -pipe -ffor-scope -W -Wall -pedantic -Wno-long-long -O3 -ffast-math -funroll-loops -finline-functions -finline-limit=20000 -s -Wno-unused-variable -DNDEBUG -Isrc -Iexternal/include -Isrc/platform/linux/64/gcc -Isrc/platform/linux/64 -Isrc/platform/linux -I/software/base-gcc/include -I/software/gmp-4.3.1_gcc/include -I/software/mpfr-2.4.1_gcc/include -Iexternal/boost_1_38_0 -I/usr/local/include -I/usr/include src/apps/public/AbinitioRelax.cc
    libmpfr.so.1 => not found
    libgmp.so.3 => /usr/lib64/libgmp.so.3 (0x0000003e43000000)
    libc.so.6 => /lib64/libc.so.6 (0x0000003e41400000)
    /lib64/ld-linux-x86-64.so.2 (0x0000003e41000000)
    /software/gcc-4.4.2/libexec/gcc/x86_64-unknown-linux-gnu/4.4.2/cc1plus: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory

    So, libmpfr.so.1 => not found is as expected from my initial problem. The other thing is that scons pulled libgmp.so.3 => /usr/lib64/libgmp.so.3 ( I think it should be libgmp.so.3 => /software/gmp-4.3.1_gcc//lib/libgmp.so.3 ).

    I will keep on digging…