Closed rouault closed 2 years ago
Running into the same problem in https://github.com/conda-forge/llvmdev-feedstock/pull/163, in an otherwise unchanged recipe.
OK, this is because build.sh
hard-deletes the static libs without telling CMake about it.
I think this has been a general grip with how certain static libraries get packages.
The configuration files, like the cmake ones, dont get duplicated, so the static and the dynamic library start to conflict.
maybe we should use the options instead
@conda-forge-admin please rerender
Hi! This is the friendly automated conda-forge-webservice.
I just wanted to let you know that I rerendered the recipe in conda-forge/zstd-feedstock#61.
Actually, this seems to cause other problems as well (https://github.com/conda-forge/llvmdev-feedstock/pull/163):
[...]
[166/166] Linking CXX executable bin/llvm-config
FAILED: bin/llvm-config
[...]/bin/ld: $PREFIX/lib/libzstd.so.1.5.2: error adding symbols: file in wrong format
At first this looked like a cross-compilation issue, but it's definitely zstd-related, because the same switch
[...]
[434/3181] Building native llvm-config...
[1/152] Building CXX object lib/Demangle/CMakeFiles/LLVMDemangle.dir/Demangle.cpp.o
[...]
[152/152] Linking CXX executable bin/llvm-config
[444/3181] Linking CXX shared module unittests/Support/DynamicLibrary/SecondLib.so
[...]
happened for the (successful) LLVM 14 as well.
Solution to issue cannot be found in the documentation.
Issue
lib/cmake/zstd/zstdTargets.cmake refers to a lib/libzstd.a file that doesn't exist, which prevents using find_package(zstd)
Given the following CMakeLists.txt file:
running
cmake . -DCMAKE_PREFIX_PATH=$CONDA_PREFIX
gives the following error:Installed packages
Environment info