[lazarus] Newbie Q : Can't find classes.pas...
David Creelman
dave at geko.net.au
Mon Jul 1 04:48:51 EDT 2002
On Mon, 2002-07-01 at 00:14, Mattias Gaertner wrote:
> 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?
[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
read(3, "#\n# Example fpc.cfg for Free Pas"..., 256) = 256
read(3, " When not m68k is defined at the"..., 256) = 256
read(3, "h optimizes and strip debuginfo\n"..., 256) = 256
read(3, "-------------\n# Parsing switches"..., 256) = 256
read(3, "tors like C (*=,+=,/= and -=)\n# "..., 256) = 256
read(3, "tic keyword in objects\n\n# Allow "..., 256) = 256
read(3, "e)\n#-CS\n#-CD\n\n# Set the default "..., 256) = 256
read(3, "r keep certain variables "..., 256) = 256
read(3, " 3 optimizations (same as -O2u)\n"..., 256) = 256
read(3, " PII\n#-OG2p3\n\n\n# ---------------"..., 256) = 256
read(3, "ore.msg\n#-Fr/usr/bin/fpc/msg/err"..., 256) = 256
stat("/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat(".", {st_mode=S_IFDIR|0755, st_size=16384, ...}) = 0
stat("..", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("..", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("..", O_RDONLY) = 4
readdir(4, {d_ino=2, d_name=""}) = 1
readdir(4, {d_ino=2, d_name="."}) = 1
[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.
Cheers
DC
>
> 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
>
> _________________________________________________________________
> To unsubscribe: mail lazarus-request at miraclec.com with
> "unsubscribe" as the Subject
> archives at http://www.miraclec.com/list_archives/lazarus
More information about the Lazarus
mailing list