* * *

Author Topic: FPC 3.0.4 on OSX 10.5.8 PPC does not build ppcppc64 (?)  (Read 867 times)

effed3s

  • Newbie
  • Posts: 3
FPC 3.0.4 on OSX 10.5.8 PPC does not build ppcppc64 (?)
« on: May 05, 2018, 03:43:31 pm »
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

  • Hero Member
  • *****
  • Posts: 968
    • formatio reticularis
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 1.8.4 | FPC 3.0.4 | PPC, Intel, ARM | macOS, Windows, Linux

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 571
Re: FPC 3.0.4 on OSX 10.5.8 PPC does not build ppcppc64 (?)
« Reply #2 on: May 06, 2018, 08:18:30 pm »
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

  • Newbie
  • Posts: 3
Re: FPC 3.0.4 on OSX 10.5.8 PPC does not build ppcppc64 (?)
« Reply #3 on: May 07, 2018, 03:13:00 pm »
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

  • Hero Member
  • *****
  • Posts: 571
Re: FPC 3.0.4 on OSX 10.5.8 PPC does not build ppcppc64 (?)
« Reply #4 on: May 20, 2018, 03:05:28 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.
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").

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus