Skip to content
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

Add ARCH=loongarch #599

Closed
nathanchance opened this issue Jul 10, 2023 · 6 comments · Fixed by #622
Closed

Add ARCH=loongarch #599

nathanchance opened this issue Jul 10, 2023 · 6 comments · Fixed by #622
Labels
blocked (tuxmake / tuxsuite) Blocked on an issue with TuxSuite or TuxMake upstream

Comments

@nathanchance
Copy link
Member

Requires TuxMake/TuxSuite support first: https://gitlab.com/Linaro/tuxmake/-/issues/205

Once it is supported there, the following configurations need to be disabled to build at the time of writing this:

CONFIG_CRASH_DUMP=n
CONFIG_RELOCATABLE=n
CONFIG_MODULES=n

Additionally, the support for LoongArch in ld.lld needs to be merged to use full LLVM=1, otherwise we may be able to use GNU ld but I have not tested that yet.

@nathanchance nathanchance added blocked (tuxmake / tuxsuite) Blocked on an issue with TuxSuite or TuxMake upstream blocked (llvm) Blocked on an issue with LLVM upstream labels Jul 10, 2023
@nathanchance
Copy link
Member Author

Requires TuxMake/TuxSuite support first: https://gitlab.com/Linaro/tuxmake/-/issues/205

https://gitlab.com/Linaro/tuxmake/-/merge_requests/325

That is only one piece, we need ld.lld support merged into LLVM main to allow us to use clang-nightly, as Debian does not ship loongarch64-linux-gnu binutils or GCC.

@xen0n
Copy link
Member

xen0n commented Jul 25, 2023

FYI: the LLD LoongArch port has been upstreamed just in time for the LLVM 17 release. We will continue the work on enabling the other bits ;-)

@nathanchance nathanchance removed the blocked (llvm) Blocked on an issue with LLVM upstream label Jul 26, 2023
@nathanchance
Copy link
Member Author

I have opened https://gitlab.com/Linaro/tuxsuite/-/issues/194 as a prerequisite.

@nickdesaulniers
Copy link
Member

commit 5a31ed4678e0 ("LoongArch: Mark Clang LTO as working")

so we should add LTO builds, too

@nickdesaulniers
Copy link
Member

What's the latest on this?

@nathanchance
Copy link
Member Author

This is blocked on https://gitlab.com/Linaro/tuxmake/-/issues/207 now.

nathanchance added a commit to nathanchance/continuous-integration2 that referenced this issue Aug 28, 2023
Closes: ClangBuiltLinux#599
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
nathanchance added a commit to nathanchance/continuous-integration2 that referenced this issue Aug 29, 2023
Closes: ClangBuiltLinux#599
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked (tuxmake / tuxsuite) Blocked on an issue with TuxSuite or TuxMake upstream
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants