Closed
Description
On x86_64 Ubuntu 24.04, ultimately trying to build flang-compiler/flang#1462
$ git branch
* release_19x
$ ./build-llvm-project.sh -n 30 -t 'X86;RISCV' -p $PREFIX -c -i -X "riscv64-unknown-linux-gnu"
... LLVM build finishes, but then openmp builds start ...
CMake Error at /usr/share/cmake-3.28/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler
<path here>
is not able to compile a simple test program.
It fails with the following output:
...
/usr/bin/ld: unrecognised emulation mode: elf64lriscv
Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 elf_iamcu i386pep i386pe
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I tried setting CMAKE_REQUIRED_FLAGS
and CMAKE_REQUIRED_LINK_OPTIONS
to override system linker, but that didn't work, I think because openmp CMake actually messes around with required flags.
A related question - to build without the script I just need to set -DLLVM_ENABLE_CLASSIC_FLANG=ON
, right?
Metadata
Metadata
Assignees
Labels
No labels