<div dir="ltr">Fantastic. That works. Thanks, Jonas. </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Dec 25, 2020 at 3:00 AM <<a href="mailto:fpc-devel-request@lists.freepascal.org">fpc-devel-request@lists.freepascal.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Send fpc-devel mailing list submissions to<br>
<a href="mailto:fpc-devel@lists.freepascal.org" target="_blank">fpc-devel@lists.freepascal.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel" rel="noreferrer" target="_blank">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:fpc-devel-request@lists.freepascal.org" target="_blank">fpc-devel-request@lists.freepascal.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:fpc-devel-owner@lists.freepascal.org" target="_blank">fpc-devel-owner@lists.freepascal.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of fpc-devel digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: Issue with Compiling FPC and MacOS Big Sur (Joubert Nel)<br>
2. Re: Issue with Compiling FPC and MacOS Big Sur (Jonas Maebe)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 24 Dec 2020 08:52:15 -0800<br>
From: Joubert Nel <<a href="mailto:joubert@joubster.com" target="_blank">joubert@joubster.com</a>><br>
To: <a href="mailto:fpc-devel@lists.freepascal.org" target="_blank">fpc-devel@lists.freepascal.org</a><br>
Subject: Re: [fpc-devel] Issue with Compiling FPC and MacOS Big Sur<br>
Message-ID:<br>
<<a href="mailto:CAHHWi-FS4mKOLnTMkvfuCHtvT4Xgy%2BPh85TE-5NaLctB9t6xug@mail.gmail.com" target="_blank">CAHHWi-FS4mKOLnTMkvfuCHtvT4Xgy+Ph85TE-5NaLctB9t6xug@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
I've run into the same issue, but under different circumstances.<br>
In some sense, my scenario is simpler: I'm not compiling FPC, just<br>
compiling my own project.<br>
Able to work around it for my particular case and thought I'd share in case<br>
it helps others.<br>
<br>
SCENARIO<br>
When I have an "fpc.cfg" file in the directory in which I compile my<br>
project, I get:<br>
<br>
ld: library not found for -lc<br>
An error occurred while linking<br>
lox.pas(33,17) Error: Error while linking<br>
lox.pas(33,17) Fatal: There were 1 errors compiling module, stopping<br>
Fatal: Compilation aborted<br>
Error: /usr/local/bin/ppcx64 returned an error exitcode<br>
<br>
When I delete "fpc.cfg" the problem goes away.<br>
<br>
ATTEMPTED SOLUTION: reinstall xcode command line tools & fpc compiler<br>
1. remove xcode command line tools<br>
sudo rm -rf /Library/Developer/CommandLineTools/<br>
<br>
2. reinstall xcode command line tools<br>
sudo xcode-select --install<br>
sudo xcodebuild -license accept<br>
<br>
3. reinstall latest FPC for macOS from<br>
<a href="https://www.freepascal.org/down/i386/macosx.html" rel="noreferrer" target="_blank">https://www.freepascal.org/down/i386/macosx.html</a><br>
<br>
However, the problem persists.<br>
<br>
SOLUTION: not ideal, fine for me<br>
When I delete the "fpc.cfg" file in my compilation directory, the problem<br>
goes away.<br>
The same error occurs if I have an ".fpc.cfg" file in my home directory so<br>
I avoid that too.<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.freepascal.org/pipermail/fpc-devel/attachments/20201224/2f0e5fc4/attachment-0001.htm" rel="noreferrer" target="_blank">http://lists.freepascal.org/pipermail/fpc-devel/attachments/20201224/2f0e5fc4/attachment-0001.htm</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Fri, 25 Dec 2020 10:12:58 +0100<br>
From: Jonas Maebe <<a href="mailto:jonas@freepascal.org" target="_blank">jonas@freepascal.org</a>><br>
To: <a href="mailto:fpc-devel@lists.freepascal.org" target="_blank">fpc-devel@lists.freepascal.org</a><br>
Subject: Re: [fpc-devel] Issue with Compiling FPC and MacOS Big Sur<br>
Message-ID: <<a href="mailto:192bef1b-b730-a6bd-c846-7abfa0895f4d@freepascal.org" target="_blank">192bef1b-b730-a6bd-c846-7abfa0895f4d@freepascal.org</a>><br>
Content-Type: text/plain; charset=utf-8<br>
<br>
On 24/12/2020 17:52, Joubert Nel via fpc-devel wrote:<br>
> When I delete the "fpc.cfg" file in my compilation directory, the<br>
> problem goes away. <br>
> The same error occurs if I have an ".fpc.cfg" file in my home directory<br>
> so I avoid that too. <br>
<br>
Add the following line at the start of your custom config:<br>
<br>
#include /etc/fpc.cfg<br>
<br>
Anything you add after that statement will override the default settings<br>
from that global configuration, but you'll still have the settings that<br>
you need from it (like the sysroot path to the SDK).<br>
<br>
<br>
Jonas<br>
<br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
fpc-devel maillist - <a href="mailto:fpc-devel@lists.freepascal.org" target="_blank">fpc-devel@lists.freepascal.org</a><br>
<a href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel" rel="noreferrer" target="_blank">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</a><br>
<br>
<br>
------------------------------<br>
<br>
End of fpc-devel Digest, Vol 200, Issue 18<br>
******************************************<br>
</blockquote></div>