-
Notifications
You must be signed in to change notification settings - Fork 612
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
Docker build for FreeBSD aarch64 #642
Conversation
Can you post a binary to test? (BTW if you'd like to test yourself, you can use EC2) Old versions shouldn't be supported anymore, I recommend still building 11.x for amd64 for now, but aarch64 would be fine to start with 12.x. I also have a docker thing I made a while ago https://github.com/unrelentingtech/docker-freebsd-cross haven't updated for aarch64 though. |
You can pull that PR and do a
Thanks, cool trick! I know nothing about freebsd though 😅 |
I don't exactly have a permanent Linux box to run Docker on, building my own would take extra effort ;) Though I should work on updating my own docker cross build image anyway… |
I added the compiled native library in the PR :) I guess you could pull the PR and try to run |
@unrelentingtech did you had any chance to give this a try? 🙏🏻 |
|
@xerial this one should be good to go also 👍🏻 |
Great work! Merged |
could you do the same switch as here to https://github.com/SpectraLogic/freebsd-cross-build |
I am sorry, I don't quite understand what is the problem with this one. Could you provide more details? That bug report doesn't explain what's wrong, just provide an arbitrary solution. CC @michael-o which answered on the ticket there and knows quite well what's going on on this project. |
from the stacktrace ( https://bugs.freebsd.org/bugzilla/attachment.cgi?id=227339) : |
in order not to pollute this already merged PR, can you create a new issue, and provide all of the necessary information, including which version of sqlite-jdbc you used? Thanks. |
https://github.com/MrDOS/freebsd-cross-build uses
gcc
and only builds forx86
andx86_64
. I tried modifying that container to build foraarch64
, to no avail.https://github.com/SpectraLogic/freebsd-cross-build recently switched to using
clang
instead ofgcc
for cross-compilation.clang
cannot build very early FreeBSD versions (doesn't work before 11.x), i think because of some dependencies on standard libraries.I managed to modify https://github.com/SpectraLogic/freebsd-cross-build to build for
aarch64
.It seems that building with
clang
does not provide the right ELF headers though, but it seems it's not important.Comparison:
The file built in #491
The file built with my container:
@unrelentingtech would you be able to confirm this works fine on a FreeBSD aarch64 system?
Supersedes #491