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

Mindustry: Fails to build on NixOS 21.05 #128929

Closed
Kreyren opened this issue Jul 2, 2021 · 7 comments
Closed

Mindustry: Fails to build on NixOS 21.05 #128929

Kreyren opened this issue Jul 2, 2021 · 7 comments
Labels
2.status: wait-for-upstream Waiting for upstream fix (or their other action).

Comments

@Kreyren
Copy link
Contributor

Kreyren commented Jul 2, 2021

[kreyren@leonid:~]$ NIXPKGS_ALLOW_BROKEN=1 nix-env -iA nixos.mindustry
...
configuring
no configure script, doing nothing
building
/build/Mindustry /build

Welcome to Gradle 6.8.3!

...

To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/6.8.3/userguide/gradle_daemon.html#sec:disabling_the_daemon.
Daemon will be stopped at the end of the build

FAILURE: Build failed with an exception.

* What went wrong:
Could not open settings generic class cache for settings file '/build/Mindustry/settings.gradle' (/build/tmp.wfALjkNars/caches/6.8.3/scripts/cjjnld3d55pgftpmv7wz6xg61).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 60

* 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.

...

BUILD FAILED in 4s
builder for '/nix/store/yi4bxzs4126kx93x8ylp33niln7mfzjz-mindustry-126.1.drv' failed with exit code 1
error: build of '/nix/store/yi4bxzs4126kx93x8ylp33niln7mfzjz-mindustry-126.1.drv' failed

Full log: https://gist.github.com/Kreyren/7e5a80fd56ce1de7949f47c59f090ecd

Steps to reproduce

  1. Get updated nixOS 21.05
  2. As non-root user invoke NIXPKGS_ALLOW_BROKEN=1 nix-env -iA nixos.mindustry and expect build failure

Technical details

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[kreyren@leonid:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.10.43, NixOS, 21.05.961.1f91fd10406 (Okapi)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.12`
 - channels(root): `"nixos-21.05.961.1f91fd10406"`
 - channels(kreyren): `"home-manager-21.05, master, nixos-21.05.1226.f77036342e2"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

image

@Kreyren
Copy link
Contributor Author

Kreyren commented Jul 2, 2021

CC @fgaz @petabyteboy

@Kreyren Kreyren changed the title Mindustry: Fails to build Mindustry: Fails to build on NixOS 21.05 Jul 2, 2021
@fgaz
Copy link
Member

fgaz commented Jul 2, 2021

Well... that's why it's marked as broken ;-)

# does not work with any maintained java version (https://github.com/Anuken/Mindustry/issues/5114)
|| true;

It looks like this was fixed in build 127, but that's a pre-alpha, so I think we should wait for an actual release

@fgaz fgaz added the 2.status: wait-for-upstream Waiting for upstream fix (or their other action). label Jul 2, 2021
@fgaz
Copy link
Member

fgaz commented Jul 2, 2021

Hmm... I just tried updating the package to the pre-alpha, kotlin makes it even more complex than it is now

@iam-cult
Copy link

This issue is additionally present on NixOS 21.11 unstable, still fails to build with Could not open settings generic class cache for settings file '/build/Mindustry/settings.gradle'

@tutacat
Copy link

tutacat commented Nov 17, 2021

Well... that's why it's marked as broken ;-)

# does not work with any maintained java version (https://github.com/Anuken/Mindustry/issues/5114)
|| true;

It looks like this was fixed in build 127, but that's a pre-alpha, so I think we should wait for an actual release

As version after 126 is marked alpha, it makes sense to just use alphas

@fgaz
Copy link
Member

fgaz commented Nov 18, 2021

As version after 126 is marked alpha, it makes sense to just use alphas

it isn't. edit: I misread, but it won't be like that forever

If someone wants to put in the work, I'd approve a pr that updates to pre-alpha, but I won't put in the work myself until there's a stable release, since it's pretty difficult to package it.

@Mindavi
Copy link
Contributor

Mindavi commented Nov 18, 2021

We can consider pointing to jdk15 (if still available) to unbreak it for now. I'll look into it (hopefully I find some time today).

Edit: it seems like jdk15 is not exposed, unless adoptopenjdk-hotspot-bin-15 is an option. I'm trying to build with that now.

@Mindavi Mindavi mentioned this issue Nov 18, 2021
9 tasks
mkg20001 pushed a commit to mkg20001/nixpkgs that referenced this issue Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.status: wait-for-upstream Waiting for upstream fix (or their other action).
Projects
None yet
Development

No branches or pull requests

5 participants