[fpc-devel] FPC programs in OSv

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Mar 4 17:32:41 CET 2015


On Wed, 4 Mar 2015 16:41:23 +0100
Sven Barth <pascaldragon at googlemail.com> wrote:

> Am 04.03.2015 16:20 schrieb "Jonas Maebe" <jonas.maebe at elis.ugent.be>:
> >
> > On 04/03/15 15:47, Mattias Gaertner wrote:
> >
> > > How can I make the System unit use libc calls instead of the syscalls?
> >
> > In theory: by compiling the RTL with -dFPC_USE_LIBC. In practice, this
> > is barely tested on Linux because no one uses it there. Sven has been
> > working a little on it lately, but I don't know if he already committed
> > all of his changes.
> 
> I haven't found the time yet. Maybe tomorrow. :)
> @Matthias: it might be that cycling the compiler fails on current Linux
> systems if you specify that define (it does at least on my up to date
> ArchLinux systems). 

Yes, it fails:
/home/mattias/3.1.1/fpc/compiler/ppc1 -Ur -Ur -Xs -O2 -n -Fi../inc -Fi../x86_64 -Fi../unix -Fix86_64 -FE. -FU/home/mattias/pascal/fpc_sources/3.1.1/fpc/rtl/units/x86_64-linux -Cg -g -dFPC_USE_LIBC -dx86_64 -dRELEASE ../inc/fpintres.pp
Fatal: No source file name in command line


> My outstanding commit fixes this.

Outstanding! :)

Mattias



More information about the fpc-devel mailing list