Created attachment 762817 [details] build.log configure: Found potential Boot JDK using configure arguments configure: Potential Boot JDK found at /etc/java-config-2/current-system-vm is incorrect JDK version (openjdk version "11.0.13" 2021-10-19 OpenJDK Runtime Environment 11.0.13_p8 (build 11.0.13+8) OpenJDK 64-Bit Server VM 11.0.13_p8 (build 11.0.13+8, mixed mode, sharing)); ignoring configure: (Your Boot JDK version must be one of: 16 17) configure: error: The path given by --with-boot-jdk does not contain a valid Boot JDK configure exiting with result code 1 Portage 3.0.30 (python 3.9.10-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-11.2.1, glibc-2.34-r6, 5.16.1-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.16.1-gentoo-x86_64-Intel-R-_Core-TM-_i9-10900K_CPU_@_3.70GHz-with-glibc2.34 KiB Mem: 131947672 total, 121716912 free KiB Swap: 8388604 total, 8388604 free Timestamp of repository 4nykey: Wed, 19 Jan 2022 23:07:44 +0000 Head commit of repository 4nykey: e9355b7097903e6735728010863cf4ed88ebc79e Timestamp of repository guru: Wed, 19 Jan 2022 23:07:50 +0000 Head commit of repository guru: 8bb7cede7b9acffe99be24d33b6d2f3844a8470e Timestamp of repository gentoo: Thu, 20 Jan 2022 10:45:01 +0000 Head commit of repository gentoo: c4a62db759c036130b483f9a544820e52c5fbfa2 sh bash 5.1_p16 ld GNU ld (Gentoo 2.37_p1 p1) 2.37 app-misc/pax-utils: 1.3.3::gentoo app-shells/bash: 5.1_p16::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.34.0-r6::gentoo dev-lang/python: 2.7.18_p13::gentoo, 3.9.10::gentoo dev-lang/rust: 1.58.0::gentoo dev-util/cmake: 3.22.1::gentoo dev-util/meson: 0.61.1::gentoo sys-apps/baselayout: 2.8::gentoo sys-apps/openrc: 0.44.10::gentoo sys-apps/sandbox: 2.29::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.71-r1::gentoo sys-devel/automake: 1.13.4-r2::gentoo, 1.15.1-r2::gentoo, 1.16.5::gentoo sys-devel/binutils: 2.37_p1-r1::gentoo sys-devel/binutils-config: 5.4::gentoo sys-devel/clang: 13.0.0::gentoo sys-devel/gcc: 11.2.1_p20220115::gentoo sys-devel/gcc-config: 2.5-r1::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/lld: 13.0.0::gentoo sys-devel/llvm: 13.0.0::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.16::gentoo (virtual/os-headers) sys-libs/glibc: 2.34-r6::gentoo Repositories: 4nykey location: /var/db/repos/4nykey sync-type: git sync-uri: https://github.com/gentoo-mirror/4nykey.git masters: gentoo guru location: /var/db/repos/guru sync-type: git sync-uri: https://github.com/gentoo-mirror/guru.git masters: gentoo gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync3.uk.gentoo.org/gentoo-portage/ priority: 10 sync-rsync-verify-jobs: 1 sync-rsync-extra-opts: sync-rsync-verify-metamanifest: no sync-rsync-verify-max-age: 24 local location: /var/db/repos/local masters: gentoo priority: 100 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -mtune=native -O3 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.1/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -mtune=native -O3 -pipe" DISTDIR="/var/cache/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-march=native -mtune=native -O3 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync metadata-transfer multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-march=native -mtune=native -O3 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org/" LANG="it_IT.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j20" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" SHELL="/bin/bash" USE="X a52 aac acl acpi activities alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus declarative dri dts dvd dvdr elogind encode exif flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg kde kipi kwallet lcms libglvnd libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf plasma png policykit ppds qml qt5 readline sdl seccomp semantic-desktop spell split-usr ssl startup-notification svg tiff truetype udev udisks unicode upower usb vorbis widgets wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput evdev mouse synaptics" KERNEL="linux" L10N="it" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-4" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" QEMU_SOFTMMU_TARGETS="x86_64 hppa i386" RUBY_TARGETS="ruby27" SANE_BACKENDS="xerox_mfp" USERLAND="GNU" VIDEO_CARDS="nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS ================================================================= Package Settings ================================================================= dev-java/openjdk-11.0.13_p8::gentoo was built with the following: USE="alsa cups gentoo-vm jbootstrap -debug -doc -examples -headless-awt -javafx (-pch) (-selinux) -source -systemtap" ABI_X86="(64)" CFLAGS="-march=native -mtune=native -O3 -pipe -fcommon" CXXFLAGS="-march=native -mtune=native -O3 -pipe -fcommon"
you can't use openjdk:11 to build openjdk:17 emerge should have pulled correct version for you. bug judging by info output and getcwd errors I have a question: are you running ebuild directly instead of emerge? you should install openjdk-bin:17 first time and it will be used to compile openjdk:17 after that you can remove -bin and keep rolling with source version for each next version.
i installed openjdk-bin-17 * but it is not detected by eselect java-vm thunderdome ~ # eselect java-vm list Available Java Virtual Machines: [1] openjdk-11 system-vm [2] openjdk-bin-11
thunderdome ~ # equery list openjdk-bin * Searching for openjdk-bin ... [IP-] [ ] dev-java/openjdk-bin-11.0.13_p8-r1:11 [IP-] [ ] dev-java/openjdk-bin-17.0.1_p12-r1:17
that's fine that it's not detected. just try emerging source 17 version now it should build fine now. gentoo-vm use flag determines if it should or should not show up in eselect java-vm output. and that's intentional that it's not there, because it will break emerging java packages. you can still use it directly from /usr/lib64/openjdk-17/bin/java or from /opt/openjdk-bin-17/bin/java once work on packages is done it will be enabled to show up in eselect too. also you can unmask gentoo-vm flag for it, but I do not recommend it and it will break installing some java packages. closing, lmk if you still need help.
(In reply to Georgy Yakovlev from comment #4) > that's fine that it's not detected. > just try emerging source 17 version now it should build fine now. > > gentoo-vm use flag determines if it should or should not show up in eselect > java-vm output. > > and that's intentional that it's not there, because it will break emerging > java packages. > > you can still use it directly from /usr/lib64/openjdk-17/bin/java or from > /opt/openjdk-bin-17/bin/java > > once work on packages is done it will be enabled to show up in eselect too. > > also you can unmask gentoo-vm flag for it, but I do not recommend it and it > will break installing some java packages. > > closing, lmk if you still need help. if i emerge openjdk the result is same configure: Found potential Boot JDK using configure arguments configure: Potential Boot JDK found at /etc/java-config-2/current-system-vm is incorrect JDK version (openjdk version "11.0.14" 2022-01-18 OpenJDK Runtime Environment 11.0.14_p9 (build 11.0.14+9) OpenJDK 64-Bit Server VM 11.0.14_p9 (build 11.0.14+9, mixed mode, sharing)); ignoring configure: (Your Boot JDK version must be one of: 16 17) configure: error: The path given by --with-boot-jdk does not contain a valid Boot JDK configure exiting with result code 1
i have reenabled gentoo-vm use flag and set openjdk-bin-17 as system-vm and now build correctly
strange, it should build without gentoo-vm set can I ask you to reproduce problem and upload /var/tmp/portage/dev-java/openjdk-17.0.2_p8/temp/eclass-debug.log /var/tmp/portage/dev-java/openjdk-17.0.2_p8/temp/environment ^ those 2 files? I can't reproduce on my side for some reason.
actually reproduced, looking no need for logs
Created attachment 762880 [details] environment
Created attachment 762881 [details] eclass-debug
this time i have removed any jdk except openjdk-bin-17 emerged without gentoo-vm use flag
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=66e6e94d2da2ebb0b239a67895cc58f05a475d21 commit 66e6e94d2da2ebb0b239a67895cc58f05a475d21 Author: Georgy Yakovlev <gyakovlev@gentoo.org> AuthorDate: 2022-01-20 19:13:52 +0000 Commit: Georgy Yakovlev <gyakovlev@gentoo.org> CommitDate: 2022-01-20 19:14:48 +0000 dev-java/openjdk: fix bootstrap logic err in 17 commit 5e22bb7a45589eb71e5f428c83ec1d0788b7c000 broke it. should have been applied only for 11 Closes: https://bugs.gentoo.org/831574 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org> dev-java/openjdk/openjdk-17.0.2_p8.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
yeah found problem. it would only occur with openjdk-bin-17 without gentoo-vm flag. fixed now. thanks for reporting.