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

Fix recent cmake-based build issues due to changed sundials library directory #1756

Merged
merged 4 commits into from
Apr 4, 2022

Conversation

dweindl
Copy link
Member

@dweindl dweindl commented Apr 4, 2022

Some package changed on GitHub Actions, not sure which exactly. But now sundials libraries are expected in a different directory than before. Let CMake figure it out.

Fixes errors of type

 make[5]: *** No rule to make target '/home/runner/work/AMICI/AMICI/ThirdParty/sundials/build/lib/x86_64-linux-gnu/libsundials_nvecserial.a', needed by 'swig/__model_neuron.so'.

Previous setup still worked here, but failed here.

The problem is, that on certain OSs, CMAKE_INSTALL_LIBDIR takes a different value, depending on CMAKE_INSTALL_PREFIX, and CMAKE_INSTALL_LIBDIR from AMICI does not necessarily match the one from sundials.

dweindl added 2 commits April 4, 2022 16:03
Some package changed on GitHub Actions, not sure which exactly.
But now sundials libraries are in expected in a different directory
than before. Let CMake figure it out.

Fixes errors of type
```
 make[5]: *** No rule to make target '/home/runner/work/AMICI/AMICI/ThirdParty/sundials/build/lib/x86_64-linux-gnu/libsundials_nvecserial.a', needed by 'swig/__model_neuron.so'.
```
@codecov
Copy link

codecov bot commented Apr 4, 2022

Codecov Report

Merging #1756 (92c8afe) into develop (3d4975c) will increase coverage by 12.69%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##           develop    #1756       +/-   ##
============================================
+ Coverage    65.14%   77.84%   +12.69%     
============================================
  Files           30       74       +44     
  Lines         4241    12018     +7777     
============================================
+ Hits          2763     9355     +6592     
- Misses        1478     2663     +1185     
Flag Coverage Δ
cpp 74.96% <ø> (?)
petab 59.18% <ø> (ø)
python 68.24% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/rdata.cpp 93.96% <0.00%> (ø)
include/amici/model_dae.h 0.00% <0.00%> (ø)
ThirdParty/gsl/gsl/gsl-lite.hpp 95.55% <0.00%> (ø)
src/edata.cpp 88.21% <0.00%> (ø)
src/backwardproblem.cpp 63.82% <0.00%> (ø)
src/steadystateproblem.cpp 84.53% <0.00%> (ø)
include/amici/solver.h 83.33% <0.00%> (ø)
include/amici/abstract_model.h 0.00% <0.00%> (ø)
src/exception.cpp 75.67% <0.00%> (ø)
include/amici/model.h 56.00% <0.00%> (ø)
... and 50 more

@dweindl dweindl requested a review from FFroehlich April 4, 2022 14:41
@dweindl dweindl changed the title Fix recent build issues due to changed sundials library directory Fix recent cmake-based build issues due to changed sundials library directory Apr 4, 2022
@sonarqubecloud
Copy link

sonarqubecloud bot commented Apr 4, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@dweindl dweindl merged commit 17289f7 into develop Apr 4, 2022
@dweindl dweindl deleted the fix_lib branch April 4, 2022 16:47
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

Successfully merging this pull request may close these issues.

2 participants