-
Notifications
You must be signed in to change notification settings - Fork 54
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
tests linking fails when LDFLAGS contain "-Wl,--as-needed" #11
Comments
Same thing happening on up-to-date Debian Testing using CMake 3.2.2. Nicely spotted @bircoph ! |
As a temporary fix, I commented out the non-building test and the rest of the testsuite builds successfully. Unfortunately, neither EDIT: typo |
This happens when running from the top build directory.
works. @AvtechScientific, it will be nice to have top-level CTestTestfile.cmake which includes test/CTestTestfile.cmake (or test subdirectory). |
We look for a newer system to reproduce the errors, in the meanwhile, could you, please, check whether swapping aslmath and asldata helps:
|
It still fails to build:
Please note that if in the build command one moves "src/libasl.so.0.1.5" to the end of the list, build is fine. Now the question is how to move it there, because it is already on the end of the list in test/testACL/CMakeLists.txt. I have no idea what and why moves it around during cmake run. |
Current git head fixes this for me. |
Hi,
with --as-needed in LDFLAGS (default it Gentoo) tests fail to link:
This happens due to incorrect order of library arguments: libasl.so.0.1.5 should follow libaslmath.so.0.1.5 because libaslmath uses symbols from libasl.
On the other hand testACL/CMakeLists.txt contains:
which looks valid (asl is the last library on the list).
This problem starts with >=cmake-3.1.0: for 3.0.2 such problem is not reproducible, for 3.1.0 and later versions it takes place. Current version of cmake used for the build is 3.3.0.
Full build log is available here:
https://bpaste.net/show/56abb9c2f641
The text was updated successfully, but these errors were encountered: