Closed kschwede closed 3 years ago
There's an entry in the CMake FAQ about this. Try uninstalling fflas_ffpack and givaro and building those, or just run:
cmake -DBUILD_LIBRARIES="Givaro;FFLAS_FFPACK" .
ninja build-libraries
and try again.
@d-torrance it would really help a lot if you could patch the ubuntu package for fflas_ffpack and givaro. I believe sage people have the same issue when building with fflas_ffpack and openmp.
The upstreams of those packages are already patched, they just haven't made a release in a year or two.
Thanks!
@d-torrance it would really help a lot if you could patch the ubuntu package for fflas_ffpack and givaro. I believe sage people have the same issue when building with fflas_ffpack and openmp.
Both Debian and Ubuntu are in freeze right now, but I'll work on this after that. In the meantime, I could package a git snapshot for the PPA, so at least it would be available for our Github builds and users. We'd be looking at Ubuntu 21.10 and Debian 12 at the earliest as the first official releases that would contain a fix.
Also, is it possible for the CMake build to do what the autotools build currently does and strip out everything but the include directories from the flags? That would make the build work even with the current fflas-ffpack packages, I believe.
https://github.com/Macaulay2/M2/blob/f0ce581750dfd94336883695d3552671410f32f5/M2/configure.ac#L1331
A patched version on PPA sounds excellent.
Also, is it possible for the CMake build to do what the autotools build currently does and strip out everything but the include directories from the flags? That would make the build work even with the current fflas-ffpack packages, I believe.
That's a hack. This is all CMake needs to handle fflas_ffpack and givaro: https://github.com/Macaulay2/M2/blob/f0ce581750dfd94336883695d3552671410f32f5/M2/cmake/check-libraries.cmake#L10 https://github.com/Macaulay2/M2/blob/f0ce581750dfd94336883695d3552671410f32f5/M2/cmake/check-libraries.cmake#L136-L137 https://github.com/Macaulay2/M2/blob/f0ce581750dfd94336883695d3552671410f32f5/M2/Macaulay2/d/CMakeLists.txt#L160-L164
Thanks!
No problem. Let me know if this doesn't resolve the issue.
This fixed it.
On Sun, Mar 7, 2021, 10:12 PM Mahrud Sayrafi notifications@github.com wrote:
Thanks!
No problem. Let me know if this doesn't resolve the issue.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Macaulay2/M2/issues/1982#issuecomment-792467795, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQAMMI34SODGAJAIVJQLJ3TCRMDRANCNFSM4YYHZ23A .
This has been going on a few weeks (WSL2, Ubuntu 20.04), which is why I tried compiling in the classical way. I'm following the instructions in INSTALL-Cmake.md
@mahrud what should I try?