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…]

#4899
Anonymous

    Matt,

    I just tried something (and as I was doing it, I started thinking that maybe you already had proposed it…, which of course you did in message #6). I guess my brain went dead at the same time as my cluster went down…

    So this time I included a statement for LD_LIBRARY_PATH in my g++ wrapper-script.

    $ cat ~/bin-wrapper/g++
    #!/bin/bash
    export LD_LIBRARY_PATH=/software/gcc-4.4.2/lib64:/software/gcc-4.4.2/lib:/software/base-gcc/lib:/software/base-gcc/lib64:/software/gmp-4.3.1_gcc//lib:/software/mpfr-2.4.1_gcc/lib
    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 VoilĂ ! Finally compiling! I will later report if all is working fine with this somewhat ugly workaround.

    Once again, thanks to you and smlewis for all the help.

    Here is the output using the g++ wrapper script :

    $ ./scons.py -j8 bin mode=release
    scons: Reading SConscript files …
    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/protocols/loops/looprelax_protocols.os -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 -fPIC -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/protocols/loops/looprelax_protocols.cc
    libmpfr.so.1 => /software/mpfr-2.4.1_gcc/lib/libmpfr.so.1 (0x00002b2a1b5e9000)
    libgmp.so.3 => /software/gmp-4.3.1_gcc//lib/libgmp.so.3 (0x00002b2a1b84f000)
    libc.so.6 => /lib64/libc.so.6 (0x0000003e41400000)
    /lib64/ld-linux-x86-64.so.2 (0x0000003e41000000)
    g++ -o build/src/release/linux/2.6/64/x86/gcc/protocols/loops/LoopRelaxMover.os -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 -fPIC -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/protocols/loops/LoopRelaxMover.cc
    libmpfr.so.1 => /software/mpfr-2.4.1_gcc/lib/libmpfr.so.1 (0x00002b524d55a000)
    libgmp.so.3 => /software/gmp-4.3.1_gcc//lib/libgmp.so.3 (0x00002b524d7c0000)
    libc.so.6 => /lib64/libc.so.6 (0x0000003e41400000)
    /lib64/ld-linux-x86-64.so.2 (0x0000003e41000000)