error extraction form build log (in case of bash: Permission denied error on Windows)

Baesken, Matthias matthias.baesken at sap.com
Fri Sep 8 11:19:32 UTC 2023


Hello,
A Windows build failed because of some temporary  "Permission denied" issue we see sometimes on Windows.

Unfortunately at the end of the log not much info is found, the error is not reported there .

.....
if /usr/bin/grep -q "recipe for target .* failed"  .......

No indication of failed target found.
HELP: Try searching the build log for '] Error'.
printf "HELP: Run 'make doctor' to diagnose build problems.\n\n"
HELP: Run 'make doctor' to diagnose build problems.


After a lot of scrolling  through the endless build log, I found in the middle of the build.log:

make[3]: /usr/bin/bash: Permission denied
make[3]: *** [Lib.gmk:62: /cygdrive/C/Windows_x64/jdk-build-fastdebug/support/native/jdk.jpackage/jpackageapplauncher/MsiDb.obj] Error 127
make[3]: *** Waiting for unfinished jobs....

which probably caused the error.
Could we maybe add a grep for  "bash: Permission denied" or for the recommended    "] Error "    at the end of the build log ?
At least the grep/search for  "] Error "  finds the issue pretty fast and looks like a good error reporting addition in this case.


Best regards, Matthias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/build-dev/attachments/20230908/9ffa4b85/attachment.htm>


More information about the build-dev mailing list