8000 Compile using Clang: cannot specify -o when generating multiple output files · Issue #156 · kahypar/kahypar · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Compile using Clang: cannot specify -o when generating multiple output files #156
Open
@lelzeiny

Description

@lelzeiny

I am trying to compile using clang. I am using cmake 3.21 and clang/llvm 14.0, but I am running into what I think is a linking issue. I'm quite new to cmake though, so I would appreciate any pointers

Commands:
cmake .. -DCMAKE_BUILD_TYPE=RELEASE -DKAHYPAR_USE_MINIMAL_BOOST=ON -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_CXX_COMPILER=<my path>/bin/clang-cpp -DCMAKE_CXX_STANDARD=17
make

Error output:
[ 11%] Linking CXX executable evo_partitioner_test clang-15: warning: CMakeFiles/evo_partitioner_test.dir/evo_partitioner_test.cc.o: 'linker' input unused in cpp mode [-Wunused-command-line-argument] clang-15: warning: -lpthread: 'linker' input unused in cpp mode [-Wunused-command-line-argument] clang-15: warning: -lpthread: 'linker' input unused in cpp mode [-Wunused-command-line-argument] clang-15: error: cannot specify -o when generating multiple output files make[2]: *** [tests/partition/evolutionary/evo_partitioner_test] Error 1 make[1]: *** [tests/partition/evolutionary/CMakeFiles/evo_partitioner_test.dir/all] Error 2 make: *** [all] Error 2

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

      0