Subject: Re: bug#9927: Acknowledgement (24.0.90; unexec/unexmacosx fails with GCC 4.6.1 on intel Mac OS X 10.6.8)

From: Peter Dyballa <[email-masked]>
Date: Tue, 17 Apr 2012 11:17:22 +0200

This problem still exists. The Apple modified compilers GCC 4.0, GCC 4.2, and LLVM GCC 4.2 plus the unmodified compilers GCC 4.4.6 and GCC 4.5.3 all can build GNU Emacs 24.1.50, but unmodified GCC 4.6.3 still fails on PPC Leopard, Mac OS X 10.5.8.

It is similar to the situation on intel Snow Leopard, Mac OS X 10.6.8: GCC 4.6.3 cannot produce bootstrap-emacs. Here is a try for 32-bit executable and --with-wide-int:

--- Header Information ---
Magic = 0xfeedface
CPUType = 7
CPUSubType = 3
FileType = 0x2
NCmds = 27
SizeOfCmds = 2812
Flags = 0x01000085
Highest address of load commands in input file: 0x621000
Lowest offset of all sections in __TEXT segment:   0x1900
--- List of Load Commands in Input File ---
# cmd              cmdsize name                address     size
0 LC_SEGMENT             56 __PAGEZERO                0   0x1000
1 LC_SEGMENT            600 __TEXT               0x1000 0x26e000
                           __text               0x2900 0x2018b6
                           __text_cold        0x2041b6    0x705
                           __text_startup     0x2048bb   0x1ab4
                           __symbol_stub      0x206370    0xe64
                           __stub_helper      0x2071d4   0x1808
                           __cstring          0x2089dc  0x159e2
                           __const            0x21e3c0    0xb40
                           __eh_frame         0x21ef00  0x500f4
2 LC_SEGMENT            872 __DATA             0x26f000 0x310000
                           __dyld             0x26f000     0x1c
                           __nl_symbol_ptr    0x26f01c    0x91c
                           __la_symbol_ptr    0x26f938    0x998
                           __data             0x2702d0 0x29f148
                           __const            0x50f420   0x1914
                           __static_data      0x510d40     0x31
                           __pu_bss3          0x510d78    0x858
                           __bss3             0x5115d0   0x1d08
                           __bss4             0x5132e0   0xca84
                           __pu_bss2          0x51fd64    0x7ac
                           __bss2             0x520510  0x5a9f8
                           __pu_bss4          0x57af10   0x3b14
3 LC_SEGMENT             56 __LINKEDIT         0x57f000  0xa2000
4 LC_DYLD_INFO_ONLY      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          52
11 LC_LOAD_DYLIB          52
12 LC_LOAD_DYLIB          52
13 LC_LOAD_DYLIB          52
14 LC_LOAD_DYLIB          52
15 LC_LOAD_DYLIB          52
16 LC_LOAD_DYLIB          56
17 LC_LOAD_DYLIB          56
18 LC_LOAD_DYLIB          72
19 LC_LOAD_DYLIB          68
20 LC_LOAD_DYLIB          56
21 LC_LOAD_DYLIB          56
22 LC_LOAD_DYLIB          48
23 LC_LOAD_DYLIB          60
24 LC_LOAD_DYLIB          48
25 LC_LOAD_DYLIB          60
26 LC_LOAD_DYLIB          52
 0x2bfc080 (sz:   0x3f1c/  0x3f20)
 0x2b00000 (sz:  0xfc080/ 0xfc080)
 0x16fc080 (sz:   0x3f1d/  0x3f20)
 0x1600000 (sz:  0xfc07f/ 0xfc080)
 0x2afc080 (sz:   0x3f1c/  0x3f20)
 0x2a00000 (sz:  0xfc080/ 0xfc080)
 0x3ff8000 (sz:    0x452/  0x7f98)
 0x3800000 (sz:  0x4365e/0x7f8000)
 0x27f8000 (sz:   0x7d7c/  0x7f98)
 0x2000000 (sz: 0x7f8000/0x7f8000)
 0x1452000 (sz:        0/  0x1000)
--- Load Commands written to Output File ---
Writing segment __PAGEZERO       @        0 (       0/  0x1000 @          0)
Writing segment __TEXT           @        0 (0x26e000/0x26e000 @     0x1000)
Writing segment __DATA           @ 0x26e000 (0x310000/0x310000 @   0x26f000)
        section __dyld           at 0x26e000 - 0x26e01c (sz:     0x1c)
        section __nl_symbol_ptr  at 0x26e01c - 0x26e938 (sz:    0x91c)
        section __la_symbol_ptr  at 0x26e938 - 0x26f2d0 (sz:    0x998)
        section __data           at 0x26f2d0 - 0x50e418 (sz: 0x29f148)
        section __const          at 0x50e420 - 0x50fd34 (sz:   0x1914)
unexec: unrecognized section name in __DATA segment
make[1]: *** [bootstrap-emacs] Error 1
make: *** [src] Error 2

--
Greetings

  Pete

If you're not confused, you're not paying attention.