[fpc-pascal]/usr/lib/fpc/1.0.6/ppc386 vs. /usr/bin/fpc vs. fpc.cfg?

Peter Vreman peter at freepascal.org
Sun Jun 15 03:32:30 CEST 2003

At 20:06 14-6-2003, you wrote:
>Are there known issues with 1.0.6 and it's finding the configuration
>file?  Does it matter whether I compile using the 'fpc' or 'ppc386'
>command (they differ on my system):
>[amead at alan ian]$ more ~amead/fpc.cfg
>[amead at alan ian]$ ls -l `which ppc386`
>lrwxrwxrwx    1 root     root           25 May 17 08:49
>/usr/bin/ppc386 -> /usr/lib/fpc/1.0.6/ppc386*
>[amead at alan ian]$ ls -l `which fpc`
>-rwxr-xr-x    1 root     root        78020 May 23  2002 /usr/bin/fpc*
>[amead at alan ian]$ ls -l /usr/lib/fpc/1.0.6/ppc386
>-rwxr-xr-x    1 root     root       897844 May 23  2002
>[amead at alan ian]$ rpm -qf /usr/bin/fpc
>[amead at alan ian]$ rpm -qf /usr/lib/fpc/1.0.6/ppc386
>I ask because my programs are not automatically being compiled with
>the desired options '-Cr -Co -gl'.  I can enable range checking in
>the source file with {$R+}, is there a similar solution for -gl?

/usr/bin/fpc is only a wrapper and does not include any knowledge to 
compile a file. The only task for it is to call the correct compiler based 
on the -P setting, when not specified it calls the default compiler. This 
default compiler can be checked by running

/usr/bin/fpc -PB

The compiler will first try to load ~/.fpc.cfg, when not found it'll look 
for ~/.ppc386.cfg when not found it looks for /etc/fpc.cfg and finally for 


More information about the fpc-pascal mailing list