fpcmake does not look for the right compiler executable name
Original Reporter info from Mantis: mazen
-
Reporter name: Abou Al Montacir
Original Reporter info from Mantis: mazen
- Reporter name: Abou Al Montacir
Description:
FPC build system produces for x86_64 architecture a compiler named ppcx64.
The utility fpcmake however looks for a program named ppcx86_64 which leads to failure when setting default value of FPCDIR variable.
Steps to reproduce:
Loop at lines 1216, 1218, 1228, 1230 of https://svn.freepascal.org/cgi-bin/viewvc.cgi/branches/fixes_3_0/utils/fpcm/fpcmmain.pp?view=markup and you will see that code is lookin gofr '&LtPos;somepath>/ppc' + ppcSuffix[cpu] where ppcSuffix is defined 92 of the same file and holds 'x86_64' instead of 'x64' for the c_x86_64 entry.
Additional information:
Changing line 92 to use 'x64' instead of 'x86_64' seems solving the problem. Also this seems coherent with c_i386 architecture where the ppcSuffix holds '386' instead of 'i386'