Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict with libraries in implicit directories #269

Open
aash-r opened this issue Oct 31, 2023 · 1 comment
Open

Conflict with libraries in implicit directories #269

aash-r opened this issue Oct 31, 2023 · 1 comment
Assignees

Comments

@aash-r
Copy link

aash-r commented Oct 31, 2023

Hi,
Post completion of solving environment and activating sharpy environment, while running "cmake .." command, there is an issue with libraries in implicit directories.

OS: Oracle VirtualBox - Ubuntu 22.04.3

The following error message is received:

CMake Warning at lib/xbeam/CMakeLists.txt:12 (add_library):
Cannot generate a safe runtime search path for target xbeam because files
in some directories may conflict with libraries in implicit directories:

runtime library [libgomp.so.1] in /usr/lib/gcc/x86_64-linux-gnu/11 may be hidden by files in:
  /home/Anaconda/envs/sharpy/lib

Some of these libraries may not be found correctly.

CMake Warning at lib/UVLM/CMakeLists.txt:11 (add_library):
Cannot generate a safe runtime search path for target uvlm because files in
some directories may conflict with libraries in implicit directories:

runtime library [libgomp.so.1] in /usr/lib/gcc/x86_64-linux-gnu/11 may be hidden by files in:
  /home/Anaconda/envs/sharpy/lib

Some of these libraries may not be found correctly.

@ben-l-p
Copy link
Collaborator

ben-l-p commented Nov 2, 2023

Hi aash-r

It appears there are conflicting files in both the Conda environment and your GNU install, with both being in the system path. I am unable to replicate this issue on my machine, however I have found some possible solutions:

  • Firstly, I would recommend trying the Docker build of SHARPy, as it likely does not have the same issue.
  • You could delete the conflicting file(s) from the Conda environment (/home/Anaconda/envs/sharpy/lib). In this case it is libgomp.so.1, however there may be multiple.
  • Some users (of different packages) have found workarounds, such as HERE, although there is not a generally successful solution.

Please let me know if any of these fix your problem. I'll continue to investigate and if I find a fix I will update the CMake files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants