The-OpenROAD-Project / OpenROAD

OpenROAD's unified application implementing an RTL-to-GDS Flow. Documentation at https://openroad.readthedocs.io/en/latest/
https://theopenroadproject.org/
BSD 3-Clause "New" or "Revised" License
1.41k stars 494 forks source link

libortools.so.9: cannot open shared object file: No such file or directory #5218

Open juliannz opened 2 weeks ago

juliannz commented 2 weeks ago

Describe the bug

I have the same problem as described in issue #2608, but without docker usage. I installed or-tools manually, as the binarys are not available for all dists. ldd build/src/openroad|grep or gives the correct result, but ldd <install-prefix>/bin/openroad|grep or gives libortools.so.9 => not found. I already tried to change the runtime path and set it to <install-prefix>, but this doesnt change anything...

Workarounds:

but both are not that satisfying...

Expected Behavior

<install-prefix>/bin/openroad shouldnt fail

Environment

doesnt matter imao

To Reproduce

build using or-tools not installed to /opt

Relevant log output

No response

Screenshots

No response

Additional Context

No response

maliberty commented 2 weeks ago

Have you tried setting your LD_LIBRARY_PATH to find the .so? What platform are you using that requires manual installation.

juliannz commented 2 weeks ago

Thanks for the hint, I googled a bit and adding set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) after my changes to the build file resolves the issue (: or-tools is available again for Ubuntu 20, but wasnt in the last release. So you're right, pretty rare use case that one needs to build it from source^^ Still, if youre interested, I can provide my fix via pr or so (but after I finished my current project)...

maliberty commented 2 weeks ago

A PR would be appreciated.