[fpc-devel]free pascal config files

jork at os.inf.tu-dresden.de jork at os.inf.tu-dresden.de
Thu Aug 8 12:49:11 CEST 2002


Michael,

how did you got the trace? My fpc forks and I dont see the opened files.
Here the detailed version output.

/home/jork/temp/pas> fpc -i
Free Pascal Compiler version 1.0.6

Compiler Date  : 2002/04/30
Compiler Target: i386

This program comes under the GNU General Public Licence
For more information read COPYING.FPC

Report bugs, suggestions etc to:
                 bugrep at freepascal.org
/home/jork/temp/pas> 


> > I just installed free pascal/Linux in a local directory
> > (/home/jork/usr/...) and it seems that fpc does *not* read ~/.fpc.cfg. It
> > also seems it does not read ./fpc.cfg. After copying ~/.fpc.cfg to fpc.cfg
> > in another directory and setting PPC_CONFIG_PATH to this directory it
> > works. Am I doing wrong or is this really bad behavior of fpc?
> 
> It works correctly (tested with 1.0.6/1.0.7)
> 
> stat("ppc386.cfg", 0xbfffefb8)          = -1 ENOENT (No such file or directory)
> stat("/home/michael/.ppc386.cfg", 0xbfffefb8) = -1 ENOENT (No such file or directory)
> stat("/etc/ppc386.cfg", 0xbfffefb8)     = -1 ENOENT (No such file or directory)
> stat("fpc.cfg", 0xbfffefb8)             = -1 ENOENT (No such file or directory)
> stat("/home/michael/.fpc.cfg", {st_mode=S_IFIFO|S_ISGID, st_size=0, ...}) = 0
> 
> BUT
> 
> if a file ~/.ppc386.cfg exists, then that will be read first (for compatibility
> with earlier versions) and ~/.fpc.cfg will *not* be read. So make sure that you
> remove ~/.ppc386.cfg
> 
> Michael.
> 
> 
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
> 

-- 
Dipl.-Inf. Jork Loeser               Dresden University of Technology
Department of Computer Science       Operating Systems Research Group
Phone: +49 (351) 4633-8056           Fax: +49 (351) 4633-8284
Email: jork.loeser at inf.tu-dresden.de WWW: os.inf.tu-dresden.de/~jork





More information about the fpc-devel mailing list