[fpc-devel] DF64 BSD -- FPC running natively but argument address mangling prevents bootstrap
John Marino
fpc-devel at marino.st
Tue Nov 18 17:29:53 CET 2014
On 11/18/2014 16:14, John Marino wrote:
> On 11/18/2014 16:02, Marco van de Voort wrote:
>> 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+
>
getcwd seems to work okay, I don't think that's a problem.
This is where the problems start (cfileutl.pas, PathExists function):
if allowcache then
Result:=DirCache.DirectoryExists(hs)
The DirCache.DirectoryExists function always returns false, even on
valid paths.
Still looking...
John
More information about the fpc-devel
mailing list