[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Building Emacs-cvs on Cygwin
From: |
Angelo Graziosi |
Subject: |
Re: Building Emacs-cvs on Cygwin |
Date: |
Wed, 20 Sep 2006 11:05:54 +0200 (MET DST) |
On Wed, 20 Sep 2006, Eli Zaretskii wrote:
>
> > GNU gdb 6.5.50.20060706-cvs (cygwin-special)
> > Copyright (C) 2006 Free Software Foundation, Inc.
> > ...
> > This GDB was configured as "i686-pc-cygwin"...(no debugging symbols found)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^
I think this refers to GDB (even with CFLAGS='-g' I obtain it, see below)
> That is no good: your Emacs binary is somehow stripped, so it will be
> very hard to debug it. Please modify your build procedure so that
> Emacs is not stripped.
>
> > /tmp/emacs/lisp/./textmodes /tmp/emacs/lisp/./url
> >
> > [3]+ Stopped gdb --args ../src/bootstrap-emacs.exe -batch
>
> Why ``Stopped''? Did you type something to stop the job?
>
Absolutely : NO !
I have typed only 'r'
(gdb) r
Now there is what I have done (I have copy/pasted) following your
suggestions:
==========================================================================
$ cd emacs
$ CFLAGS='-g' ./configure
$ CFLAGS='-g' make bootstrap 2>&1 | tee ../build-emacs-cvs.log
...
$ make[2]: Entering directory `/tmp/emacs/lisp'
wd=/tmp/emacs/lisp; subdirs=`(cd $wd; find . -type d -print)`; for file in
$subdirs; do case $file in */Old | */RCS | */CVS | */CVS/* | */.* | */.*/*
| */=* ) ;; *) wins="$wins $wd/$file" ;; esac; done; \
for file in $wins; do \
/tmp/emacs/lisp/../update-subdirs $file; \
done;
wd=/tmp/emacs/lisp; subdirs=`(cd $wd; find . -type d -print)`; for file in
$subdirs; do case $file in */Old | */RCS | */CVS | */CVS/* | */.* | */.*/*
| */=* ) ;; *) wins="$wins $wd/$file" ;; esac; done; \
echo Directories: $wins; \
../src/bootstrap-emacs.exe -batch --no-site-file --multibyte -l
autoload --eval '(setq generated-autoload-file
"/tmp/emacs/lisp/loaddefs.el")' -f batch-update-autoloads $wins
Directories: /tmp/emacs/lisp/. /tmp/emacs/lisp/./calc
/tmp/emacs/lisp/./calendar /tmp/emacs/lisp/./emacs-lisp
/tmp/emacs/lisp/./emulation /tmp/emacs/lisp/./erc /tmp/emacs/lisp/./eshell
/tmp/emacs/lisp/./gnus /tmp/emacs/lisp/./international
/tmp/emacs/lisp/./language /tmp/emacs/lisp/./mail /tmp/emacs/lisp/./mh-e
/tmp/emacs/lisp/./net /tmp/emacs/lisp/./obsolete /tmp/emacs/lisp/./play
/tmp/emacs/lisp/./progmodes /tmp/emacs/lisp/./term
/tmp/emacs/lisp/./textmodes /tmp/emacs/lisp/./url
Fatal error (6)/bin/sh: line 2: 1388 Aborted (core
dumped) ../src/bootstrap-emacs.exe -batch --no-site-file --multibyte -l
autoload --eval '(setq generated-autoload-file
"/tmp/emacs/lisp/loaddefs.el")' -f batch-update-autoloads $wins
make[2]: *** [autoloads] Error 134
make[2]: Leaving directory `/tmp/emacs/lisp'
make[1]: *** [bootstrap-build] Error 2
make[1]: Leaving directory `/tmp/emacs'
make: *** [bootstrap] Error 2
$ cd src
$ gdb --args ../src/bootstrap-emacs.exe -batch --no-site-file --multibyte
-l autoload --eval '(setq generated-autoload-file
"/tmp/emacs/lisp/loaddefs.el")' -f batch-update-autoloads
/tmp/emacs/lisp/. /tmp/emacs/lisp/./calc /tmp/emacs/lisp/./calendar
/tmp/emacs/lisp/./emacs-lisp /tmp/emacs/lisp/./emulation
/tmp/emacs/lisp/./erc /tmp/emacs/lisp/./eshell /tmp/emacs/lisp/./gnus
/tmp/emacs/lisp/./international /tmp/emacs/lisp/./language
/tmp/emacs/lisp/./mail /tmp/emacs/lisp/./mh-e /tmp/emacs/lisp/./net
/tmp/emacs/lisp/./obsolete /tmp/emacs/lisp/./play
/tmp/emacs/lisp/./progmodes /tmp/emacs/lisp/./term
/tmp/emacs/lisp/./textmodes /tmp/emacs/lisp/./url
GNU gdb 6.5.50.20060706-cvs (cygwin-special)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "i686-pc-cygwin"...(no debugging symbols found)
^^^^^^^^^^^^^^^^^^^^^^^^^^
DISPLAY = :0.0
TERM = xterm
/tmp/emacs/src/.gdbinit:1089: Error in sourced command file:
No struct type named Lisp_Symbol.
(gdb) r
Starting program: /tmp/emacs/src/bootstrap-emacs.exe -geometry 80x40+0+0
Loaded symbols for /c/WINDOWS/system32/ntdll.dll
Loaded symbols for /c/WINDOWS/system32/kernel32.dll
Loaded symbols for /usr/X11R6/bin/cygICE-6.dll
Loaded symbols for /usr/bin/cygwin1.dll
Loaded symbols for /c/WINDOWS/system32/advapi32.dll
Loaded symbols for /c/WINDOWS/system32/rpcrt4.dll
Loaded symbols for /usr/X11R6/bin/cygSM-6.dll
Loaded symbols for /usr/X11R6/bin/cygX11-6.dll
Loaded symbols for /usr/X11R6/bin/cygXaw3d-7.dll
Loaded symbols for /usr/X11R6/bin/cygXext-6.dll
Loaded symbols for /usr/X11R6/bin/cygXmu-6.dll
Loaded symbols for /usr/X11R6/bin/cygXt-6.dll
Loaded symbols for /usr/X11R6/bin/cygXpm-4.dll
Loaded symbols for /usr/bin/cygncurses-8.dll
Loaded symbols for /usr/bin/cygjpeg-62.dll
Loaded symbols for /usr/bin/cygpng12.dll
Loaded symbols for /usr/bin/cygz.dll
Loaded symbols for /usr/bin/cygtiff-5.dll
Loaded symbols for /usr/bin/cygungif-4.dll
[1]+ Stopped gdb --args ../src/bootstrap-emacs.exe -batch
--no-site-file --multibyte -l autoload --eval '(setq
generated-autoload-file "/tmp/emacs/lisp/loaddefs.el")' -f
batch-update-autoloads /tmp/emacs/lisp/. /tmp/emacs/lisp/./calc
/tmp/emacs/lisp/./calendar /tmp/emacs/lisp/./emacs-lisp
/tmp/emacs/lisp/./emulation /tmp/emacs/lisp/./erc /tmp/emacs/lisp/./eshell
/tmp/emacs/lisp/./gnus /tmp/emacs/lisp/./international
/tmp/emacs/lisp/./language /tmp/emacs/lisp/./mail /tmp/emacs/lisp/./mh-e
/tmp/emacs/lisp/./net /tmp/emacs/lisp/./obsolete /tmp/emacs/lisp/./play
/tmp/emacs/lisp/./progmodes /tmp/emacs/lisp/./term
/tmp/emacs/lisp/./textmodes /tmp/emacs/lisp/./url
$
i.e. it exit (?) from GDB but:
$ ps
PID PPID PGID WINPID TTY UID STIME COMMAND
I 2288 1 2288 2288 con 1003 10:07:16 /usr/bin/bash
3060 2288 3060 3076 con 1003 10:07:33 /usr/bin/sh
3088 3060 3060 3104 con 1003 10:07:33
/usr/X11R6/bin/xinit
3116 3088 3116 3136 con 1003 10:07:33
/usr/X11R6/bin/XWin
3304 3088 3304 3332 con 1003 10:07:41 /usr/bin/urxvt-X
3428 3304 3428 3448 0 1003 10:07:42 /usr/bin/bash
2616 2288 2616 2656 con 1003 10:14:38
/c/Programmi/Crimson Editor/cedt
S 4068 3428 4068 1504 0 1003 10:46:39 /usr/bin/gdb
2712 1 2712 2712 con 1003 10:46:46
/tmp/emacs/src/bootstrap-emacs
4060 3428 4060 3616 0 1003 10:46:48 /usr/bin/ps
==========================================================================
Note the 'no debugging symbols found'.
Cheers,
Angelo.
- Building Emacs-cvs on Cygwin, Angelo Graziosi, 2006/09/19
- Re: Building Emacs-cvs on Cygwin, Eli Zaretskii, 2006/09/19
- Re: Building Emacs-cvs on Cygwin,
Angelo Graziosi <=
- Re: Building Emacs-cvs on Cygwin, Eli Zaretskii, 2006/09/20
- Re: Building Emacs-cvs on Cygwin, Andreas Schwab, 2006/09/20
- Re: Building Emacs-cvs on Cygwin (Mystery!), Angelo Graziosi, 2006/09/20
- Re: Building Emacs-cvs on Cygwin (Mystery!), Eli Zaretskii, 2006/09/20
- Re: Building Emacs-cvs on Cygwin (Mystery!), Angelo Graziosi, 2006/09/21
- Re: Building Emacs-cvs on Cygwin (Mystery!), Eli Zaretskii, 2006/09/22
- Re: Building Emacs-cvs on Cygwin (Mystery!), Angelo Graziosi, 2006/09/22
- Re: Building Emacs-cvs on Cygwin (Mystery!), Angelo Graziosi, 2006/09/22
- Re: Building Emacs-cvs on Cygwin (Mystery!), Angelo Graziosi, 2006/09/24
- Re: Building Emacs-cvs on Cygwin, Angelo Graziosi, 2006/09/23