-
Notifications
You must be signed in to change notification settings - Fork 221
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
build: add dynamic linker option for riscv64 #1159
Conversation
Build succeeded. ✔️ unit-test SUCCESS in 7m 31s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this, @Avimitin ! The patch looks mostly good.
Could you please prefix your commit message with a build:
tag and put a link at the bottom to this pull request, like we do in the other commits?
Out of curiosity, are you using Toolbx on riscv64 or generally interested in the architecture in some way?
Are you sure about this one? Currently, our
That's this commit. Support for linux/riscv64 was added in this commit, which looks older. Or am I missing something? |
Oh I have to force push to reword commit, sry |
930d394
to
8c99cab
Compare
This commit add dynamic linker for riscv 64 architecture. Tested in Arch Linux rv64gc qemu user image. Signed-off-by: Avimitin <[email protected]>
I am now working for an unofficial project that porting the Arch Linux packages to RISC-V. And this package failed to build so I tried to fix it. |
My description is not accurate enough. The current |
Build succeeded. ✔️ unit-test SUCCESS in 8m 23s |
That sounds like an interesting project. :) |
I see. Could it be because of this commit. Maybe we should try updating the dependency to this commit? I think we also need to bump our required Go version to 1.14 in |
Probably not this one, I am still try digging. Here is the full compile error output:
|
Oh my fault, I don't explain the whole build environment. The current version of the toolbox package in Arch Linux is |
I've verified the And I am still trying to verify the minimal required version. |
Fantastic! Do you think we also need to bump our required Go version to 1.14 in src/go.mod from the current 1.13? |
Yes, this is required. Should I push the change in this PR? |
Meanwhile, we updated our |
Go 1.14 added experimental support for 64-bit RISC-V on Linux (GOOS=linux, GOARCH=riscv64) [1], and the path of the dynamic linker (ie., PT_INTERP) was taken from the ABI specification [2]. Tested in Arch Linux rv64gc qemu user image. [1] https://tip.golang.org/doc/go1.14#riscv [2] https://sourceware.org/glibc/wiki/ABIList containers#1159 Signed-off-by: Avimitin <[email protected]>
Go 1.14 added experimental support for 64-bit RISC-V on Linux (GOOS=linux, GOARCH=riscv64) [1], and the path of the dynamic linker (ie., PT_INTERP) was taken from the ABI specification [2]. Tested in Arch Linux rv64gc qemu user image. [1] https://tip.golang.org/doc/go1.14#riscv [2] https://sourceware.org/glibc/wiki/ABIList containers#1159 containers#1316 Signed-off-by: Avimitin <[email protected]>
Go 1.14 added experimental support for 64-bit RISC-V on Linux (GOOS=linux, GOARCH=riscv64) [1], and the path of the dynamic linker (ie., PT_INTERP) was taken from the ABI specification [2]. Tested in Arch Linux rv64gc qemu user image. [1] https://tip.golang.org/doc/go1.14#riscv [2] https://sourceware.org/glibc/wiki/ABIList containers#1159 containers#1316 Signed-off-by: Avimitin Lu <[email protected]>
I took the liberty to update this branch by bumping the required Go version to 1.14 and rebasing against
So, I pushed it to #1316 |
Merged through #1316 Closing this one. |
Thanks for working on this, @Avimitin ! |
This commit add dynamic linker for riscv 64 architecture. Tested in Arch Linux rv64gc qemu user image.
Addtional notes:
The old go module
golang.org/x/sys
doesn't contains implementation for RISC-V. We need to replace the module with v0.2.0.I don't know if this upgrade will affect the program, so changes are not included in this PR.