[Lazarus] unable to rebuild lazarus

Martin Friebe lazarus at mfriebe.de
Mon Jul 28 19:34:05 CEST 2008


>
> the exe will not run from windows explorer.
Ah ok, so it's not a debugger problem. Does the above mean:
1- Windows says it is not a valid executable? => probably best to go to 
the fpc mailing list
2- Window claims you haven't got permission to run it?
3- Windows doesn't say anything

 --> And just to be on the save side, compiling a simple new project 
with a form, does that get you a working executable? <--

Also worth checking in the compiler option, that you selected to produce 
a windows option, and for the correct cpu.... Best to reset all settings 
to their default.
Remove all optimizations / Enable All range, Stack etc checking. / 
Remove using a manifest

In case 3:

It looks like your exe either goes into an endless loop (check the 
process list/task manager), or crashes/exits immediately at startup.
 -Was it imported into lazarus, from Delphi or some other tool?
 -Does it use special libs that are not part of lazarus, freepascal, 
could they have initialization code?

In any case it will be hard to find, since you can't debug it from 
inside Lazarus (unless you are a GDB expert and can use GDB standalone).

You could try to remove features from the app, until you get a working 
executable. Then add them again, and see which one breaks it... But it's 
a lot of work, and no promise it will lead anywhere.


Best Regards
Martin.

Sorry if this isn't of much help, but I am purely guessing here. Good luck.


Bob K. wrote:
> Hi Martin,
>
> 1. lazarus/mingw/bin/gdb.exe
> 2. I'm unable to find the version of gdb.exe
> 3. there is nothing in the debug output window
>
> the exe will not run from windows explorer.
>
> I'm running Windows Vista.
>
> --------------------------------------------------
> From: "Martin Friebe" <lazarus at mfriebe.de>
> Sent: Monday, July 28, 2008 10:49 AM
> To: "General mailing list" <lazarus at lazarus.freepascal.org>
> Subject: Re: [Lazarus] unable to rebuild lazarus
>
>   
>> Hi Bob,
>>
>> I understand this as follows:
>> - Lazarus compiles, and a new exe is generated.
>> - the exe can be started from windows explorer, and works
>>   if your exe doesn't start from the win explorer neither, the below
>> dbg questions are irrelevant.
>> - the exe does *not* open in a shell => it's linked as a win32-gui-app
>> (compiler-options/linking)
>>
>> 1) What is the "debugger optins" (environment menu) setup on your lazarus?
>> type should be "Gnu debugger", no ssh
>> path must point to a valid gdb.exe
>>
>> 2) What version of GDB?
>>
>> 3) If you open "view menu"/"debug windows"/"debug output" can you copy
>> the content ?
>>
>>
>> Best Regards
>> Martin
>>
>> Bob K. wrote:
>>     
>>> Still the same problem.
>>>
>>>
>>> --------------------------------------------------
>>> From: "Martin Friebe" <lazarus at mfriebe.de>
>>> Sent: Sunday, July 27, 2008 1:17 PM
>>> To: "General mailing list" <lazarus at lazarus.freepascal.org>
>>> Subject: Re: [Lazarus] unable to rebuild lazarus
>>>
>>>
>>>       
>>>> Hi Bob,
>>>>
>>>> Lazarus use GDB (from the mingw project) for windows. Unfortunately I
>>>> have not yet found a realty bug-free version of GDB.
>>>>
>>>> I would advice to:
>>>> a) use the "reset debugger" entry from the "run" menu. (especially if
>>>> you get error msgs running an app the 2nd time)
>>>> b) Check with the task manager for any gdb processes, that are left
>>>> over. (That could also have cause your files to be locked)
>>>>
>>>>
>>>>
>>>> Best Regards
>>>> Martin
>>>>
>>>>
>>>>
>>>> Bob K. wrote:
>>>>
>>>>         
>>>>> Mattais,
>>>>>
>>>>> I deleted the exe file, then selected Run.  The project recompiled
>>>>> successfully, but now it says (debugging...) and is not doing anything
>>>>> else.
>>>>>
>>>>> bob k.
>>>>>
>>>>> --------------------------------------------------
>>>>> From: "Mattias Gaertner" <nc-gaertnma at netcologne.de>
>>>>> Sent: Saturday, July 26, 2008 1:46 PM
>>>>> To: <lazarus at lazarus.freepascal.org>
>>>>> Subject: Re: [Lazarus] unable to rebuild lazarus
>>>>>
>>>>>
>>>>>
>>>>>           
>>>>>> On Sat, 26 Jul 2008 13:21:55 -0400
>>>>>> "Bob K." <rkamarowski at yahoo.com> wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>             
>>>>>>> Compiled with -vu -vt options:
>>>>>>>
>>>>>>> rakphoto.pas(53,61) Hint: Parameter "Field" not used
>>>>>>> rakphoto.pas(54,7) Hint: Parameter "AFont" not used
>>>>>>> rakphoto.pas(54,25) Hint: Parameter "Background" not used
>>>>>>> rakphoto.pas(54,49) Hint: Parameter "SortMarker" not used
>>>>>>> rakphoto.pas(55,7) Hint: Parameter "IsDown" not used
>>>>>>> rakphoto.pas(10,11) Hint: Unit "rxlookup" not used in rakphoto
>>>>>>> rakphoto.pas(10,21) Hint: Unit "rxdbcomb" not used in rakphoto
>>>>>>> rakphoto.pas(10,30) Hint: Unit "rxmemds" not used in rakphoto
>>>>>>> rakphotography.lpr(17,1) Error: Can't create object file:
>>>>>>> rakphotography.exe
>>>>>>> rakphotography.lpr(17,1) Fatal: Can't create
>>>>>>> executable rakphotography.exe
>>>>>>>
>>>>>>>
>>>>>>>               
>>>>>> Sorry. You misunderstood me.
>>>>>> To find the error 'unit interfaces not found' you should compile with
>>>>>> -vt -vu.
>>>>>>
>>>>>> The can not create object files means for example: disk full, no write
>>>>>> permissions, output directory does not exist or output file is locked.
>>>>>> Delete the old exe before compiling.
>>>>>>
>>>>>> Mattias
>>>>>> _______________________________________________
>>>>>> Lazarus mailing list
>>>>>> Lazarus at lazarus.freepascal.org
>>>>>> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
>>>>>>
>>>>>>
>>>>>>             
>>>>> _______________________________________________
>>>>> Lazarus mailing list
>>>>> Lazarus at lazarus.freepascal.org
>>>>> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
>>>>>
>>>>>
>>>>>           
>>>> _______________________________________________
>>>> Lazarus mailing list
>>>> Lazarus at lazarus.freepascal.org
>>>> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
>>>>
>>>>         
>>> _______________________________________________
>>> Lazarus mailing list
>>> Lazarus at lazarus.freepascal.org
>>> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
>>>
>>>       
>> _______________________________________________
>> Lazarus mailing list
>> Lazarus at lazarus.freepascal.org
>> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus 
>>     
>
>
> _______________________________________________
> Lazarus mailing list
> Lazarus at lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
>   



More information about the Lazarus mailing list