Skip to content

integration tests fail to build with CMake 3.26 #2264

Closed
@BenWibking

Description

@BenWibking

Hi,

I am unable to build the integration tests on macOS. Here is the full output:

(lp) ➜  integration_tests git:(main) ./run_tests.py
+ rm -rf /Users/benwibking/lpython/integration_tests/_lpython-tmp-test-llvm
+ rm -rf /Users/benwibking/lpython/integration_tests/_lpython-tmp-test-c
+ rm -rf /Users/benwibking/lpython/integration_tests/_lpython-tmp-test-wasm
+ rm -rf /Users/benwibking/lpython/integration_tests/_lpython-tmp-test-cpython
+ rm -rf /Users/benwibking/lpython/integration_tests/_lpython-tmp-test-x86
+ rm -rf /Users/benwibking/lpython/integration_tests/_lpython-tmp-test-wasm_x86
+ rm -rf /Users/benwibking/lpython/integration_tests/_lpython-tmp-test-wasm_x64
+ rm -rf /Users/benwibking/lpython/integration_tests/_lpython-tmp-test-c_py
+ rm -rf /Users/benwibking/lpython/integration_tests/_lpython-tmp-test-c_sym
+ rm -rf /Users/benwibking/lpython/integration_tests/_lpython-tmp-test-cpython_sym
+ rm -rf /Users/benwibking/lpython/integration_tests/_lpython-tmp-test-llvm_sym
+ rm -rf /Users/benwibking/lpython/integration_tests/_lpython-tmp-test-llvm_py
+ mkdir /Users/benwibking/lpython/integration_tests/_lpython-tmp-test-llvm
+ cmake -DKIND=llvm -DFAST=no -DPYTHON_LIBS_REQ=no ..
-- The C compiler identification is AppleClang 14.0.3.14030022
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done


Configuration results
---------------------
C compiler      : /Library/Developer/CommandLineTools/usr/bin/cc
Build type: Debug
C compiler flags      : -g
Installation prefix: /usr/local
KIND: llvm
FAST: no
PYTHON_LIBS_REQ: no
LPYTHON: /Users/benwibking/lpython/src/bin/lpython
LPYTHON_RTLIB_DIR: /Users/benwibking/lpython/src/libasr/runtime
LPYTHON_RTLIB_LIBRARY: /Users/benwibking/lpython/src/runtime/liblpython_runtime_static.a
-- Configuring done (0.4s)
CMake Error: CMake can not determine linker language for target: import_order_01
-- Generating done (0.1s)
CMake Generate step failed.  Build files cannot be regenerated correctly.
Command failed: cmake -DKIND=llvm -DFAST=no -DPYTHON_LIBS_REQ=no ..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions