Experience report
Anthony Vanelverdinghe
dev at anthonyv.be
Wed Aug 10 18:25:00 UTC 2022
While setting up the build environment (using WSL 1 (running Debian 11)
on Windows 11), I encountered the following hiccups:
In `BOOTJDK_CHECK_JAVA_IN_PATH_IS_SYMLINK`, the following tests failed
and the boot JDK wasn't detected:
if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then
Appending `.exe` to the filenames fixed the detection.
The wrong VCVARSFILE was picked. In the latest Visual Studio 2022
release (17.3.0), all such files are in `vc/auxiliary/build`.
Changing `TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT` to check for
`vc/auxiliary/build/vcvars32.bat` and `vc/auxiliary/build/vcvars64.bat`
fixed this issue.
The use of nawk resulted in an error in
`make/hotspot/lib/JvmMapfile.gmk` on line 121:
nawk: line 1: regular expression compile failed (missing operand)
??_7.*@@6B@
gmake[3]: *** [lib/JvmMapfile.gmk:133:
/mnt/e/repositories/com.github/jdk/build/windows-x86_64-server-fastdebug/hotspot/variant-server/libjvm/symbols-objects]
Error 2
gmake[3]: *** Deleting file
'/mnt/e/repositories/com.github/jdk/build/windows-x86_64-server-fastdebug/hotspot/variant-server/libjvm/symbols-objects'
gmake[2]: *** [make/Main.gmk:252: hotspot-server-libs] Error 2
Installing gawk worked around this issue. (To get the regex to work with
nawk, I'd guess the first question mark should be escaped?)
Running `make` gave warnings as follows:
cl : Command line warning D9007 : '/pathmap:' requires
'/experimental:deterministic'; option ignored
Changing `make/autoconf/flags-cflags.m4` to change line 821 as follows
made the warnings go away:
PATHMAP_FLAGS="/experimental:deterministic
-pathmap:${WORKSPACE_ROOT}=s"
Should I file issues for these? Or would anyone with JBS access be so
kind to do so & share the bug IDs?
Kind regards
Anthony
More information about the build-dev
mailing list