-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[native-image] Netty with native EPoll support #442
Comments
Would it help to call the static block in ThreadDeathWatcher from the main function?
see #424 |
@kontrafiktion Thanks. I patched a few more classes and handled the static constructor calls in the main. That solved the issue. I'm now down to two errors.
|
Is that the full stack trace? No “caused by ...”? |
@kontrafiktion Yes. That is the full stacktrace. |
Your article (https://vertx.io/blog/eclipse-vert-x-goes-native/) does not mention how you handle JNI https://github.com/oracle/graal/blob/master/substratevm/JNI.md Especially I do not see
in your command line. (But I am admittedly very far out of my depth) |
@kontrafiktion I'm actually using the |
+1 would be great to get this working |
My most recent attempt at this resulted in:
However that is the only error I received so far. Here's a repro: |
This should be fixed in latest release, you may need |
@cstancu do you mean https://github.com/graalvm/graalvm-ce-builds/releases/tag/vm-20.2.0 ? If so, that is not working. EDIT: Actually, I'll double check and get back to you! |
I'm trying to build a native image for netty / Vert.x which makes use of the native EPoll library (
netty-transport-native-epoll
).The image generation is however failing with error:
Full Log:
https://gist.github.com/Jotschi/c9ba9e54fed1a7bdb6d1acf4c1f1aaa4
I think this is similar to the error in this issue:
#365
A very basic reproducer can be found in the netty-native-epoll branch:
https://github.com/Jotschi/vertx-graalvm-native-image-test/tree/netty-native-epoll
Native Libs are for linux-amd64 only.
I'm not sure how the JNIConfigurationFiles should actually be used. I added the native classes and all native methods. Let me know whether this is actually needed.
The text was updated successfully, but these errors were encountered: