-
Notifications
You must be signed in to change notification settings - Fork 231
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
FFI Module is not supported on several platforms #1165
Comments
So the issue here is that the tests were never updated to work on these platforms - there is some functionality in the FFI module that is useful and works on these architectures even without the calling convention support. I don't want to disable completely for that reason, but instead detect this in the test and skip testing for unsupported platforms. |
Also, #1162 might help address issues like this. |
One of the design goals is to not link to anything besides libc to make embedding easier, so vetoing libffi and dyncall in the core |
…g testing. Query at runtime which calling conventions are supported, including a placeholder :none.
I think it can link libffi statically. Like how it's possible to link mimalloc statically. |
Hello,
The change in 398833e is no longer building on the following platforms, based upon an alpine docker image, such as 3.18.
linux/386
/linux/i386
linux/arm64
linux/arm/v6
linux/arm/v7
The current master branch is a
-dev
build for now, I understand. This issue is to inform you of the affected platforms for later review with FFI improvements and support.The build process responds with the following:
The following platforms still compile and work as expected:
linux/amd64
I am lead to believe that the FFI module is designed for 64 bit x86 environments only.
Therefore I recommend a revert of this commit until other platforms are considered and enabled in an allow-list fashion.
By reverting commit 398833e, an automated janet-docker build process I have was able to push a new image, see LeviSchuck/janet-docker@4908e03 if interested.
Best wishes,
Levi
The text was updated successfully, but these errors were encountered: