Came across this thread via Google: since I'm having similar issues, I thought I'd resurrect it rather than start a new near-identical discussion.
I've downloaded and installed Free Pascal for Windows from SourceForge (2.4.0). Having found this thread, I've also now downloaded the Free Pascal source files using the FTP link advertised.
I want to build a 64-bit cross-compiler for Windows (my development machine runs 32-bit Windows 2000, but I need to compile a 64-bit shell extension DLL).
On my machine, Free Pascal is installed in "c:\FPC" and the Free Pascal source files are installed in "c:\fpc-2.2.4".
This is what I've tried based upon what I've read in this thread (note: short paths because I'm using a Windows 98 virtual machine for this part - all I want is the 64-bit cross-compiler, I've got Lazarus installed in my Windows 2000 PC):
1) Open a command prompt, and add the path to the FPC bin directory
set path=%path%;c:\FPC\2.4.0\bin\i386-win32
2) Run make
make all install OS_TARGET=win64 CPU_TARGET=x86_64
Make returns the following output:
C:/FPC/24~1.0/BIN/I386-W~1/MAKE.EXE compiler_cycle RELEASE=1
MAKE.EXE[1]: Entering directory `C:/fpc-2.2.4'
C:/FPC/24~1.0/BIN/I386-W~1/MAKE.EXE -C compiler cycle
MAKE.EXE[2]: Entering directory `C:/fpc-2.2.4/compiler'
C:/FPC/24~1.0/BIN/I386-W~1/MAKE.EXE OS_TARGET=win32 CPU_TARGET=i386 CROSSBINDIR= BINUTILSPREFIX= CROSSCYCLEBOOTSTRAP=1 rtlclean rtl
MAKE.EXE[3]: Entering directory `C:/fpc-2.2.4/compiler'
C:/FPC/24~1.0/BIN/I386-W~1/MAKE.EXE -C clean
MAKE.EXE: *** clean: No such file or directory. Stop.
MAKE.EXE: Entering an unknown directoryMAKE.EXE: Leaving an unknown directoryMAKE.EXE[3]: *** [rtlclean] Error 2
MAKE.EXE[3]: Leaving directory `C:/fpc-2.2.4/compiler'
MAKE.EXE[2]: *** [cycle] Error 2
MAKE.EXE[2]: Leaving directory `C:/fpc-2.2.4/compiler'
MAKE.EXE[1]: *** [compiler_cycle] Error 2
MAKE.EXE[1]: Leaving directory `C:/fpc-2.2.4'
C:\FPC\24~1.0\BIN\I386-W~1\MAKE.EXE: *** [build-stamp.x86_64-win64] Error 2
I've no idea how to progress from here. I've never used make before, I don't know what 'clean' refers to or why it can't be found. I don't know what it's trying to enter a directory called "make.exe".
I'd be very grateful if someone could give me some pointers. Alternatively, are there ready-made binary versions of cross compilers anywhere? Many thanks in advance.