Re: how to build lilypond in debug mode?

2013-07-26 Thread immanuel litzroth
pass the debug flags to the configure call.
CXXFLAGS=-ggdb3 ./configure possible args
you can also build a profiling build throught the same mechanism.

The --with-debug or like switches that a configure call supports should
refer to
extra debugging checks in the code switched on.
i


On Fri, Jul 26, 2013 at 7:33 AM, Frédéric Bron frederic.b...@m4x.orgwrote:

 Hi,
 I would like to run lilypond in gdb to understand what happens when using
 ties.
 How can I build lilypond for that?
 When I run configure --help, it says it is built with debug info by
 default:
 --enable-debugging  compile with debugging info. Default: on
 But when I run gdb, I get some strange errors (see below).
 Frédéric

 gdb) run toto2.ly
 Starting program:
 /home/fred/lilypond/build-2013-07-25_11-30/lily/out/lilypond toto2.ly
 Traceback (most recent call last):
   File /usr/share/gdb/auto-load/usr/lib64/
 libgobject-2.0.so.0.3600.3-gdb.py,
 line 9, in module
 from gobject import register
   File /usr/share/glib-2.0/gdb/gobject.py, line 3, in module
 import gdb.backtrace
 ImportError: No module named backtrace
 Traceback (most recent call last):
   File /usr/share/gdb/auto-load/usr/lib64/
 libgobject-2.0.so.0.3600.3-gdb.py,
 line 9, in module
 from gobject import register
   File /usr/share/glib-2.0/gdb/gobject.py, line 3, in module
 import gdb.backtrace
 ImportError: No module named backtrace
 [Thread debugging using libthread_db enabled]
 Using host libthread_db library /lib64/libthread_db.so.1.
 Missing separate debuginfo for /lib64/libgraphite2.so.3
 Try: yum --disablerepo='*' --enablerepo='*debug*' install
 /usr/lib/debug/.build-id/a1/aa32c91bc181cb69ebc81bbfd03a1349ea4e33.debug
 GNU LilyPond 2.17.23
 warning: not relocating, no 2.17.23/ or current/ found under
 /home/fred/lilypond/build-2013-07-25_11-30/lily/share/lilypond/
 ERROR: In procedure primitive-load-path:
 ERROR: Unable to find file lily.scm in load path
 [Inferior 1 (process 9056) exited with code 01]
 Missing separate debuginfos, use: debuginfo-install
 compat-guile18-1.8.8-6.fc19.x86_64 expat-2.1.0-5.fc19.x86_64
 fontconfig-2.10.93-1.fc19.x86_64 freetype-2.4.11-6.fc19.x86_64
 glib2-2.36.3-2.fc19.x86_64 glibc-2.17-11.fc19.x86_64
 gmp-5.1.1-2.fc19.x86_64 harfbuzz-0.9.18-3.fc19.x86_64
 libffi-3.0.13-4.fc19.x86_64 libgcc-4.8.1-1.fc19.x86_64
 libstdc++-4.8.1-1.fc19.x86_64 libtool-ltdl-2.4.2-16.fc19.x86_64
 nss-softokn-freebl-3.15.1-1.fc19.x86_64 pango-1.34.1-1.fc19.x86_64

 ___
 lilypond-devel mailing list
 lilypond-devel@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-devel

___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: how to build lilypond in debug mode?

2013-07-26 Thread Benkő Pál
 pass the debug flags to the configure call.
 CXXFLAGS=-ggdb3 ./configure possible args
 you can also build a profiling build throught the same mechanism.

 The --with-debug or like switches that a configure call supports should
 refer to
 extra debugging checks in the code switched on.

even better: configure with --disable-optimising, see
http://lilypond.org/doc/v2.17/Documentation/contributor/debugging-c_002b_002b-code

p

___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: how to build lilypond in debug mode?

2013-07-26 Thread immanuel litzroth
I don't think that that is how it's supposed to work in autotools in
general, but if
it works: great!
Immanuel


On Fri, Jul 26, 2013 at 8:59 AM, Benkő Pál benko@gmail.com wrote:

  pass the debug flags to the configure call.
  CXXFLAGS=-ggdb3 ./configure possible args
  you can also build a profiling build throught the same mechanism.
 
  The --with-debug or like switches that a configure call supports should
  refer to
  extra debugging checks in the code switched on.

 even better: configure with --disable-optimising, see

 http://lilypond.org/doc/v2.17/Documentation/contributor/debugging-c_002b_002b-code

 p

___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel