On Sunday, 7 April 2019 at 15:14:59 UTC, kinke wrote:
On Sunday, 7 April 2019 at 14:26:16 UTC, Thomas Mader wrote:
Were there some changes to the shared phobos unittest runners
between beta2 and the final release?
I ask because I have the problem on macOS with the final
release that libphobos2-ldc-unittest-shared.85.dylib is not
fixed by my fixing step to switch to absolute paths
referencing.
I use install_name_tool and run this step after I do 'make
all-test-runners'. It used to work previously and also with
beta2.
My guess is that libphobos2-ldc-unittest-shared.85.dylib is
getting created after my fixing step now for some reason.
No changes wrt. the test runners, especially none wrt. build
order. The only CMake change was the frontend version. See
https://github.com/ldc-developers/ldc/compare/v1.15.0-beta2...v1.15.0.
In [1] you mentioned that it might be an order problem because I
used make instead of ninja but the problem occurred again.
I got it working now by setting the DYLD_LIBRARY_PATH variable to
the build/lib directory.
For some reason the phobos2-test-runner-debug-shared binary
didn't have the full path to
libphobos2-ldc-unittest-debug-shared.85.dylib [2].
The druntime test didn't have this problem and the problem was
also not always reproducible I believe.
For me it's not a problem anymore but maybe it's a pointer to
something problematic.
[2] otool -L
/private/var/folders/wq/m1dnr42s42n5msqk2v8l0lfc0000gn/T/nix-build-ldc-1.15.0.drv-4/ldc-1.15.0-src/build/runtime/phobos2-test-runner-debug-shared
/private/var/folders/wq/m1dnr42s42n5msqk2v8l0lfc0000gn/T/nix-build-ldc-1.15.0.drv-4/ldc-1.15.0-src/build/runtime/phobos2-test-runner-debug-shared:
libphobos2-ldc-unittest-debug-shared.85.dylib (compatibility
version 85.0.0, current version 2.0.85)
/private/var/folders/wq/m1dnr42s42n5msqk2v8l0lfc0000gn/T/nix-build-ldc-1.15.0.drv-4/ldc-1.15.0-src/build/lib/libdruntime-ldc-debug-shared.2.0.85.dylib
(compatibility version 85.0.0, current version 2.0.85)
/nix/store/mkfq1a1i6n66fahlcjvw890xj32zvlqp-Libsystem-osx-10.11.6/lib/libSystem.B.dylib
(compatibility version 1.0.0, current version 1226.10.1)
[1]
https://forum.dlang.org/post/[email protected]