From: Angelo Graziosi <Angelo.Graziosi@roma1.infn.it>
Cc: emacs-devel@gnu.org
Subject: Re: Building Emacs-cvs on Cygwin
Date: Wed, 20 Sep 2006 11:05:54 +0200 (MET DST) [thread overview]
Message-ID: <Pine.OSF.4.21.0609201054100.15843-100000@ax0rm1.roma1.infn.it> (raw)
In-Reply-To: <uodtbqkpr.fsf@gnu.org>
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.
next prev parent reply other threads:[~2006-09-20 9:05 UTC|newest]
Thread overview: 75+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-19 23:49 Building Emacs-cvs on Cygwin Angelo Graziosi
2006-09-20 3:29 ` Eli Zaretskii
2006-09-20 9:05 ` Angelo Graziosi [this message]
2006-09-20 21:08 ` Eli Zaretskii
2006-09-20 22:02 ` Andreas Schwab
2006-09-20 22:41 ` Building Emacs-cvs on Cygwin (Mystery!) Angelo Graziosi
2006-09-21 3:31 ` Eli Zaretskii
2006-09-21 22:20 ` Angelo Graziosi
2006-09-22 13:19 ` Eli Zaretskii
2006-09-22 23:08 ` Angelo Graziosi
2006-09-22 23:22 ` Angelo Graziosi
2006-09-24 13:02 ` Angelo Graziosi
2006-09-23 10:33 ` Building Emacs-cvs on Cygwin Angelo Graziosi
2006-09-23 15:15 ` Eli Zaretskii
2006-09-23 16:49 ` Angelo Graziosi
2006-09-23 19:17 ` Eli Zaretskii
2006-09-23 21:19 ` Angelo Graziosi
2006-09-24 7:41 ` Eli Zaretskii
2006-09-24 22:46 ` Angelo Graziosi
2006-09-25 3:26 ` Eli Zaretskii
2006-09-25 12:56 ` Angelo Graziosi
2006-09-25 19:57 ` Eli Zaretskii
2006-09-26 0:06 ` Angelo Graziosi
2006-09-26 3:22 ` Eli Zaretskii
2006-09-26 12:48 ` Angelo Graziosi
2006-09-26 20:10 ` Eli Zaretskii
2006-09-26 22:18 ` Angelo Graziosi
2006-09-27 3:35 ` Eli Zaretskii
2006-09-27 16:52 ` Angelo Graziosi
2006-09-27 18:22 ` Eli Zaretskii
2006-09-28 10:18 ` Angelo Graziosi
2006-09-30 9:30 ` Eli Zaretskii
2006-09-30 10:16 ` Angelo Graziosi
2006-09-30 14:47 ` Eli Zaretskii
2006-09-30 16:49 ` Angelo Graziosi
2006-10-01 16:54 ` Eli Zaretskii
2006-10-01 21:29 ` Angelo Graziosi
2006-10-25 22:32 ` Angelo Graziosi
2006-10-26 7:48 ` Eli Zaretskii
2006-10-26 8:21 ` Angelo Graziosi
2006-10-26 8:57 ` Jason Rumney
2006-10-26 15:46 ` Angelo Graziosi
2006-10-27 8:41 ` Eli Zaretskii
2006-10-27 16:34 ` Angelo Graziosi
2006-10-28 0:16 ` Angelo Graziosi
2006-10-28 12:16 ` Eli Zaretskii
2006-10-29 11:13 ` Building Emacs-cvs on Cygwin (GCC summary) Angelo Graziosi
2006-10-26 10:12 ` Building Emacs-cvs on Cygwin Richard Stallman
2006-10-26 10:24 ` David Kastrup
2006-10-26 15:06 ` Eli Zaretskii
2006-10-26 15:12 ` David Kastrup
2006-10-27 8:17 ` Eli Zaretskii
2006-10-27 9:04 ` David Kastrup
2006-10-28 10:49 ` Eli Zaretskii
2006-10-29 18:45 ` Richard Stallman
2006-10-29 20:19 ` Eli Zaretskii
2006-10-30 19:16 ` Richard Stallman
2006-10-30 20:49 ` Eli Zaretskii
2006-10-26 20:40 ` Richard Stallman
2006-10-26 20:58 ` David Kastrup
2006-10-26 15:12 ` Eli Zaretskii
2006-10-26 16:18 ` Angelo Graziosi
2006-10-26 8:53 ` Richard Stallman
2006-10-26 15:08 ` Eli Zaretskii
2006-10-27 9:10 ` Richard Stallman
2006-09-30 17:00 ` Problems with 'make install' after the build of " Angelo Graziosi
2006-10-02 0:30 ` Giorgos Keramidas
2006-10-02 12:53 ` Kenichi Handa
2006-10-02 13:39 ` Giorgos Keramidas
2006-09-30 23:34 ` Building " Kim F. Storm
2006-10-01 10:28 ` Eli Zaretskii
2006-09-27 18:14 ` Angelo Graziosi
2006-09-25 20:42 ` Kim F. Storm
2006-09-24 2:10 ` Richard Stallman
2006-09-21 1:59 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.OSF.4.21.0609201054100.15843-100000@ax0rm1.roma1.infn.it \
--to=angelo.graziosi@roma1.infn.it \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.