error on make svn lazarus / 1-Linux ---------------------------------------------------------------------- mbohn · 2009-12-21 01:33 I get the following error when trying to make an svn: Compiling ./widgetset/wslclclasses.pp Compiling lclclasses.pp imglist.pp(160,14) Error: There is no method in an ancestor class to be overridden: "TCustomImageList.Equals(TObject):Boolean;" imglist.pp(206,1) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted make[1]: *** [alllclunits.ppu] Error 1 make[1]: Leaving directory `/home/mark/Lazarus/lcl' make: *** [lcl] Error 2 mark@mark-laptopXP:~/Lazarus$ Any ideas? I've followed the wiki http://wiki.lazarus.freepascal.org/index.php/Getting_Lazarus#Developme nt_versions_from_SVN ---------------------------------------------------------------------- Bart · 2009-12-21 09:49 Which Lazarus revision? Which fpc version? Bart ---------------------------------------------------------------------- mbohn · 2009-12-21 12:27 How do I tell that from the downloaded svn? Ubuntu 9.10 BTW, after that problem came up, I repeated the procedure for my Mac and the whole thing went perfectly.  So I don't think the problem on Linux is due to not following the wiki instructions. ---------------------------------------------------------------------- Marc · 2009-12-21 15:09 lazarus revision: svn info fpcversion: ppc386 -iW ---------------------------------------------------------------------- mbohn · 2009-12-21 15:44 svn info: svn: '.' is not a working copy ppc386 -iW: 2.5.1 ---------------------------------------------------------------------- Bart · 2009-12-21 22:56 I suppose you used svn to obtain the sources? cd to the root of the lazarus sources that you obtained with svn there should be a directory .svn in this directory Code: [Select]bart@simenon:~/svnroot/lazarus> ls -al totaal 176058 [SNIP] drwxr-xr-x   7 bart users      392 2009-11-15 12:43 .svn Then Code: [Select]bart@simenon:~/svnroot/lazarus> svn info . Path: . URL: http://svn.freepascal.org/svn/lazarus/trunk Repository Root: http://svn.freepascal.org/svn/lazarus Repository UUID: 4005530d-fff6-0310-9dd1-cebe43e6787f Revision: 22593 Node Kind: directory Schedule: normal Last Changed Author: martin Last Changed Rev: 22593 Last Changed Date: 2009-11-15 01:24:32 +0100 (zo, 15 nov 2009) Properties Last Updated: 2009-01-30 18:55:56 +0100 (vr, 30 jan 2009) Bart ---------------------------------------------------------------------- mbohn · 2009-12-21 23:29 Yes, I used SVN per the wiki instructions I quoted earlier. There is no .svn directory on my entire file system.  Nor is there a svnroot directory. ---------------------------------------------------------------------- Marc · 2009-12-22 09:40 svnroot is a dirname you choose yourself. ie the name of the dir where you want to checkout the files. If you have used svn, tehn you have a .svn dir. Pleas note that files starting with a . are hidden, so a normal ls doesn't show them. ls -a does. ---------------------------------------------------------------------- Vincent Snijders · 2009-12-22 14:51 mbohn, make sure that your fpc 2.5.1 version is up to date, i.e. from the same date as your lazarus svn version. The only fpc 2.5.1 more or less guaranteed to compile is svn HEAD, what you get after an svn up. ---------------------------------------------------------------------- mbohn · 2009-12-22 16:32 Quote from: Marc on December 22, 2009, 10:40:21 amsvnroot is a dirname you choose yourself. ie the name of the dir where you want to checkout the files. If you have used svn, tehn you have a .svn dir. Pleas note that files starting with a . are hidden, so a normal ls doesn't show them. ls -a does. Marc: Thanks for straightening me out on that.  Here are the results Bart asked for: Code: [Select]mark@mark-laptopXP:~$ cd Lazarus mark@mark-laptopXP:~/Lazarus$ ls -al total 288 drwxr-xr-x 21 mark mark  4096 2009-12-20 18:24 . drwxr-xr-x 42 mark mark  4096 2009-12-22 06:11 .. drwxr-xr-x 48 mark mark  4096 2009-12-20 18:22 components drwxr-xr-x  3 mark mark  4096 2009-12-20 18:23 converter -rw-r--r--  1 mark mark 18088 2009-12-20 18:24 COPYING.GPL.txt -rw-r--r--  1 mark mark 25275 2009-12-20 18:24 COPYING.LGPL.txt -rw-r--r--  1 mark mark  1259 2009-12-20 18:24 COPYING.modifiedLGPL.txt -rw-r--r--  1 mark mark  1349 2009-12-20 18:24 COPYING.txt drwxr-xr-x  5 mark mark  4096 2009-12-20 18:20 debian drwxr-xr-x  6 mark mark  4096 2009-12-20 18:20 debugger drwxr-xr-x  3 mark mark  4096 2009-12-20 18:22 designer drwxr-xr-x  6 mark mark  4096 2009-12-20 18:23 doceditor drwxr-xr-x  7 mark mark  4096 2009-12-20 18:22 docs drwxr-xr-x 56 mark mark  4096 2009-12-20 18:24 examples drwxr-xr-x  5 mark mark 16384 2009-12-20 18:22 ide drwxr-xr-x  5 mark mark  4096 2009-12-20 18:20 ideintf drwxr-xr-x 20 mark mark  4096 2009-12-20 18:22 images drwxr-xr-x  4 mark mark  4096 2009-12-20 18:22 install -rw-r--r--  1 mark mark 11294 2009-12-20 18:24 JCFSettings.cfg drwxr-xr-x  3 mark mark  4096 2009-12-20 18:23 languages drwxr-xr-x  4 mark mark  4096 2009-12-20 18:22 lazarus.app drwxr-xr-x 13 mark mark  4096 2009-12-20 18:25 lcl -rw-r--r--  1 mark mark  4552 2009-12-20 18:24 localize.bat -rwxr-xr-x  1 mark mark  1794 2009-12-20 18:24 localize.sh -rw-r--r--  1 mark mark 98562 2009-12-20 18:24 Makefile -rw-r--r--  1 mark mark  7592 2009-12-20 18:24 Makefile.fpc drwxr-xr-x  6 mark mark  4096 2009-12-20 18:23 packager -rw-r--r--  1 mark mark  2543 2009-12-20 18:24 README.txt drwxr-xr-x  6 mark mark  4096 2009-12-20 18:24 .svn drwxr-xr-x  7 mark mark  4096 2009-12-20 18:20 test drwxr-xr-x 10 mark mark  4096 2009-12-20 18:22 tools mark@mark-laptopXP:~/Lazarus$ And.. Code: [Select]mark@mark-laptopXP:~/Lazarus$ svn info . Path: . URL: http://svn.freepascal.org/svn/lazarus/trunk Repository Root: http://svn.freepascal.org/svn/lazarus Repository UUID: 4005530d-fff6-0310-9dd1-cebe43e6787f Revision: 23208 Node Kind: directory Schedule: normal Last Changed Author: mattias Last Changed Rev: 23208 Last Changed Date: 2009-12-20 16:52:13 -0700 (Sun, 20 Dec 2009) mark@mark-laptopXP:~/Lazarus$ ---------------------------------------------------------------------- Marc · 2009-12-22 17:19 now that we this have sorted out, back to your problem. Vincent has a point, make sue you're using a recent fpc trunk (of you want to use fpc trunk) And if you have lazarus compiled with an older trunk fpc, always do a make clean first in the lazarus dir, to make sure old and invalid ppu's are removed. ---------------------------------------------------------------------- mbohn · 2009-12-22 18:37 I noticed from the wiki that it first explains how to get the Lazarus svn and how to compile it.  Later on it tells you to first install the fpc svn. So, I've deleted the Lazarus svn and started on the fpc svn. The command Code: [Select]svn co http://svn.freepascal.org/svn/fpc/trunk fpcworked fine. Then those directions tell you to Code: [Select]sudo apt-get install libgpmg1-dev fakeroot libncurses5-dev build-essential which also worked well but it sounds like everything was already the newest version. Then the directions say: Go into your lazarus source directory. The directory must be writable. Code: [Select]cd ~/freepascal/lazarus/tools/install ./create_fpc_deb.sh fpc ~/freepascal/fpc There is no lazarus source directory, as I said before I removed it.  The directions tell you only later to download the lazarus svn. go to "your lazarus directory" and then cd ~/freepascal/lazarus/tools/install ./create_fpc_deb.sh fpc ~/freepascal/fpc But there is no such directory. ---------------------------------------------------------------------- Vincent Snijders · 2009-12-22 19:19 The first question should be: What exactly do you want? Both fpc and lazarus development version (unstable) or just lazarus development version (unstable). ---------------------------------------------------------------------- mbohn · 2009-12-22 19:43 This all got started after I submitted a bug report: http://bugs.freepascal.org/view.php?id=15383 The last entry in that was a link to the svn from Mattias so I interpreted that to mean I needed to download the svn to fix the original problem described in the bug report. ---------------------------------------------------------------------- Vincent Snijders · 2009-12-22 20:08 OK, that is clear. What I would do is this: Install the latest lazarus release using the package manager, so you get all the dependencies right and have a working fpc 2.2.4. Make sure that fpc -iV returns fpc 2.2.4. Then, in your home directory (/home/mbohn/) do: Code: [Select]cd /home/mbohn svn co http://svn.freepascal.org/svn/lazarus/trunk lazarus cd lazarus make bigide ./lazarus --pcp=/home/mbohn/.lazarus-svn ---------------------------------------------------------------------- mbohn · 2009-12-22 22:20 Vincent: When I get to the third step I get this: Code: [Select]mark@mark-laptopXP:~/lazarus$ make bigide make -C lcl all make[1]: Entering directory `/home/mark/lazarus/lcl' /bin/rm -f units/i386-linux/alllclunits.ppu /usr/local/bin/ppc386 -gl  -Fu. -Funonwin32 -Fuforms -Fuwidgetset -Fu/usr/local/lib/fpc/2.5.1/units/i386-linux/rtl -Fiinclude -FE. -FUunits/i386-linux -di386 alllclunits.pp Free Pascal Compiler version 2.5.1 [2009/12/07] for i386 Copyright (c) 1993-2009 by Florian Klaempfl Target OS: Linux for i386 Compiling alllclunits.pp Compiling dynhasharray.pp Compiling lclproc.pas Compiling fileutil.pas Compiling masks.pas Fatal: Can't find unit Contnrs used by Masks Fatal: Compilation aborted make[1]: *** [alllclunits.ppu] Error 1 make[1]: Leaving directory `/home/mark/lazarus/lcl' make: *** [lcl] Error 2 mark@mark-laptopXP:~/lazarus$ ---------------------------------------------------------------------- Marc · 2009-12-23 00:05 Quote from: mbohn on December 22, 2009, 11:20:50 pmCode: [Select]mark@mark-laptopXP:~/lazarus$ make bigide .. Fatal: Can't find unit Contnrs used by Masks   This usually means that the units found in /usr/local/lib/fpc/2.5.1/units/i386-linux/rtl are not compiled with the same compiler version you are using now. ---------------------------------------------------------------------- Vincent Snijders · 2009-12-23 07:01 It means that fpc -iV did not return 2.2.4, but you are still using fpc 2.5.1. Please fix the symlink in /usr/bin/ppc386 ---------------------------------------------------------------------- mbohn · 2009-12-23 14:47 You are correct. Synaptic Package Manager says that I have 2.2.4-3 installed and that it is the latest version.  How do I Quote.. fix the symlink in /usr/bin/ppc386 ? ---------------------------------------------------------------------- Vincent Snijders · 2009-12-23 19:43 use ln (see man ln) to make a symbolic link from /usr/bin/ppc386 to /usr/lib/fpc/2.2.4/ppc386. make sure that: which ppc386 returns /usr/bin/ppc386. ---------------------------------------------------------------------- mbohn · 2009-12-24 01:01 That worked.  There are some error messages when Lazarus fires up, but I think it is basically usable for my console program. Thanks for all your help.  (And your patience!) ---------------------------------------------------------------------- Vincent Snijders · 2009-12-24 12:23 I glad you got a working Lazarus. :-)