[fpc-pascal] Lazarus install failure

Bob Barry bobb at absamail.co.za
Wed May 11 20:42:12 CEST 2005


I posted previously:
> After a successful "make all" of cvs lazarus, I tried a "make install" (as root) which failed:
> ...
> ...
> /usr/local/bin/ppc386 -gl -dgtk1 -Fu../../units/i386/linux -Fu. -FU../../units/i386/linux/gtk -Fl/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130 -Fl/usr/local/lib -Fl/usr/lib/opengl/xorg-x11/lib -Fl/usr/i686-pc-linux-gnu/lib -Fl/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130 -Fl/usr/lib/MozillaFirefox -Fl/usr/lib -Fl/opt/sun-jdk-1.4.2.08/jre/lib -Fl/usr/qt/3/lib -Fl/usr/kde/3.4/lib -Fl/usr/games/lib -Fl/usr/lib/fltk-1.1 -di386 interfaces.pp
> Free Pascal Compiler version 1.9.9 [2005/05/07] for i386
> Copyright (c) 1993-2005 by Florian Klaempfl
> Target OS: Linux for i386
> Compiling interfaces.pp
> 48 Lines compiled, 0.6 sec
> make[3]: Leaving directory `/home/bobb/freepascal/cvs/lazarus/lcl/interfaces/gtk'
> make[2]: Leaving directory `/home/bobb/freepascal/cvs/lazarus/lcl/interfaces'
> /usr/local/bin/fpcmake -p -Tlinux Makefile.fpc
> Processing Makefile.fpc
> Error: Target "linux", package "rtl" not found
> make[1]: *** [fpc_install] Error 1
> make[1]: Leaving directory `/home/bobb/freepascal/cvs/lazarus/lcl'
> make: *** [lcl_install] Error 2

The command which failed in the "make" fails identically from the command line: 
   asterix:lazarus> /usr/local/bin/fpcmake -p -Tlinux Makefile.fpc
   Processing Makefile.fpc
   Error: Target "linux", package "rtl" not found

Using target i386-linux, the command succeeds:
   asterix:lazarus> /usr/local/bin/fpcmake -p -Ti386-linux Makefile.fpc
   Processing Makefile.fpc
    Writing Package.fpc

So I regenerated all Makefiles for target i386-linux:
   asterix:lazarus> fpcmake -p -w -Ti386-linux $(find . -name "*Makefile.fpc")
   Processing ./components/gtk/gtkglarea/Makefile.fpc
    i386-linux requires: rtl,paszlib,netdb,libasync,pthreads,pasjpeg,ibase,postgres,mysql,sqlite,fcl,x11,opengl,gtk
    Writing Makefile
   Processing ./components/Makefile.fpc
    i386-linux requires: ""
    Writing Makefile
   Processing ./components/codetools/Makefile.fpc
    i386-linux requires: rtl,paszlib,netdb,libasync,pthreads,pasjpeg,ibase,postgres,mysql,sqlite,fcl
    Writing Makefile
   ....etc....

But "make install" then fails a different way:
   Free Pascal Compiler version 1.9.9 [2005/05/07] for i386
   Copyright (c) 1993-2005 by Florian Klaempfl
   Target OS: Linux for i386
   Compiling lazarus.pp
   lazarus.pp(98,1) Error: Can't create object file: units/i386-linux/lazarus.o
   lazarus.pp(98,1) Fatal: Can't create object units/i386-linux/lazarus.o
   lazarus.pp(98,1) Error: Compilation aborted
   make[1]: *** [lazarus] Error 1
   make[1]: Leaving directory `/home/bobb/freepascal/cvs/lazarus'
   make: *** [ide] Error 2

I tried linking the "units/i386-linux" directory to "units/linux":
   ln -s /usr/local/lib/fpc/1.9.9/units/i386-linux /usr/local/lib/fpc/1.9.9/units/linux
But "make install" failed the same old way.

I had a look at the install destination with "make fpc_baseinfo":
   Install base dir..... share/lazarus
   Install binary dir... /usr/local/bin
   Install library dir.. /usr/local/lib
   Install units dir.... share/lazarus/units/linux/lazarus
   Install source dir... /usr/local/share/src/fpc-1.9.9/lazarus
   Install doc dir...... /usr/local/share/doc/fpc-1.9.9/lazarus
   Install example dir.. /usr/local/share/doc/fpc-1.9.9/lazarus/examples
   Install data dir..... share/lazarus
Changing lazarus/Makefile.fpc "[install]" entry from:
   fpcpackage=n
   basedir=share/lazarus
to:
   fpcpackage=n
   dirprefix=/usr/local
then running fpcmake -w -Ti386-linux cleaned up the obvious errors, giving:
   Install base dir..... /usr/local/lib/fpc/1.9.9
   Install binary dir... /usr/local/bin
   Install library dir.. /usr/local/lib
   Install units dir.... /usr/local/lib/fpc/1.9.9/units/i386-linux/lazarus
   Install source dir... /usr/local/share/src/fpc-1.9.9/lazarus
   Install doc dir...... /usr/local/share/doc/fpc-1.9.9/lazarus
   Install example dir.. /usr/local/share/doc/fpc-1.9.9/lazarus/examples
   Install data dir..... /usr/local/lib/fpc/1.9.9
But "make install" still fails.

I'm about out of ideas - will update from cvs again now.  Any suggestions?

Thanks,

Bob Barry




More information about the fpc-pascal mailing list