[Aquamacs-devel] future gcc releases on OS X -- they may be going away

David Reitter david.reitter at gmail.com
Sat Sep 26 05:29:31 UTC 2009


On Sep 25, 2009, at 10:03 PM, Sidney Markowitz wrote:

> Sidney Markowitz wrote, On 26/9/09 1:25 PM:
>> `/bin/pwd`/temacs --batch --load loadup bootstrap
>> make[1]: *** [bootstrap-emacs] Segmentation fault
>
> Using the llvm-gcc compiler from the LLVM 2.5 download ended with a  
> segmentation fault in the same place in the build. That doesn't mean  
> that it is the same error, only that the temacs executable dies with  
> a fault the first time in the build that it is run.

try the patch below.
- D



Begin forwarded message:

> From: YAMAMOTO Mitsuharu <mituharu at math.s.chiba-u.ac.jp>
> Date: September 8, 2009 9:04:13 PM EDT
> To: CHENG Gao <chenggao at gmail.com>
> Cc: emacs-devel at gnu.org
> Subject: Re: Emacs 22 Carbon+AppKit port and Emacs 23 Mac port
>
>>>>>> On Tue, 08 Sep 2009 18:38:03 +0800, CHENG Gao  
>>>>>> <chenggao at gmail.com> said:
>
>> Out of curiosity, I tried to build Mac port (1.92) with clang, and
>> found it works well, while building 32bit ns port fails.
>
> The Mac port and the Carbon+AppKit port have contained a small kludge
> for LLVM-based compilers (llvm-gcc for 10.5, llvm-gcc and clang for
> 10.6) bundled with Xcode since their first versions.
>
> RCS file: /cvsroot/emacs/emacs/src/m/intel386.h,v
> retrieving revision 1.42.2.4
> diff -c -p -r1.42.2.4 intel386.h
> *** src/m/intel386.h	27 Feb 2008 23:32:04 -0000	1.42.2.4
> --- src/m/intel386.h	6 Sep 2008 04:51:04 -0000
> *************** NOTE-END */
> *** 215,221 ****
>  #endif
>
>  #if defined (MAC_OSX) || defined (DARWIN)
> ! #ifdef _LP64
>  /* For Intel Mac, with CC='gcc -arch x86_64'.  */
>  #define NO_ARG_ARRAY
>  #endif
> --- 215,221 ----
>  #endif
>
>  #if defined (MAC_OSX) || defined (DARWIN)
> ! #if defined (_LP64) || defined (__llvm__)
>  /* For Intel Mac, with CC='gcc -arch x86_64'.  */
>  #define NO_ARG_ARRAY
>  #endif
>
> I'm not sure if it is applicable to all versions of LLVM-based
> compilers or all target architectures.  So I just put it as a "kludge"
> for unofficial ports.
>
> You can also turn on link-time optimization option (-O4) on intel
> processors though it takes much more time to build.  IIRC, it didn't
> work well for ppc64.
>
> 				     YAMAMOTO Mitsuharu
> 				mituharu at math.s.chiba-u.ac.jp
>
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2193 bytes
Desc: not available
URL: <http://lists.aquamacs.org/pipermail/aquamacs-devel/attachments/20090926/b0217e37/attachment-0009.p7s>


More information about the Aquamacs-devel mailing list