<html><head></head><body><div class="ydpc4eb2f16yahoo-style-wrap" style="font-family: courier new, courier, monaco, monospace, sans-serif; font-size: 13px;"><div></div>
        <div dir="ltr" data-setdir="false">Okay, I'm still trying to get past one issue.</div><div dir="ltr" data-setdir="false">When trying to compile for iphonesim I get errors:</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><div>sudo /usr/local/lib/fpc/3.0.5/ppcx64      -Tiphonesim  -dIPHONEALL iPhoneAll.pas<br><div><br></div><div><br></div>Free Pascal Compiler version 3.0.5 [2017/11/26] for x86_64<br>Copyright (c) 1993-2015 by Florian Klaempfl and others<br>Target OS: Darwin/iPhoneSim for x86_64<br>Compiling iPhoneAll.pas<br>Assembling (pipe) iPhoneAll.s<br><div><br></div><div>clang: warning: using sysroot for 'MacOSX' but targeting 'iPhone' [-Wincompatible-sysroot]</div><div><br></div><div>297901 lines compiled, 1.2 sec</div><div><br></div><div><br></div><div dir="ltr" data-setdir="false">From using XCODE on cpp code, I believe the problem is that when invoking clang</div><div dir="ltr" data-setdir="false">I need to be passing:</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><div>-target x86_64-apple-ios9.3-simulator <br>-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk <br></div><div><br></div><div><br></div><div dir="ltr" data-setdir="false">But I'm not sure how fpc invokes clang</div><div dir="ltr" data-setdir="false">or how to change any options/flags in the clang call..</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">can you point me in the right direction  ?</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">like where is -T iphonesim processed ? <br></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">thanks</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">john</div><div dir="ltr" data-setdir="false"><br></div><div><br></div></div></div><div><br></div><div><br></div><div><br></div></div><div><br></div>
        
        </div><div id="ydp9cc8b2f0yahoo_quoted_6796085850" class="ydp9cc8b2f0yahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    On Wednesday, June 16, 2021, 10:43:33 AM PDT, conlin664 via fpc-pascal <fpc-pascal@lists.freepascal.org> wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div id="ydp9cc8b2f0yiv7579277237"><div><div class="ydp9cc8b2f0yiv7579277237ydp65a19ca7yahoo-style-wrap" dir="ltr" style="font-family:courier new, courier, monaco, monospace, sans-serif;font-size:13px;"><div></div>
        <div dir="ltr">Jonas,</div><div dir="ltr"><br clear="none"></div><div dir="ltr">thanks but I'm still a little stuck.</div><div dir="ltr">I only do this kind of thing once every 5 years or so..</div><div dir="ltr"><br clear="none"></div><div dir="ltr"><span>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 <br clear="none"></span><div><br clear="none"></div><div dir="ltr">it seems that crt1.10.5.o  is no longer in /usr/lib for the iphone sdk</div><div dir="ltr"><br clear="none"></div><div dir="ltr">when I tried to use a MacOs version, I get more conflicts..</div><div dir="ltr"><br clear="none"></div><div dir="ltr"><br clear="none"></div><div dir="ltr">has anyone been using fpc with the latest xcode 12.5 and Big Sur  11.4 ?</div><div dir="ltr"><br clear="none"></div><div dir="ltr"><br clear="none"></div></div><div dir="ltr"><div>/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<br clear="none">ld: file not found: /usr/lib/crt1.10.5.o<br clear="none">An error occurred while linking <br clear="none">pp.pas(252,36) Error: Error while linking<br clear="none">pp.pas(252,36) Fatal: There were 1 errors compiling module, stopping<br clear="none">Fatal: Compilation aborted<br clear="none">make[3]: *** [ppc] Error 1<br clear="none">make[2]: *** [cycle] Error 2<br clear="none">make[1]: *** [compiler_cycle] Error 2<br clear="none">make: *** [build-stamp.x86_64-iphonesim] Error 2</div><div><br clear="none"></div><div dir="ltr"><span><br clear="none"></span></div><div><br clear="none"><br clear="none"></div><div><br clear="none"><br clear="none"></div></div><div><br clear="none"></div><div dir="ltr"><div><br clear="none"></div><div><br clear="none"></div><div><br clear="none"></div></div><div><br clear="none"></div>
        
        </div><div class="ydp9cc8b2f0yiv7579277237yqt6486649054" id="ydp9cc8b2f0yiv7579277237yqt55728"><div class="ydp9cc8b2f0yiv7579277237ydpf37ff777yahoo_quoted" id="ydp9cc8b2f0yiv7579277237ydpf37ff777yahoo_quoted_3480644564">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    On Wednesday, June 9, 2021, 11:50:08 AM PDT, Jonas Maebe via fpc-pascal <fpc-pascal@lists.freepascal.org> wrote:
                </div>
                <div><br clear="none"></div>
                <div><br clear="none"></div>
                <div><div dir="ltr">On 09/06/2021 01:15, conlin664 via fpc-pascal wrote:<br clear="none">> So, I figured I'd jump to 3.2.2<br clear="none"><br clear="none">Sorry, I didn't get around yet to building and uploading the iOS<br clear="none">cross-compiler and units for 3.2.2<br clear="none"><br clear="none">As your build problem, don't start with that 3.0.5 compiler, but with<br clear="none">plain 3.0.4 or 3.2.2 ppcx64 (or add CPU_SOURCE=x86-64 to hack around the<br clear="none">issue)<br clear="none"><br clear="none"><br clear="none">Jonas<div class="ydp9cc8b2f0yiv7579277237ydpf37ff777yqt2311244153" id="ydp9cc8b2f0yiv7579277237ydpf37ff777yqtfd33621"><br clear="none">_______________________________________________<br clear="none">fpc-pascal maillist  -  <a shape="rect" href="mailto:fpc-pascal@lists.freepascal.org" rel="nofollow" target="_blank">fpc-pascal@lists.freepascal.org</a><br clear="none"><a shape="rect" href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal" rel="nofollow" target="_blank">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a><br clear="none"></div></div></div>
            </div>
        </div></div></div></div><div class="ydp9cc8b2f0yqt6486649054" id="ydp9cc8b2f0yqt06830">_______________________________________________<br clear="none">fpc-pascal maillist  -  <a shape="rect" href="mailto:fpc-pascal@lists.freepascal.org" rel="nofollow" target="_blank">fpc-pascal@lists.freepascal.org</a><br clear="none"><a shape="rect" href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal" rel="nofollow" target="_blank">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a><br clear="none"></div></div>
            </div>
        </div></body></html>