[fpc-devel] minor issue building fpc

Martin lazarus at mfriebe.de
Sat Apr 21 14:47:10 CEST 2012


Not sure if that is a known issue. Or considered an issue at all.

But on windows, if you specify the INSTALL_PREFIX with a trailing "\" 
(which afaik is a normal way to specify a directory), install will fail.
    make.exe install  INSTALL_PREFIX=c:\FPC\tag_2_6_0\    
FPC=C:\fpc\SVN\tag_2_6_0\compiler\ppcx64.exe

The problem is, that in the resulting command-line 
"--prefix=c:\FPC\tag_2_6_0\ " the "\" escapes the following space.
All other path separators are given as "/" (forward slash)

make.exe[4]: Leaving directory `C:/fpc/SVN/tag_2_6_0/packages/winunits-jedi'
make.exe -C fcl-web distinstall
make.exe[4]: Entering directory `C:/fpc/SVN/tag_2_6_0/packages/fcl-web'
C:/fpc/SVN/tag_2_6_0/compiler/ppcx64.exe fpmake.pp -n 
-FuC:/fpc/SVN/tag_2_6_0/rtl/units/x86_64-win64 
-FuC:/fpc/SVN/tag_2_6_0/packages/hash/units/x86_64-win64 
-FuC:/fpc/SVN/tag_2_6_0/packages/paszlib/units/x86_64-win64 
-FuC:/fpc/SVN/tag_2_6_0/packages/fcl-process/units/x86_64-win64 
-FuC:/fpc/SVN/tag_2_6_0/packages/fpmkunit/units/x86_64-win64
.\fpmake.exe install --localunitdir=../.. --globalunitdir=.. --os=win64 
--cpu=x86_64 -o -Ur -o -Xs -o -O2 -o -n -o 
-FuC:/fpc/SVN/tag_2_6_0/rtl/units/x86_64-win64 -o 
-FuC:/fpc/SVN/tag_2_6_0/packages/hash/units/x86_64-win64 -o 
-FuC:/fpc/SVN/tag_2_6_0/packages/paszlib/units/x86_64-win64 -o 
-FuC:/fpc/SVN/tag_2_6_0/packages/fcl-process/units/x86_64-win64 -o 
-FuC:/fpc/SVN/tag_2_6_0/packages/fpmkunit/units/x86_64-win64 -o -FE. -o 
-FUunits/x86_64-win64 -o -dx86_64 -o -dRELEASE 
--compiler=C:/fpc/SVN/tag_2_6_0/compiler/ppcx64.exe 
--prefix=c:\FPC\tag_2_6_0\ 
--unitinstalldir=c:\FPC\tag_2_6_0\/units/x86_64-win64/fcl-web
The installer encountered the following error:
Failed to create directory "c:\FPC\tag_2_6_0 
--unitinstalldir=c:\FPC\tag_2_6_0\\units\x86_64-win64\fcl-web\units\x86_64-win64\fcl-web\"
make.exe[4]: *** [install] Error 1
make.exe[4]: Leaving directory `C:/fpc/SVN/tag_2_6_0/packages/fcl-web'



More information about the fpc-devel mailing list