cling
cling copied to clipboard
[cpt.py] Tests are failing with "ld: library not found for -lSystem"
Trying to build and test cling on MacOS 11.1 with cpt.py
: ./tools/packaging/cpt.py --check-requirements && ./tools/packaging/cpt.py --create-dev-env Debug --with-workdir=./builds
, I am getting 6 test failures:
Failing Tests (6):
Cling :: CodeGeneration/Symbols.C
Cling :: Interfaces/address.C
Cling :: LibraryCall/call.C
Cling :: LibraryCall/callable_lib.C
Cling :: Pragmas/add_env_path.C
Cling :: Pragmas/load.C
Expected Passes : 122
Expected Failures : 13
Unsupported Tests : 12
Unexpected Failures: 6
One of failures:
********************
FAIL: Cling :: Pragmas/load.C (104 of 153)
******************** TEST 'Cling :: Pragmas/load.C' FAILED ********************
Script:
--
: 'RUN: at line 9'; clang -shared -DCLING_EXPORT= /Users/oshadura/CERN_sources/cling/builds/cling-src/tools/cling/test/Pragmas/call_lib.c -o/Users/oshadura/CERN_sources/cling/builds/builddir/tools/cling/test/Pragmas/Output/libcall_lib.dylib
: 'RUN: at line 10'; cat /Users/oshadura/CERN_sources/cling/builds/cling-src/tools/cling/test/Pragmas/load.C | /Users/oshadura/CERN_sources/cling/builds/builddir/bin/cling --nologo -I/Users/oshadura/CERN_sources/cling/builds/builddir/tools/clang/include -L /Users/oshadura/CERN_sources/cling/builds/builddir/tools/cling/test/Pragmas/Output -Xclang -verify 2>&1 | /Users/oshadura/CERN_sources/cling/builds/builddir/bin/FileCheck /Users/oshadura/CERN_sources/cling/builds/cling-src/tools/cling/test/Pragmas/load.C
--
Exit Code: 1
Command Output (stderr):
--
ld: library not found for -lSystem
clang-9: error: linker command failed with exit code 1 (use -v to see invocation)
Just an addition - perhaps this is the motivation needed to add the macOS 11.0 runner to Cling's GitHub Actions CI.