Conversation
Running `make libs && make netlib && make shared` causes the `ar` commands two run twice, which is surprisingly slow. The reason we didn't run just `make` was because it build and runs tests unconditionally, and that sometimes broke. I think if it's broken then the tests should be fixed. Signed-off-by: Harmen Stoppels <me@harmenstoppels.nl>
Signed-off-by: Harmen Stoppels <me@harmenstoppels.nl>
|
I think I'm fine with this. @martin-frbg any objections from the OpenBLAS side? |
|
No objection, totally agree with haampie here - and if absolutely necessary, you could feign CROSS=1 to prevent running of the tests |
@martin-frbg What exactly does |
|
Normally it signifies cross-compilation, but the main point of doing so is actually to tell the build system that it cannot run target code (like the tests) on the build host. You'd need to re-specify the compiler as HOSTCC though, so that it can build the "getarch" helper program for picking parameters from param.h ... maybe a separate NO_TESTS option would be in order - but OTOH I really do not want packagers to skip tests and potentially distribute broken builds ... |
|
We could consider that as a second-best option when the next person reports test failures :) |
|
@spackbot run pipeline |
|
I've started that pipeline for you! |
|
I think this broke the build on macOS again. I haven't investigated yet, but I'm getting errors like |
|
@haampie root cause seems to be that on macos i'm using clang for c/c++ and gfortran, and openblas' test executables are not set up to receive the right linker flags. |
|
Adding What's the recommended fix? |
|
@paulgessinger can you make an issue upstream and share the full log and system info? |
|
@haampie I have this patch here #4656 which applies OpenMathLib/OpenBLAS#5796 to |
|
I wonder if this isn't just your build environment missing an LD_LIBRARY_PATH pointing to your homebrew lib directory |
|
I don't think setting LD_LIBRARY_PATH (or DYLD_LIBRARY_PATH) is meant for this. Especially in macOS it's strongly discouraged I believe. |
|
Yeah, I just looked and I build I'm not sure why anymore. Just sort of have accumulated those... |
|
I'll try using the CMake. In any case, the PR I put in for the make file build upstream should ultimately fix this. |
|
Okay, thanks. I've read up on MacOS' use of absolute paths in linking now, and why LD_LIBRARY_PATH is a bad idea. |
Running
make libs && make netlib && make sharedcauses thearcommands two run twice, which is surprisingly slow.
The reason we didn't run just
makewas because it builds and runs testsunconditionally, and that sometimes broke. I think if it's broken then the
underlying problem should be fixed.