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

Fix build failure on riscv64 caused by missing syscall #218

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

CamberLoid
Copy link

@CamberLoid CamberLoid commented May 9, 2022

Hello. This is Camber from Anthon community and I am working on maintaining go-based packages in our distro's repository including gotop. I encountered a build failure on our riscv64 target and managed to write a patch for the issue.

On RISC-V 64-bit linux systems, syscall dup2() is not available, therefore syscall.Dup2 will become undefined and gotop will fail to be built from source. This patch updates building target of logging/logging_{other,arm64} and renames them based on syscall used.

I can personally confirm that the patch will solve aforementioned issue.

Reference:

On RISC-V 64-bit linux systems, syscall `dup2()` is not available, therefore
syscall.Dup2 will be undefined and gotop will fail to be built from soure.
This patch updates building target of logging/logging_{other,arm64} and
renames them based on syscall used.
@CamberLoid CamberLoid mentioned this pull request May 9, 2022
10 tasks
@xxxserxxx xxxserxxx merged commit 06c04f5 into xxxserxxx:master Sep 16, 2024
@xxxserxxx
Copy link
Owner

Thank you. I'll have to take your word for it, as I don't have access to a RISCV machine.

Sorry for the delay. I've gotten behind on merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants