conda-forge / ctng-compilers-feedstock

A conda-smithy repository for ctng-compilers.
BSD 3-Clause "New" or "Revised" License
12 stars 28 forks source link

Wrong RPATH in libstdc++.so #40

Closed nehaljwani closed 4 years ago

nehaljwani commented 4 years ago
/t/nwani_1597448808 ❯❯❯ ldd $CONDA_PREFIX/lib/libstdc++.so   
    linux-vdso.so.1 (0x00007ffe5b797000)
    libm.so.6 => /lib64/libm.so.6 (0x00007f0881491000)
    libc.so.6 => /lib64/libc.so.6 (0x00007f08812c7000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f0881791000)
    libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f08812ac000) <-----------This should have been from $CONDA_PREFIX

/t/nwani_1597448808 ❯❯❯ readelf -a $CONDA_PREFIX/lib/libstdc++.so | grep RPATH
 0x000000000000000f (RPATH)              Library rpath: [/home/conda/feedstock_root/build_artifacts/ctng-compilers_1596393189889/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib]
isuruf commented 4 years ago

This is due to binary_relocation being turned off. Shall we edit the rpath to be $ORIGIN ?

cc @mingwandroid

isuruf commented 4 years ago

Can you check that this issue is fixed?

nehaljwani commented 4 years ago

Yes, I tested it. It works, Thank you!