emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The bootstrap of Emacs on Cygwin is broken [Is also: unicode branch


From: Angelo Graziosi
Subject: Re: The bootstrap of Emacs on Cygwin is broken [Is also: unicode branch is merged to trunk]
Date: Tue, 05 Feb 2008 13:03:16 +0100
User-agent: Thunderbird 2.0.0.9 (Windows/20071031)

Jason Rumney ha scritto:
Angelo Graziosi wrote:
Jason Rumney ha scritto:
Angelo Graziosi wrote:
32MB is the value that has given the best result. I have used it applying this:

And yet sheap_usage reported only just over 12Mb...

gdb /tmp/build/src/temacs
(gdb)run --batch --load loadup bootstrap
[...]
(gdb) call report_sheap_usage(0)
Static heap usage: 12486816 of 12582912 bytes


For the sake of completeness, in the build log I find
Static heap usage: 27297952 of 33554432 bytes         <<===

That makes more sense based on your experimentation that found that 32Mb worked best, but it doesn't explain why Cygwin suddenly needs a lot more than other platforms. And is the increased size only required for bootstrapping?


After the bootstrap, I have done a source snapshot (make-dist
--snapshot...) and then I have tried to build it

.../configure ...
make

using the current CVS value of 12MB and it fails:

[...]
Loading format...
./emacs -q -batch -f list-load-path-shadows
make[1]: ./emacs: Command not found
make[1]: [emacs.exe] Error 127 (ignored)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

make[1]: Leaving directory `/tmp.emacs/build/src'
(export PARALLEL; PARALLEL=0; cd leim; make all  \
          CC='gcc' CFLAGS='-g -O2 -Wno-pointer-sign ' CPPFLAGS='' \
          LDFLAGS='-Wl,--enable-auto-import -Wl,--enable-auto-image-base
-L/usr/X11R6/lib' MAKE='make')
make[1]: Entering directory `/tmp.emacs/build/leim'
cd ../src; make -w emacs
make[2]: Entering directory `/tmp.emacs/build/src'
gcc -Wl,--enable-auto-import -Wl,--enable-auto-image-base
-L/usr/X11R6/lib  emacs.o   -o emacs
emacs.o: In function `syms_of_emacs':
/tmp.emacs/emacs-23.0.60/src/emacs.c:2447: undefined reference to `_intern'
/tmp.emacs/emacs-23.0.60/src/emacs.c:2448: undefined reference to
`_staticpro'
/tmp.emacs/emacs-23.0.60/src/emacs.c:2454: undefined reference to `_defsubr'
[...]
/tmp.emacs/emacs-23.0.60/src/emacs.c:2180: undefined reference to
`_check_message_stack'
collect2: ld returned 1 exit status
make[2]: *** [emacs] Error 1
make[2]: Leaving directory `/tmp.emacs/build/src'
make[1]: *** [../src/emacs] Error 2
make[1]: Leaving directory `/tmp.emacs/build/leim'
make: *** [leim] Error 2

$ find /tmp.emacs/ -name "*stackdump*"
/tmp.emacs/build/src/temacs.exe.stackdump


Instead if I use 32MB, the build is completed (in 11 min.) and I find:

...
Dumping under the name emacs
Static heap usage: 21072032 of 33554432 bytes
                   ^^^^^^^^^^^^^^^^^^^^^
1171946 pure bytes used
...


   Angelo.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]