Unable to get Lazarus 50402 to build lazarus / 1-Linux ---------------------------------------------------------------------- abtaylr · 2015-11-18 22:15 I have been using Lazarus Nightly Builds (getlazarus.org).  When we were on 50363, I used the setup.sh to get my prior version which was at something like 49869 updated.  In the past, this has always worked beautifully with no hiccups.  It downloads FPC 2.6.4 to use to build FPC 3.1.1 to its latest build. The output indicates everything builds properly.  Thereafter, it uses FPC 3.1.1 to build Lazarus.  This is the error that come up: (1002) Target OS: Linux for x86-64 (3104) Compiling fcllaz.pas Fatal: (10022) Can't find unit system used by fcllaz So, I reinstall fpc and lazarus, this time capturing the output.  It appears that some files were not built in fpc.  I used FPC 3.1.1 to compile the ./fpc/rtl files using the existing Makefile.  About half of the files are new with this compile, so something is amiss.  I then download FPC 3.0.0RC2 and use it to recompile FPC 3.1.1 using a new Makefile generated from fpcmake and Makefile.fpc with a change showing the REQUIREDVERSION to be 3.0.0.  Every;thing appears to compile properly. When I then used FPC 3.1.1 to remake Lazarus, I again get the same error messages regarding fcllaz, so I then use FPC 3.0.0RC2 to compile.  My error has now become:  lazarus.pp(154,1) Error: (9013) Error while linking and lazarus.pp(154,1) Fatal: (10026).  I also tried another version of lazarus.pp (it showed lazarus.pp.old) and got the same exceptions referring to 167,1.  I checked the pairs, but they were fine.  I tried adding another just in case, but that just brought up that extra end as an error. As I have kept working on this I have moved along so that I am now using build 50402.  I am including an output file.  At lines 755-757 is the following: ~/fcllaz.pas(10,16) Hint: (5023) Unit "db" not used in fcllaz ~/fcllaz.pas(10,40) Hint: (5023) Unit "eventlog" not used in fcllaz ~/fcllaz.pas(10,50) Hint: (5023) Unit "XMLConf" not used in fcllaz It appears to compile as does everything else until you get to line 8545. I have also tried just building the ide using its makefile.  That resulted in the following error message: /designer.pp(4312,1) Fatal: (1018) Compilation abEAccessViolation: Access violation   $000000002B578021 orted make[1]: *** [lazarus] Error 217 Makefile:4004: recipe for target 'lazarus' failed make[1]: Leaving directory '~/lazarus/ide' make: *** [ide] Error 2 Makefile:4428: recipe for target 'ide' failed /lazarus/packager/pkgmanager.pas(160,33An unhandled exception occurred at $0000000000000000: ) Hint: (5024) Parameter "Sender" not used ~/lazarus/packager/pkgmanager.pas(160,59) Hint: (5024) Parameter "Done" not used ~/lazarus/packager/pkgmanager.pas(1364,15) Fatal: (1018) CompilatiEAccessViolation: Access violation   $0000000000000000 on aborted make[1]: *** [lazarus] Error 217 Makefile:4004: recipe for target 'lazarus' failed make[1]: Leaving directory '~/lazarus/ide' make: *** [ide] Error 2 Makefile:4428: recipe for target 'ide' failed ---------------------------------------------------------------------- abtaylr · 2015-11-18 22:30 The newest error for ide build: /ide/editoroptions.pp(6746,1) Fatal: Internal error 2012082302 Fatal: (1018) Compilation aborted make[1]: *** [lazarus] Error 1 Makefile:4004: recipe for target 'lazarus' failed make[1]: Leaving directory '~/lazarus/ide' make: *** [ide] Error 2 Makefile:4428: recipe for target 'ide' failed ---------------------------------------------------------------------- abtaylr · 2015-11-19 05:55 I have started over using fpc-2.6.4 to compile both fpc-3.1.1 and lazarus.  The error that I get is: /usr/local/lib/libpangoft2-1.0.so.0: undefined reference to `pango_matrix_get_font_scale_factors' /home/arlen/Development/FreePascal/lazarus/ide/lazarus.pp(167,1) Error: (9013) Error while linking /home/arlen/Development/FreePascal/lazarus/ide/lazarus.pp(167,1) Fatal: (10026) There were 1 errors compiling module, stopping Fatal: (1018) Compilation aborted Makefile:4004: recipe for target 'lazarus' failed make[2]: *** [lazarus] Error 1 make[2]: Leaving directory '/home/arlen/Development/FreePascal/lazarus/ide' Makefile:4432: recipe for target 'bigide' failed make[1]: *** [bigide] Error 2 make[1]: Leaving directory '/home/arlen/Development/FreePascal/lazarus/ide' Makefile:3072: recipe for target 'idebig' failed make: *** [idebig] Error 2 I have installed libpangoft2-1.0-0_1.36.8-3_amd64.deb in case the pango error shown has any effect.  There is a newer version up to 1.38, but Kubuntu reports that it will break the chain, so I used the next previous version.  This pango error seems to have been showing up since about 2007. I scoured my pc to remove any stray fpc or lazarus files that might be gumming up the works.  Nothing was found. I have no other ideas of how to move forward. ---------------------------------------------------------------------- Cyrax · 2015-11-19 10:32 Can you show which make options did you use to build both FPC and Lazarus? ---------------------------------------------------------------------- abtaylr · 2015-11-19 19:52 For fpc I used:   make -B all For lazarus I used:  make -B clean bigide ---------------------------------------------------------------------- abtaylr · 2015-11-19 20:33 This is my latest attempt: /usr/local/lib/libpangocairo-1.0.so.0: undefined reference to `pango_renderer_get_alpha' make[3]: *** [lazarus] Error 1 make[2]: *** [idepkg] Error 2 make[1]: *** [idepkg] Error 2 /home/arlen/Development/FreePascal/lazarus/ide/lazarus.pp(167,1) Error: (9013) Error while linking /home/arlen/Development/FreePascal/lazarus/ide/lazarus.pp(167,1) Fatal: (10026) There were 1 errors compiling module, stopping Fatal: (1018) Compilation aborted Makefile:4004: recipe for target 'lazarus' failed make[3]: Leaving directory '/home/arlen/Development/FreePascal/lazarus/ide' Makefile:4430: recipe for target 'idepkg' failed make[2]: Leaving directory '/home/arlen/Development/FreePascal/lazarus/ide' Makefile:3074: recipe for target 'idepkg' failed make[1]: Leaving directory '/home/arlen/Development/FreePascal/lazarus' Error: (lazarus) Build IDE: stopped with exit code 512 Error: (lazarus) Building IDE: Building IDE failed. Makefile:3076: recipe for target 'useride' failed make: *** [useride] Error 2 strip: 'lazarus': No such file strip: 'startlazarus': No such file Free Pascal and Lazarus install complete setup.sh: 292: setup.sh: ./lazarus: not found arlen@Dumbledore:~/Development$ Reusing existing ksycoca Recreating ksycoca file ("/home/arlen/.cache/ksycoca5_en_oVS3ngZDraS4znFEzPH6EMx6IwM=", version 303) Still in the time dict (i.e. deleted files) ("apps") modified: "/home/arlen/.local/share/applications/lazarus.desktop" kf5.kservice.sycoca: The menu spec file contains a Layout or DefaultLayout tag without the mandatory Merge tag inside. Please fix your file. kf5.kservice.sycoca: The menu spec file contains a Layout or DefaultLayout tag without the mandatory Merge tag inside. Please fix your file. Next I will manually build fpc using fpc-2.6.4.  I will just use:  make -B all.  No errors are showing.  The output was captured. ---------------------------------------------------------------------- abtaylr · 2015-11-19 21:19 Next I tried compiling lazarus using fpc-3.1.1 just created, this is the error: /home/arlen/Development/FreePascal/lazarus/ide/etsrceditmarks.pas(205, 34) Hint: (5024) Parameter "aText" not used /home/arlen/Development/FreePascal/lazarus/ide/etsrcediAn unhandled exception occurred at $0000000000411D0D: EAccessViolation: Access violation   $0000000000411D0D tmarks.pas(1160,42) Error: (1026) Compilation raised exception internally Fatal: (1018) Compilation aborted make[2]: *** [lazarus] Error 217 Makefile:4004: recipe for target 'lazarus' failed make[2]: Leaving directory '/home/arlen/Development/FreePascal/lazarus/ide' Makefile:4432: recipe for target 'bigide' failed make[1]: *** [bigide] Error 2 make[1]: Leaving directory '/home/arlen/Development/FreePascal/lazarus/ide' make: *** [idebig] Error 2 Makefile:3072: recipe for target 'idebig' failed Next, I use fpc-2.6.4, the error I get is: /home/arlen/Development/FreePascal/fpc-2.6.4/bin/ppcx64 -MObjFPC -Scghi -O1 -g -gl -l -vewnhibq -Fu. -FE. -FU../units/x86_64-linux -Cg -dx86_64 fcllaz.pas Hint: (11030) Start of reading config file /home/arlen/.fpc.cfg Hint: (11031) End of reading config file /home/arlen/.fpc.cfg Free Pascal Compiler version 2.6.4 [2014/03/03] for x86_64 Copyright (c) 1993-2014 by Florian Klaempfl and others (1002) Target OS: Linux for x86-64 (3104) Compiling fcllaz.pas Fatal: (10022) Can't find unit system used by fcllaz Fatal: (1018) Compilation aborted Makefile:2702: recipe for target 'fcllaz.ppu' failed make[1]: *** [fcllaz.ppu] Error 1 make[1]: Leaving directory '/home/arlen/Development/FreePascal/lazarus/packager/registration' Makefile:3050: recipe for target 'registration' failed make: *** [registration] Error 2 my fpc output file shows for the file system.pp its movement throughout the process: ~/fpc-2.6.4/bin/ppcx64 -Ur -Ur -Xs -O2 -n -Fi../inc -Fi../x86_64 -Fi../unix -Fix86_64 -FE. -FU~/fpc/rtl/units/x86_64-linux -Cg -dx86_64 -dRELEASE -Us -Sg system.pp /bin/rm -f ~/fpc/rtl/units/x86_64-linux/system.ppu ~/fpc/compiler/ppc1 -Ur -Ur -Xs -O2 -n -Fi../inc -Fi../x86_64 -Fi../unix -Fix86_64 -FE. -FU~/fpc/rtl/units/x86_64-linux -Cg -dx86_64 -dRELEASE -Us -Sg system.pp /bin/rm -f ~/fpc/rtl/units/x86_64-linux/system.ppu ~/fpc/compiler/ppc3 -Ur -Ur -Xs -O2 -n -Fi../inc -Fi../x86_64 -Fi../unix -Fix86_64 -FE. -FU~/fpc/rtl/units/x86_64-linux -Cg -Owdevirtcalls,optvmts -Fw~/fpc/compiler/pp1.wpo -dx86_64 -dRELEASE -Us -Sg system.pp /bin/rm -f ~/fpc/rtl/units/x86_64-linux/system.ppu ~/fpc/compiler/ppcwpo1 -Ur -Ur -Xs -O2 -n -Fi../inc -Fi../x86_64 -Fi../unix -Fix86_64 -FE. -FU~/fpc/rtl/units/x86_64-linux -Cg -Owdevirtcalls,optvmts -Fw~/fpc/compiler/pp2.wpo -dx86_64 -dRELEASE -Us -Sg system.pp /bin/rm -f ~/fpc/rtl/units/x86_64-linux/system.ppu ~/fpc/compiler/ppcx64 -Ur -XX -CX -Ur -Xs -O2 -n -Fi../inc -Fi../x86_64 -Fi../unix -Fix86_64 -FE. -FU~/fpc/rtl/units/x86_64-linux -Cg -dx86_64 -dRELEASE -Us -Sg system.pp This shows that the new compiler was used to create the files used by Lazarus to build fcllaz, so fpc-3.1.1 should be working and not giving errors. The errors shown by using fpc-2.6.4 then make sense. I then did a 'make distclean', followed by the recommended command of 'make clean bigide', here is the error: /home/arlen/Development/FreePascal/lazarus/ide/lazarus.pp(167,1) Error: (9013) Error while linking /home/arlen/Development/FreePascal/lazarus/ide/lazarus.pp(167,1) Fatal: (10026) There were 1 errors compiling module, stopping Fatal: (1018) Compilation aborted Makefile:4004: recipe for target 'lazarus' failed make[2]: *** [lazarus] Error 1 make[2]: Leaving directory '/home/arlen/Development/FreePascal/lazarus/ide' Makefile:4432: recipe for target 'bigide' failed make[1]: *** [bigide] Error 2 make[1]: Leaving directory '/home/arlen/Development/FreePascal/lazarus/ide' Makefile:3072: recipe for target 'idebig' failed make: *** [idebig] Error 2 I have looked at lazarus.pp and can't see any errors. ---------------------------------------------------------------------- Cyrax · 2015-11-19 22:06 Don't install FPC and Lazarus in main system directories. Instead install them into your home directory. Only exception for this is the release version of FPC (2.6.4). QuoteFatal: (10022) Can't find unit system used by fcllaz Use utility fpcmkcfg with these parameters to create fpc.cfg configuration text file: -o /fpc.cfg -d basepath= Also you probably need to create relative symbolic links to lib/fpc//msg and lib/fpc//units in root directory where you did install FPC (give them names such as msg and units) Rename fpc binary to fpc_old and use this script as replacement for fpc:Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i #!/bin/bashSCRIPT_PATH="$( cd "$(dirname "$0")" ; pwd -P )" "${SCRIPT_PATH}/fpc_old" -n @"${SCRIPT_PATH}/fpc.cfg" "$@" ---------------------------------------------------------------------- abtaylr · 2015-11-20 06:01 I am using /home/arlen/Development/FreePascal/ for my installation. I have found one problem relating to the libraries crti.o, et al. My Kubuntu system recently got an upgrade from 15.04 to 15.10.  Evidently that upgrade came with GCC 5.2.1 instead of GCC 4.9.3 that I had previously been using.  I finally found the location of these libraries in /usr/lib/debug/usr/lib/x86_64-linux-gnu.  So much for that problem ... I'll get back to you after I try things out again. ---------------------------------------------------------------------- abtaylr · 2015-11-20 20:12 I have a good install of fpc. I had to re-install libgdb.a and its associated files, as well as clear up the problems with crt1.0, crtbegin.o, crtbeginS.o, crtbeginT.o, etc. With lazarus I am getting the following error: make[2]: Leaving directory '/home/arlen/Development/FreePascal/lazarus/components/macroscript' make[1]: Leaving directory '/home/arlen/Development/FreePascal/lazarus/components' make -C ide bigide make[1]: Entering directory '/home/arlen/Development/FreePascal/lazarus/ide' /bin/mkdir -p ../units/x86_64-linux/gtk2 ../tools/svn2revisioninc .. revision.inc An unhandled exception occurred at $00007FDC7D2314B7: EAccessViolation: Access violation An unhandled exception occurred at $00007FDC7CC78F24: EAccessViolation: Access violation   $00007FDC7CC78F24 make[1]: *** [revisioninc] Error 217 Makefile:4425: recipe for target 'revisioninc' failed make[1]: Leaving directory '/home/arlen/Development/FreePascal/lazarus/ide' make: *** [idebig] Error 2 Makefile:3072: recipe for target 'idebig' failed I have captured output as well as running with a stacktrace.  The error occurs when lazbuild is called upon.  I tried just running lazbuild and the same error is produced. So I am now working on getting to the source of the problem with lazbuild. ---------------------------------------------------------------------- abtaylr · 2015-11-20 22:04 My output file shows: make --assume-new=lazbuild.lpr lazbuild OPT=' -Fu../packager/units/x86_64-linux -Fu../components/codetools/units/x86_64-linux -Fu../components/debuggerintf/lib/x86_64-linux -Fu../components/lazutils/lib/x86_64-linux -Fu../lcl/units/x86_64-linux -Fu../lcl/units/x86_64-linux/nogui -Fu../components/ideintf/units/x86_64-linux/nogui -Fu../components/synedit/units/x86_64-linux/nogui -Fu../components/lazcontrols/lib/x86_64-linux/nogui -Fu../components/lazdebuggergdbmi/lib/x86_64-linux -Fu../units/x86_64-linux/nogui ' make[2]: Entering directory '~/lazarus/ide' ~/fpc/bin/ppcx64 -gl -vbqewnhi -Sci -dlclnogui -Fu../designer -Fu../debugger -Fu../debugger/frames -Fu../converter -Fu../packager -Fu../packager/frames -Fu../components/custom -Fuframes -Fu. -Fiinclude -Fiinclude/linux -Fi../images -FE.. -FU../units/x86_64-linux/nogui -Cg -Fl/usr/lib/gcc/x86_64-linux-gnu/5 -Flinclude -Fl/etc/ld.so.conf.d/*.conf -Fu../packager/units/x86_64-linux -Fu../components/codetools/units/x86_64-linux -Fu../components/debuggerintf/lib/x86_64-linux -Fu../components/lazutils/lib/x86_64-linux -Fu../lcl/units/x86_64-linux -Fu../lcl/units/x86_64-linux/nogui -Fu../components/ideintf/units/x86_64-linux/nogui -Fu../components/synedit/units/x86_64-linux/nogui -Fu../components/lazcontrols/lib/x86_64-linux/nogui -Fu../components/lazdebuggergdbmi/lib/x86_64-linux -Fu../units/x86_64-linux/nogui -dx86_64 lazbuild.lpr Hint: (11030) Start of reading config file /home/arlen/.fpc.cfg Hint: (11031) End of reading config file /home/arlen/.fpc.cfg Free Pascal Compiler version 3.1.1 [2015/11/20] for x86_64 Copyright (c) 1993-2015 by Florian Klaempfl and others (1002) Target OS: Linux for x86-64 (3104) Compiling lazbuild.lpr (3104) Compiling ideprocs.pp (3104) Compiling lazconf.pp . . . . (9022) Compiling resource ../units/x86_64-linux/nogui/lazbuild.or (9015) Linking ../lazbuild . . . . (1008) 92409 lines compiled, 7.7 sec (1021) 2 warning(s) issued (1022) 324 hint(s) issued When I run lazbuild I get the same error as seen in the output. ---------------------------------------------------------------------- abtaylr · 2015-11-21 02:37 I downloaded lazarus 1.4.4 debian.  I have been unable to get the application started.  GDB gives the following: (gdb) run exec-file /usr/bin/startlazarus Starting program: /usr/bin/lazarus-ide exec-file /usr/bin/startlazarus [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux- gnu/libthread_db.so.1". Program received signal SIGSEGV, Segmentation fault. _dl_relocate_object (scope=0x20a3428, reloc_mode=reloc_mode@entry=1, consider_profiling=consider_profiling@entry=0)     at dl-reloc.c:238 238     dl-reloc.c: No such file or directory. (Debian installed Lazarus in its default locations /usr/bin/ , etc.) The error is happening in the makefile at line 3067 which provides: revisioninc:    $(MAKE) -C ide revisioninc I ran each command in the makefile from about a 120 lines above this one. Everything works until it gets there.  I used the command:  make -C ide revisioninc. The output was: make[1]: Leaving directory '/home/arlen/Development/FreePascal/lazarus/tools' make: Leaving directory '/home/arlen/Development/FreePascal/lazarus/tools' arlen@Dumbledore:~/Development/FreePascal/lazarus$ make -C ide revisioninc make: Entering directory '/home/arlen/Development/FreePascal/lazarus/ide' ../tools/svn2revisioninc .. revision.inc An unhandled exception occurred at $00007F66C4C354B7: EAccessViolation: Access violation An unhandled exception occurred at $00007F66C467CF24: EAccessViolation: Access violation   $00007F66C467CF24 Makefile:4425: recipe for target 'revisioninc' failed make: *** [revisioninc] Error 217 make: Leaving directory '/home/arlen/Development/FreePascal/lazarus/ide' arlen@Dumbledore:~/Development/FreePascal/lazarus$ make -C ide revisioninc | tee revisioninc-2133.txt make: Entering directory '/home/arlen/Development/FreePascal/lazarus/ide' ../tools/svn2revisioninc .. revision.inc An unhandled exception occurred at $00007FC26506A4B7: EAccessViolation: Access violation An unhandled exception occurred at $00007FC264AB1F24: EAccessViolation: Access violation   $00007FC264AB1F24 make: *** [revisioninc] Error 217 Makefile:4425: recipe for target 'revisioninc' failed make: Leaving directory '/home/arlen/Development/FreePascal/lazarus/ide' arlen@Dumbledore:~/Development/FreePascal/lazarus$ revisioninc: revisioninc:: command not found arlen@Dumbledore:~/Development/FreePascal/lazarus$ $(MAKE) -C ide revisionincrevisioninc: MAKE: command not found -C: command not found arlen@Dumbledore:~/Development/FreePascal/lazarus$ make -C ide revisioninc | tee revisioninc-2135.txt make: Entering directory '/home/arlen/Development/FreePascal/lazarus/ide' ../tools/svn2revisioninc .. revision.inc An unhandled exception occurred at $00007FED17D164B7: EAccessViolation: Access violation An unhandled exception occurred at $00007FED1775DF24: EAccessViolation: Access violation   $00007FED1775DF24 make: *** [revisioninc] Error 217 Makefile:4425: recipe for target 'revisioninc' failed make: Leaving directory '/home/arlen/Development/FreePascal/lazarus/ide' ---------------------------------------------------------------------- abtaylr · 2015-11-21 02:51 I have manually finished all of the subsequent make entries without problem. So, the problem lies with the access violation relating to svnrevisioninc .. revision.inc above.  I have not been able open any project files from this directory since I cannot seem to get the stable versions of Lazarus to run either. ---------------------------------------------------------------------- abtaylr · 2015-11-21 19:24 Since my last post I have completely formatted my disks and re-install Kubuntu-15.10.  I fixed the problems relating to /usr/lib/'s shown above. I re-installed gdb and gcc. Then I downloaded fpc & lazarus and began again.  FPC had a good build.  Lazarus had similar problems as before.  I culled a few things from the output file.  Notice the warning relating to svn2revisioninc.  Here is the output: Extracting  lazarus/tools/svn2revisioninc.lpi  . . . . make --assume-new=svn2revisioninc.pas svn2revisioninc make[2]: Entering directory '~/lazarus/tools' ~/fpc/bin/ppcx64 -gl -Fu. -Fu../components/lazutils/lib/x86_64-linux -Fu../lcl/units/x86_64-linux -Fu../lcl/units/x86_64-linux/nogui -FE. -FU. -Cg -Fl/usr/lib/gcc/x86_64-linux-gnu/5 -Flinclude -Fl/etc/ld.so.conf.d/*.conf -dx86_64 svn2revisioninc.pas Free Pascal Compiler version 3.1.1 [2015/11/21] for x86_64 Copyright (c) 1993-2015 by Florian Klaempfl and others Target OS: Linux for x86-64 Compiling svn2revisioninc.pas []svn2revisioninc.pas(383,38) Warning: Implicit string type conversion with potential data loss from "WideString" to "AnsiString" Linking ./svn2revisioninc 790 lines compiled, 0.3 sec 1 warning(s) issued  . . . .  make -C ide ide make[1]: Entering directory '~/lazarus/ide' /bin/mkdir -p ../units/x86_64-linux/gtk2 ../tools/svn2revisioninc .. revision.inc Makefile:4425: recipe for target 'revisioninc' failed make[1]: Leaving directory '~/lazarus/ide' Makefile:3070: recipe for target 'ide' failed ./lazbuild --lazarusdir=. --build-ide= Makefile:3076: recipe for target 'useride' failed ---------------------------------------------------------------------- Cyrax · 2015-11-22 02:01 Did you get Lazarus source code from SVN server? If you didn't, then add this USESVN2REVISIONINC=0 into your make commands. It will disable running of svn2revisioninc tool during the build. ---------------------------------------------------------------------- abtaylr · 2015-11-22 07:31 I'll try it. ---------------------------------------------------------------------- abtaylr · 2015-11-23 07:23 Success! Finally! Thank you, Cyrax! abt