On 11/25/13, 2:56 PM, Jonas Maebe wrote:
On 25 Nov 2013, at 21:28, Andrew Brunner wrote:

I've got darwin Mac OS 10.9 running fpc 2.6.2 installed and compiling from the 
downloads section of the site.
I'm trying with no success to get 2.7.1 to compile ppcx64 with /usr/local/bin/fpc 
->/usr/local/lib/fpc/2.6.2/ppcx64
First of all, reinstall FPC so that /usr/local/bin/fpc is valid again. "fpc" is 
an independent program and can never be a symbolic link to a compiler binary. It supports 
parameters that the compiler binaries do not support. You cannot overwrite it with a 
symbolic link.

I re-installed and it replaced the symlink with the fpc binary. I retried to build FPC with no luck. Same error as before.



--------- FPC BUILD PROBLEMS------------
Trying to build my svn/fpc/trunk version

make all OPT="-O-" DEBUG=1 OS_TARGET=darwin CPU_TARGET=x86_64 
PP=/usr/local/lib/fpc/2.6.2/ppcx64

/usr/local/lib/fpc/2.6.2/ppcx64 -dNOMOUSE -Ur -dFPC_USE_LIBC -gl -Ur -Xs -O2 -n 
-Fi../inc -Fi../i386 -Fi../unix -Fi../bsd -Fi../bsd/i386 -Fi../darwin/i386 -FE. 
-FU/Developer/FPC/rtl/units/i386-darwin -O- -di386 -dDEBUG -dRELEASE -Us -Sg 
../bsd/system.pp
system.inc(171,4) Fatal: Can't open include file "x86_64.inc"
Fatal: Compilation aborted
make[5]: *** [system.ppu]

make all OPT="-O-" DEBUG=1 OS_TARGET=darwin CPU_TARGET=x86_64 
PP=/usr/local/lib/fpc/2.6.2/ppc386 works perfectly.  Why doesn't ppcx64 work at all?



------------Lazarus Build Problems------------
That's because ppcx64 on Mac OS X is an i386->x86-64 cross-compiler and the 
Makefiles are not designed for bootstrapping with cross-compilers. You can work 
around it by adding CPU_SOURCE=x86_64, but you can just as well build a new 
cross-compiler.
I just need something that works. It's a goal to have 64bit support for my downloads. I like to have a 64bit build of FPC like on Linux.

Lazarus cannot yet be compiled for x86-64 on Mac OS X (except if you compile it for GTK or Qt, possibly). Unless you are editing files that are larger than 1.5GB, it's unlikely you'd notice any difference either.

Ok.  At least I know it's not supported yet.
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to