Configure fails to create fixpath.exe when running in WSL

Ludovic HOCHET lhochet at gmail.com
Sat May 2 21:19:34 UTC 2020


Running configure in an Ubuntu on WSL1 on Windows 2004
(10.0.19041.208), it fails to create fixpath.exe in its expected
location.
After some search it seems that wslpath -m
/mnt/e/jdk/build/windows-x86_64-server-release/configure-support/bin/fixpath.exe
fails since the path does not exist (wslpath:
/mnt/e/jdk/build/windows-x86_64-server-release/configure-support/bin/fixpath.exe:
No such file or directory).

A workaround is to:
diff --git a/make/autoconf/basic_windows.m4 b/make/autoconf/basic_windows.m4
index 11fb231d825..f87c5344c45 100644
--- a/make/autoconf/basic_windows.m4
+++ b/make/autoconf/basic_windows.m4
@@ -143,7 +143,8 @@ AC_DEFUN_ONCE([BASIC_COMPILE_FIXPATH],
     $RM -rf $FIXPATH_BIN $FIXPATH_DIR
     $MKDIR -p $FIXPATH_DIR $CONFIGURESUPPORT_OUTPUTDIR/bin
     cd $FIXPATH_DIR
-    $CC $FIXPATH_SRC_W -Fe$FIXPATH_BIN_W > $FIXPATH_DIR/fixpath1.log 2>&1
+    $CC $FIXPATH_SRC_W  > $FIXPATH_DIR/fixpath1.log 2>&1
+    mv fixpath.exe $FIXPATH_BIN
     cd $CONFIGURE_START_DIR

     if test ! -x $FIXPATH_BIN; then



-- 
Ludovic
-----------------------------------------

"Les formes qui differencient les etres importent peu
 si leur pensees s'unissent pour batir un univers..."
 Yoko Tsuno (in 'Les titans' by Roger Leloup)
 [The shapes that differenciate beings are not important
 if their thoughts unite to build a universe]



More information about the build-dev mailing list