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