-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
OCaml 4.13.1 fails to compile on Alpine / RISC-V #10957
Comments
if you can think of things to try feel free to ping me- i can run builds on the riscv64 container with the same environment |
Did this work with 4.12? 4.11? |
Also, unless I'm misremembering
|
riscv64 has never been enabled to my knowledge- was disabled due to the same error before as well. |
Note that you should add |
adding this small change to the above patch:
still fails with the same error. full log: https://img.ayaya.dev/L1GLq9p7NY1r (uploaded due to character limit) |
if it matters, these builds are inside a qemu-user-riscv64 environment (running latest alpine linux edge, with the above patch, and the build outlined in the APKBUILD), emulated from a x86_64 host. not sure how this would go on actual hardware, but, well, that doesn't exactly exist aside from a few meek boards |
Note that ocaml 4.13.1 builds, and tests pass, on Debian/riscv64: https://buildd.debian.org/status/fetch.php?pkg=ocaml&arch=riscv64&ver=4.13.1-3&stamp=1642607971&raw=0 |
OCaml 4 for RISC-V / Fedora is part of our CI and works fine. There's something specific to Alpine here, probably the use of Musl instead of Glibc. And, as @nojb wrote, OCaml on RISC-V supports PIC from the beginning, so it's not the same issue we had with i386, which doesn't. |
I think the segment fault with musl is related to relocation in frametable and the textrel issue in #10688 |
This was probably fixed by #11042. Feel free to reopen if this is not the case. |
the mere patch doesn't, but building latest master works, so i consider this resolved :) |
did you try the However if you tried the |
ah, that would make sense- i saw the native parts being disabled in the log, as i used the trunk branch. building latest 4.14 (which has that commit in it already as well) seems to work too (no more segfaults), though the linking process takes forever (never ends)- but i will assume that is the usual emulated-riscv issue, and will only consider it an actual issue if i can one day reproduce it on some hardware :) works for everyone else it seems |
OCaml 4.13.1 segfaults during the compilation process on Alpine/riscv64
See https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/30066 for details.
From what I can see they only do the equivalent of:
and have the following patch:
The text was updated successfully, but these errors were encountered: