Thursday, July 27, 2023

jdk fails to build (gmkdir)

Hi.

It seems gmkdir is picked up if present at configure time.
If junked then the build fails with:

Copying jdk/lib/server/libjvm.so
/usr/local/bin/bash: line 1: /usr/local/bin/gmkdir: No such file or directory
/bin/cp -fP '/exopi-obj/pobj/jdk-11.0.19.7.1/jdk11u-jdk-11.0.19-7-1/build/bsd-x86_64-normal-server-release/support/modules_libs/java.base/server/libjvm.so' '/exopi-obj/pobj/jdk-11.0.19.7.1/jdk11u-jdk-11.0.19-7-1/build/bsd-x86_64-normal-se
rver-release/jdk/lib/server/libjvm.so'
Creating symlink jdk/lib/server/libjvm.debuginfo
cp: /exopi-obj/pobj/jdk-11.0.19.7.1/jdk11u-jdk-11.0.19-7-1/build/bsd-x86_64-normal-server-release/jdk/lib/server/libjvm.so: No such file or directory
/usr/local/bin/bash: line 1: /usr/local/bin/gmkdir: No such file or directory
gmake[3]: *** [CopyToExplodedJdk.gmk:43: /exopi-obj/pobj/jdk-11.0.19.7.1/jdk11u-jdk-11.0.19-7-1/build/bsd-x86_64-normal-server-release/jdk/lib/server/libjvm.so] Error 1
gmake[3]: Leaving directory '/exopi-obj/pobj/jdk-11.0.19.7.1/jdk11u-jdk-11.0.19-7-1/make/hotspot'
gmake[2]: *** [make/Main.gmk:272: hotspot-server-libs] Error 2
gmake[2]: Leaving directory '/exopi-obj/pobj/jdk-11.0.19.7.1/jdk11u-jdk-11.0.19-7-1'

ERROR: Build failed for target 'images' in configuration 'bsd-x86_64-normal-server-release' (exit code 2)
gmake[2]: Entering directory '/exopi-obj/pobj/jdk-11.0.19.7.1/jdk11u-jdk-11.0.19-7-1'
[ -f /exopi-obj/pobj/jdk-11.0.19.7.1/jdk11u-jdk-11.0.19-7-1/build/bsd-x86_64-normal-server-release/make-support/javacservers/server.port ] && echo Stopping sjavac server && /usr/bin/touch /exopi-obj/pobj/jdk-11.0.19.7.1/jdk11u-jdk-11.0.19
-7-1/build/bsd-x86_64-normal-server-release/make-support/javacservers/server.port.stop; true
/bin/date '+%Y %m %d %H %M %S' | /usr/bin/awk '{ print $1,$2,$3,$4,$5,$6,($4*3600+$5*60+$6) }' > /exopi-obj/pobj/jdk-11.0.19.7.1/jdk11u-jdk-11.0.19-7-1/build/bsd-x86_64-normal-server-release/make-support/build-times/build_time_end_TOTAL
/bin/date '+%Y-%m-%d %H:%M:%S' > /exopi-obj/pobj/jdk-11.0.19.7.1/jdk11u-jdk-11.0.19-7-1/build/bsd-x86_64-normal-server-release/make-support/build-times/build_time_end_TOTAL_human_readable
echo `/bin/cat /exopi-obj/pobj/jdk-11.0.19.7.1/jdk11u-jdk-11.0.19-7-1/build/bsd-x86_64-normal-server-release/make-support/build-times/build_time_start_TOTAL` `/bin/cat /exopi-obj/pobj/jdk-11.0.19.7.1/jdk11u-jdk-11.0.19-7-1/build/bsd-x86_6
4-normal-server-release/make-support/build-times/build_time_end_TOTAL` TOTAL | /usr/bin/awk '{ F=$7; T=$14; if (F > T) { T+=3600*24 }; D=T-F; H=int(D/3600); M=int((D-H*3600)/60); S=D-H*3600-M*60; printf("%02d:%02d:%02d %s\n",H,M,S,$15); }
' > /exopi-obj/pobj/jdk-11.0.19.7.1/jdk11u-jdk-11.0.19-7-1/build/bsd-x86_64-normal-server-release/make-support/build-times/build_time_diff_TOTAL
printf -- "----- Build times -------\nStart %s\nEnd %s\n%s\n%s\n-------------------------\n" "`/bin/cat /exopi-obj/pobj/jdk-11.0.19.7.1/jdk11u-jdk-11.0.19-7-1/build/bsd-x86_64-normal-server-release/make-support/build-times/build_time_s
tart_TOTAL_human_readable`" "`/bin/cat /exopi-obj/pobj/jdk-11.0.19.7.1/jdk11u-jdk-11.0.19-7-1/build/bsd-x86_64-normal-server-release/make-support/build-times/build_time_end_TOTAL_human_readable`" "`/bin/ls /exopi-obj/pobj/jdk-11.0.19.7.1/
jdk11u-jdk-11.0.19-7-1/build/bsd-x86_64-normal-server-release/make-support/build-times/build_time_diff_* | /usr/bin/grep -v _TOTAL | /usr/bin/xargs /bin/cat | /usr/bin/sort -k 2`" "`/bin/cat /exopi-obj/pobj/jdk-11.0.19.7.1/jdk11u-jdk-11.0
.19-7-1/build/bsd-x86_64-normal-server-release/make-support/build-times/build_time_diff_TOTAL`" > >(/usr/bin/tee -a /exopi-obj/pobj/jdk-11.0.19.7.1/jdk11u-jdk-11.0.19-7-1/build/bsd-x86_64-normal-server-release/build.log) 2> >(/usr/bin/tee
-a /exopi-obj/pobj/jdk-11.0.19.7.1/jdk11u-jdk-11.0.19-7-1/build/bsd-x86_64-normal-server-release/build.log >&2) && wait
----- Build times -------
Start 2023-07-27 11:13:45
End 2023-07-27 11:21:38

00:07:54 TOTAL
-------------------------
if /usr/bin/grep -q "recipe for target .* failed" /exopi-obj/pobj/jdk-11.0.19.7.1/jdk11u-jdk-11.0.19-7-1/build/bsd-x86_64-normal-server-release/build.log 2> /dev/null; then printf "\n=== Make failed targets repeated here ===\n" ; /usr/bin
/grep "recipe for target .* failed" /exopi-obj/pobj/jdk-11.0.19.7.1/jdk11u-jdk-11.0.19-7-1/build/bsd-x86_64-normal-server-release/build.log ; printf "=== End of repeated output ===\n" ; printf "\nHint: Try searching the build log for the
name of the first failed target.\n" ; else printf "\nNo indication of failed target found.\n" ; printf "Hint: Try searching the build log for '] Error'.\n" ; fi

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

gmake[2]: Leaving directory '/exopi-obj/pobj/jdk-11.0.19.7.1/jdk11u-jdk-11.0.19-7-1'
gmake[1]: *** [/exopi-obj/pobj/jdk-11.0.19.7.1/jdk11u-jdk-11.0.19-7-1/make/Init.gmk:308: main] Error 2
gmake[1]: Leaving directory '/exopi-obj/pobj/jdk-11.0.19.7.1/jdk11u-jdk-11.0.19-7-1'
gmake: *** [/exopi-obj/pobj/jdk-11.0.19.7.1/jdk11u-jdk-11.0.19-7-1/make/Init.gmk:186: images] Error 2
*** Error 2 in devel/jdk/11 (/exopi-cvs/ports/infrastructure/mk/bsd.port.mk:2973 '/exopi-obj/pobj/jdk-11.0.19.7.1/.build_done': @cd /exopi-o...)



--
Antoine

No comments:

Post a Comment