On Nov 4 2013, at 21:39 , Francis ANDRE <francis.andre.kampb...@orange.fr> wrote:
> Hi > > Using a fresh copy of the jdk7u repository, and running make -d sanity, I got > the error below. Why OUTPUTDIR must be absolute or if it must be absolute, > why it is not when running make sanity? In general, using absolute paths always helps for this kind of configuration work. > It seems to me that OUTPUTDIR is computed in the jdk subdirectory makefiles > while it is not in the top level Makefile. Thus, the check that it must be > absolute in the included jdk/make/common/shared/Defs.gmk fails. The only way > I found to bypass this error is to set > ALT_OUTPUTDIR=Z:/JDK/hsx/jdk7u/build/windows-i586 It seems like passing an absolute OUTPUTDIR is the solution and I suspect it should be a /cydrive path not a native path. Be aware that it is not possible to build OpenJDK on Windows. There are components and build logic missing (FreeType among them) that would be necessary to build a working JDK. Unless you are working on adding the missing components, attempting to build OpenJDK on Windows is probably destined to be a fruitless endeavour. If you are interested in working on adding support for Windows to OpenJDK builds (as opposed to Oracle Java which does have Windows builds) then the jdk 8 project is probably a more worthwhile direction. Mike > Francis > > FrancisANDRE@idefix /cygdrive/Z/JDK/hsx/jdk7u > $ make -d sanity > GNU Make 3.82 > Built for i686-pc-cygwin > Copyright (C) 2010 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. > Reading makefiles... > Reading makefile `Makefile'... > Reading makefile `jdk/make/common/shared/Defs-control.gmk' (search path) (no > ~ expansion)... > Reading makefile `jdk/make/common/shared/Platform.gmk' (search path) (no ~ > expansion)... > Reading makefile `jdk/make/common/shared/Defs.gmk' (search path) (no ~ > expansion)... > Reading makefile `jdk/make/common/shared/Defs-utils.gmk' (search path) (no ~ > expansion)... > Reading makefile `jdk/make/common/shared/Defs-versions.gmk' (search path) (no > ~ expansion)... > Reading makefile `jdk/make/common/shared/Defs-windows.gmk' (search path) (no > ~ expansion)... > jdk/make/common/shared/Defs.gmk:563: *** "ERROR: Trouble with the absolute > path for OUTPUTDIR './bui > ld/windows-i586'". Stop. > > FrancisANDRE@idefix /cygdrive/Z/JDK/hsx/jdk7u > $ env | grep ALT > ALT_SLASH_JAVA=C:/Progra~1/Java/jdk1.7.0_45 > ALT_FREETYPE_HEADERS_PATH=Z:/JDK/freetype-2.4.7/include > ALT_JDK_IMPORT_PATH=C:/Progra~1/Java/jdk1.7.0_45 > ALT_FREETYPE_LIB_PATH=Z:/JDK/freetype-2.4.7/objs/win32/vc2010 > ALT_DXSDK_PATH=C:/PROGRA~1/MI7482~1 > ALT_BOOTDIR=C:/Progra~1/Java/jdk1.7.0_45