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

Trouble building WALA on my Samsung Galaxy Z Fold 5 #1472

Open
juliandolby opened this issue Nov 25, 2024 · 5 comments
Open

Trouble building WALA on my Samsung Galaxy Z Fold 5 #1472

juliandolby opened this issue Nov 25, 2024 · 5 comments
Labels
gradle WALA’s Gradle build system

Comments

@juliandolby
Copy link
Contributor

Using Andronix to get a user-mode Linux on my phone, I cloned WALA, but the build failed as shown below. It appears not to understand that the phone is an aarch64 device. There is magic to use the native SWT libs, but the phone seems to confuse it. Does anyone know how it works?

`dolby@localhost:~/WALA$ ./gradlew clean build
Calculating task graph as no cached configuration is available for tasks: clean build
Type-safe project accessors is an incubating feature.
[Incubating] Problems report is available at: file:///home/dolby/WALA/build/reports/problems/problems-report.html

FAILURE: Build failed with an exception.

  • What went wrong
    Could not determine the dependencies of task ':ide:compileJava'.

Could not resolve all dependencies for configuration ':ide:compileClasspath'.
Could not find org.eclipse.platform:org.eclipse.swt.gtk.linux.unknown:3.124.200.
Required by:
project :ide > org.eclipse.platform:org.eclipse.swt:3.124.200

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.11/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 4s
9 actionable tasks: 9 up-to-date
Configuration cache entry stored.`

@liblit liblit added the gradle WALA’s Gradle build system label Nov 25, 2024
@liblit
Copy link
Contributor

liblit commented Nov 25, 2024

There is magic to use the native SWT libs, but the phone seems to confuse it. Does anyone know how it works?

We trigger that magic here:

Documentation for useNativesForRunningPlatform can be found here.

If there is some platform-specific JAR containing natives suitable for a Samsung Galaxy Z Fold 5, but we’re just not picking that dependency correctly, then perhaps we need to allow substitution in the style shown here.

If there is no platform-specific JAR containing natives suitable for a Samsung Galaxy Z Fold 5, then either:

@msridhar
Copy link
Member

@juliandolby are you able to build just the projects you need? E.g., ./gradlew :core:assemble, or ./gradlew :cast:java:ecj:assemble? I'm assuming you don't need the IDE functionality for this scenario.

@juliandolby
Copy link
Contributor Author

Thanks! That worked. And I can even publishToMavenLocal.

BTW, I think I tracked the issue to code in diffplug just reporting unknown for arm64 on Linux, and I opened an issue with them.

@liblit
Copy link
Contributor

liblit commented Nov 26, 2024

Thanks for chasing the problem into diffplug. Can you provide a link to the diffplug issue that you filed? That will help us keep track of the relationship between this initial report and that possible root cause.

@msridhar
Copy link
Member

Looks like it's diffplug/durian-swt#29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gradle WALA’s Gradle build system
Projects
None yet
Development

No branches or pull requests

3 participants