Draft: CI: add cross compiling and testing for LoongArch64
Starting to implement CI pipelines for LoongArch64 cross compiling and testing.
Merge request reports
Activity
Got it, thanks.
@lrzlin Maybe You need to resubmit it on your end.
@TerrorJack I've push the changes to
wip/wasm-bump-toolchain
, because I don't have write permission of theci-images
repo. Could you give a look and merge it first? then I could submit a MR tomaster
branch.Edited by lrzlin
added 1 commit
- 2eb4dcb9 - CI: add cross compiling and testing for LoongArch64
added 1 commit
- e1f54039 - CI: add cross compiling and testing for LoongArch64
mentioned in merge request ci-images!165 (closed)
!14146 I temporary removed extra if conditions and the loongarch ci appears, let's see how's it going.
Turns out this should has been fixed !14025 (closed), but we're still encountering it.
It seems that the problem with !14025 (closed) is that it didn't modify
configure.ac
as well.If you apply this patch then you get further.
--- a/configure.ac +++ b/configure.ac @@ -556,6 +556,8 @@ FIND_LLVM_PROG([LLVMAS], [clang], [$LlvmMinVersion], [$LlvmMaxVersion]) LlvmAsCmd="$LLVMAS" AC_SUBST([LlvmAsCmd]) + + dnl -------------------------------------------------------------- dnl End of configure script option section dnl -------------------------------------------------------------- @@ -657,6 +659,13 @@ GHC_LLVM_TARGET_SET_VAR # The target is substituted into the distrib/configure.ac file AC_SUBST(LlvmTarget) +dnl We know that `clang` supports `--target` and it is necessary to pass it +dnl lest we see #25793. +if test -z "$LlvmAsFlags" ; then + LlvmAsFlags="--target=$LlvmTarget" +fi +AC_SUBST([LlvmAsFlags]) + dnl ** See whether cc supports --target=<triple> and set dnl CONF_CC_OPTS_STAGE[012] accordingly. FP_CC_SUPPORTS_TARGET([$CC_STAGE0], [CONF_CC_OPTS_STAGE0], [CONF_CXX_OPTS_STAGE0])
cc @bgamari
Yes, at least we've confirmed that the ubuntu's loongarch croos-toolchain & qemu is good to use, so maybe we should merge the loongarch NCG patch first and see how's it going on CI? (same as how RISC-V did), @fp is working on the final patchset, we can merge that MR first in a few days.