[lazarus] Newbie Q : Can't find classes.pas...
Mattias Gaertner
nc-gaertnma at netcologne.de
Sun Jun 30 10:01:25 EDT 2002
On 30 Jun 2002 21:26:36 +1000
David Creelman <dave at geko.net.au> wrote:
> Hi Mattias,
>
> Here is the path manually added
> [davidc at CPE-144-132-157-191 davidc]$ ppc386 -vt
> '-Fu/usr/local/lib/fpc/1.0.6/units/$target/*' bogus
> Free Pascal Compiler version 1.0.6 [2002/04/30] for i386
> [...]
> Using executable path: /usr/local/lib/fpc/1.0.6/
> Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/rtl/
> [...]
> Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/gtk/
> [...]
> Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/zlib/
> Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/
> Using unit path: /usr/local/lib/fpc/1.0.6/
> [...]
> Compiling bogus
> Fatal: Can't open file bogus
>
> And here is the output without the path manually added (just for
> comparison)
>
> [davidc at CPE-144-132-157-191 davidc]$ ppc386 -vt bogus
> [...]
> Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/
> Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/rtl/
> Using unit path: /usr/local/lib/fpc/1.0.6/
> [...]
> Compiling bogus
> Fatal: Can't open file bogus
>
> Are there any known issues with Mandrake Linux ?
AFAIK: no
> I did a quick search as root to see if there were any spare cfg files
> around that might be causing the problem. There seems to be only one
> fpc.cfg and it's in the right place.
>
> [root at CPE-144-132-157-191 /]# find . -name *cfg -print
> [...]
> ./etc/lynx.cfg
> ./etc/links.cfg
> ./etc/enscript.cfg
> ./etc/news/actsync.cfg
> ./etc/fpc.cfg
> [...]
> > If there is now the gtk dir, then your config is buggy or you have a double config.
Hmm. Either there is a bug in the compiler or the compiler is not using your config file.
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?
If yes, then the only possibility is to recreate the /etc/fpc.cfg:
Plz backup your /etc/fpc.cfg and create a new config:
mv /etc/fpc.cfg /etc/fpc.cfg.strange
/usr/local/lib/fpc/1.0.6/samplecfg /usr/local/lib/fpc/1.0.6
ppc386 -vt bogus
If there is a change, then there is/was a bug in the installation.
If not, then there seems to be a bug in the compiler (the part that parses the config).
Mattias
More information about the Lazarus
mailing list