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

Build fails #282

Open
fenhl opened this issue Apr 23, 2024 · 5 comments
Open

Build fails #282

fenhl opened this issue Apr 23, 2024 · 5 comments

Comments

@fenhl
Copy link

fenhl commented Apr 23, 2024

./gradlew build
Type-safe project accessors is an incubating feature.
'main' component in project ':native' cannot build on this machine.

> Task :native:test FAILED

JNISolutionVerifierTest > goodAndBad() FAILED
    java.lang.ExceptionInInitializerError at JNISolutionVerifierTest.java:34
        Caused by: java.lang.IllegalArgumentException at JNISolutionVerifierTest.java:34

1 test completed, 1 failed

> Task :compileTestKotlin
w: Lombok Kotlin compiler plugin is an experimental feature. See: https://kotlinlang.org/docs/components-stability.html.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':native:test'.
> There were failing tests. See the report at: file:///C:/Users/fenhl/git/github.com/fenhl/zachtronics-leaderboard-bot/stage/native/build/reports/tests/test/index.html

* Try:
> Run with --scan to get full insights.

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.2.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 19s
26 actionable tasks: 7 executed, 19 up-to-date
@12345ieee
Copy link
Collaborator

12345ieee commented Apr 23, 2024

'main' component in project ':native' cannot build on this machine.

where are you building it?

@fenhl
Copy link
Author

fenhl commented Apr 23, 2024

I'm running Windows 11 on an x86-64 CPU.

@12345ieee
Copy link
Collaborator

You need to convince nokee to build the omsim C library on Windows, can't help you there, we're both on Linux.

@fenhl
Copy link
Author

fenhl commented Apr 23, 2024

Ah, that's good to know, I can try building on WSL instead. Maybe it would make sense to add a heads-up to the readme that the build is only tested on Linux.

@F43nd1r
Copy link
Owner

F43nd1r commented May 4, 2024

It's probably not too hard to build on windows, try changing this line

targetMachines.set(listOf(machines.linux.x86_64))

Have never tried though

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

No branches or pull requests

3 participants