GNU bug report logs - #4038
emacs 23 fails to bootstrap itself on Cygwin

Previous Next

Package: emacs;

Reported by: Terrence Brannon <metaperl <at> gmail.com>

Date: Tue, 4 Aug 2009 19:40:06 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 4038 in the body.
You can then email your comments to 4038 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4038; Package emacs. (Tue, 04 Aug 2009 19:40:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Terrence Brannon <metaperl <at> gmail.com>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Tue, 04 Aug 2009 19:40:09 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Terrence Brannon <metaperl <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: emacs 23 fails to bootstrap itself on Cygwin
Date: Tue, 04 Aug 2009 15:34:35 -0400
I tried to build emacs 23 on Cygwin via:

./configure --with-gif=no --with-tiff=no && make

but here is what happened at the end:

gcc -Demacs -DHAVE_CONFIG_H  -I. -I/home/Administrator/tmp/emacs-23.1/
src -DXTHR
EADS -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/
include -I/usr/
X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/
include/fre
etype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/
include/freety
pe2    -g -O2   /home/Administrator/tmp/emacs-23.1/src/prefix-args.c -
o prefix-a
rgs
echo "dispnew.o frame.o scroll.o xdisp.o menu.o xmenu.o window.o
charset.o codin
g.o category.o ccl.o character.o chartab.o cm.o term.o terminal.o
xfaces.o xterm
.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o
gtkutil.o  emacs.
o keyboard.o macros.o keymap.o sysdep.o buffer.o filelock.o insdel.o
marker.o mi
nibuf.o fileio.o dired.o filemode.o cmds.o casetab.o casefiddle.o
indent.o searc
h.o regex.o undo.o alloc.o data.o doc.o editfns.o callint.o eval.o
floatfns.o fn
s.o font.o print.o lread.o syntax.o unexcw.o bytecode.o process.o
callproc.o reg
ion-cache.o sound.o atimer.o doprnt.o strftime.o intervals.o
textprop.o composit
e.o md5.o   sheap.o xfont.o ftfont.o xftfont.o ftxfont.o terminfo.o
gmalloc.o ra
lloc.o lastfile.o vm-limit.o  mktime.o getloadavg.o " > buildobj.lst
gcc -Wl,--image-base,0x20000000    -o temacs ecrt0.o dispnew.o frame.o
scroll.o
xdisp.o menu.o xmenu.o window.o charset.o coding.o category.o ccl.o
character.o
chartab.o cm.o term.o terminal.o xfaces.o xterm.o xfns.o xselect.o
xrdb.o fontse
t.o xsmfns.o fringe.o image.o gtkutil.o  emacs.o keyboard.o macros.o
keymap.o sy
sdep.o buffer.o filelock.o insdel.o marker.o minibuf.o fileio.o
dired.o filemode
.o cmds.o casetab.o casefiddle.o indent.o search.o regex.o undo.o
alloc.o data.o
doc.o editfns.o callint.o eval.o floatfns.o fns.o font.o print.o
lread.o syntax
.o unexcw.o bytecode.o process.o callproc.o region-cache.o sound.o
atimer.o dopr
nt.o strftime.o intervals.o textprop.o composite.o md5.o   sheap.o
xfont.o ftfon
t.o xftfont.o ftxfont.o terminfo.o gmalloc.o ralloc.o lastfile.o vm-
limit.o  mkt
ime.o getloadavg.o     -L/usr/X11R6/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -
latk-1.0 -l
gdk_pixbuf-2.0 -lpangoxft-1.0 -lXft -lfreetype -lz -lXrender -lXext -
lfontconfig
-lpangox-1.0 -lX11 -lpango-1.0 -lm -lgobject-2.0 -lgmodule-2.0 -
lglib-2.0 -lint
l -liconv -lpthread -lSM -lICE -ljpeg -lpng -lz -lm -lXpm -lX11 -lXft -
lXrender
-lfontconfig -lexpat -lfreetype -lz -lX11 -lxcb-xlib -lxcb -lXau -
lXdmcp    -lcu
rses -lg  `gcc -print-libgcc-file-name` -lm -lc `gcc -print-libgcc-
file-name`
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld:
warning: au
to-importing has been activated without --enable-auto-import specified
on the co
mmand line.
This should work unless it involves constant data structures
referencing symbols
from auto-imported DLLs.Info: resolving _gdk_display by linking to
__imp__gdk_d
isplay (auto-import)
Info: resolving __tzname by linking to __imp___tzname (auto-import)
cd ../lisp; make -w update-subdirs
make[2]: Entering directory `/home/Administrator/tmp/emacs-23.1/lisp'
wd=/home/Administrator/tmp/emacs-23.1/lisp; subdirs=`(cd $wd; find . -
type d -pr
int)`; for file in $subdirs; do case $file in */Old | */RCS | */CVS |
*/CVS/* |
*/.* | */.*/* | */=* ) ;; *) wins="$wins $wd/$file" ;; esac; done; \
       for file in $wins; do \
          /home/Administrator/tmp/emacs-23.1/lisp/../update-subdirs
$file; \
       done;
make[2]: Leaving directory `/home/Administrator/tmp/emacs-23.1/lisp'
`/bin/pwd`/temacs --batch --load loadup bootstrap
make[1]: *** [bootstrap-emacs.exe] Error 57
make[1]: Leaving directory `/home/Administrator/tmp/emacs-23.1/src'
make: *** [src] Error 2




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4038; Package emacs. (Tue, 04 Aug 2009 21:05:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ken Brown <kbrown <at> cornell.edu>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Tue, 04 Aug 2009 21:05:05 GMT) Full text and rfc822 format available.

Message #10 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Ken Brown <kbrown <at> cornell.edu>
To: Terrence Brannon <metaperl <at> gmail.com>, 4038 <at> debbugs.gnu.org
Cc: bug-gnu-emacs <at> gnu.org, Emacs <emacs-devel <at> gnu.org>
Subject: Re: bug#4038: emacs 23 fails to bootstrap itself on Cygwin
Date: Tue, 04 Aug 2009 16:56:05 -0400
On 8/4/2009 3:34 PM, Terrence Brannon wrote:
> I tried to build emacs 23 on Cygwin via:
> 
> ./configure --with-gif=no --with-tiff=no && make
> 
> but here is what happened at the end:
> 
[...]
> gcc -Wl,--image-base,0x20000000    -o temacs ecrt0.o dispnew.o frame.o
[...]
> /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld:

I've built cygwin's emacs 23.1 package 
(http://cygwin.com/ml/cygwin-apps/2009-08/msg00002.html).  You could 
take a look at the source to see what I did and try to adapt that to 
your needs.  Two things jump out at me from your output.  First, you 
should use gcc-4 rather than gcc-3; cygwin builds of emacs with gcc-3 
are known to be unstable.  Second, I applied a patch to get rid of 
'-Wl,--image-base,0x20000000', which has also been known to cause problems.

By the way, this may be a good time to remind the emacs developers that 
I sent some patches a while ago:

  http://lists.gnu.org/archive/html/emacs-devel/2009-06/msg00041.html
  http://lists.gnu.org/archive/html/emacs-devel/2009-06/msg00330.html

Could you consider applying these now that 23.1 has been released?

Thanks.

Ken




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4038; Package emacs. (Tue, 04 Aug 2009 21:05:07 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ken Brown <kbrown <at> cornell.edu>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Tue, 04 Aug 2009 21:05:07 GMT) Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4038; Package emacs. (Thu, 06 Aug 2009 00:25:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to knubee <knubee <at> gmail.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Thu, 06 Aug 2009 00:25:05 GMT) Full text and rfc822 format available.

Message #20 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: knubee <knubee <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#4038: emacs 23 fails to bootstrap itself on Cygwin
Date: Thu, 6 Aug 2009 00:11:49 +0000 (UTC)
i get a similar error when running "make bootstrap" on ubuntu 9.04:

> `/bin/pwd`/temacs --batch --load loadup bootstrap
> Segmentation fault
> make[1]: *** [bootstrap-emacs] Error 139

this has only started happening in the last couple of days.










Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4038; Package emacs. (Thu, 06 Aug 2009 10:05:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Teemu Likonen <tlikonen <at> iki.fi>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Thu, 06 Aug 2009 10:05:04 GMT) Full text and rfc822 format available.

Message #25 received at 4038 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Teemu Likonen <tlikonen <at> iki.fi>
To: knubee <knubee <at> gmail.com>
Cc: 4038 <at> debbugs.gnu.org, Teodor Zlatanov <tzz <at> lifelogs.com>
Subject: Re: bug#4038: emacs 23 fails to bootstrap itself on Cygwin
Date: Thu, 06 Aug 2009 12:58:28 +0300
On 2009-08-06 00:11 (UTC), knubee <at> gmail.com wrote:

> i get a similar error when running "make bootstrap" on ubuntu 9.04:
>
>> `/bin/pwd`/temacs --batch --load loadup bootstrap
>> Segmentation fault
>> make[1]: *** [bootstrap-emacs] Error 139
>
> this has only started happening in the last couple of days.

The above compile error happens in my Debian 5.0 too.

"git bisect run make" found that the first bad commit is this:


commit 3cd069ec588527f4baac7a71d93ccc080668eebf
Author: Teodor Zlatanov <tzz <at> lifelogs.com>
Date:   Wed Aug 5 09:19:21 2009 +0000

    * lread.c (read1, syms_of_lread): Read hashtables back from the
    readable format.
    
    * print.c (print_preprocess, print_object): Print hashtables fully
    and readably.
    (syms_of_print): Provide 'hashtable-print-readable.



Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4038; Package emacs. (Thu, 06 Aug 2009 11:30:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Andreas Schwab <schwab <at> linux-m68k.org>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Thu, 06 Aug 2009 11:30:04 GMT) Full text and rfc822 format available.

Message #30 received at 4038 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Teemu Likonen <tlikonen <at> iki.fi>
Cc: 4038 <at> debbugs.gnu.org, knubee <knubee <at> gmail.com>,
        Teodor Zlatanov <tzz <at> lifelogs.com>
Subject: Re: bug#4038: emacs 23 fails to bootstrap itself on Cygwin
Date: Thu, 06 Aug 2009 13:21:37 +0200
Teemu Likonen <tlikonen <at> iki.fi> writes:

> "git bisect run make" found that the first bad commit is this:
>
>
> commit 3cd069ec588527f4baac7a71d93ccc080668eebf
> Author: Teodor Zlatanov <tzz <at> lifelogs.com>
> Date:   Wed Aug 5 09:19:21 2009 +0000
>
>     * lread.c (read1, syms_of_lread): Read hashtables back from the
>     readable format.
>     
>     * print.c (print_preprocess, print_object): Print hashtables fully
>     and readably.
>     (syms_of_print): Provide 'hashtable-print-readable.

The problem is the call to Fprovide.  syms_of_print is called pretty
early, so the symbols used by Fprovide are not initialized yet.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4038; Package emacs. (Fri, 07 Aug 2009 11:40:07 GMT) Full text and rfc822 format available.

Acknowledgement sent to Brian Millett <bmillett <at> gmail.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Fri, 07 Aug 2009 11:40:07 GMT) Full text and rfc822 format available.

Message #35 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Brian Millett <bmillett <at> gmail.com>
To: Ted Zlatanov <tzz <at> lifelogs.com>
Cc: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#4038: emacs 23 fails to bootstrap itself on Cygwin
Date: Fri, 07 Aug 2009 06:33:00 -0500
[Message part 1 (text/plain, inline)]
On Thu, 2009-08-06 at 10:13 -0500, Ted Zlatanov wrote:
> On Thu, 06 Aug 2009 13:21:37 +0200 Andreas Schwab <schwab <at> linux-m68k.org> wrote: 
> 
> AS> Teemu Likonen <tlikonen <at> iki.fi> writes:
> >> "git bisect run make" found that the first bad commit is this:
> >> 
> >> 
> >> commit 3cd069ec588527f4baac7a71d93ccc080668eebf
> >> Author: Teodor Zlatanov <tzz <at> lifelogs.com>
> >> Date:   Wed Aug 5 09:19:21 2009 +0000
> >> 
> >> * lread.c (read1, syms_of_lread): Read hashtables back from the
> >> readable format.
> >> 
> >> * print.c (print_preprocess, print_object): Print hashtables fully
> >> and readably.
> >> (syms_of_print): Provide 'hashtable-print-readable.
> 
> AS> The problem is the call to Fprovide.  syms_of_print is called pretty
> AS> early, so the symbols used by Fprovide are not initialized yet.
> 
> The fix is simple and should be in the trunk today.
> 
> Sorry for the screwup, I didn't do a full build to test this.


Builds real nice!

Thanks.
-- 
Brian Millett -
[ Lurker (to Talia Winters), "A Race Through Dark Places"]
"Being in the Corps served a function long ago. Now its something else.
 I know it, you know it."
        
[signature.asc (application/pgp-signature, inline)]

bug closed, send any further explanations to Terrence Brannon <metaperl <at> gmail.com> Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> emacsbugs.donarmstrong.com. (Mon, 10 Aug 2009 02:45:06 GMT) Full text and rfc822 format available.

Message #38 received at 4038-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Ted Zlatanov <tzz <at> lifelogs.com>
Subject: Re: bug#4038: emacs 23 fails to bootstrap itself on Cygwin
Date: Tue, 01 Sep 2009 16:26:31 -0400
> This bug can be closed.

Thanks.  You can do that yourself by sending an email to
4038-done <at> debbugs.gnu.org.


        Stefan



bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> emacsbugs.donarmstrong.com. (Wed, 30 Sep 2009 14:24:12 GMT) Full text and rfc822 format available.

This bug report was last modified 15 years and 325 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.