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

jdk14 fails to build #117897

Closed
TLATER opened this issue Mar 28, 2021 · 10 comments
Closed

jdk14 fails to build #117897

TLATER opened this issue Mar 28, 2021 · 10 comments
Labels
0.kind: bug 6.topic: java Including JDK, tooling, other languages, other VMs

Comments

@TLATER
Copy link
Contributor

TLATER commented Mar 28, 2021

Describe the bug

jdk14 fails to build when installed with nix-shell -p jdk14.

To Reproduce
Steps to reproduce the behavior:

  1. Use the nixos-20.09 channel
  2. Run nix-shell -p jdk14
  3. Watch the build fail

Expected behavior

The build succeeds and I can run openjdk14 - or it is pulled from the cache but this doesn't seem to happen anymore, possibly in preparation of a new release?

Additional context

Build logs:

these 3 derivations will be built:
  /nix/store/a7x724phrsgiq8177vcx0zrvk6qc1ja5-openjdk-headless-12.0.2-ga.drv
  /nix/store/j68ia9v1j1r2mnfvbjcjnnx68plfarlz-openjdk-headless-13.0.2-ga.drv
  /nix/store/x8bhx2lk9xac6isd0k57kfxxig6h6ds7-openjdk-14.0.2-ga.drv
building '/nix/store/a7x724phrsgiq8177vcx0zrvk6qc1ja5-openjdk-headless-12.0.2-ga.drv'...
unpacking sources
unpacking source archive /nix/store/5bvg9s6hagmdgxfy35yhcxq8kgfg60s7-jdk-12.0.2-ga.tar.gz
source root is jdk12u-jdk-12.0.2-ga
setting SOURCE_DATE_EPOCH to timestamp 1563295108 of file jdk12u-jdk-12.0.2-ga/test/nashorn/src/jdk/nashorn/test/tools/StaticTypeInspector.java
patching sources
patching script interpreter paths in configure
configure: interpreter directive changed from "/bin/bash" to "/nix/store/9ywr69qi622lrmx5nn88gk8jpmihy0dz-bash-4.4-p23/bin/bash"
applying patch /nix/store/881pcwinv35z9f6c5max2m7il0sxvg3n-fix-java-home-jdk10.patch
patching file src/hotspot/os/linux/os_linux.cpp
Hunk #1 succeeded at 2331 with fuzz 2 (offset 61 lines).
applying patch /nix/store/3zfcang88j3y15viz1b4c83dwxpl9ps6-read-truststore-from-env-jdk10.patch
patching file src/java.base/share/classes/sun/security/ssl/TrustStoreManager.java
Hunk #1 succeeded at 67 (offset -4 lines).
Hunk #2 succeeded at 131 (offset -2 lines).
Hunk #3 succeeded at 144 (offset -2 lines).
applying patch /nix/store/08307j5x1ip16s0b0nik01i77pz6zch1-currency-date-range-jdk10.patch
patching file make/jdk/src/classes/build/tools/generatecurrencydata/GenerateCurrencyData.java
Hunk #1 succeeded at 284 (offset 3 lines).
applying patch /nix/store/k2iimd82yz4b5w7l6g38jmmndamslc03-increase-javadoc-heap.patch
patching file make/Docs.gmk
Hunk #1 succeeded at 266 (offset -8 lines).
applying patch /nix/store/hq4y9kq66c7h6dhi7nb5vx2ibn6fcbd3-rh1673833-remove_removal_of_wformat_during_test_compilation.patch
patching file make/common/TestFilesCompilation.gmk
configuring
configure flags: --prefix=/nix/store/2kigmkfvc11lps65dq6mhbznb81b1fpl-openjdk-headless-12.0.2-ga --bindir=/nix/store/2kigmkfvc11lps65dq6mhbznb81b1fpl-openjdk-headless-12.0.2-ga/bin --sbindir=/nix/store/2kigmkfvc11lps65dq6mhbznb81b1fpl-openjdk-headless-12.0.2-ga/sbin --includedir=/nix/store/2kigmkfvc11lps65dq6mhbznb81b1fpl-openjdk-headless-12.0.2-ga/include --oldincludedir=/nix/store/2kigmkfvc11lps65dq6mhbznb81b1fpl-openjdk-headless-12.0.2-ga/include --mandir=/nix/store/2kigmkfvc11lps65dq6mhbznb81b1fpl-openjdk-headless-12.0.2-ga/share/man --infodir=/nix/store/2kigmkfvc11lps65dq6mhbznb81b1fpl-openjdk-headless-12.0.2-ga/share/info --docdir=/nix/store/2kigmkfvc11lps65dq6mhbznb81b1fpl-openjdk-headless-12.0.2-ga/share/doc/openjdk-headless --libdir=/nix/store/2kigmkfvc11lps65dq6mhbznb81b1fpl-openjdk-headless-12.0.2-ga/lib --libexecdir=/nix/store/2kigmkfvc11lps65dq6mhbznb81b1fpl-openjdk-headless-12.0.2-ga/libexec --localedir=/nix/store/2kigmkfvc11lps65dq6mhbznb81b1fpl-openjdk-headless-12.0.2-ga/share/locale --with-boot-jdk=/nix/store/sp71bfq6y6bam96pk49mnfp0swpd38y6-openjdk-11.0.9+11/lib/openjdk --with-version-pre= --enable-unlimited-crypto --with-native-debug-symbols=internal --with-libjpeg=system --with-giflib=system --with-libpng=system --with-zlib=system --with-lcms=system --with-stdc++lib=dynamic --with-jvm-features=zgc --enable-headless-only
Runnable configure script is not present
Generating runnable configure script at /build/jdk12u-jdk-12.0.2-ga/build/.configure-support/generated-configure.sh
Using autoconf at /nix/store/fnjanl079xff2hcp3shz2adznvvs1cms-autoconf-2.69/bin/autoconf [autoconf (GNU Autoconf) 2.69]
configure: Configuration created at Sun Mar 28 17:32:49 UTC 2021.
checking for basename... /nix/store/vr96j3cxj75xsczl8pzrgsv1k57hcxyp-coreutils-8.31/bin/basename
checking for bash... /nix/store/9ywr69qi622lrmx5nn88gk8jpmihy0dz-bash-4.4-p23/bin/bash
checking for cat... /nix/store/vr96j3cxj75xsczl8pzrgsv1k57hcxyp-coreutils-8.31/bin/cat
checking for chmod... /nix/store/vr96j3cxj75xsczl8pzrgsv1k57hcxyp-coreutils-8.31/bin/chmod
checking for cmp... /nix/store/m87blzdbjqhj1dghl5l2dqqnl9dhvarz-diffutils-3.7/bin/cmp
checking for comm... /nix/store/vr96j3cxj75xsczl8pzrgsv1k57hcxyp-coreutils-8.31/bin/comm
checking for cp... /nix/store/vr96j3cxj75xsczl8pzrgsv1k57hcxyp-coreutils-8.31/bin/cp
checking for cut... /nix/store/vr96j3cxj75xsczl8pzrgsv1k57hcxyp-coreutils-8.31/bin/cut
checking for date... /nix/store/vr96j3cxj75xsczl8pzrgsv1k57hcxyp-coreutils-8.31/bin/date
checking for gdiff... no
checking for diff... /nix/store/m87blzdbjqhj1dghl5l2dqqnl9dhvarz-diffutils-3.7/bin/diff
checking for dirname... /nix/store/vr96j3cxj75xsczl8pzrgsv1k57hcxyp-coreutils-8.31/bin/dirname
checking for echo... /nix/store/vr96j3cxj75xsczl8pzrgsv1k57hcxyp-coreutils-8.31/bin/echo
checking for expr... /nix/store/vr96j3cxj75xsczl8pzrgsv1k57hcxyp-coreutils-8.31/bin/expr
checking for file... /nix/store/qxa6l1r4fh5vyfjvz3m8wiz23wv92n6h-file-5.39/bin/file
checking for find... /nix/store/ax8vv1ds6l81jx8cmflx3fvcl9jdxd2w-findutils-4.7.0/bin/find
checking for head... /nix/store/vr96j3cxj75xsczl8pzrgsv1k57hcxyp-coreutils-8.31/bin/head
checking for gunzip... /nix/store/2hh9fld5r11zhp3697pzjwmqag76yc54-gzip-1.10/bin/gunzip
checking for pigz... no
checking for gzip... /nix/store/2hh9fld5r11zhp3697pzjwmqag76yc54-gzip-1.10/bin/gzip
checking for ln... /nix/store/vr96j3cxj75xsczl8pzrgsv1k57hcxyp-coreutils-8.31/bin/ln
checking for ls... /nix/store/vr96j3cxj75xsczl8pzrgsv1k57hcxyp-coreutils-8.31/bin/ls
checking for gmkdir... no
checking for mkdir... /nix/store/vr96j3cxj75xsczl8pzrgsv1k57hcxyp-coreutils-8.31/bin/mkdir
checking for mktemp... /nix/store/vr96j3cxj75xsczl8pzrgsv1k57hcxyp-coreutils-8.31/bin/mktemp
checking for mv... /nix/store/vr96j3cxj75xsczl8pzrgsv1k57hcxyp-coreutils-8.31/bin/mv
checking for nawk... no
checking for gawk... /nix/store/b9j6qhmxpwfvga2bfxn1khjrv3v3qxg7-gawk-5.1.0/bin/gawk
checking for printf... /nix/store/vr96j3cxj75xsczl8pzrgsv1k57hcxyp-coreutils-8.31/bin/printf
checking for greadlink... no
checking for readlink... /nix/store/vr96j3cxj75xsczl8pzrgsv1k57hcxyp-coreutils-8.31/bin/readlink
checking for rm... /nix/store/vr96j3cxj75xsczl8pzrgsv1k57hcxyp-coreutils-8.31/bin/rm
checking for rmdir... /nix/store/vr96j3cxj75xsczl8pzrgsv1k57hcxyp-coreutils-8.31/bin/rmdir
checking for sh... /nix/store/9ywr69qi622lrmx5nn88gk8jpmihy0dz-bash-4.4-p23/bin/sh
checking for sort... /nix/store/vr96j3cxj75xsczl8pzrgsv1k57hcxyp-coreutils-8.31/bin/sort
checking for tail... /nix/store/vr96j3cxj75xsczl8pzrgsv1k57hcxyp-coreutils-8.31/bin/tail
checking for gtar... no
checking for tar... /nix/store/k6ssslsxmvndgm056k7x4s75390sjfkz-gnutar-1.32/bin/tar
checking for tee... /nix/store/vr96j3cxj75xsczl8pzrgsv1k57hcxyp-coreutils-8.31/bin/tee
checking for touch... /nix/store/vr96j3cxj75xsczl8pzrgsv1k57hcxyp-coreutils-8.31/bin/touch
checking for tr... /nix/store/vr96j3cxj75xsczl8pzrgsv1k57hcxyp-coreutils-8.31/bin/tr
checking for uname... /nix/store/vr96j3cxj75xsczl8pzrgsv1k57hcxyp-coreutils-8.31/bin/uname
checking for uniq... /nix/store/vr96j3cxj75xsczl8pzrgsv1k57hcxyp-coreutils-8.31/bin/uniq
checking for wc... /nix/store/vr96j3cxj75xsczl8pzrgsv1k57hcxyp-coreutils-8.31/bin/wc
checking for which... /nix/store/32ya2q50zyqzw0818zgp6hjfgvjx7826-which-2.21/bin/which
checking for xargs... /nix/store/ax8vv1ds6l81jx8cmflx3fvcl9jdxd2w-findutils-4.7.0/bin/xargs
checking for gawk... gawk
checking for grep that handles long lines and -e... /nix/store/rxkghln0km9axapv94iz3pcsln6ricms-gnugrep-3.4/bin/grep
checking for egrep... /nix/store/rxkghln0km9axapv94iz3pcsln6ricms-gnugrep-3.4/bin/grep -E
checking for fgrep... /nix/store/rxkghln0km9axapv94iz3pcsln6ricms-gnugrep-3.4/bin/grep -F
checking for a sed that does not truncate output... /nix/store/gdr4s4xx41n8krk9carr8amvncy8x3p3-gnused-4.8/bin/sed
checking for cygpath... no
checking for df... /nix/store/vr96j3cxj75xsczl8pzrgsv1k57hcxyp-coreutils-8.31/bin/df
checking for cpio... /nix/store/9x1hqvr05ky2zy8d0lbk1qshx1k8aniz-cpio-2.13/bin/cpio
checking for nice... /nix/store/vr96j3cxj75xsczl8pzrgsv1k57hcxyp-coreutils-8.31/bin/nice
checking for pandoc... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking openjdk-build os-cpu... linux-x86_64
checking openjdk-target os-cpu... linux-x86_64
checking compilation type... native
checking for top-level directory... /build/jdk12u-jdk-12.0.2-ga
checking if custom source is suppressed (openjdk-only)... no
checking which debug level to use... release
checking which variants of the JVM to build... server
checking for sysroot... 
checking for toolchain path... 
checking for extra path... 
checking where to store configuration... in default location
checking what configuration name to use... linux-x86_64-server-release
checking for apt-get... no
checking for yum... no
checking for brew... no
checking for port... no
checking for pkgutil... no
checking for pkgadd... no
checking for gmake... no
checking for make... /nix/store/7fqqkrz6m11793cw7by8wbn2q87za8ny-gnumake-4.3/bin/make
configure: Testing potential make at /nix/store/7fqqkrz6m11793cw7by8wbn2q87za8ny-gnumake-4.3/bin/make, found using make in PATH
configure: Using GNU make at /nix/store/7fqqkrz6m11793cw7by8wbn2q87za8ny-gnumake-4.3/bin/make (version: GNU Make 4.3)
checking if make --output-sync is supported... yes
checking for output-sync value... none
checking if find supports -delete... yes
checking what type of tar was found... gnu
checking that grep (/nix/store/rxkghln0km9axapv94iz3pcsln6ricms-gnugrep-3.4/bin/grep) -Fx handles empty lines in the pattern list correctly... yes
checking for unzip... /nix/store/kqccyim47rvwbcvwvf48iwn600a34lqj-unzip-6.0/bin/unzip
checking for zip... /nix/store/n8ypgdk3xzdl7rvmna4043c0q0zfv04x-zip-3.0/bin/zip
checking for ldd... /nix/store/ddmdl1fin14hpjvssa7b933661y3xgxg-glibc-2.31-74-bin/bin/ldd
configure: WARNING: Ignoring value of READELF from the environment. Use command line variables instead.
checking for greadelf... no
checking for readelf... /nix/store/vfqlryhvm8063hs7ax9k2vb8wmch5v0v-binutils-2.31.1/bin/readelf
checking for dot... no
checking for hg... no
checking for git... no
checking for stat... /nix/store/vr96j3cxj75xsczl8pzrgsv1k57hcxyp-coreutils-8.31/bin/stat
checking for time... no
checking for flock... no
checking for dtrace... no
checking for gpatch... no
checking for patch... /nix/store/5vpsaqjazidyfrpjx2z137jmqwn3f2ai-patch-2.7.6/bin/patch
checking bash version... 4.4.23
checking if bash supports pipefail... yes
checking if bash supports errexit (-e)... yes
checking pkg-config is at least version 0.9.0... yes
checking for default LOG value... 
checking headless only... yes
checking for graphviz dot... no, cannot generate full docs
checking for pandoc... no, cannot generate full docs
checking full docs... no, missing dependencies
checking for cacerts file... default
checking for jni library path... default
checking if packaged modules are kept... yes (default)
checking for version string... 12.0.2+0-adhoc..jdk12u-jdk-12.0.2-ga
configure: Found potential Boot JDK using configure arguments
checking for Boot JDK... /nix/store/sp71bfq6y6bam96pk49mnfp0swpd38y6-openjdk-11.0.9+11/lib/openjdk
checking Boot JDK version... openjdk version "11.0.9" 2020-10-20 OpenJDK Runtime Environment (build 11.0.9+0-adhoc..source) OpenJDK 64-Bit Server VM (build 11.0.9+0-adhoc..source, mixed mode) 
checking for java in Boot JDK... ok
checking for javac in Boot JDK... ok
checking for javadoc in Boot JDK... ok
checking for jar in Boot JDK... ok
checking for jarsigner in Boot JDK... ok
checking if Boot JDK is 32 or 64 bits... 64
checking for local Boot JDK Class Data Sharing (CDS)... yes, created
checking for Build JDK... yes, will use output dir
configure: Using default toolchain gcc (GNU Compiler Collection)
configure: Will use user supplied compiler CC=gcc
checking for gcc... /nix/store/ryy81g8zv6c8fh0j10m6fdynrgrn239k-gcc-wrapper-9.3.0/bin/gcc
checking resolved symbolic links for CC... no symlink
configure: Using gcc C compiler version 9.3.0 [gcc (GCC) 9.3.0]
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /nix/store/ryy81g8zv6c8fh0j10m6fdynrgrn239k-gcc-wrapper-9.3.0/bin/gcc accepts -g... yes
checking for /nix/store/ryy81g8zv6c8fh0j10m6fdynrgrn239k-gcc-wrapper-9.3.0/bin/gcc option to accept ISO C89... none needed
configure: Will use user supplied compiler CXX=g++
checking for g++... /nix/store/ryy81g8zv6c8fh0j10m6fdynrgrn239k-gcc-wrapper-9.3.0/bin/g++
checking resolved symbolic links for CXX... no symlink
configure: Using gcc C++ compiler version 9.3.0 [g++ (GCC) 9.3.0]
checking whether we are using the GNU C++ compiler... yes
checking whether /nix/store/ryy81g8zv6c8fh0j10m6fdynrgrn239k-gcc-wrapper-9.3.0/bin/g++ accepts -g... yes
checking how to run the C preprocessor... /nix/store/ryy81g8zv6c8fh0j10m6fdynrgrn239k-gcc-wrapper-9.3.0/bin/gcc -E
checking how to run the C++ preprocessor... /nix/store/ryy81g8zv6c8fh0j10m6fdynrgrn239k-gcc-wrapper-9.3.0/bin/g++ -E
configure: Using gcc linker version 2.31.1 [GNU ld (GNU Binutils) 2.31.1]
configure: WARNING: Ignoring value of AR from the environment. Use command line variables instead.
configure: Rewriting AR to "/nix/store/vfqlryhvm8063hs7ax9k2vb8wmch5v0v-binutils-2.31.1/bin/ar"
configure: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead.
configure: Rewriting STRIP to "/nix/store/vfqlryhvm8063hs7ax9k2vb8wmch5v0v-binutils-2.31.1/bin/strip"
configure: WARNING: Ignoring value of NM from the environment. Use command line variables instead.
configure: Rewriting NM to "/nix/store/vfqlryhvm8063hs7ax9k2vb8wmch5v0v-binutils-2.31.1/bin/nm"
configure: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead.
configure: Rewriting OBJCOPY to "/nix/store/vfqlryhvm8063hs7ax9k2vb8wmch5v0v-binutils-2.31.1/bin/objcopy"
configure: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead.
configure: Rewriting OBJDUMP to "/nix/store/vfqlryhvm8063hs7ax9k2vb8wmch5v0v-binutils-2.31.1/bin/objdump"
checking for c++filt... c++filt
configure: Rewriting CXXFILT to "/nix/store/vfqlryhvm8063hs7ax9k2vb8wmch5v0v-binutils-2.31.1/bin/c++filt"
checking for jtreg... no
checking for jtreg test harness... no, not found
checking for jmh (Java Microbenchmark Harness)... no, disabled
checking for jib... no
checking if @file is supported by gcc... yes
checking if the C compiler supports "-m64"... yes
checking if the C++ compiler supports "-m64"... yes
checking if both compilers support "-m64"... yes
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking size of int *... 8
checking for target address size... 64 bits
checking whether byte ordering is bigendian... no
checking if native warnings are errors... true (default)
checking if the C++ compiler supports "-std=gnu++98 -Werror"... yes
checking for library containing clock_gettime... none required
configure: GCC >= 6 detected; adding -fno-delete-null-pointer-checks and -fno-lifetime-dse
configure: GCC >= 6 detected; adding -fno-delete-null-pointer-checks and -fno-lifetime-dse
checking if the C compiler supports "-ffp-contract=off"... yes
checking if the C++ compiler supports "-ffp-contract=off"... yes
checking if both compilers support "-ffp-contract=off"... yes
checking what type of native debug symbols to use... internal
checking for dtrace tool... not found, cannot build dtrace
checking sys/sdt.h usability... no
checking sys/sdt.h presence... no
checking for sys/sdt.h... no
checking if dtrace should be built... no, missing dependencies
checking if Hotspot gtest unit tests should be built... yes
checking if static link of stdc++ is possible... yes
checking how to link with libstdc++... dynamic
checking for X... libraries , headers 
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for X11/extensions/shape.h... yes
checking for X11/extensions/Xrender.h... yes
checking for X11/extensions/XTest.h... yes
checking for X11/Intrinsic.h... yes
checking for X11/extensions/Xrandr.h... yes
checking if XlinearGradient is defined in Xrender.h... yes
checking cups/cups.h usability... yes
checking cups/cups.h presence... yes
checking for cups/cups.h... yes
checking cups/ppd.h usability... yes
checking cups/ppd.h presence... yes
checking for cups/ppd.h... yes
checking fontconfig/fontconfig.h usability... yes
checking fontconfig/fontconfig.h presence... yes
checking for fontconfig/fontconfig.h... yes
checking for FREETYPE... yes
checking for freetype... yes (using pkg-config)
Using freetype: system
checking for ALSA... yes
checking for which libjpeg to use... system
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking for jpeg_CreateDecompress in -ljpeg... yes
checking for which giflib to use... system
checking gif_lib.h usability... yes
checking gif_lib.h presence... yes
checking for gif_lib.h... yes
checking for DGifGetCode in -lgif... yes
checking for PNG... yes
checking for which libpng to use... system
checking for compress in -lz... yes
checking for which zlib to use... system
checking for which lcms to use... system
checking for LCMS... yes
checking for cos in -lm... yes
checking for dlopen in -ldl... yes
checking user specified JVM feature list... 
checking if shenandoah can be built... yes
checking if zgc can be built... yes
checking if jvmci module jdk.internal.vm.ci should be built... yes
checking if graal module jdk.internal.vm.compiler should be built... yes
checking if aot should be enabled... yes
checking if cds should be enabled... yes
checking if elliptic curve crypto implementation is present... yes
checking if jtreg failure handler should be built... no, missing jtreg
checking if the CDS classlist generation should be enabled... yes
checking if any translations should be excluded... no
checking if static man pages should be copied... yes
checking if a default CDS archive should be generated... yes
checking for number of cores... 12
checking for memory size... 32128 MB
checking for appropriate number of jobs to run in parallel... 12
checking flags for boot jdk java command ...  -Duser.language=en -Duser.country=US  -XX:+UnlockDiagnosticVMOptions -XX:-VerifySharedSpaces -XX:SharedArchiveFile=/build/jdk12u-jdk-12.0.2-ga/build/linux-x86_64-server-release/configure-support/classes.jsa -Xshare:auto 
checking flags for boot jdk java command for big workloads...  -Xms64M -Xmx1600M -XX:ThreadStackSize=1536
checking flags for bootcycle boot jdk java command for big workloads... -Xms64M -Xmx1600M -XX:ThreadStackSize=1536
checking flags for boot jdk java command for small workloads...  -XX:+UseSerialGC -Xms32M -Xmx512M -XX:TieredStopAtLevel=1
checking whether to use sjavac... no
checking whether to use javac server... yes
checking If precompiled header is enabled... yes
checking that precompiled headers work... yes
checking is ccache enabled... no
checking if build directory is on local disk... yes
checking JVM features for JVM variant 'server'... "aot cds cmsgc compiler1 compiler2 epsilongc g1gc graal jfr jni-check jvmci jvmti management nmt parallelgc serialgc services shenandoahgc vm-structs zgc"
configure: creating /build/jdk12u-jdk-12.0.2-ga/build/linux-x86_64-server-release/configure-support/config.status
config.status: creating /build/jdk12u-jdk-12.0.2-ga/build/linux-x86_64-server-release/spec.gmk
config.status: creating /build/jdk12u-jdk-12.0.2-ga/build/linux-x86_64-server-release/bootcycle-spec.gmk
config.status: creating /build/jdk12u-jdk-12.0.2-ga/build/linux-x86_64-server-release/buildjdk-spec.gmk
config.status: creating /build/jdk12u-jdk-12.0.2-ga/build/linux-x86_64-server-release/compare.sh
config.status: creating /build/jdk12u-jdk-12.0.2-ga/build/linux-x86_64-server-release/Makefile

====================================================
A new configuration has been successfully created in
/build/jdk12u-jdk-12.0.2-ga/build/linux-x86_64-server-release
using configure arguments '--prefix=/nix/store/2kigmkfvc11lps65dq6mhbznb81b1fpl-openjdk-headless-12.0.2-ga --bindir=/nix/store/2kigmkfvc11lps65dq6mhbznb81b1fpl-openjdk-headless-12.0.2-ga/bin --sbindir=/nix/store/2kigmkfvc11lps65dq6mhbznb81b1fpl-openjdk-headless-12.0.2-ga/sbin --includedir=/nix/store/2kigmkfvc11lps65dq6mhbznb81b1fpl-openjdk-headless-12.0.2-ga/include --oldincludedir=/nix/store/2kigmkfvc11lps65dq6mhbznb81b1fpl-openjdk-headless-12.0.2-ga/include --mandir=/nix/store/2kigmkfvc11lps65dq6mhbznb81b1fpl-openjdk-headless-12.0.2-ga/share/man --infodir=/nix/store/2kigmkfvc11lps65dq6mhbznb81b1fpl-openjdk-headless-12.0.2-ga/share/info --docdir=/nix/store/2kigmkfvc11lps65dq6mhbznb81b1fpl-openjdk-headless-12.0.2-ga/share/doc/openjdk-headless --libdir=/nix/store/2kigmkfvc11lps65dq6mhbznb81b1fpl-openjdk-headless-12.0.2-ga/lib --libexecdir=/nix/store/2kigmkfvc11lps65dq6mhbznb81b1fpl-openjdk-headless-12.0.2-ga/libexec --localedir=/nix/store/2kigmkfvc11lps65dq6mhbznb81b1fpl-openjdk-headless-12.0.2-ga/share/locale --with-boot-jdk=/nix/store/sp71bfq6y6bam96pk49mnfp0swpd38y6-openjdk-11.0.9+11/lib/openjdk --with-version-pre= --enable-unlimited-crypto --with-native-debug-symbols=internal --with-libjpeg=system --with-giflib=system --with-libpng=system --with-zlib=system --with-lcms=system --with-stdc++lib=dynamic --with-jvm-features=zgc --enable-headless-only'.

Configuration summary:
* Debug level:    release
* HS debug level: product
* JVM variants:   server
* JVM features:   server: 'aot cds cmsgc compiler1 compiler2 epsilongc g1gc graal jfr jni-check jvmci jvmti management nmt parallelgc serialgc services shenandoahgc vm-structs zgc' 
* OpenJDK target: OS: linux, CPU architecture: x86, address length: 64
* Version string: 12.0.2+0-adhoc..jdk12u-jdk-12.0.2-ga (12.0.2)

Tools summary:
* Boot JDK:       openjdk version "11.0.9" 2020-10-20 OpenJDK Runtime Environment (build 11.0.9+0-adhoc..source) OpenJDK 64-Bit Server VM (build 11.0.9+0-adhoc..source, mixed mode)  (at /nix/store/sp71bfq6y6bam96pk49mnfp0swpd38y6-openjdk-11.0.9+11/lib/openjdk)
* Toolchain:      gcc (GNU Compiler Collection)
* C Compiler:     Version 9.3.0 (at /nix/store/ryy81g8zv6c8fh0j10m6fdynrgrn239k-gcc-wrapper-9.3.0/bin/gcc)
* C++ Compiler:   Version 9.3.0 (at /nix/store/ryy81g8zv6c8fh0j10m6fdynrgrn239k-gcc-wrapper-9.3.0/bin/g++)

Build performance summary:
* Cores to use:   12
* Memory limit:   32128 MB

The following warnings were produced. Repeated here for convenience:
WARNING: Ignoring value of READELF from the environment. Use command line variables instead.
WARNING: Ignoring value of AR from the environment. Use command line variables instead.
WARNING: Ignoring value of STRIP from the environment. Use command line variables instead.
WARNING: Ignoring value of NM from the environment. Use command line variables instead.
WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead.
WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead.

building
build flags: SHELL=/nix/store/9ywr69qi622lrmx5nn88gk8jpmihy0dz-bash-4.4-p23/bin/bash all
Note: Command line contains non-control variables:
* SHELL=/nix/store/9ywr69qi622lrmx5nn88gk8jpmihy0dz-bash-4.4-p23/bin/bash
Make sure it is not mistyped, and that you intend to override this variable.
'make help' will list known control variables.

Note: Command line contains non-control variables:
* SHELL=/nix/store/9ywr69qi622lrmx5nn88gk8jpmihy0dz-bash-4.4-p23/bin/bash
Make sure it is not mistyped, and that you intend to override this variable.
'make help' will list known control variables.

Building target 'all' in configuration 'linux-x86_64-server-release'
Warning: No SCM configuration present and no .src-rev
make[3]: *** No rule to make target '/build/jdk12u-jdk-12.0.2-ga/build/linux-x86_64-server-release/buildtools/langtools_tools_classes/_the.BUILD_TOOLS_LANGTOOLS.vardeps', needed by '/build/jdk12u-jdk-12.0.2-ga/build/linux-x86_64-server-release/buildtools/langtools_tools_classes/_the.BUILD_TOOLS_LANGTOOLS_batch'.  Stop.
make[3]: *** Waiting for unfinished jobs....
make[3]: *** No rule to make target '/build/jdk12u-jdk-12.0.2-ga/build/linux-x86_64-server-release/make-support/vardeps/make/ReleaseFile.gmk/create-info-file.vardeps', needed by '/build/jdk12u-jdk-12.0.2-ga/build/linux-x86_64-server-release/jdk/release'.  Stop.
make[2]: *** [make/Main.gmk:369: release-file] Error 2
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [make/Main.gmk:73: buildtools-langtools] Error 2
make[3]: *** No rule to make target '/build/jdk12u-jdk-12.0.2-ga/build/linux-x86_64-server-release/make-support/vardeps/make/ModuleWrapper.gmk/java.base/ORDERED_CFG_VARIANTS.vardeps', needed by '/build/jdk12u-jdk-12.0.2-ga/build/linux-x86_64-server-release/support/modules_libs/java.base/jvm.cfg'.  Stop.
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [make/Main.gmk:162: java.base-copy] Error 2

ERROR: Build failed for target 'all' in configuration 'linux-x86_64-server-release' (exit code 2) 

No indication of failed target found.
Hint: Try searching the build log for '] Error'.
Hint: See doc/building.html#troubleshooting for assistance.

make[1]: *** [/build/jdk12u-jdk-12.0.2-ga/make/Init.gmk:310: main] Error 2
make: *** [/build/jdk12u-jdk-12.0.2-ga/make/Init.gmk:186: all] Error 2
error: builder for '/nix/store/a7x724phrsgiq8177vcx0zrvk6qc1ja5-openjdk-headless-12.0.2-ga.drv' failed with exit code 2;
       last 10 log lines:
       > make[2]: *** [make/Main.gmk:162: java.base-copy] Error 2
       >
       > ERROR: Build failed for target 'all' in configuration 'linux-x86_64-server-release' (exit code 2)
       >
       > No indication of failed target found.
       > Hint: Try searching the build log for '] Error'.
       > Hint: See doc/building.html#troubleshooting for assistance.
       >
       > make[1]: *** [/build/jdk12u-jdk-12.0.2-ga/make/Init.gmk:310: main] Error 2
       > make: *** [/build/jdk12u-jdk-12.0.2-ga/make/Init.gmk:186: all] Error 2
       For full logs, run 'nix log /nix/store/a7x724phrsgiq8177vcx0zrvk6qc1ja5-openjdk-headless-12.0.2-ga.drv'.
error: 1 dependencies of derivation '/nix/store/j68ia9v1j1r2mnfvbjcjnnx68plfarlz-openjdk-headless-13.0.2-ga.drv' failed to build
error: 1 dependencies of derivation '/nix/store/x8bhx2lk9xac6isd0k57kfxxig6h6ds7-openjdk-14.0.2-ga.drv' failed to build

Notify maintainers

Metadata

  • system: "x86_64-linux"
  • host os: Linux 5.10.22, NixOS, 20.09.20210311.6be212c (Nightingale)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.4pre20210308_1c0e3e4
  • channels(root): "nixos-20.09.3650.dc2870a606a"
  • channels(tlater): "nixos-20.09.3650.dc2870a606a"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:
@wizeman
Copy link
Member

wizeman commented Mar 29, 2021

I'm running into the same issue. Moreover, I don't understand why this started failing, since it was working before and nothing seems to have changed in openjdk?

@TLATER
Copy link
Contributor Author

TLATER commented Mar 29, 2021

I think it started failing because it's no longer cached. The build probably never worked properly outside of the CI server.

@aldebogdanov
Copy link

Same thing last several days.

@wizeman
Copy link
Member

wizeman commented Mar 29, 2021

@TLATER I am running my own Hydra/CI server (that build everything from source) and it was working fine before, but now it's not.

@aldebogdanov
Copy link

Hello again!
Is there any workaround at least? I can't install anything new with configuration.nix, because it trying to rebuild jdk14 and fail =(

@TLATER
Copy link
Contributor Author

TLATER commented Apr 1, 2021

@laniakea-landscape jdk15 from unstable works (maybe only because it's cached), jdk8 should work too. If your java application runs with either of those you can switch to those versions.

If you need jdk14 (unfortunately I do, lots of applications are stuck on exactly 14 because of the nashorn deprecation on 15 and build changes on 14), you can try one of the adoptopenjdk binaries from unstable (e.g. adoptopenjdk-openj9-bin-14). Sadly they don't have jfx, and presumably some other things this package had, so if you need any of that you're as stuck as I am until someone can fix this.

@wizeman
Copy link
Member

wizeman commented Apr 1, 2021

openjdk11 from nixos-20.09 works for me too.

@aldebogdanov
Copy link

@TLATER Thank you! But I can't find JDK home after installing adoptopenjdk-openj9-bin-14 (that is marked insecure btw). Where is it?

@TLATER
Copy link
Contributor Author

TLATER commented Apr 1, 2021

Let's keep this on topic - discussion here should be about the jdk14 package and how we're going to solve this bug.

If you want tech support I suggest asking on the NixOS discourse or IRC channel, or whatever channels adopt-/openjdk may have.

@roberth roberth added the 6.topic: java Including JDK, tooling, other languages, other VMs label Jun 21, 2021
tomsmalley added a commit to reflex-frp/reflex-platform that referenced this issue Jun 22, 2021
This is a temporary measure due to NixOS/nixpkgs#117897
@FliegendeWurst
Copy link
Member

jdk14 was removed in #107547

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug 6.topic: java Including JDK, tooling, other languages, other VMs
Projects
None yet
Development

No branches or pull requests

5 participants