Open adamjstewart opened 1 week ago
We implemented a compiler wrapper in Spack that removes duplicate RPATHs, but we're still seeing the following issue:
ld: duplicate LC_RPATH '@loader_path' in '/Users/Adam/spack/opt/spack/darwin-sequoia-m2/apple-clang-16.0.0/py-torch-2.4.1-hlpsikrtvukd4ww7jyghncl63ux7f2pl/lib/python3.11/site-packages/torch/lib/libtorch_cpu.dylib'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
error: command '/Users/Adam/spack/lib/spack/env/clang/clang++' failed with exit code 1
It's possible the bug is in PyTorch itself, but I'm not familiar enough with CMake to report it.
š Describe the bug
When building from source with the new Apple Clang 16, I see the following error:
Current workaround is to inject
-Wl,-ld_classic
into the linker, but would be good to fix this asld_classic
is deprecated and will be removed in the future.Versions