Opened 16 months ago

Last modified 15 months ago

#1307 new defect

invalid number of parameters in install target on Windows

Reported by: zmyrgel Owned by:
Priority: minor Milestone: someday
Component: build system Version: 4.11.0
Keywords: Cc:
Estimated difficulty: medium

Description

I tried to install chicken on windows following the instructions from https://wiki.call-cc.org/compiling-chicken-on-windows-xp-with-mingw but the install part failed with following:

1 File(s) copied
xcopy /Y .\feathers.1 "C:\chicken\share\man\man1"
.\feathers.1
1 File(s) copied
mkdir  "C:\chicken\share\chicken\doc\manual"
xcopy /Y .\manual-html\* "C:\chicken\share\chicken\doc\manual"
0 File(s) copied
xcopy /Y .\README "C:\chicken\share\chicken\doc"
.\README
1 File(s) copied
xcopy /Y .\LICENSE "C:\chicken\share\chicken\doc"
.\LICENSE
1 File(s) copied
xcopy /Y .\setup.defaults "C:\chicken\share\chicken"
.\setup.defaults
1 File(s) copied
xcopy /Y .\feathers.tcl "C:\chicken/share/chicken"
Invalid number of parameters
.\rules.make:415: recipe for target 'install-other-files' failed
mingw32-make: *** [install-other-files] Error 4

C:\Users\tmy\Downloads\chicken-4.11.0>

Seems DATADIR variable is using wrong separators so the xcopy mistakes path as command argument.
Replacing the path arguments separaters with backslashes made the install target complete succesfully.

Change History (2)

comment:1 Changed 16 months ago by zmyrgel

I tested the above with PREFIX using backslashes, heres the result with forward slashes:

C:chicken-profile.exe
1 File(s) copied
xcopy /Y csc.exe "c:\chicken\bin"
C:csc.exe
1 File(s) copied
xcopy /Y chicken-bug.exe "c:\chicken\bin"
C:chicken-bug.exe
1 File(s) copied
xcopy /Y chicken-status.exe "c:\chicken\bin"
C:chicken-status.exe
1 File(s) copied
xcopy /Y chicken-install.exe "c:\chicken\bin"
C:chicken-install.exe
1 File(s) copied
xcopy /Y chicken-uninstall.exe "c:\chicken\bin"
C:chicken-uninstall.exe
1 File(s) copied
xcopy /Y feathers.bat \
  "c:/chicken/bin"
Invalid number of parameters
.\rules.make:363: recipe for target 'install-bin' failed
mingw32-make: *** [install-bin] Error 4

C:\Users\tmy\Downloads\chicken-4.11.0>

comment:2 Changed 15 months ago by sjamaan

  • Estimated difficulty set to medium
Note: See TracTickets for help on using tickets.