[gmx-developers] Re: debugging gromacs with DDD

Igor Leontyev ileontyev at ucdavis.edu
Sun May 2 01:54:36 CEST 2010

>>>>>> Hi,
>>>>>> I am trying to use DDD interface to debug mdrun program. DDD
>>>>>> invocation,however, generate an error:
>>>>>> "../sysdeps/i386/elf/start.S: no such file or directory"
>>>>>> How to fix it?
>>>>>> GMX and FFTW codes were compiled with "-enable-debug" flag on
>>>>>> configurestep. DDD is called by the command: "ddd
>>>>>> $gmx_path/mdrun_db". GDB debugging (no GUI) starts without errors.
>>>>>> Environment is Ubuntu 9.10, DDD3.3.12.
>>>>> That suggests you have a problem with DDD, rather than GROMACS. Do 
>>>>> other
>>>>> codes run under DDD? Have you checked it's troubleshooting 
>>>>> FAQ/whatever?
>>>>> Mark
>>>> And have you tried with good olg gdb?
>>> I used only gdb provided with Ubuntu 9.10 and recent release of gcc4.5.
>>> DDD's tutorial sample was debugged without any problem. Solutions 
>>> suggested
>>> in internet mainly refer to the lack of compilation without "-g" flag 
>>> which
>>> seems to be not my case.
>>> Could successful DDD users give me some hint how to correctly debug 
>>> gromacs?
> To get debugging info into your binary with gcc you need to add
> something like:
> CFLAGS="-O0 -msse2 -g"
> to your configure command line.
> Berk

CFLAGS="-O0 -msse2 -g" or just CFLAGS="-g"  solve the problem.

For some reason "-enable-debug" flag does not do the job. The little trick 
is not mentioned in the Debugging section of gromacs Programmer's Guide. 
Thank you everybody for prompt response. 

More information about the gromacs.org_gmx-developers mailing list