[lazarus] Newbie Q : Can't find classes.pas...

Michael Van Canneyt michael.vancanneyt at wisa.be
Mon Jul 1 07:14:08 EDT 2002




On Mon, 1 Jul 2002, Mattias Gaertner wrote:

> On 01 Jul 2002 18:58:42 +1000
> David Creelman <dave at geko.net.au> wrote:
>
> > > Plz do a
> > >
> > > strace ppc386 -vt bogus
> > >
> > > After the first page, you will see, what cfg files are tried and which one is loaded.
> > > Does it use /etc/fpc.cfg?
> >
> > [snip]
> > readlink("/proc/7770/exe", "/usr/local/lib/fpc/1.0.6/ppc386", 255) = 31
> > signal(SIGSEGV, 0x80f8050)              = 0x8102810
> > signal(SIGINT, 0x80f8050)               = 0 (SIG_DFL)
> > signal(SIGFPE, 0x80f8050)               = 0x8102810
> > stat("ppc386.cfg", 0xbfffed48)          = -1 ENOENT (No such file or
> > directory)
> > stat("/home/davidc/.ppc386.cfg", 0xbfffed48) = -1 ENOENT (No such file
> > or directory)
> > stat("/etc/ppc386.cfg", 0xbfffed48)     = -1 ENOENT (No such file or
> > directory)
> > stat("fpc.cfg", 0xbfffed48)             = -1 ENOENT (No such file or
> > directory)
> > stat("/home/davidc/.fpc.cfg", {st_mode=S_IFREG|0664, st_size=3810, ...})
> > = 0
> > open("/home/davidc/.fpc.cfg", O_RDONLY) = 3
> > [snip]
> >
> > I moved .fpc.cfg to blah and went into my lazarus dir and it recompiled.
> > That must be it. I didn't do a search for .fpc.cfg !
> > Thanks for your help with that one Mattias.
> >
> > The compiler seems to want to find ppc386.cfg rather than fpc.cfg in my
> > setup. Still it all compiles now.
>
> Hmm, this should be added to the FAQ. But I doubt that an strace output is a nice answer.
> Is it possible to ask the compiler, which config file it has parsed?

The -vt option does this.

Michael.






More information about the Lazarus mailing list