[fpc-devel] Problems with building x86_64 on darwin

Andrew Brunner atbrunner at aurawin.com
Mon Nov 25 21:28:35 CET 2013


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

which fpc shows...
/usr/local/bin/fpc

contents of /usr/local/bin/ include...
lrwxr-xr-x  1 root           wheel       31 Nov 25 14:06 fpc -> 
/usr/local/lib/fpc/2.6.2/ppcx64
lrwxr-xr-x  1 root           wheel       31 Nov 25 08:28 pp386 -> 
/usr/local/lib/fpc/2.6.2/ppc386
lrwxr-xr-x  1 root           wheel       31 Nov 25 14:06 ppc386 -> 
/usr/local/lib/fpc/2.6.2/ppc386
lrwxr-xr-x  1 root           wheel       31 Nov 25 14:06 ppcx64 -> 
/usr/local/lib/fpc/2.6.2/ppcx64

The line in my install script that creates the fpc.cfg
sudo /usr/local/lib/fpc/2.6.2/samplecfg /usr/local/lib/fpc/2.6.2 /etc

The /etc/fpc.cfg looks good with the exception of a missing lib folder
-Fl/usr/local/lib/fpc/$fpcversion/lib/$FPCTARGET

There is no /usr/local/lib/fpc/2.6.2/lib folder

--------- 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]

------------Lazarus Build Problems------------
Trying to build my svn/lazarus/trunk verison

Much compiles but linking fails towards the end with error:

Compiling resource ../units/x86_64-darwin/nogui/lazbuild.or
Linking ../lazbuild
Undefined symbols for architecture x86_64:
   "_LSOpenCFURLRef", referenced from:
       _LCLINTF_OPENURL$ANSISTRING$$BOOLEAN in lclintf.o
ld: symbol(s) not found for architecture x86_64
An error occurred while linking
lazbuild.lpr(1629) Error: Error while linking
lazbuild.lpr(1629) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
make[2]: *** [lazbuild] Error 1
make[1]: *** [lazbuilder] Error 2
make: *** [lazbuild] Error 2


Any thoughts would be greatly appreciated.




More information about the fpc-devel mailing list