[fpc-devel] DF64 BSD -- FPC running natively but argument address mangling prevents bootstrap

Marco van de Voort marcov at stack.nl
Tue Nov 18 16:02:48 CET 2014


In our previous episode, Jonas Maebe said:
> > 	Path "/usr/lib/" not found
> > 	Path "/lib/" not found
> > 	Free Pascal Compiler version 2.6.4 [2014/11/18] for x86_64
> > 	Copyright (c) 1993-2014 by Florian Klaempfl and others
> > 	Fatal: No source file name in command line
> > 	Fatal: Compilation aborted
> > 	Error: bin/ppcx64 returned an error exitcode (normal if you did not
> > specify a source file to be compiled)
> 
> Such problems usually mean that the stat or statfs record needs
> adjustments. You can find the "stat" record definition in
> rtl/bsd/ostypes.inc. statfs is in rtl/<yourosdir>/ptypes.inc

And
- getcwd  (part of truename directory expansion)
- opendir/readdir and friends.

If something is wrong it sometimes shows up in ptrace.

getcwd is a likely candidate since afaik that changed FreeBSD 5+



More information about the fpc-devel mailing list