[arch-general] FreePascal doesn't see the module 'graph'

Martti Kühne mysatyre at gmail.com
Sun Feb 26 14:05:59 EST 2012


On Sun, Feb 26, 2012 at 08:39:05PM +0300, Abdourazak Osmanov wrote:
> mao at mao-note-arch Pascal $ fpc radar.pas
> > Free Pascal Compiler version 2.6.0 [2012/01/02] for x86_64
> > Copyright (c) 1993-2011 by Florian Klaempfl and others
> > Target OS: Linux for x86-64
> > Compiling radar.pas
> > Fatal: Can't find unit graph used by radar
> > Fatal: Compilation aborted
> > Error: /usr/bin/ppcx64 returned an error exitcode (normal if you did not
> > specify a source file to be compiled)
> >
> 
> Why is this happening?

Hello.

Did you read the error message yet? It says, there's no unit graph. there is,
however a package called graph, which is not associated with what you wnat from
the compiler. However, I looked into things:

martti at deepthought:~$ pacman -Ql fpc | grep graph
fpc /usr/lib/fpc/2.6.0/units/x86_64-linux/graph/
fpc /usr/lib/fpc/2.6.0/units/x86_64-linux/graph/Package.fpc
fpc /usr/lib/fpc/2.6.0/units/x86_64-linux/graph/ggigraph.o
fpc /usr/lib/fpc/2.6.0/units/x86_64-linux/graph/ggigraph.ppu
fpc /usr/lib/fpc/2.6.0/units/x86_64-linux/graph/libpggigraph.a
fpc /usr/lib/fpc/2.6.0/units/x86_64-linux/graph/libpptccrt.a
fpc /usr/lib/fpc/2.6.0/units/x86_64-linux/graph/libpptcgraph.a
fpc /usr/lib/fpc/2.6.0/units/x86_64-linux/graph/ptccrt.o
fpc /usr/lib/fpc/2.6.0/units/x86_64-linux/graph/ptccrt.ppu
fpc /usr/lib/fpc/2.6.0/units/x86_64-linux/graph/ptcgraph.o
fpc /usr/lib/fpc/2.6.0/units/x86_64-linux/graph/ptcgraph.ppu

After a minimum of testing I found that pascal units are stored as ".ppu"
files. Then I tried this: "uses ptccrt, ptcgraph" - and it compiled.
My pascal knowledge is very limited, and the first program pops away just after
it is started... maybe you could wait for X keyboard events or add an endless
loop.

cheers!
mar77i


More information about the arch-general mailing list