[fpc-devel] fpcmkcfg invocation for two versions (linux)

Gennadiy Poryev core at barvinok.net
Fri Oct 31 09:26:44 CET 2014


Big thanks.

In case anyone stumbles over the same issue, here's the minimal working 
solution:
fpc -vut gives:

Configfile search: /root/.fpc.cfg
Configfile search: /usr/lib64/fpc/etc/fpc.cfg
Configfile search: /etc/fpc.cfg
Fatal: No source file name in command line
Fatal: Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode

Seems logical to use /usr/lib64/fpc/etc/fpc.cfg

A little investigation into what lazarus build complains about leads to 
it being unable to find process.ppu , which in my case is found here

/usr/lib64/fpc/2.6.4/units/x86_64-linux/fcl-process/process.ppu
/usr/lib64/fpc/2.7.1/units/x86_64-linux/fcl-process/process.ppu

So I wrote /usr/lib64/fpc/etc/fpc.cfg thus:

#
-Fu/usr/lib64/fpc/$fpcversion/units/$fpctarget/*
#

And now Lazarus builds with no problem.

G.

On 23-10-2014 18:29, Marc Weustink wrote:
> Gennadiy Poryev wrote:
>> thank you,
>>
>> but my question was more about where to put fpc.cfg so that both
>> versions can use it properly, or, if that is not possible, where to
>> stuff different fpc.cfg's for the same purpose?
>> and what would be the basepath in either case?
>
> execute ppx64 -vut
>
> the last lines of the output list the patch searched for fpc.cfg
> In my case
> [0.004] Configfile search: /home/marc/.fpc.cfg
> [0.004] Configfile search: /home/marc/etc/fpc.cfg
> [0.004] Configfile search: /etc/fpc.cfg
>
> I also vaguely recall that the dir of the compiler is searched too, 
> but isn't listed here (it might be a windows only thing or something 
> from the past)
>
> Marc
>
>
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
>
>
>




More information about the fpc-devel mailing list