Windows build failure in JDK8 with --disable-zip-debug-info

Magnus Ihse Bursie magnus.ihse.bursie at oracle.com
Wed Nov 5 12:25:34 UTC 2014


On 2014-11-05 12:21, David Holmes wrote:
> If I set
>
>  --disable-zip-debug-info
>
> in JDK8u and do a windows build it fails with:
>
> make[2]: *** No rule to make target 
> `/cygdrive/c/jprt/T/P1/031627.daholme/s/build/windows-x86-normal-clientANDserver-release/jdk/bin/verify.map', 
> needed by `all'.  Stop.
>
> This doesn't happen in JDK 9.
>
> Any suggestions?

The map files are special since they are produced as a side-effect of 
the compilation. The makefiles in jdk8 (this piece of code has been 
modified serveral times in jdk9) does not have a rule ??? -> ?.map, 
instead the rule is ??? -> ?.dll, and the map file gets produced at the 
same time, without make knowning about it.

I'm not sure why something started to depend on the .map file, but you 
could probably add a rule from *.map to *.dll in 
make/common/NativeCompilation.gmk. Something like this pseudo code:
if os==windows
   $$($1_OUTPUT_DIR)/$$($1_LIBRARY).map 
$$($1_OUTPUT_DIR)/$$($1_LIBRARY).pdb: $$($1_TARGET)
endif

I even have a vague memory of a fix along these lines in jdk9. If that's 
correct, it's probably due for backporting. I'll see if I can locate it.

/Magnus



More information about the build-dev mailing list