* bug#11379: emacs 24; compilation fails in debug mode
@ 2012-04-29 17:41 Dov Grobgeld
2012-04-30 18:16 ` Glenn Morris
0 siblings, 1 reply; 3+ messages in thread
From: Dov Grobgeld @ 2012-04-29 17:41 UTC (permalink / raw)
To: 11379
[-- Attachment #1: Type: text/plain, Size: 930 bytes --]
Chucking out git head (git commit e3e392d from git://repo.or.cz/emacs.git)
and doing a debug build as described below
fails. The compilation looks for the non-existing file "chkmalloc.h".
Here are the steps that I performed:
./autogen.sh
./configure --prefix=/usr/local/public-dev/ CPPFLAGS=-DDEBUG CFLAGS="-g
-O0"
make
which fails as follows:
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../src -I../lib
-I/space/pub-repos/emacs.git/lib-src
-I/space/pub-repos/emacs.git/lib-src/../src
-I/space/pub-repos/emacs.git/lib-src/../lib -Wl,-znocombreloc -DDEBUG -g
-O0 -DEMACS_NAME="\"GNU Emacs\"" \
-DVERSION="\"24.1.50\"" /space/pub-repos/emacs.git/lib-src/etags.c \
regex.o ../lib/libgnu.a -o etags
/space/pub-repos/emacs.git/lib-src/etags.c:233:24: fatal error:
chkmalloc.h: No such file or directory
System is: Linux grower 3.3.2-6.fc16.i686 #1 SMP Sat Apr 21 13:23:12 UTC
2012 i686 i686 i386 GNU/Linux
Regards,
Dov
[-- Attachment #2: Type: text/html, Size: 1229 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#11379: emacs 24; compilation fails in debug mode
2012-04-29 17:41 bug#11379: emacs 24; compilation fails in debug mode Dov Grobgeld
@ 2012-04-30 18:16 ` Glenn Morris
2012-04-30 22:15 ` Francesco Potortì
0 siblings, 1 reply; 3+ messages in thread
From: Glenn Morris @ 2012-04-30 18:16 UTC (permalink / raw)
To: Dov Grobgeld; +Cc: 11379
Dov Grobgeld wrote:
> ./configure --prefix=/usr/local/public-dev/ CPPFLAGS=-DDEBUG CFLAGS="-g
> -O0"
FYI, there is no "debug mode" for compiling Emacs.
Or rather, if there is, it is to configure with --enable-checking or
something similar.
-DDEBUG appears to be something that the authors of a few specialized
files have used for their own convenience; or was inherited from files
that also lived outside Emacs at one time. So I wouldn't expect to get
much out of trying to compile all of Emacs with it (why did you try?).
In the particular case of etags, it may well be referring to some
external .h file that the maintainer wrote for his own use.
(maybe http://fly.isti.cnr.it/pub/software/C/chkmalloc.h ?)
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#11379: emacs 24; compilation fails in debug mode
2012-04-30 18:16 ` Glenn Morris
@ 2012-04-30 22:15 ` Francesco Potortì
0 siblings, 0 replies; 3+ messages in thread
From: Francesco Potortì @ 2012-04-30 22:15 UTC (permalink / raw)
To: Glenn Morris; +Cc: Dov Grobgeld, 11379
>Dov Grobgeld wrote:
>
>> ./configure --prefix=/usr/local/public-dev/ CPPFLAGS=-DDEBUG CFLAGS="-g
>> -O0"
>
>FYI, there is no "debug mode" for compiling Emacs.
>Or rather, if there is, it is to configure with --enable-checking or
>something similar.
>
>-DDEBUG appears to be something that the authors of a few specialized
>files have used for their own convenience; or was inherited from files
>that also lived outside Emacs at one time. So I wouldn't expect to get
>much out of trying to compile all of Emacs with it (why did you try?).
>
>In the particular case of etags, it may well be referring to some
>external .h file that the maintainer wrote for his own use.
>(maybe http://fly.isti.cnr.it/pub/software/C/chkmalloc.h ?)
Yes, that's it. It makes no sense using -DDEBUG while compiling etags
outside of the development environment I use to maintain etags.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-04-30 22:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-29 17:41 bug#11379: emacs 24; compilation fails in debug mode Dov Grobgeld
2012-04-30 18:16 ` Glenn Morris
2012-04-30 22:15 ` Francesco Potortì
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).