unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#4038: emacs 23 fails to bootstrap itself on Cygwin
@ 2009-08-04 19:34 Terrence Brannon
  2009-08-04 20:56 ` Ken Brown
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Terrence Brannon @ 2009-08-04 19:34 UTC (permalink / raw)
  To: bug-gnu-emacs

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






^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: bug#4038: emacs 23 fails to bootstrap itself on Cygwin
  2009-08-04 19:34 bug#4038: emacs 23 fails to bootstrap itself on Cygwin Terrence Brannon
@ 2009-08-04 20:56 ` Ken Brown
  2009-08-06  0:11 ` knubee
       [not found] ` <mailman.3999.1249531364.2239.bug-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 8+ messages in thread
From: Ken Brown @ 2009-08-04 20:56 UTC (permalink / raw)
  To: Terrence Brannon, 4038; +Cc: bug-gnu-emacs, Emacs

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




^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#4038: emacs 23 fails to bootstrap itself on Cygwin
  2009-08-04 19:34 bug#4038: emacs 23 fails to bootstrap itself on Cygwin Terrence Brannon
  2009-08-04 20:56 ` Ken Brown
@ 2009-08-06  0:11 ` knubee
       [not found] ` <mailman.3999.1249531364.2239.bug-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 8+ messages in thread
From: knubee @ 2009-08-06  0:11 UTC (permalink / raw)
  To: bug-gnu-emacs

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.












^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#4038: emacs 23 fails to bootstrap itself on Cygwin
       [not found] ` <mailman.3999.1249531364.2239.bug-gnu-emacs@gnu.org>
@ 2009-08-06  9:58   ` Teemu Likonen
  2009-08-06 11:21     ` Andreas Schwab
       [not found]     ` <mailman.4022.1249559216.2239.bug-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 8+ messages in thread
From: Teemu Likonen @ 2009-08-06  9:58 UTC (permalink / raw)
  To: knubee; +Cc: Teodor Zlatanov, 4038

On 2009-08-06 00:11 (UTC), knubee@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@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.





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#4038: emacs 23 fails to bootstrap itself on Cygwin
  2009-08-06  9:58   ` Teemu Likonen
@ 2009-08-06 11:21     ` Andreas Schwab
       [not found]     ` <mailman.4022.1249559216.2239.bug-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 8+ messages in thread
From: Andreas Schwab @ 2009-08-06 11:21 UTC (permalink / raw)
  To: Teemu Likonen; +Cc: Teodor Zlatanov, knubee, 4038

Teemu Likonen <tlikonen@iki.fi> writes:

> "git bisect run make" found that the first bad commit is this:
>
>
> commit 3cd069ec588527f4baac7a71d93ccc080668eebf
> Author: Teodor Zlatanov <tzz@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@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: bug#4038: emacs 23 fails to bootstrap itself on Cygwin
       [not found]     ` <mailman.4022.1249559216.2239.bug-gnu-emacs@gnu.org>
@ 2009-08-06 15:13       ` Ted Zlatanov
  2009-08-07 11:33         ` Brian Millett
       [not found]         ` <mailman.4111.1249645623.2239.bug-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 8+ messages in thread
From: Ted Zlatanov @ 2009-08-06 15:13 UTC (permalink / raw)
  To: bug-gnu-emacs

On Thu, 06 Aug 2009 13:21:37 +0200 Andreas Schwab <schwab@linux-m68k.org> wrote: 

AS> Teemu Likonen <tlikonen@iki.fi> writes:
>> "git bisect run make" found that the first bad commit is this:
>> 
>> 
>> commit 3cd069ec588527f4baac7a71d93ccc080668eebf
>> Author: Teodor Zlatanov <tzz@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.

Ted


^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#4038: emacs 23 fails to bootstrap itself on Cygwin
  2009-08-06 15:13       ` Ted Zlatanov
@ 2009-08-07 11:33         ` Brian Millett
       [not found]         ` <mailman.4111.1249645623.2239.bug-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 8+ messages in thread
From: Brian Millett @ 2009-08-07 11:33 UTC (permalink / raw)
  To: Ted Zlatanov; +Cc: bug-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1185 bytes --]

On Thu, 2009-08-06 at 10:13 -0500, Ted Zlatanov wrote:
> On Thu, 06 Aug 2009 13:21:37 +0200 Andreas Schwab <schwab@linux-m68k.org> wrote: 
> 
> AS> Teemu Likonen <tlikonen@iki.fi> writes:
> >> "git bisect run make" found that the first bad commit is this:
> >> 
> >> 
> >> commit 3cd069ec588527f4baac7a71d93ccc080668eebf
> >> Author: Teodor Zlatanov <tzz@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."
        

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: bug#4038: emacs 23 fails to bootstrap itself on Cygwin
       [not found]         ` <mailman.4111.1249645623.2239.bug-gnu-emacs@gnu.org>
@ 2009-09-01 18:07           ` Ted Zlatanov
  0 siblings, 0 replies; 8+ messages in thread
From: Ted Zlatanov @ 2009-09-01 18:07 UTC (permalink / raw)
  To: bug-gnu-emacs

On Fri, 07 Aug 2009 06:33:00 -0500 Brian Millett <bmillett@gmail.com> wrote: 

BM> On Thu, 2009-08-06 at 10:13 -0500, Ted Zlatanov wrote:
>> On Thu, 06 Aug 2009 13:21:37 +0200 Andreas Schwab <schwab@linux-m68k.org> wrote: 
>> 
AS> Teemu Likonen <tlikonen@iki.fi> writes:
>> >> "git bisect run make" found that the first bad commit is this:
>> >> 
>> >> 
>> >> commit 3cd069ec588527f4baac7a71d93ccc080668eebf
>> >> Author: Teodor Zlatanov <tzz@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.


BM> Builds real nice!

BM> Thanks.
BM> -- 
BM> Brian Millett -

This bug can be closed.

Ted


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-09-01 18:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-04 19:34 bug#4038: emacs 23 fails to bootstrap itself on Cygwin Terrence Brannon
2009-08-04 20:56 ` Ken Brown
2009-08-06  0:11 ` knubee
     [not found] ` <mailman.3999.1249531364.2239.bug-gnu-emacs@gnu.org>
2009-08-06  9:58   ` Teemu Likonen
2009-08-06 11:21     ` Andreas Schwab
     [not found]     ` <mailman.4022.1249559216.2239.bug-gnu-emacs@gnu.org>
2009-08-06 15:13       ` Ted Zlatanov
2009-08-07 11:33         ` Brian Millett
     [not found]         ` <mailman.4111.1249645623.2239.bug-gnu-emacs@gnu.org>
2009-09-01 18:07           ` Ted Zlatanov

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).