-
Notifications
You must be signed in to change notification settings - Fork 334
Build native image with Bazel #14105
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
base: develop
Are you sure you want to change the base?
Conversation
First attempt to build NI:
|
Which subprocesses does native-image invoke?Let's find that out with the help of Java Flight Recorder (JFR). First, generate auxiliary
Note that it is OK to kill the process right after few seconds, we are only interested in the arguments file. The run:
where Then:
The output is: JFR output
TL;DR;
@vitvakatu do you think we can make this work from Bazel somehow? EDIT (Answer)@vitvakatu thinks it should be OK as far as:
|
@vitvakatu bazel expert needed. I am trying to provide cc compiler in enso/toolchains/sbt/run_sbt.bzl Lines 14 to 15 in 539f2ac
cc_path is evaluated to external/rules_cc++cc_configure_extension+local_config_cc/cc_wrapper.sh . But this file does not exist: the command bazel build :sbt_build_native_engine_distribution is failing with:
Any ideas how to convince Bazel to provide this |
This forces Bazel to add the cc compiler_executable to the sandbox.
On 59aa5f5:
|
… dir" This reverts commit e91757d.
Closes #14036
Pull Request Description
Important Notes
Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:
Scala,
Java,
TypeScript,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.
or the Snowflake database integration, a run of the Extra Tests has been scheduled.