[7u]: help on jdk/make/common/shared/Defs-windows.gmk

Francis ANDRE francis.andre.kampbell at orange.fr
Fri Nov 15 17:37:17 UTC 2013


Hi

I am trying to fix the following error

$ make sanity
jdk/make/common/shared/Defs.gmk:563: *** "ERROR: Trouble with the absolute path 
for OUTPUTDIR './bui
ld/windows-i586'".  Stop.

and found the following code in jdk/make/common/shared/Defs-windows.gmk, line 109

define FullPath
$(if $(word 2,$1),$(shell $(CYGPATH_CMD) $1 2> $(DEV_NULL)),$(call 
MixedPath,$(realpath $(subst ",,$1))))
endef

Can someone explain me what use case is covered by the $(word 2,$1) in the 
previous statement?

The error "ERROR: Trouble with the absolute path for OUTPUTDIR" can be fixed by 
replacing $(word 2,$1) by $(word 1,$1) but I cannot find a usage for the $(word 
2,$1)

Francis



More information about the build-dev mailing list