emacs-pretest-bug
[Top][All Lists]
Advanced

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

Compiling with GCC 4.2 on Mac OS X


From: Peter Dyballa
Subject: Compiling with GCC 4.2 on Mac OS X
Date: Wed, 18 Jul 2007 11:27:03 +0200

Hello!

I recently installed GCC 4.2 and started at once to configure GNU Emacs 23 – recent 22.1.50 sources behave the same!

GCC 4.2 does not have any Apple enhancements. It identifies itself as

        gcc-4 (GCC) 4.2.0
        Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

while Apple's enhanced version from their Developer Tools tells:

powerpc-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5367)
        Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

The C header file emacs/src/s/darwin.h has a line

        #define C_SWITCH_SYSTEM -fpascal-strings -DMAC_OSX

The option ``-fpascal-strings´´ is not recognised by GCC 4.2 and seems to lead to a fatal error which in the end makes the configure script fail to find any header or library file, no Makefile is created. I removed the ``-fpascal-strings´´ part from the above #define and configure did a much better job. In the end configure did output:

        Configured for `powerpc-apple-darwin8.10.0'.
        
Where should the build process find the source code? /Users/ pete/Quellen/Emacs_CVS/emacs-23.0.0_NS-9.0rc1
          What operating system and machine description files should Emacs use?
                `s/darwin.h' and `m/powermac.h'
What compiler should emacs be built with? gcc-4 -I/ sw/include -L/sw/lib -pipe -dead_strip -fPIC -mcpu=7450 -mtune=7450 - ftree-vectorize -foptimize-register-move -freorder-blocks -freorder- blocks-and-partition -fthread-jumps -fpeephole -fno-crossjumping
          Should Emacs use the GNU version of malloc?             no
            (The GNU allocators don't work with this system configuration.)
          Should Emacs use a relocating allocator for buffers?    no
          Should Emacs use mmap(2) for buffer allocation?         no
          What window system should Emacs use?                    x11
          What toolkit should Emacs use?                          LUCID
Where do we find X Windows header files? /usr/X11R6/ include Where do we find X Windows libraries? /usr/X11R6/ lib
          Does Emacs use -lXaw3d?                                 yes
          Does Emacs use -lXpm?                                   yes
          Does Emacs use -ljpeg?                                  yes
          Does Emacs use -ltiff?                                  yes
          Does Emacs use a gif library?                           yes -lgif
          Does Emacs use -lpng?                                   yes
          Does Emacs use -lgpm?                                   no
          Does Emacs use X toolkit scroll bars?                   yes
        
        configure: creating ./config.status
        config.status: creating Makefile
        config.status: creating lib-src/Makefile.c
        config.status: creating oldXMenu/Makefile
        config.status: creating man/Makefile
        config.status: creating lwlib/Makefile
        config.status: creating src/Makefile.c
        config.status: creating lisp/Makefile
        config.status: creating lispref/Makefile
        config.status: creating lispintro/Makefile
        config.status: creating leim/Makefile
        config.status: creating src/config.h
        config.status: executing default commands
        creating src/epaths.h
        creating lib-src/Makefile
        gcc-4: unrecognized option '-no-cpp-precomp'
        creating src/Makefile
        gcc-4: unrecognized option '-no-cpp-precomp'

A working GNU Emacs was compiled.


Wouldn't it make sense to prepare the sources for GCC 4.2?

In GNU Emacs 22.1.50.1 (powerpc-apple-darwin8.10.0, X toolkit, Xaw3d scroll bars)
 of 2007-07-14 on localhost
Windowing system distributor `The XFree86 Project, Inc', version 11.0.40400000 configured using `configure '--without-sound' '--without-pop' '-- with-xpm' '--with-jpeg' '--with-tiff' '--with-gif' '--with-png' '-- with-x-toolkit=athena' '--enable-locallisppath=/Library/Application Support/Emacs/calendar22:/Library/Application Support/Emacs/caml:/ Library/Application Support/Emacs:/sw/share/emacs21/site-lisp/elib' 'CPPFLAGS=-no-cpp-precomp -I/usr/include/openssl -I/sw/include/ pango-1.0 -I/sw/lib/freetype219/include -I/sw/lib/freetype219/include/ freetype2 -I/sw/lib/fontconfig2/include -I/sw/include/libpng12 -I/usr/ local/include -I/sw/include' 'CXXFLAGS=-no-cpp-precomp -I/usr/include/ openssl -I/sw/include/pango-1.0 -I/sw/lib/freetype219/include -I/sw/ lib/freetype219/include/freetype2 -I/sw/lib/fontconfig2/include -I/sw/ include/libpng12 -I/usr/local/include -I/sw/include -idirafter /usr/ X11R6/include' 'LDFLAGS=-dead_strip -bind_at_load -L/sw/lib/ freetype219/lib -L/sw/lib/fontconfig2/lib -L/sw/lib/ncurses -L/usr/ local/lib -L/sw/lib' 'CFLAGS=-pipe -fPIC -mcpu=7450 -mtune=7450 -fast -mpim-altivec -ftree-vectorize -foptimize-register-move -freorder- blocks -freorder-blocks-and-partition -fthread-jumps -fpeephole -fno- crossjumping''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: de_DE.UTF-8
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: de_DE.UTF-8
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

Major mode: Compilation

Minor modes in effect:
  TeX-PDF-mode: t
  shell-dirtrack-mode: t
  show-paren-mode: t
  display-time-mode: t
  desktop-save-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

--
Greetings

  Pete

If my theory of relativity is proven successful, Germany will claim me as a German, and France will declare that I am a citizen of the world. Should my theory prove untrue, France will say that I am a German, and Germany will declare that I am a Jew. -- Albert Einstein, 1929






reply via email to

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