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

Openbsd arm64 and amd64 support #111

Closed
wants to merge 7 commits into from
Closed

Conversation

AshyIsMe
Copy link

Recently Brian Callahan made a J port for OpenBSD amd64: https://briancallahan.net/blog/20210911.html
The details of his port patches are here: https://marc.info/?l=openbsd-ports&m=163138993214367&w=2

I thought it would be nice for the main J repo to build on OpenBSD out of the box without patches required.
This has been tested on an Intel i7-1165G7 laptop (Lemur Pro lemp10) and a Raspberry Pi 4 8GB both running OpenBSD 7.0 (CURRENT snapshots).

As mentioned in the commit messages a fair few of the tsu.ijs tests succeed but both architectures crash during or just after g128x7.ijs. Brian Callahan mentions in his post that the gss.ijs test fails for him with his port.

I've attempted to follow the existing code style in the build scripts even though there's a little bit of repetition.
Are there any changes or cleanup required to get this merged?

@eiverson
Copy link
Contributor

eiverson commented Oct 11, 2021 via email

@AshyIsMe
Copy link
Author

Thanks @eiverson, in the mean time I'll try to narrow down the failing tests.

Builds and runs successfully on OpenBSD arm64 on an rpi4.
A lot of the tests in tsu.ijs succeed but eventually that script crashes
with a core dump in (or after) test/g128x7.ijs.
J now builds and runs on OpenBSD amd64 in nonavx, avx and avx2 mode.
The tsu.ijs tests run part of the way but crash in g128x7.ijs with:
jconsole:.../jsource/jlibrary/bin/libjavx2.so: undefined symbol 'sha1_block_data_order' ld.so: jconsole: lazy binding failed!
Killed
Gnu-make is `gmake` on openbsd.
`uname -m` returns 'amd64' instead of x86_64.
@AshyIsMe
Copy link
Author

Rebased onto the latest jsource master branch and tested successfully again on openbsd x86_64 (intel i7-1165G7) and arm64 (rpi4).

@bilam
Copy link
Contributor

bilam commented Dec 30, 2022

openbsd for amd64 and arm64 should work and run test suite clean now.

@bilam bilam closed this Dec 30, 2022
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.

None yet

3 participants