On Wed, 29 Sep 2010 00:03:39 +0200 Thierry Bothorel <[email protected]> wrote:
> Mattias Gaertner a écrit : > > On Tue, 28 Sep 2010 22:44:06 +0200 > > Thierry Bothorel <[email protected]> wrote: > > > > > >> [...] > >> Ok, so this brings me to the starting point :-) I did a test. If I run just > >> startlazarus --pcp=~/.lazarus > >> it starts properly ,because it reads > >> /etc/lazarus/environmentoptions.xml, but this file is not supposed to be > >> there because it is installed and setup for another Lazarus installation. > >> > >> But if /etc/lazarus/environmentoptions.xml does not exist (as if I has > >> not installed Lazarus from Ubuntu repositories) , I get back to the > >> TFPCSourceCache.Update problem. On a fresh install no primary or > >> secondary config file is supposed to be there. I compiled Lazarus > >> with-dVerboseFPCSrcScan but I did not noticed new lines in the output. > >> > > > > Then start the IDE in gdb, run it, stop it and see the backtrace. > > > > Mattias > > > > -- > > > Uhm I never used gdb this way. Is this what you mean (see the last lines) > > ~$ gdb --args > /home/thierrybo/Sys/local/opt/lazarus_FPC_svn/startlazarus > --pcp=~/.lazarus --scp=~/.lazarus > GNU gdb (GDB) 7.0-ubuntu > Copyright (C) 2009 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > <http://gnu.org/licenses/gpl.html> > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. Type "show copying" > and "show warranty" for details. > This GDB was configured as "x86_64-linux-gnu". > For bug reporting instructions, please see: > <http://www.gnu.org/software/gdb/bugs/>... > Reading symbols from > /home/thierrybo/Sys/local/opt/lazarus_FPC_svn/startlazarus...done. > (gdb) > (gdb) r > Starting program: > /home/thierrybo/Sys/local/opt/lazarus_FPC_svn/startlazarus > --pcp=\~/.lazarus --scp=\~/.lazarus > [Thread debugging using libthread_db enabled] > Adding "--pcp=~/.lazarus" as a parameter > Adding "--scp=~/.lazarus" as a parameter > TLazarusManager.Run starting > /home/thierrybo/Sys/local/opt/lazarus_FPC_svn/lazarus ... > SetPrimaryConfigPath NewValue="~/.lazarus" -> "/home/thierrybo/.lazarus" > SetSecondaryConfigPath NewValue="~/.lazarus" -> "/home/thierrybo/.lazarus" > TMainIDE.ParseCmdLineOptions: > PrimaryConfigPath="/home/thierrybo/.lazarus" > SecondaryConfigPath="/home/thierrybo/.lazarus" > Note: environment config file not found - using defaults > NOTE: editor options config file not found - using defaults > NOTE: miscellaneous options file not found - using defaults > NOTE : fichier de configuration codetools non trouvé. Valeurs par défaut > utilisées. > > NOTE: Compiler filename not set! (see Environment / Options ... / > Environment / Files) > > NOTE: FPC source directory not set! (see Environment / Options ... / > Environment / Files) > TFPCTargetConfigCache.NeedsUpdate compiler file changed "/usr/bin/fpc" > FileAge=1244031136 StoredAge=0 > TFPCTargetConfigCache.Update /usr/bin/fpc TargetOS=linux > TargetCPU=x86_64 CompilerOptions= ExtraOptions= > RunTool /usr/bin/fpc -iTOTP -Px86_64 -Tlinux > RunTool /usr/bin/fpc -va -Px86_64 -Tlinux compilertest.pas > Using unit path: "/usr/lib/fpc/2.2.4/units/x86_64-linux/rtl" >[...] > Using unit path: "/usr/lib/fpc/2.2.4/units/x86_64-linux" > Using unit path: "/usr/lib/fpc/2.2.4/units/x86_64-linux/httpd22" > Using unit path: "/usr/lib/fpc/2.2.4" > TFPCTargetConfigCache.Update: has changed > TMainIDE.RescanCompilerDefines A ClearCaches=False > CompilerFilename=/usr/bin/fpc TargetOS=linux TargetCPU=x86_64 Looks good. > EnvFPCSrcDir=/usr/share/fpcsrc/$(FPCVer)/ FPCSrcDir= This can be improved. But I use a fpc source path with this macro too, so this can not be the bug. > TFPCSourceCache.Update /home/thierrybo ... > ^C > Program received signal SIGINT, Interrupt. > 0x000000000053ff41 in > SYSTEM_FPSYSCALL$INT64$INT64$INT64$INT64$INT64$$INT64 () > (gdb) bt > #0 0x000000000053ff41 in > SYSTEM_FPSYSCALL$INT64$INT64$INT64$INT64$INT64$$INT64 > () > #1 0x0000000000540520 in SYSTEM_FPWAITPID$LONGINT$PCINT$LONGINT$$LONGINT () > #2 0x0000000000000000 in ?? () > (gdb) Strange. Mattias -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
