Forum > macOS / Mac OS X

FPC 3.0.4 on OSX 10.5.8 PPC does not build ppcppc64 (?)

(1/3) > >>

effed3s:
Hello
   i build fpc-3.0.4 using fpc-3.0.2 on osx-10.5.8 on a powermac G5 (in the long time effort to keep alive the big alu tower)
fpc 3.0.2 is 32 and 64 bit version (build form source),  but 3.0.4 only the ppcppc was builded.
simply stated: why? someone could explain how make process work for fpc? comparing makefiles form 3.0.2 and 3.0.4 does not reveal amy substantial differences.
tnks
Greetings

jwdietrich:
Did you try to use https://sourceforge.net/projects/freepascal/files/Mac%20OS%20X/3.0.4/fpc-3.0.4.intel-macosx.cross.powerpc-macosx.dmg?

Jonas Maebe:
The reason you only get a 32 bit PowerPC compiler is that when building FPC, by default you will always build a version for the same host architecture and host operating system as the starting compiler. The default compiler on Mac OS X/ppc is always the 32 bit ppcppc compiler.

To build a PowerPC 64 bit cross-compiler, add CPU_TARGET=powerpc64 to your make command. To build a PowerPC 64 bit native compiler (which is rather useless, because it will use more memory and be slower than a PowerPC 32 -> 64 bit cross-compiler), add FPC=ppcppc64 CPU_SOURCE=powerpc64 to your make command (the CPU_SOURCE is needed because the ppcppc64 is a cross-compiler, and the makefiles do not select appropriate defaults in that case).

effed3s:
thanks for reply
@jwdietrich
 i will try cross compiling on intel mac, when i can setup all the things correctly.

@Jonas Maebe
ok, so ppcppc is the standard. Remain the (little)fact that fpc302 (and fpc264, fpc262) get compiled from source as 32 and 64 bit. Probably the make-files specify this, and not from 304. this is not a BIG problem, only i try to understand better the building stages.

Anyway testing fpc304 on 10.5.8 G5/DP/2ghz give this results:
utils/digest output/powerpc-darwin/log
Total = 6982 (20:6962)
Total number of compilations = 4289 (9:4280)
Successfully compiled = 3207
Successfully failed = 1073
Compilation failures = 6
Compilation that did not fail while they should = 3
Total number of runs = 2693 (11:2682)
Successful runs = 2682
Failed runs = 11
Number units compiled = 134
Number program that should not be run = 377
Number of skipped tests = 366
Number of skipped graph tests = 10
Number of skipped interactive tests = 31
Number of skipped known bug tests = 6
Number of skipped tests for other versions = 4
Number of skipped tests for other cpus = 229
Number of skipped tests for other targets = 86

Appear good to me.




Jonas Maebe:

--- Quote from: effed3s on May 07, 2018, 03:13:00 pm ---@Jonas Maebe
ok, so ppcppc is the standard. Remain the (little)fact that fpc302 (and fpc264, fpc262) get compiled from source as 32 and 64 bit. Probably the make-files specify this, and not from 304.

--- End quote ---
That is incorrect. The FPC top-level makefile's "make all" target has always only built the same architecture as that of the starting compiler, and the default starting compiler on Mac OS X/PowerPC as shipped by us has always been 32 bit PowerPC (it could become PowerPC64 if you overwrote/override the "fpc" binary with a PowerPC64 version that you compiled yourself, but in that case you would only get a 64 bit version after "make all").

Navigation

[0] Message Index

[#] Next page

Go to full version