emacs-app-devel fails to build under Snow Leopard

Artemio Gonzalez Lopez artemiog at mac.com
Wed Sep 9 12:28:44 PDT 2009


On Sep 9, 2009, at 4:00 PM, macports-users- 
request at lists.macosforge.org wrote:

> On Sep 5, 2009, at 10:47 AM, CHENG Gao wrote:
>
>> *On Sat, 05 Sep 2009 08:53:00 -0400
>> * Also sprach cssdev at mac.com:
>>
>>> On Sep 4, 2009, at 4:50 PM, Artemio Gonzalez Lopez wrote:
>>>
>>>> emacs-app-devel does not build under Snow Leopard (yes, I
>>>> uninstalled first all my ports and rebuilt from scratch with Snow
>>>> Leopard). More specifically, the error I get is:
>>>
>>> It looks like there are larger issues trying to build Cocoa emacs on
>>> Snow Leopard. I tried a couple small changes, but getting the Cocoa
>>> build working on Snow Leopard looks like it's going to take some
>>> upstream fixes by someone much more familiar with the code. I'll
>>> upstate status to the existing ticket.
>>>
>>> http://trac.macports.org/attachment/ticket/20244
>>>
>>> Thanks,
>>> Chris
>>
>> With YAMAMOTO Mitsuharu's help, I get it build successfully (from cvs
>> source, not macports). Only 32bit Emacs can be built, as:
>>
>> $CC='gcc -arch i386' ./configure --with-ns --disable-ns-self- 
>> contained
>> --without-dbus
>> $make bootstrap
>>
>> Setting -disable-ns-self-contained does not matter. It's just my
>> style.
>> If you have dbus installed (from Macports or source), you need to
>> use --without-dbus, otherwise it fails.
>>
>> In this case I think emacs-app-devel Portfile can be revised to
>> achieve
>> successful build.
>
> Thank you. I can confirm that this works. I built from HEAD this
> morning.  Just to be clear, this didn't work with the 2009-01-04
> version from CVS, which is what the current Portfile specifies, nor
> does it work for release 23.1, which the emacs-app port specifies.
> (Neither of those failures surprised me.) Also, I had ncurses and
> ncursesw installed with the "+universal" variant (which for me
> includes i386). I'm not sure if that's required or not.



What exact version of emacs did you build, and how? I tried this tip  
with 22.3 (since Cheng Gao stated that it doesn't work with 23.1),  
with both

CC='gcc -arch i386' ./configure --with-ns --disable-ns-self-contained

(I didn't expect the option --with-ns to work witht this version,  
anyway) and

CC='gcc -arch i386' ./configure --with-carbon-app

(since I don't have dbus, I omitted --without-dbus), and "make  
bootstrap" failed with similar error messages right before dumping  
temacs:


temacs(64115,0xa0809500) malloc: *** error for object 0x83e7f8: Non- 
aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Loading /Users/artemio/Archive/emacs-22.3/lisp/button.el (source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/startup.el (source)...
Lists of integers (garbage collection statistics) are normal output
while building Emacs; they do not indicate a problem.
((101419 . 27772) (5721 . 0) (594 . 107) 383595 15512 (21 . 1) (18 .  
0) (7937 . 253))
Loading /Users/artemio/Archive/emacs-22.3/lisp/loaddefs.el (source)...
((124091 . 6234) (8660 . 0) (601 . 100) 1297759 15512 (47 . 31) (18 .  
0) (16387 . 56))
Loading /Users/artemio/Archive/emacs-22.3/lisp/simple.el (source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/help.el (source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/jka-cmpr-hook.el  
(source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/international/mule- 
cmds.el (source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/case-table.el (source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/international/utf-8.el  
(source)...
temacs(64115,0xa0809500) malloc: *** error for object 0x21267f8: Non- 
aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
temacs(64115,0xa0809500) malloc: *** error for object 0x21223f8: Non- 
aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
temacs(64115,0xa0809500) malloc: *** error for object 0x211dff8: Non- 
aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Loading /Users/artemio/Archive/emacs-22.3/lisp/international/utf-16.el  
(source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/international/ 
characters.el (source)...
temacs(64115,0xa0809500) malloc: *** error for object 0x214cbf8: Non- 
aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
temacs(64115,0xa0809500) malloc: *** error for object 0x21377f8: Non- 
aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
temacs(64115,0xa0809500) malloc: *** error for object 0x21333f8: Non- 
aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
temacs(64115,0xa0809500) malloc: *** error for object 0x21553f8: Non- 
aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Loading /Users/artemio/Archive/emacs-22.3/lisp/international/ 
latin-1.el (source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/international/ 
latin-2.el (source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/international/ 
latin-3.el (source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/international/ 
latin-4.el (source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/international/ 
latin-5.el (source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/international/ 
latin-8.el (source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/international/ 
latin-9.el (source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/language/chinese.el  
(source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/language/cyrillic.el  
(source)...
temacs(64115,0xa0809500) malloc: *** error for object 0x897bf8: Non- 
aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
temacs(64115,0xa0809500) malloc: *** error for object 0x8a47f8: Non- 
aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
temacs(64115,0xa0809500) malloc: *** error for object 0x8a03f8: Non- 
aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Loading /Users/artemio/Archive/emacs-22.3/lisp/language/indian.el  
(source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/language/devanagari.el  
(source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/language/malayalam.el  
(source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/language/tamil.el  
(source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/language/kannada.el  
(source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/language/english.el  
(source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/language/ethiopic.el  
(source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/language/european.el  
(source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/language/czech.el  
(source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/language/slovak.el  
(source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/language/romanian.el  
(source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/language/greek.el  
(source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/language/hebrew.el  
(source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/language/japanese.el  
(source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/language/korean.el  
(source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/language/lao.el  
(source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/language/thai.el  
(source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/language/tibetan.el  
(source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/language/vietnamese.el  
(source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/language/misc-lang.el  
(source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/language/utf-8-lang.el  
(source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/language/georgian.el  
(source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/international/ucs- 
tables.el (source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/indent.el (source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/window.el (source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/frame.el (source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/term/tty-colors.el  
(source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/font-core.el (source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/facemenu.el (source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/emacs-lisp/syntax.el  
(source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/font-lock.el (source)...
temacs(64115,0xa0809500) malloc: *** error for object 0x8c23f8: Non- 
aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
temacs(64115,0xa0809500) malloc: *** error for object 0x8bdff8: Non- 
aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
temacs(64115,0xa0809500) malloc: *** error for object 0x8b9bf8: Non- 
aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Loading /Users/artemio/Archive/emacs-22.3/lisp/jit-lock.el (source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/mouse.el (source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/scroll-bar.el (source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/select.el (source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/emacs-lisp/timer.el  
(source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/isearch.el (source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/rfn-eshadow.el  
(source)...
((219402 . 10372) (11802 . 2) (635 . 88) 1687418 245586 (79 . 2) (19 .  
43) (24504 . 759))
Loading /Users/artemio/Archive/emacs-22.3/lisp/menu-bar.el (source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/paths.el (source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/emacs-lisp/lisp.el  
(source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/textmodes/page.el  
(source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/register.el (source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/textmodes/paragraphs.el  
(source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/emacs-lisp/lisp-mode.el  
(source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/textmodes/text-mode.el  
(source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/textmodes/fill.el  
(source)...
((241663 . 10883) (12329 . 3) (638 . 129) 1765672 247274 (79 . 2)  
(19 . 43) (26215 . 1001))
Loading /Users/artemio/Archive/emacs-22.3/lisp/replace.el (source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/abbrev.el (source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/buff-menu.el (source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/fringe.el (source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/image.el (source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/international/ 
fontset.el (source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/dnd.el (source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/mwheel.el (source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/tool-bar.el (source)...
((256457 . 9430) (12714 . 6) (641 . 128) 1831472 247935 (88 . 1) (19 .  
43) (27280 . 944))
Loading /Users/artemio/Archive/emacs-22.3/lisp/emacs-lisp/float-sup.el  
(source)...
((256499 . 9263) (12718 . 2) (641 . 128) 1831797 247935 (94 . 4) (19 .  
43) (27286 . 875))
Loading /Users/artemio/Archive/emacs-22.3/lisp/vc-hooks.el (source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/ediff-hook.el (source)...
Loading /Users/artemio/Archive/emacs-22.3/lisp/tooltip.el (source)...
((260780 . 7208) (12872 . 2) (642 . 127) 1851924 247986 (96 . 2) (19 .  
43) (27707 . 580))
Finding pointers to doc strings...
Finding pointers to doc strings...done
Dumping under names emacs and emacs-22.3
--- List of All Regions ---
    address     size prot maxp
          0   0x1000 none none
...

   0x800000 0xc00000 rw   rwx
--- Header Information ---
Magic = 0xfeedface
CPUType = 7
CPUSubType = 3
FileType = 0x2
NCmds = 16
SizeOfCmds = 1972
Flags = 0x00000085
Highest address of load commands in input file: 0x392000
Lowest offset of all sections in __TEXT segment:   0x1160
--- List of Load Commands in Input File ---
# cmd              cmdsize name                address     size
0 LC_SEGMENT             56 __PAGEZERO                0   0x1000
1 LC_SEGMENT            464 __TEXT               0x1000 0x18c000
                            __text               0x2160 0x174135
                            __symbol_stub      0x176296   0x1056
                            __stub_helper      0x1772ec   0x1b46
                            __cstring          0x178e34  0x13804
                            __const            0x18c640    0x960
                            __unwind_info      0x18cfa0     0x48
2 LC_SEGMENT            600 __DATA             0x18d000 0x161000
                            __program_vars     0x18d000     0x14
                            __la_symbol_ptr    0x18d014    0xae4
                            __nl_symbol_ptr    0x18daf8   0x18ac
                            __const            0x18f3c0   0x1b88
                            __cfstring         0x190f48     0xb0
                            __data             0x191000 0x11f70c
                            __bss              0x2b0720  0x31be1
                            __common           0x2e2320   0xacf5
3 LC_SEGMENT             56 __LINKEDIT         0x2ee000  0xa4000
4 unknown                48
5 LC_SYMTAB              24
6 LC_DYSYMTAB            80
7 LC_LOAD_DYLINKER       28
8 LC_UUID                24
9 LC_UNIXTHREAD          80
10 LC_LOAD_DYLIB          88
11 LC_LOAD_DYLIB          56
12 LC_LOAD_DYLIB          52
13 LC_LOAD_DYLIB         100
14 LC_LOAD_DYLIB         104
15 LC_LOAD_DYLIB         112
   0x5fc080 (sz:   0x3f18/  0x3f1c)
   0x500000 (sz:  0x5cb2f/ 0xfc080)
  0x15fc080 (sz:   0x3f18/  0x3f1c)
  0x1500000 (sz:  0x9b261/ 0xfc080)
  0x6ff8000 (sz:   0x2cbe/  0x7f94)
  0x6800000 (sz: 0x2ca7ff/0x7f8000)
  0x1ff8000 (sz:   0x1e34/  0x7f94)
  0x1800000 (sz: 0x1e1dff/0x7f8000)
   0x7b7000 (sz:        0/  0x1000)
--- Load Commands written to Output File ---
Writing segment __PAGEZERO       @        0 (       0/  0x1000  
@          0)
Writing segment __TEXT           @        0 (0x18c000/0x18c000 @      
0x1000)
Writing segment __DATA           @ 0x18c000 (0x161000/0x161000 @    
0x18d000)
unexec: unrecognized section name in __DATA segment
make[2]: *** [bootstrap-emacs] Error 1
make[1]: *** [bootstrap-build] Error 2
make: *** [bootstrap] Error 2

Cheers,

Artemio


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20090909/1f85a60c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1893 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20090909/1f85a60c/attachment.bin>


More information about the macports-users mailing list