[fpc-pascal] Trying to update to: Xcode 12.5, FPC 3.2.2

conlin664 at yahoo.com conlin664 at yahoo.com
Mon Jul 19 18:10:28 CEST 2021


 Okay, I'm still trying to get past one issue.When trying to compile for iphonesim I get errors:

sudo /usr/local/lib/fpc/3.0.5/ppcx64      -Tiphonesim  -dIPHONEALL iPhoneAll.pas


Free Pascal Compiler version 3.0.5 [2017/11/26] for x86_64
Copyright (c) 1993-2015 by Florian Klaempfl and others
Target OS: Darwin/iPhoneSim for x86_64
Compiling iPhoneAll.pas
Assembling (pipe) iPhoneAll.s

clang: warning: using sysroot for 'MacOSX' but targeting 'iPhone' [-Wincompatible-sysroot]
297901 lines compiled, 1.2 sec

>From using XCODE on cpp code, I believe the problem is that when invoking clangI need to be passing:
-target x86_64-apple-ios9.3-simulator 
-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk 


But I'm not sure how fpc invokes clangor how to change any options/flags in the clang call..
can you point me in the right direction  ?
like where is -T iphonesim processed ? 

thanks
john





    On Wednesday, June 16, 2021, 10:43:33 AM PDT, conlin664 via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:  
 
  Jonas,
thanks but I'm still a little stuck.I only do this kind of thing once every 5 years or so..
sudo make FPC=/usr/local/lib/fpc/3.0.4/ppcx64 OPT="-ap -FD${IOS_BASE_BIN} -XR${IOS_BASE}" CPU_TARGET=x86_64 OS_TARGET=iphonesim CROSSOPT="-FD${IOS_BASE_BIN} -XR${IOS_BASE}" all 

it seems that crt1.10.5.o  is no longer in /usr/lib for the iphone sdk
when I tried to use a MacOs version, I get more conflicts..

has anyone been using fpc with the latest xcode 12.5 and Big Sur  11.4 ?

/usr/local/lib/fpc/3.0.4/ppcx64 -Ur -Xs -O2 -n -Fux86_64 -Fusystems -Fu/Users/john/Desktop/Developer/FPC/3.2.2/rtl/units/x86_64-darwin -Fix86_64 -FE. -FUx86_64/units/x86_64-darwin -dRELEASE -ap -FD/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/bin -XR/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk   -dx86_64 -dGDB -dBROWSERLOG -Fux86 pp.pas
ld: file not found: /usr/lib/crt1.10.5.o
An error occurred while linking 
pp.pas(252,36) Error: Error while linking
pp.pas(252,36) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
make[3]: *** [ppc] Error 1
make[2]: *** [cycle] Error 2
make[1]: *** [compiler_cycle] Error 2
make: *** [build-stamp.x86_64-iphonesim] Error 2










    On Wednesday, June 9, 2021, 11:50:08 AM PDT, Jonas Maebe via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:  
 
 On 09/06/2021 01:15, conlin664 via fpc-pascal wrote:
> So, I figured I'd jump to 3.2.2

Sorry, I didn't get around yet to building and uploading the iOS
cross-compiler and units for 3.2.2

As your build problem, don't start with that 3.0.5 compiler, but with
plain 3.0.4 or 3.2.2 ppcx64 (or add CPU_SOURCE=x86-64 to hack around the
issue)


Jonas
_______________________________________________
fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
  _______________________________________________
fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20210719/21e7ab1f/attachment.htm>


More information about the fpc-pascal mailing list