Skip to content

Conversation

wynan
Copy link

@wynan wynan commented Apr 20, 2025

Updated the clibPath in the Posix Configuration based on the information here and based on the location of my local files.
Updated the build.gradle file to address the gradle warnings.

Issue

Fixes #1318

Progress

wynan added 2 commits April 20, 2025 10:53
…e needed libraries.

Updated the build.gradle file to address the gradle warnings.
@ctoabidmaqbool
Copy link

@johanvos johanvos requested review from abhinayagarwal and tiainen and removed request for abhinayagarwal and tiainen April 22, 2025 10:04

@Override
protected Path getCLibPath() {
return super.getCLibPath().resolve("glibc");
Copy link
Contributor

Choose a reason for hiding this comment

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

Currently, the GluonFX 1.0.26 version is meant to be used with GraalVM 22.1.0.1-Final (JDK 17 based, from here https://github.com/gluonhq/graal/releases/), but nothing prevents you from using any other higher GraalVM version.

However, this is not recommended, as that in fact it will surely fail on Android/iOS (for instance, the CAP cache files change with new GraalVM versions, so the current ones in Substrate are guaranteed to work for a given GraalVM version).

The previous GluonFX 1.0.25, non-supported/experimental, version was meant to be used with GraalVM 23+25.1-dev, but that one is not failing with the error you have posted, because it doesn't use clibs.

So the error only happens in the unexpected combination of GluonFX 1.0.26 + GraalVM 23 + Linux x86_64. In any case, it doesn't happen on macOS.

If you want to move forward with this PR, I suggest you move this change to the LinuxTargetConfiguration class, and then you can check if the directory glibc exists before adding it to the path.

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.

Linux x86_64 build failure with GraalVM 23.0.2

3 participants