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

Upgrade Build a Shared Library with GraalVM Native Image Demo #243

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

LesiaChaban
Copy link
Member

No description provided.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Dec 19, 2023
@@ -60,8 +59,12 @@ This example demonstrates how to use the **Native Image C API**. We will:

4. Compile the _main.c_ using `clang`.
```bash
$JAVA_HOME/languages/llvm/native/bin/clang -I ./ -L ./ -l envmap -Wl,-rpath ./ -o main main.c
$JAVA_HOME/bin/clang -I ./ -L ./ -l envmap -Wl,-rpath ./ -o main main.c
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no $JAVA_HOME/bin/clang in the GraalVM installation.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the LLVM documentation https://www.graalvm.org/latest/reference-manual/llvm/#llvm-toolchain.
Or recommend to install LLVM toolchain and compile main.c with it. Or recommend to use other clang distribution.

@LesiaChaban LesiaChaban merged commit bc00992 into master Dec 20, 2023
5 checks passed
@LesiaChaban LesiaChaban deleted the ls/native-shared-library branch December 20, 2023 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants