cant build fpc or laz anymore lazarus / 1-Linux ---------------------------------------------------------------------- Anonymous · 2006-04-18 22:34 Hi, I had both fpc and lazarus nicely installed from svn earlier this year but now it's all gone bad on me. fpc wont compile: Code: [Select] usr/lib/gcc/i686-pc-linux-gnu/3.4.6 -Fl/usr/local/lib -Fl//usr//lib/opengl/xorg-x11/lib -Fl/usr/i686-pc-linux-gnu/lib -Fl/usr/lib/gcc/i686-pc-linux-gnu/3.4.6 -Fl/usr/lib/nspr -Fl/usr/lib/nss -Fl/usr/lib/mozilla -Fl/usr/lib -Fl/usr/lib/openmotif-2.2 -Fl/usr/lib/qt4 -Fl/usr/kde/3.5/lib -Fl/usr/qt/3/lib -Fl/usr/games/lib -Fl/usr/lib/fltk-1.1 -Fl/usr/lib/libstdc++-v3/ -di386 -dRELEASE ibconnection.pp ibase60dyn.pp(12,14) Fatal: Can't find unit ibase60dyn Fatal: Compilation aborted make[6]: *** [ibconnection.ppu] Error 1 make[6]: Leaving directory `/svn/fpcbuild/trunk/fpcsrc/fcl/db/sqldb/interbase' make[5]: *** [interbase_all] Error 2 make[5]: Leaving directory `/svn/fpcbuild/trunk/fpcsrc/fcl/db/sqldb' make[4]: *** [sqldb_all] Error 2 make[4]: Leaving directory `/svn/fpcbuild/trunk/fpcsrc/fcl/db' make[3]: *** [db_all] Error 2 make[3]: Leaving directory `/svn/fpcbuild/trunk/fpcsrc/fcl' make[2]: *** [fcl_distinstall] Error 2 make[2]: Leaving directory `/svn/fpcbuild/trunk/fpcsrc' make[1]: *** [installother] Error 2 make[1]: Leaving directory `/svn/fpcbuild/trunk/fpcsrc' make: *** [install] Error 2 Code: [Select] Free Pascal Compiler version 2.1.1 [2006/03/23] for i386 Copyright (c) 1993-2005 by Florian Klaempfl Target OS: Linux for i386 Compiling lazarus.pp interfaces.pp(72,11) Fatal: Can't find unit Interfaces Fatal: Compilation aborted make[2]: *** [lazarus] Error 1 make[2]: Leaving directory `/svn/lazarus/ide' make[1]: *** [ide] Error 2 make[1]: Leaving directory `/svn/lazarus/ide' make: *** [ide] Error 2 Code: [Select]bash-3.1#find . -iname "interfaces.pp" ./lcl/interfaces/gnome/interfaces.pp ./lcl/interfaces/gtk/interfaces.pp ./lcl/interfaces/qt/interfaces.pp ./lcl/interfaces/win32/interfaces.pp ./lcl/interfaces/wince/interfaces.pp bash-3.1#pwd /usr/share/lazarus I have gtk selected as widget set and I see the file is present. Is svn currently broken or am I making a mistake? TIA ---------------------------------------------------------------------- lazybugger · 2006-04-18 22:36 opps, logging-in to get notifications. ---------------------------------------------------------------------- Marc · 2006-04-19 08:38 First you need an optodate and compiled FPC. you cannot mix older and newer units. So step 1 is to get fpc (and the fcl) compiled. I checked r3223 and it compiles without problems ---------------------------------------------------------------------- Anonymous · 2006-04-20 18:11 thanks for the reply , I expected to need to update fpc , that's why it was the first thing I tried , you have the error it produced above. I just updated the whole of fpcbuild Quote bash-3.1#pwd /svn/fpcbuild/trunk/fpcsrc bash-3.1#make all   make: Nothing to be done for `all'. bash-3.1#make install .... se/units/i386-linux -FE. -FU/svn/fpcbuild/trunk/fpcsrc/fcl/units/i386-linux -Fl/usr/lib/gcc/i686-pc-linux-gnu/3.4.6 -Fl/usr/local/lib -Fl//usr//lib/opengl/xorg-x11/lib -Fl/usr/i686-pc-linux-gnu/lib -Fl/usr/lib/gcc/i686-pc-linux-gnu/3.4.6 -Fl/usr/lib/nspr -Fl/usr/lib/nss -Fl/usr/lib/mozilla -Fl/usr/lib -Fl/usr/lib/openmotif-2.2 -Fl/usr/lib/qt4 -Fl/usr/kde/3.5/lib -Fl/usr/qt/3/lib -Fl/usr/games/lib -Fl/usr/lib/fltk-1.1 -Fl/usr/lib/libstdc++-v3/ -di386 -dRELEASE ibconnection.pp Fatal: Can't find unit System Fatal: Compilation aborted make[6]: *** [ibconnection.ppu] Error 1 make[6]: Leaving directory `/svn/fpcbuild/trunk/fpcsrc/fcl/db/sqldb/interbase' make[5]: *** [interbase_all] Error 2 make[5]: Leaving directory `/svn/fpcbuild/trunk/fpcsrc/fcl/db/sqldb' make[4]: *** [sqldb_all] Error 2 make[4]: Leaving directory `/svn/fpcbuild/trunk/fpcsrc/fcl/db' make[3]: *** [db_all] Error 2 make[3]: Leaving directory `/svn/fpcbuild/trunk/fpcsrc/fcl' make[2]: *** [fcl_distinstall] Error 2 make[2]: Leaving directory `/svn/fpcbuild/trunk/fpcsrc' make[1]: *** [installother] Error 2 make[1]: Leaving directory `/svn/fpcbuild/trunk/fpcsrc' make: *** [install] Error 2 I see in another thread you advise removing fpc and the ppc link but this produces : Makefile:119: *** Compiler ppc386 not found.  Stop. not surprisingly . Where can I find complete instructions on how to install and build fpc from svn. I have spent considerable time ploughing around but found nothing. TIA ---------------------------------------------------------------------- Anonymous · 2006-04-20 18:16 PS I also tried symlinking to previous 2.0.3 to at least have a compiler to work with to rebuild svn but that takes me back to "cant find unit System" :? ---------------------------------------------------------------------- Anonymous · 2006-04-23 15:39 OK , resynced to svn and retried  make install. today's message : cant find sqldb Quote l/usr/lib/nspr -Fl/usr/lib/nss -Fl/usr/lib/mozilla -Fl/usr/lib -Fl/usr/lib/openmotif-2.2 -Fl/usr/lib/qt4 -Fl/usr/kde/3.5/lib -Fl/usr/qt/3/lib -Fl/usr/games/lib -Fl/usr/lib/fltk-1.1 -Fl/usr/lib/libstdc++-v3/ -di386 -dRELEASE ibconnection.pp Fatal: Can't find unit sqldb Fatal: Compilation aborted make[6]: *** [ibconnection.ppu] Error 1 make[6]: Leaving directory `/svn/fpcbuild/trunk/fpcsrc/fcl/db/sqldb/interbase' make[5]: *** [interbase_all] Error 2 make[5]: Leaving directory `/svn/fpcbuild/trunk/fpcsrc/fcl/db/sqldb' make[4]: *** [sqldb_all] Error 2 make[4]: Leaving directory `/svn/fpcbuild/trunk/fpcsrc/fcl/db' make[3]: *** [db_all] Error 2 make[3]: Leaving directory `/svn/fpcbuild/trunk/fpcsrc/fcl' make[2]: *** [fcl_distinstall] Error 2 make[2]: Leaving directory `/svn/fpcbuild/trunk/fpcsrc' make[1]: *** [installother] Error 2 make[1]: Leaving directory `/svn/fpcbuild/trunk/fpcsrc' make: *** [install] Error 2 If anyone knows where there are instructions on how to install fpc svn cleanly , please bring me out of darkness. Thx ---------------------------------------------------------------------- lazybugger · 2006-06-19 15:49 two months on, fresh svn sync of trunk and now it paszlib that fails. Quote make[3]: Entering directory `/svn/fpcbuild/trunk/fpcsrc/fcl' /svn/fpcbuild/trunk/fpcsrc/compiler/ppc386 -Ur -Xs -O2 -n -S2 -Fu/svn/fpcbuild/trunk/fpcsrc/rtl/units/i386-linux -Fu/svn/fpcbuild/trunk/fpcsrc/packages/base/hash/units/i386-linux -Fu/svn/fpcbuild/trunk/fpcsrc/packages/base/paszlib/units/i386-linux -Fu/svn/fpcbuild/trunk/fpcsrc/packages/base/netdb/units/i386-linux -Fu/svn/fpcbuild/trunk/fpcsrc/packages/base/libasync/units/i386-linux -Fu/svn/fpcbuild/trunk/fpcsrc/packages/base/pthreads/units/i386-linux -Fu/svn/fpcbuild/trunk/fpcsrc/packages/base/pasjpeg/units/i386-linux -Fu/svn/fpcbuild/trunk/fpcsrc/packages/base/ibase/units/i386-linux -Fu/svn/fpcbuild/trunk/fpcsrc/packages/base/postgres/units/i386-linux -Fu/svn/fpcbuild/trunk/fpcsrc/packages/base/mysql/units/i386-linux -Fu/svn/fpcbuild/trunk/fpcsrc/packages/base/odbc/units/i386-linux -Fu/svn/fpcbuild/trunk/fpcsrc/packages/base/oracle/units/i386-linux -Fu/svn/fpcbuild/trunk/fpcsrc/packages/base/sqlite/units/i386-linux -Filinux -Fiinc -Fiunix -FE. -FUunits/i386-linux -Fl/usr/lib/gcc/i686-pc-linux-gnu/3.4.6 -Fl/usr/local/lib -Fl//usr//lib/opengl/nvidia/lib -Fl/usr/i686-pc-linux-gnu/lib -Fl/usr/lib/gcc/i686-pc-linux-gnu/3.4.6 -Fl/usr/lib/nspr -Fl/usr/lib/nss -Fl/usr/lib -Fl/usr/lib/openmotif-2.2 -Fl/opt/sun- jdk-1.4.2.10/jre/lib/i686/ -Fl/opt/sun- jdk-1.4.2.10/jre/lib/i686/native_threads/ -Fl/opt/sun- jdk-1.4.2.10/jre/lib/i686/client/ -Fl/opt/sun- jdk-1.4.2.10/jre/lib/i686/server/ -Fl/usr/lib/qt4 -Fl/usr/kde/3.5/lib -Fl/usr/qt/3/lib -Fl/usr/games/lib -Fl/usr/lib/fltk-1.1 -Fl/usr/lib/libstdc++-v3/ -di386 -dRELEASE inc/zstream.pp Fatal: Can't find unit paszlib Fatal: Compilation aborted some clear doc on how to install and build svn fpc would be nice, it's a waste of time and effort googling and guessing here. I'm sure its a trivial omition but I dont want to spend a week trying to hack it. TIA PS will svn laz compile with 2.1.1 ? Quote fpc -v Free Pascal Compiler version 2.1.1 [2006/04/20] for i386 Copyright (c) 1993-2005 by Florian Klaempfl ---------------------------------------------------------------------- lazybugger · 2006-06-19 18:11 PS form /etc/fpc/fpc.cfg: Quote -Fu/usr/local/lib/fpc/2.1.1/units/$fpctarget -Fu/usr/local/lib/fpc/2.1.1/units/$fpctarget/* -Fu/usr/local/lib/fpc/2.1.1/units/$fpctarget/gtk -Fu/usr/local/lib/fpc/2.1.1/units/$fpctarget/rtl and Quote bash-3.1#ls /usr/local/lib/fpc/2.1.1/units/i386-linux/paszlib adler.o       inffast.ppu     libpinffast.a   libpzuncompr.a  zcompres.ppu adler.ppu     inftrees.o      libpinftrees.a  Package.fpc     zdeflate.o gzio.o        inftrees.ppu    libpinfutil.a   paszlib.o       zdeflate.ppu gzio.ppu      infutil.o       libppaszlib.a   paszlib.ppu     zinflate.o infblock.o    infutil.ppu     libptrees.a     trees.o         zinflate.ppu infblock.ppu  libpadler.a     libpzbase.a     trees.ppu       zuncompr.o infcodes.o    libpgzio.a      libpzcompres.a  zbase.o         zuncompr.ppu infcodes.ppu  libpinfblock.a  libpzdeflate.a  zbase.ppu inffast.o     libpinfcodes.a  libpzinflate.a  zcompres.o so paszlib is there and fpc.cfg points to it. why is make install failing? ---------------------------------------------------------------------- lazybugger · 2006-06-19 18:36 Ok , make clean install on both fpc and laz seems to have sorted this , thanks for the help. ---------------------------------------------------------------------- Marc · 2006-06-20 08:55 Quote from: "lazybugger"PS form /etc/fpc/fpc.cfg: Quote -Fu/usr/local/lib/fpc/2.1.1/units/$fpctarget -Fu/usr/local/lib/fpc/2.1.1/units/$fpctarget/* -Fu/usr/local/lib/fpc/2.1.1/units/$fpctarget/gtk -Fu/usr/local/lib/fpc/2.1.1/units/$fpctarget/rtl Better change the /2.1.1/ in your fpc.cfg to /$fpcversion/ This way you wont have problems when you switch compiler.