-
-
Notifications
You must be signed in to change notification settings - Fork 473
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 error on RISC-V 64bits system #222
Comments
Please let me know what would you think the best solution, I can make PR. Thanks |
Thank you for testing this on RISC-V! It looks like upgrading onetbb is the best option if it solves the problem for you and doesn't have any regression. Let me take a look. |
Thank you for response! Please let me know if there is anything I can do. |
I updated our oneTBB subtree to v2021.5.0, the latest stable version of the library. Can you try again to see if it builds on RISC-V? |
@rui314 Thank you for work. Seems like v2021.5.0 does not including commit (uxlfoundation/oneTBB@6fad698), PR (uxlfoundation/oneTBB#550) So it's not able to build. And adding What about patching that commit until new stable version came out? ps: |
Do you mind if I ask you to create a patch and send me a pull request? I can make a change for you, but I cannot verify that myself, so it is probably faster for you to fix it on your side and let me just merge your change. As to subtree/submodule, I used to be managing third-party libraries as submodule, but subtree was easier for me to manage them. At least it is simpler than submodule. |
@rui314 Sure, I will send PR soon, but I'd like to test mold on RISC-V. Will |
@OctopusET |
@rui314 I've should test before, seems like mold does not support RISC-V elf. |
I'd like to port mold to RV64 which shouldn't be too hard. Your patch is I think a first step towards that. |
Hi, which version of Mold added support for RISC-V? I want to be able to document the minimum required version. |
mold got RISC-V support back in 2022. So all versions since the license was changed to MIT should support RISC-V. That being said, we've been fixing several issues since then, so I'm not sure if older versions would work fine in the modern environment. mold is still a relatively young project. I'd pick a fairly recent version (e.g. within one year) and recommend it as a minimum required version. Note that we do not support older versions other than the latest one and will not fix bugs for those versions. |
Error
When I was trying to build with
make -j$(nproc)
on riscv64(QEMU) Debian unstable, I get this error.I found similar error https://bugs.funtoo.org/browse/FL-8615?attachmentSortBy=fileName
Fix
And I fixed with this patch
Or using this patch would work too.
And I got another error after patch.
I fixed it with this.
Although those patches fix build error, but upstream onetbb does not require any patch when I was building on same system, it seems like they removed Arch specific code. I think updating onetbb to upstream will be better option.
References:
The text was updated successfully, but these errors were encountered: