-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile using Clang: cannot specify -o when generating multiple output files #156
Comments
Hey @lelzeiny, Thanks for reaching out. Interesting, I haven't seen this error before. Have you tried running without What happens if you run |
Looks like Also, |
Hm... this is strange. Out of curiosity: Does As for the |
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
The text was updated successfully, but these errors were encountered: