NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.95k stars 13.97k forks source link

JDK issues #75055

Open Dil3mm4 opened 4 years ago

Dil3mm4 commented 4 years ago

Describe the bug Build halt.

To Reproduce Steps to reproduce the behavior:

  1. get an Android ROM source (LineageOS/PixelExperience whatever)
  2. . build/envsetup.sh && breakfast 3.. select your target 4.. make otapackage

Expected behavior Build should complete.

Additional context Current nix script used https://pastebin.com/xT7YNUvj Error:https://hastebin.com/pecaporapi.bash NixOS version: 19.09.1487.1be199f0594

Tried to switch to other versions of jdk as well, oracle's and open, headless and non-headless, no change.

Metadata

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:
danielfullmer commented 4 years ago

Try adding fontconfig to your targetPkgs.

I assume you are building Android 10? I encountered the same issue. It is not an issue with jdk from nixpkgs, but rather the prebuilt jdk that AOSP includes in their source checkouts.

For reference: https://issuetracker.google.com/issues/145064117 https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/android-building/ZprmSu5ZAkg/D0kQFvGxAAAJ

See also my own build env for android: https://github.com/danielfullmer/NixDroid/blob/40f6047a1884fba378b4256e81ef83df699527c7/buildenv.nix#L39

Dil3mm4 commented 4 years ago

Yeah got it fixed adding fontconfig, and freetype, didn't even get the mail and spent 3 more hrs on it, damn.

Anyway it seems that over other linux distros as Debian and friends, jdk ships freetype and co. pkgs as dependency (or bundled, didn't really double check), therefore on those envs the issues wasn't happening. And anyway I wasn't using AOSP's prebuilt.

Will leave it opened waiting for someone with a higher knowledge than mine to determinate if it's an issue imputable to jdk nixos pkgs itself or not.

For the time being, thanks.

stale[bot] commented 4 years ago

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.