Missing MathCore links for gwl-print-{channels,psd} and gwl-test-ffl
During conda-forge feedstock builds for gwollum-3.0.0 the following sort of errors occur:
[ 53%] Linking CXX executable gwl-print-psd
cd $SRC_DIR/_build/src/Streams && $BUILD_PREFIX/bin/cmake -E cmake_link_script CMakeFiles/gwl-print-psd.dir/link.txt --verbose=1
$BUILD_PREFIX/bin/x86_64-conda-linux-gnu-c++ -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/gwollum-3.0.0 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix -fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -I$PREFIX/include -fdebug-prefix-map=/home/conda/feedstock_root/build_artifacts/root_base_1622810086104/work=/usr/local/src/conda/root_base-6.24.0 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix -std=c++17 -pipe -fsigned-char -pthread -O2 -g -DNDEBUG -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,-rpath,$PREFIX/lib -Wl,-rpath-link,$PREFIX/lib -L$PREFIX/lib CMakeFiles/gwl-print-psd.dir/gwl-print-psd.cc.o -o gwl-print-psd -Wl,-rpath,$SRC_DIR/_build/src/Streams:$SRC_DIR/_build/src/Time:$SRC_DIR/_build/src/Utils:$SRC_DIR/_build/src/Segments: $PREFIX/lib/libCore.so $PREFIX/lib/libRIO.so libStreams.so ../Time/libTime.so ../Utils/libRootUtils.so $PREFIX/lib/libGpad.so $PREFIX/lib/libGraf.so ../Segments/libSegments.so $PREFIX/lib/libCore.so ../Utils/libCUtils.so -lfftw3 $PREFIX/lib/libHist.so $PREFIX/lib/libRIO.so $PREFIX/lib/libTree.so -lframel
/home/duncan/opt/miniconda3/conda-bld/gwollum_1629286792471/_build_env/bin/../lib/gcc/x86_64-conda-linux-gnu/9.4.0/../../../../x86_64-conda-linux-gnu/bin/ld: CMakeFiles/gwl-print-psd.dir/gwl-print-psd.cc.o: undefined reference to symbol '_ZN4Vc_16Common15checkLibraryAbiEjjPKc'
/home/duncan/opt/miniconda3/conda-bld/gwollum_1629286792471/_build_env/bin/../lib/gcc/x86_64-conda-linux-gnu/9.4.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/duncan/opt/miniconda3/conda-bld/gwollum_1629286792471/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/libMathCore.so.6.24: error adding symbols: DSO missing from command line
Adding explicit links to ${ROOT_MathCore_LIBRARY}
via target_link_libraries()
seems to resolve the problems, but since these executable codes are so simple I wonder whether the MathCore
links should be added instead to the upstream Streams
library itself, or something different.
Edited by Duncan Macleod