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

David Creelman dave at geko.net.au
Sun Jun 30 07:16:52 EDT 2002


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
Copyright (c) 1993-2002 by Florian Klaempfl
Compiler: /usr/local/lib/fpc/1.0.6/ppc386
Target OS: Linux 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/fcl/
Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/bfd/
Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/cmem/
Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/forms/
Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/fpasync/
Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/gdbint/
Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/gdbm/
Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/ggi/
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/ibase/
Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/inet/
Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/libasync/
Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/libgd/
Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/libpng/
Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/mysql/
Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/ncurses/
Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/opengl/
Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/oracle/
Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/paszlib/
Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/postgres/
Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/regexpr/
Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/svgalib/
Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/syslog/
Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/uncgi/
Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/unzip/
Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/utmp/
Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/x11/
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/
Using library path: /lib/
Using library path: /usr/lib/
Using library path: /usr/X11R6/lib/
Using library path: /usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/
Using library path: /usr/local/lib/fpc/1.0.6/units/linux/rtl/
Using library path: /usr/local/lib/fpc/1.0.6/units/linux/fcl/
Using library path: /usr/local/lib/fpc/1.0.6/units/linux/bfd/
Using library path: /usr/local/lib/fpc/1.0.6/units/linux/cmem/
Using library path: /usr/local/lib/fpc/1.0.6/units/linux/forms/
Using library path: /usr/local/lib/fpc/1.0.6/units/linux/fpasync/
Using library path: /usr/local/lib/fpc/1.0.6/units/linux/gdbint/
Using library path: /usr/local/lib/fpc/1.0.6/units/linux/gdbm/
Using library path: /usr/local/lib/fpc/1.0.6/units/linux/ggi/
Using library path: /usr/local/lib/fpc/1.0.6/units/linux/gtk/
Using library path: /usr/local/lib/fpc/1.0.6/units/linux/ibase/
Using library path: /usr/local/lib/fpc/1.0.6/units/linux/inet/
Using library path: /usr/local/lib/fpc/1.0.6/units/linux/libasync/
Using library path: /usr/local/lib/fpc/1.0.6/units/linux/libgd/
Using library path: /usr/local/lib/fpc/1.0.6/units/linux/libpng/
Using library path: /usr/local/lib/fpc/1.0.6/units/linux/mysql/
Using library path: /usr/local/lib/fpc/1.0.6/units/linux/ncurses/
Using library path: /usr/local/lib/fpc/1.0.6/units/linux/opengl/
Using library path: /usr/local/lib/fpc/1.0.6/units/linux/oracle/
Using library path: /usr/local/lib/fpc/1.0.6/units/linux/paszlib/
Using library path: /usr/local/lib/fpc/1.0.6/units/linux/postgres/
Using library path: /usr/local/lib/fpc/1.0.6/units/linux/regexpr/
Using library path: /usr/local/lib/fpc/1.0.6/units/linux/svgalib/
Using library path: /usr/local/lib/fpc/1.0.6/units/linux/syslog/
Using library path: /usr/local/lib/fpc/1.0.6/units/linux/uncgi/
Using library path: /usr/local/lib/fpc/1.0.6/units/linux/unzip/
Using library path: /usr/local/lib/fpc/1.0.6/units/linux/utmp/
Using library path: /usr/local/lib/fpc/1.0.6/units/linux/x11/
Using library path: /usr/local/lib/fpc/1.0.6/units/linux/zlib/
Using library path: /usr/local/lib/fpc/1.0.6/units/linux/
Using library path: /usr/local/lib/fpc/1.0.6/
Using object path: /usr/local/lib/fpc/1.0.6/units/linux/rtl/
Using object path: /usr/local/lib/fpc/1.0.6/units/linux/fcl/
Using object path: /usr/local/lib/fpc/1.0.6/units/linux/bfd/
Using object path: /usr/local/lib/fpc/1.0.6/units/linux/cmem/
Using object path: /usr/local/lib/fpc/1.0.6/units/linux/forms/
Using object path: /usr/local/lib/fpc/1.0.6/units/linux/fpasync/
Using object path: /usr/local/lib/fpc/1.0.6/units/linux/gdbint/
Using object path: /usr/local/lib/fpc/1.0.6/units/linux/gdbm/
Using object path: /usr/local/lib/fpc/1.0.6/units/linux/ggi/
Using object path: /usr/local/lib/fpc/1.0.6/units/linux/gtk/
Using object path: /usr/local/lib/fpc/1.0.6/units/linux/ibase/
Using object path: /usr/local/lib/fpc/1.0.6/units/linux/inet/
Using object path: /usr/local/lib/fpc/1.0.6/units/linux/libasync/
Using object path: /usr/local/lib/fpc/1.0.6/units/linux/libgd/
Using object path: /usr/local/lib/fpc/1.0.6/units/linux/libpng/
Using object path: /usr/local/lib/fpc/1.0.6/units/linux/mysql/
Using object path: /usr/local/lib/fpc/1.0.6/units/linux/ncurses/
Using object path: /usr/local/lib/fpc/1.0.6/units/linux/opengl/
Using object path: /usr/local/lib/fpc/1.0.6/units/linux/oracle/
Using object path: /usr/local/lib/fpc/1.0.6/units/linux/paszlib/
Using object path: /usr/local/lib/fpc/1.0.6/units/linux/postgres/
Using object path: /usr/local/lib/fpc/1.0.6/units/linux/regexpr/
Using object path: /usr/local/lib/fpc/1.0.6/units/linux/svgalib/
Using object path: /usr/local/lib/fpc/1.0.6/units/linux/syslog/
Using object path: /usr/local/lib/fpc/1.0.6/units/linux/uncgi/
Using object path: /usr/local/lib/fpc/1.0.6/units/linux/unzip/
Using object path: /usr/local/lib/fpc/1.0.6/units/linux/utmp/
Using object path: /usr/local/lib/fpc/1.0.6/units/linux/x11/
Using object path: /usr/local/lib/fpc/1.0.6/units/linux/zlib/
Using object path: /usr/local/lib/fpc/1.0.6/units/linux/
Using object 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
Free Pascal Compiler version 1.0.6 [2002/04/30] for i386
Copyright (c) 1993-2002 by Florian Klaempfl
Compiler: /usr/local/lib/fpc/1.0.6/ppc386
Target OS: Linux for i386
Using executable path: /usr/local/lib/fpc/1.0.6/
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/
Using library path: /lib/
Using library path: /usr/lib/
Using library path: /usr/X11R6/lib/
Using library path: /usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/
Using library path: /usr/local/lib/fpc/1.0.6/units/linux/
Using library path: /usr/local/lib/fpc/1.0.6/units/linux/rtl/
Using library path: /usr/local/lib/fpc/1.0.6/
Using object path: /usr/local/lib/fpc/1.0.6/units/linux/
Using object path: /usr/local/lib/fpc/1.0.6/units/linux/rtl/
Using object path: /usr/local/lib/fpc/1.0.6/
Compiling bogus
Fatal: Can't open file bogus

Are there any known issues with Mandrake Linux ? I'm running 8.2. My
machine is an Athlon 1800.

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
./home/davidc/download/speech_tools/grammar/scfg
./home/davidc/download/wxGTK-2.2.7/demos/dbbrowse/de/xget.cfg
./home/davidc/download/wxGTK-2.2.7/demos/dbbrowse/fr/xget.cfg
./home/davidc/develop/eiffel/gobo/example/test/concat1/getest.cfg
./home/davidc/develop/eiffel/gobo/example/test/concat2/getest.cfg
./home/davidc/develop/eiffel/gobo/library/test/config/getest.cfg
./home/davidc/develop/eiffel/gobo/test/src/geant/getest.cfg
./home/davidc/develop/eiffel/gobo/test/src/gelex/getest.cfg
./home/davidc/develop/eiffel/gobo/test/src/gepp/getest.cfg
./home/davidc/develop/eiffel/gobo/test/src/getest/getest.cfg
./home/davidc/develop/eiffel/gobo/test/src/geyacc/getest.cfg
./home/davidc/develop/eiffel/gobo/test/example/lexical/getest.cfg
./home/davidc/develop/eiffel/gobo/test/example/parse/getest.cfg
./home/davidc/develop/eiffel/gobo/test/example/test/getest.cfg
./home/davidc/develop/eiffel/gobo/test/example/time/getest.cfg
./home/davidc/develop/eiffel/gobo/test/kernel/getest.cfg
./home/davidc/develop/eiffel/gobo/test/lexical/getest.cfg
./home/davidc/develop/eiffel/gobo/test/precomp/getest.cfg
./home/davidc/develop/eiffel/gobo/test/structure/getest.cfg
./home/davidc/develop/eiffel/gobo/test/time/getest.cfg
./home/davidc/develop/microwin/src/nano-X.cfg
./home/davidc/.clanbomber/clanbomber.cfg
./home/davidc/kylixdownload/plot/TPlot/DBDemo/DBNormal.cfg
./home/davidc/kylixdownload/plot/TPlot/Demo/Normal.cfg
./home/davidc/kylixdownload/plot/TPlot/Plot200_R50.cfg
./home/davidc/kylixdownload/plot/TPlot/DBPlot200_D50.cfg
./home/davidc/kylixdownload/plot/TPlot/DBPlot200_R50.cfg
./home/davidc/kylixdownload/plot/TPlot/Plot200_D40.cfg
./home/davidc/kylixdownload/plot/TPlot/Plot200_R40.cfg
./home/davidc/kylixdownload/plot/TPlot/DBPlot200_R40.cfg
./home/davidc/kylixdownload/plot/TPlot/DBPlot200_D40.cfg
./home/davidc/kylixdownload/plot/TPlot/TChart Demo/TChart.cfg
./home/davidc/kylixdownload/plot/TPlot/Plot200_D50.cfg
./home/davidc/kylixdownload/plot/Misc/Misc200_R50.cfg
./home/davidc/kylixdownload/plot/Misc/Plot120_R50.cfg
./home/davidc/kylixdownload/plot/Misc/Misc200_D50.cfg
./home/davidc/kylixdownload/plot/Misc/Misc200_D40.cfg
./home/davidc/kylixdownload/plot/Misc/Misc200_R40.cfg
./home/davidc/cal/calendar/calopts.cfg
./home/davidc/cal/calendar/dates.cfg
./etc/urpmi/urpmi.cfg
./etc/lynx.cfg
./etc/links.cfg
./etc/bootsplash/themes/Mandrake/cfg
./etc/bootsplash/themes/Mandrake/cfg/bootsplash-1280x1024.cfg
./etc/bootsplash/themes/Mandrake/cfg/bootsplash-1024x768.cfg
./etc/bootsplash/themes/Mandrake/cfg/bootsplash-800x600.cfg
./etc/enscript.cfg
./etc/news/actsync.cfg
./etc/fpc.cfg
find: ./mnt/floppy: Input/output error
find: ./mnt/floppy2: Input/output error
find: ./mnt/cdrom: Input/output error
./sbin/ifcfg
./usr/share/apps/kmidi/config/gravis.cfg
./usr/share/apps/kmidi/config/gsdrum.cfg
./usr/share/apps/kmidi/config/midia.cfg
./usr/share/apps/kmidi/config/mt32.cfg
./usr/share/apps/kmidi/config/timidity.cfg
./usr/share/apps/kmidi/config/wowpats.cfg
./usr/share/gnobots2/classic_robots.cfg
./usr/share/gnobots2/nightmare.cfg
./usr/share/gnobots2/robots2.cfg
./usr/share/gnobots2/robots2_easy.cfg
./usr/share/gnobots2/robots_with_safe_teleport.cfg
./usr/share/texmf/omega/lambda/misc/omarab.cfg
./usr/share/texmf/omega/lambda/misc/omlgc.cfg
./usr/share/texmf/pdftex/config/pdftex.cfg
./usr/share/texmf/tex/cyrplain/config/cyrtex.cfg
./usr/share/texmf/tex/generic/babel/frenchb.cfg
./usr/share/texmf/tex/generic/babel/hyphen.cfg
./usr/share/texmf/tex/generic/config/fontmath.cfg
./usr/share/texmf/tex/generic/config/fonttext.cfg
./usr/bin/sf2cfg
./usr/lib/perl5/site_perl/5.6.1/Net/libnet.cfg
./usr/X11R6/bin/xf86cfg
./usr/local/lib/fpc/1.0.6/samplecfg
./usr/local/src/fpc-1.0.6/compiler/utils/samplecfg
./usr/local/src/fpc-1.0.6/ide/fp.cfg
./usr/src/RPM/SOURCES/compiler/utils/samplecfg
[root at CPE-144-132-157-191 /]# 

Cheers
DC

On Sun, 2002-06-30 at 17:49, Mattias Gaertner wrote:
> On 30 Jun 2002 09:44:16 +1000
> David Creelman <dave at geko.net.au> wrote:
> 
> > Here is the result of ppc386 -vt bogus
> > 
> > [davidc at CPE-144-132-157-191 davidc]$ fpc -vt bogus
> > Free Pascal Compiler version 1.0.6 [2002/04/30] for i386
> > Copyright (c) 1993-2002 by Florian Klaempfl
> > Compiler: /usr/local/lib/fpc/1.0.6/ppc386
> > Target OS: Linux for i386
> > Using executable path: /usr/local/lib/fpc/1.0.6/
> > 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
> > 
> > There is no gtk here. What do I change to get it to find it ?
> > 
> > This is an excerpt from /etc/fpc.cfg, looking at the -Fu lines.
> > # searchpath for units and other system dependent things
> > -Fu/usr/local/lib/fpc/1.0.6/units/$target
> > -Fu/usr/local/lib/fpc/1.0.6/units/$target/*
> > -Fu/usr/local/lib/fpc/1.0.6/units/$target/rtl
> > [...]
> > The $target/* looks like it should get to the gtk directory, don't know
> > why it doesn't...
> 
> Either the directories are not there, there is another config or this a compiler bug.
> Plz try to manually add the path:
> ppc386 -vt '-Fu/usr/local/lib/fpc/1.0.6/units/$target/*' bogus
> 
> If there is now the gtk dir, then your config is buggy or you have a double config.
> If not, then you should double check, that the path is correct.
> 
> Weird thing. If we find the solution we should add this to the FAQ.
> 
> 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