[fpc-pascal] Trying to update to: Xcode 12.5, FPC 3.2.2
conlin664 at yahoo.com
conlin664 at yahoo.com
Wed Jun 9 01:15:18 CEST 2021
Guys,
I'm jumping up to the latest xcode 12.5to be able to develop on iOs 14.x
My trusty old FPC 3.0.5 worked just fine for iOs Target.
But the simulator is a different story...
Showing All Messages
ld: building for iOS/iOS Simulator, but linking in object file built for iOS Simulator,
file '/Users/john/Library/Developer/Xcode/DerivedData/NilnocCalc-afoipenxsapytphgpvzuywbyzbfb/Build/Intermediates.noindex/NilnocCalc.build/Debug-iphonesimulator/NilnocCalc.build/Objects-normal/x86_64/NilnocCalc.o'
-----
I feel like xcode is now enforcing a rule which was a warning before.
I then thought about regenerating my x86_64-iphonesim
but then didn't really want to rewind to pre 3.0.5
So, I figured I'd jump to 3.2.2
cd Users/john/Desktop/Developer/FPC/3.2.2
sudo make distclean -j 3
export IOS_BASE=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk
export BIN_BASE=${IOS_BASE}/usr/bin
sudo make FPC=/usr/local/lib/fpc/3.0.5/ppc386 OPT="-ap" CPU_TARGET=x86_64 OS_TARGET=iphonesim CROSSOPT="-FD${BIN_BASE} -XR${IOS_BASE}" all
But.. that led to ...
...
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C /Users/john/Desktop/Developer/FPC/3.2.2/rtl 'OPT=-ap ' all
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C darwin all
/usr/local/lib/fpc/3.0.5/ppc386 -Ur -dFPC_USE_LIBC -Ur -Xs -O2 -n -Fi../inc -Fi../x86_64 -Fi../unix -Fi../bsd -Fi../bsd/x86_64 -Fi../darwin/x86_64 -FE. -FU/Users/john/Desktop/Developer/FPC/3.2.2/rtl/units/x86_64-darwin -ap -dx86_64 -dRELEASE -Us -Sg ../bsd/system.pp
system.inc(154,4) Fatal: Cannot open include file "i386.inc"
Fatal: Compilation abortedmake[5]: *** [system.ppu] Error 1
make[4]: *** [darwin_all] Error 2
make[3]: *** [rtl] Error 2
make[2]: *** [cycle] Error 2
make[1]: *** [compiler_cycle] Error 2
make: *** [build-stamp.x86_64-iphonesim] Error 2
any ideas ?
thanks guys
john
-------------------
Note: This is on an Intel Mac
full dump on 3.0.5 targeting Sim :
/Users/john/Desktop/Project/NilnocCalc
...Compiling for SIM (x64)
/usr/local/lib/fpc/3.0.5/ppcx64 -Mdelphi -XX -djciOS -k-ios_simulator_version_min -k9.3 -Fu/Users/john/Desktop/Project/NilnocCalc/src -Fu/Users/john/Desktop/Project/NilnocCalc/src/* -Fu/Users/john/Desktop/Project/NilnocCalc/../Common/* -Fu/Users/john/Desktop/Project/NilnocCalc/../Common/iOs/* -Fu/Users/john/Desktop/Project/NilnocCalc/../Common/wolf/iOs/ -XR/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk -Fu/Users/john/Desktop/Project/NilnocCalc/../Common/wolf/iOs/Debug-iphonesimulator -CiroR -gltw -Sa -Xg -Fu~/Desktop/Developer/FPC/iOS10.3/x86_64-iphonesim -Tiphonesim -FU/Users/john/Library/Developer/Xcode/DerivedData/NilnocCalc-afoipenxsapytphgpvzuywbyzbfb/Build/Intermediates.noindex/NilnocCalc.build/Debug-iphonesimulator/NilnocCalc.build/Objects-normal/x86_64 -o/Users/john/Library/Developer/Xcode/DerivedData/NilnocCalc-afoipenxsapytphgpvzuywbyzbfb/Build/Intermediates.noindex/NilnocCalc.build/Debug-iphonesimulator/NilnocCalc.build/Objects-normal/x86_64/NilnocCalc /Users/john/Desktop/Project/NilnocCalc/NilnocCalc/NilnocCalc.pas
Free Pascal Compiler version 3.0.5 [2017/11/26] for x86_64Copyright (c) 1993-2015 by Florian Klaempfl and others
Target OS: Darwin/iPhoneSim for x86_64
Compiling /Users/john/Desktop/Project/NilnocCalc/NilnocCalc/NilnocCalc.pas
Assembling (pipe) /Users/john/Library/Developer/Xcode/DerivedData/NilnocCalc-afoipenxsapytphgpvzuywbyzbfb/Build/Intermediates.noindex/NilnocCalc.build/Debug-iphonesimulator/NilnocCalc.build/Objects-normal/x86_64/NilnocCalc.s
Linking /Users/john/Library/Developer/Xcode/DerivedData/NilnocCalc-afoipenxsapytphgpvzuywbyzbfb/Build/Intermediates.noindex/NilnocCalc.build/Debug-iphonesimulator/NilnocCalc.build/Objects-normal/x86_64/NilnocCalc
ld: building for iOS/iOS Simulator, but linking in object file built for iOS Simulator, file '/Users/john/Library/Developer/Xcode/DerivedData/NilnocCalc-afoipenxsapytphgpvzuywbyzbfb/Build/Intermediates.noindex/NilnocCalc.build/Debug-iphonesimulator/NilnocCalc.build/Objects-normal/x86_64/NilnocCalc.o'
An error occurred while linking NilnocCalc.pas(24,2) Error: Error while linking
NilnocCalc.pas(24,2) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20210608/5551f82b/attachment.htm>
More information about the fpc-pascal
mailing list