Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
gollvm: libgo's shell scripts raise errors, during gollvm's build #41304
$cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CXX_FLAGS=' -stdlib=libc++ ' -DLLVM_TARGETS_TO_BUILD='X86' ../llvm-project/llvm
'/usr/local/bin/ninja' '-C' '/home/oceanfish81/gollvm_workarea/build-release/CMakeFiles/CMakeTmp' '-t' 'restat' 'build.ninja'
Traceback (most recent call last):
OSError: [Errno 22] Invalid argument:
CMake Error at /usr/share/cmake-3.18/Modules/CheckCXXSourceCompiles.cmake:110 (try_compile):
I can't reproduce this with
simply cause it works well:
$ cmake -G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CXX_FLAGS=' -stdlib=libc++ ' -DCMAKE_BUILD_TYPE=Release ** -DLLVM_TARGETS_TO_BUILD='X86' ** /media/xubuntu/b0482b0c-51d9-4284-939f-ac228eb78736/workarea/llvm-project-11.0.0rc2/llvm
Which runs config. scripts:
And I am firing Ninja
and it compiles as expected
Perhaps turning on the verbosity options of cmake (--debug-output, --trace-expand) could help identify what's missed there.
I don't know. I am unsure if I would be able to reproduce this: after deleting all the directories and cloning all master branches (according to your build instructions) it went well - and LLVM_TARGETS_TO_BUILD seem to limit the number of compiled files.
I shall experiment under OpenSUSE 15.2, soon.
That's another reminder about week points/shell scripts/potential bugs in CMake's config. files.
@thanm , I would propose to open a PR issue about how results of testing should be shared/delivered.