From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.devel Subject: Re: Building Emacs-cvs on Cygwin Date: Wed, 20 Sep 2006 11:05:54 +0200 (MET DST) Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1158743271 4505 80.91.229.2 (20 Sep 2006 09:07:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 20 Sep 2006 09:07:51 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 20 11:07:48 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GPy2G-00037R-Dx for ged-emacs-devel@m.gmane.org; Wed, 20 Sep 2006 11:06:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GPy2F-0001Rw-QZ for ged-emacs-devel@m.gmane.org; Wed, 20 Sep 2006 05:06:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GPy1t-0001NX-Nf for emacs-devel@gnu.org; Wed, 20 Sep 2006 05:06:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GPy1s-0001Jx-An for emacs-devel@gnu.org; Wed, 20 Sep 2006 05:06:05 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GPy1s-0001JX-3e for emacs-devel@gnu.org; Wed, 20 Sep 2006 05:06:04 -0400 Original-Received: from [141.108.26.15] (helo=postino1.roma1.infn.it) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GPy55-0004WW-Df; Wed, 20 Sep 2006 05:09:23 -0400 Original-Received: from ax0rm1.roma1.infn.it (ax0rm1.roma1.infn.it [141.108.26.19]) by postino1.roma1.infn.it (8.12.11/8.12.11) with ESMTP id k8K95w8C014639; Wed, 20 Sep 2006 11:05:58 +0200 Original-Received: from localhost (graziosi@localhost) by ax0rm1.roma1.infn.it (8.9.3/8.9.3) with ESMTP id LAA18303; Wed, 20 Sep 2006 11:05:54 +0200 (MET DST) Original-To: Eli Zaretskii In-Reply-To: X-PMX-Version: 4.7.1.128075, Antispam-Engine: 2.0.3.2, Antispam-Data: 2006.9.20.13442 X-PerlMx-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0' X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:60035 Archived-At: 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.