Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2012-04

minor issue building fpc

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Martin

Not sure if that is a known issue. Or considered an 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'

Reply by email

Jonas Maebe
to Martin
Martin wrote
Not sure if that is a known issue. Or considered an is known. But on windows, if you specify the INSTALL_PREFIX with a trailing "\" (which afaik is a normal way to specify a directory),

I'm not aware of any standard for specifying directory names on command lines that suggests either including or not including a trailing directory separator.

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.

The reason that \ escapes the next character is because of make's Unix heritage. The above --prefix parameter is just a symptom, the actual escaping problem already occurs when make interprets the command line you specified.

In summary: never add a terminating backslash to make parameters.

Jonas

Reply by email

Hans-Peter Diettrich
to Jonas Maebe
Show quoted text 6 lines
> But on windows, if you specify the INSTALL_PREFIX with a trailing > "\" (which afaik is a normal way to specify a directory), I'm not aware of any standard for specifying directory names on command lines that suggests either including or not including a trailing directory separator.

Standard directory operations expect *no* trailing directory separator. In other places, where both file or directory names are accepted, a trailing delimiter could help to distinguish between both, but is not normally required.

DoDi

Reply by email