On 15/02/19 22:16, Ryan Joseph wrote:
Resending this because I sent to wrong list and it seems stalled anyways.
Checked out revision 41319 today and got this error. Did I do something wrong
or is it bug?
/usr/local/lib/fpc/3.0.4/ppc386 -Ur -dFPC_USE_LIBC -Ur -Xs -O2 -n -Fi../inc
-Fi../x86_64 -Fi../unix -Fi../bsd -Fi../bsd/x86_64 -Fi../darwin/x86_64 -FE.
-FU/Developer/ObjectivePascal/fpc/rtl/units/x86_64-darwin -ap -dx86_64
-dRELEASE -Us -Sg ../bsd/system.pp
system.inc(154,4) Fatal: Cannot open include file "i386.inc"
Fatal: Compilation aborted
make[5]: *** [system.ppu] Error 1
make[4]: *** [darwin_all] Error 2
make[3]: *** [rtl] Error 2
make[2]: *** [cycle] Error 2
make[1]: *** [compiler_cycle] Error 2
make: *** [build-stamp.i386-darwin] Error 2
Makefile:135: *** Compiler /Developer/ObjectivePascal/fpc/compiler/ppc386 not
found. Stop.
/Developer/Scripts/ppc386.command: line 11: ./compiler/ppc386: No such file or
directory
/Developer/Scripts/ppc386.command: line 12: /usr/local/lib/fpc//ppc386: No such
file or directory
Add CPU_SOURCE=i386 to your make command line to solve this.
Long version:
* the FPC makefiles don't support bootstrapping with a cross-compiler,
unless you add CPU_SOURCE=<target-cpu> to the make command line
* FPC 3.0.4 is the first macOS release in which the compiler binaries
are all fat 32/64 bit (as opposed to 32 bit in previous releases)
* since you are on a 64 bit Intel system, you are running the 64 bit
version of ppc386, which is a cross-compiler
Jonas
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal