[fpc-pascal] OSX x86_64 make problem

Anthony Walter sysrpl at gmail.com
Fri Jan 16 22:08:42 CET 2015

Hello free pascal compiler developers,

Problem: On OSX the x86_64-darwin compiler "ppcx64" is not being built.

Background: I am in the process of writing a series of installers/scripts
for Free Pascal 3.0 and Lazarus 1.4 testing. I'm currently writing a
unified OSX install script which automates installing up these items on a
fresh copy of OSX.

Details: The problem I am having is that even on a 64bit Mac, the "make
all" command builds i386-darwin. When I try to "make crossinstall
OS_TARGET=darwin CPU_TARGET=x86_64
INSTALL_PREFIX=/Users/macuser/Development/Base/fpc" the make command
returns success, but no ppcx64 is ever created.

When I write a simple test program such as below and compile with "fpc
hello.pas", the output is 'SizeOf(Pointer) = 4'

program hello;
  WriteLn('SizeOf(Pointer) = ', SizeOf(Pointer));

When I compile with 'fpc -Px86_64 hello.pas' i get the error:

Fatal: Compilation aborted
Error: /usr/local/bin/ppcx64 returned an error exitcode
macuser at macpc~/Development/Base/test$ /bin/sh: x86_64-darwin-as: command
not found

Which tells fpc fell back to the 2.6.4 complier instead of my new 3.0.1
compiler because it couldn't find ppcx64 in my
'/Users/macuser/Development/Base/fpc/bin' folder. In fact, no ppcx64 is
being generated at all.

Here is the out of my make crossinstall command:

And when I type "find /Users/macuser/Development/Base/fpc name=ppcx64", no
result is found.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20150116/276259ba/attachment.html>

More information about the fpc-pascal mailing list