Closed advancedwebdeveloper closed 3 years ago
I was able to build using Clang 11:
$cmake -DBUILD_TESTS=ON -DCMAKE_MODULE_PATH=/usr/lib64/cmake/clang -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -G Ninja .. && ninja -j4 and GCC 10.2.1 $cmake -DBUILD_TESTS=ON -DCMAKE_MODULE_PATH=/usr/lib64/cmake/clang -G Ninja .. && ninja -j4
. Due to the current bug https://bugzilla.opensuse.org/show_bug.cgi?id=1180748#c8 - I had to apply a patch:
diff --git a/CMakeLists.txt b/CMakeLists.txt index 393a533..67b02d5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -69,7 +69,15 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR}/include) include_directories(${CMAKE_CURRENT_SOURCE_DIR}/third-party)
set(LLVM_LINK_COMPONENTS
- ${LLVM_NATIVE_ARCH}
${LLVM_NATIVE_ARCH} - commenting out, as proposed in issue #1180748
Adding the following, on behave of resolving the above issue:
- RISCVCodeGen
- RISCVAsmParser
- RISCVDisassembler
- RISCVDesc
- RISCVInfo
- RISCVUtils
- # AggressiveInstCombine Analysis AsmParser
Please reformat your patch,it can't be read properly.
From what I understand, this is the patch proposed in the OpenSUSE ticket. I will try it as soon as I have time. Closing this issue and reopening a cleaner one to track this patch: https://github.com/aguinet/dragonffi/issues/60 .
About RiscV support, it's not something I have time to invest into right now. Feel free to submit PRs that could fix the issue you face!
Here is what I have under Qemu/on OpenSUSE:
Surely there is no actual port - and not all tests failed. I might check more tests, if they are available.