[fpc-pascal] MacOSX Mojave

Jonas Maebe jonas at freepascal.org
Tue Oct 9 19:51:29 CEST 2018


On 08/10/18 23:19, Michael Ring wrote:
> I just realized on a freshly set up computer that there is one more 
> issue, I tried to build the trunk x86_64 compiler and compile fails:
> 
> /bin/mkdir -p x86_64/units/x86_64-darwin
> /Applications/Xcode.app/Contents/Developer/usr/bin/make ./msg2inc
> /usr/local/bin/ppcx64 -Ur -Xs -O2 -n -Fux86_64 -Fusystems 
> -Fu/Users/ring/devel/fpc/rtl/units/x86_64-darwin -Fix86_64 -FE. 
> -FUx86_64/units/x86_64-darwin -dRELEASE    -dx86_64 -dGDB -dBROWSERLOG 
> -Fux86 -Sew -FE. utils/msg2inc.pp
> ld: file not found: /usr/lib/crt1.10.5.o
> An error occurred while linking
> msg2inc.pp(822,51) Error: Error while linking
> msg2inc.pp(822,51) Fatal: There were 1 errors compiling module, stopping
> Fatal: Compilation aborted
> 
> 
> problem is that ppcx64 is called with option -n so fpc.cfg gets ignored.
> 
> 
> I guess the only way to fix this is to change the makefile itself.

As Colin mentioned, you can pass the necessary options to make via 
OPT="-option1 -option2"

> Also, one thing I do not understand in /etc/fpc.cfg installed by the 
> 3.0.4a installer, why if -Fl ifdef'ed for i386 only?
> 
> #ifdef cpui386
> -Fl/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib
> #endif

It's because the necessary files for x86-64 can be found in /usr/lib, 
where the compiler looks by default.


Jonas



More information about the fpc-pascal mailing list