From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.bugs Subject: bug#9757: 24.0.90; configuration and compilation for multiple architectures not possible Date: Fri, 14 Oct 2011 22:38:44 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1318624961 11434 80.91.229.12 (14 Oct 2011 20:42:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 14 Oct 2011 20:42:41 +0000 (UTC) To: 9757@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 14 22:42:36 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1REoaS-0000eJ-1N for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Oct 2011 22:42:36 +0200 Original-Received: from localhost ([::1]:59725 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REoaQ-0004aZ-Ow for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Oct 2011 16:42:34 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:52297) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REoaM-0004aR-SS for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2011 16:42:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1REoaK-00044F-OB for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2011 16:42:30 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57278) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REoaJ-00043s-Et for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2011 16:42:27 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1REoas-0003A8-4T for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2011 16:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Peter Dyballa Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Oct 2011 20:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9757 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.131862496912136 (code B ref -1); Fri, 14 Oct 2011 20:43:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Oct 2011 20:42:49 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1REoaf-00039h-1K for submit@debbugs.gnu.org; Fri, 14 Oct 2011 16:42:49 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1REoab-00039U-Oa for submit@debbugs.gnu.org; Fri, 14 Oct 2011 16:42:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1REoZr-0003uf-60 for submit@debbugs.gnu.org; Fri, 14 Oct 2011 16:42:04 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:46901) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REoZq-0003ty-Op for submit@debbugs.gnu.org; Fri, 14 Oct 2011 16:41:58 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:51791) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REoZn-0004XX-2c for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2011 16:41:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1REoZd-0003nz-Dz for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2011 16:41:53 -0400 Original-Received: from mout9.freenet.de ([195.4.92.99]:51248) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REoZc-0003ZL-JW for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2011 16:41:44 -0400 Original-Received: from [195.4.92.140] (helo=mjail0.freenet.de) by mout9.freenet.de with esmtpa (ID peter_dyballa@freenet.de) (port 25) (Exim 4.76 #5) id 1REoZ1-0003Qx-2o for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2011 22:41:07 +0200 Original-Received: from localhost ([::1]:35590 helo=mjail0.freenet.de) by mjail0.freenet.de with esmtpa (ID peter_dyballa@freenet.de) (Exim 4.76 #1) id 1REoZ0-0001g3-VI for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2011 22:41:07 +0200 Original-Received: from [195.4.92.21] (port=38816 helo=11.mx.freenet.de) by mjail0.freenet.de with esmtpa (ID peter_dyballa@freenet.de) (Exim 4.76 #1) id 1REoWl-0001I8-1H for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2011 22:38:47 +0200 Original-Received: from ip-88-153-242-186.unitymediagroup.de ([88.153.242.186]:60120 helo=peter-dyballas-macbook-pro.fritz.box) by 11.mx.freenet.de with esmtpsa (ID peter_dyballa@freenet.de) (TLSv1:AES128-SHA:128) (port 587) (Exim 4.76 #1) id 1REoWk-0001ch-ML for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2011 22:38:46 +0200 X-Mailer: Apple Mail (2.1084) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 14 Oct 2011 16:43:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:52655 Archived-At: Hello! Trying to set up GNU Emacs with Apple means to run on more than one = target architecture configuration fails because the configure script = does not use the value I set for CPP but insists on using the -E option = for CC, which is not allowed in this situation: configure:5753: checking how to run the C preprocessor configure:5823: result: gcc-4.0 -arch ppc -arch ppc64 -arch x86_64 = -mmacosx-version-min=3D10.4.8 -isysroot = /Developer45/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=3D10.4.8 = -Xarch_ppc -faltivec -Xarch_ppc -mabi=3Daltivec -Xarch_ppc -mcpu=3DG4 = -Xarch_ppc -mtune=3DG4 -Xarch_ppc64 -mpowerpc-gfxopt -Xarch_ppc64 = -faltivec -Xarch_ppc64 -mabi=3Daltivec -Xarch_x86_64 -march=3Dnocona = -Xarch_x86_64 -m64 -Xarch_x86_64 -msse3 -Xarch_x86_64 -mssse3 -E = -I/sw/include -L/sw/lib configure:5843: gcc-4.0 -arch ppc -arch ppc64 -arch x86_64 = -mmacosx-version-min=3D10.4.8 -isysroot = /Developer45/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=3D10.4.8 = -Xarch_ppc -faltivec -Xarch_ppc -mabi=3Daltivec -Xarch_ppc -mcpu=3DG4 = -Xarch_ppc -mtune=3DG4 -Xarch_ppc64 -mpowerpc-gfxopt -Xarch_ppc64 = -faltivec -Xarch_ppc64 -mabi=3Daltivec -Xarch_x86_64 -march=3Dnocona = -Xarch_x86_64 -m64 -Xarch_x86_64 -msse3 -Xarch_x86_64 -mssse3 -E = -I/sw/include -L/sw/lib conftest.c gcc-4.0: -E, -S, -save-temps and -M options are not allowed with = multiple -arch flags configure:5843: $? =3D 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "emacs" | #define PACKAGE_TARNAME "emacs" | #define PACKAGE_VERSION "24.0.90" | #define PACKAGE_STRING "emacs 24.0.90" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "emacs" | #define VERSION "24.0.90" | #define SYNC_INPUT 1 | #define WIDE_EMACS_INT 1 | /* end confdefs.h. */ | #ifdef __STDC__ | # include | #else | # include | #endif | Syntax error configure:5843: gcc-4.0 -arch ppc -arch ppc64 -arch x86_64 = -mmacosx-version-min=3D10.4.8 -isysroot = /Developer45/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=3D10.4.8 = -Xarch_ppc -faltivec -Xarch_ppc -mabi=3Daltivec -Xarch_ppc -mcpu=3DG4 = -Xarch_ppc -mtune=3DG4 -Xarch_ppc64 -mpowerpc-gfxopt -Xarch_ppc64 = -faltivec -Xarch_ppc64 -mabi=3Daltivec -Xarch_x86_64 -march=3Dnocona = -Xarch_x86_64 -m64 -Xarch_x86_64 -msse3 -Xarch_x86_64 -mssse3 -E = -I/sw/include -L/sw/lib conftest.c gcc-4.0: -E, -S, -save-temps and -M options are not allowed with = multiple -arch flags configure:5843: $? =3D 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "emacs" | #define PACKAGE_TARNAME "emacs" | #define PACKAGE_VERSION "24.0.90" | #define PACKAGE_STRING "emacs 24.0.90" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "emacs" | #define VERSION "24.0.90" | #define SYNC_INPUT 1 | #define WIDE_EMACS_INT 1 | /* end confdefs.h. */ | #ifdef __STDC__ | # include | #else | # include | #endif | Syntax error configure:5873: error: in = `/Users/peter/Quellen/Emacs_CVS/emacs-24.0.90': configure:5875: error: C preprocessor "gcc-4.0 -arch ppc -arch ppc64 = -arch x86_64 -mmacosx-version-min=3D10.4.8 -isysroot = /Developer45/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=3D10.4.8 = -Xarch_ppc -faltivec -Xarch_ppc -mabi=3Daltivec -Xarch_ppc -mcpu=3DG4 = -Xarch_ppc -mtune=3DG4 -Xarch_ppc64 -mpowerpc-gfxopt -Xarch_ppc64 = -faltivec -Xarch_ppc64 -mabi=3Daltivec -Xarch_x86_64 -march=3Dnocona = -Xarch_x86_64 -m64 -Xarch_x86_64 -msse3 -Xarch_x86_64 -mssse3 -E = -I/sw/include -L/sw/lib" fails sanity check See `config.log' for more details I invoked configure this way: env LANG=3DC PATH=3D/sw/bin:$PATH ./configure --without-sound = --without-dbus --without-pop --without-gconf --without-gpm = --with-wide-int --with-x-toolkit=3Dathena --x-libraries=3D/usr/X11/lib = --x-includes=3D/usr/X11/include = --enable-locallisppath=3D/Library/Application\ = Support/Emacs/calendar24:/Library/Application\ Support/Emacs CFLAGS=3D"-H = -pipe -fPIC -pthread" LDFLAGS=3D"-Wl,-dead_strip_dylibs = -Wl,-bind_at_load -Wl,-t" CC=3D"gcc-4.0 -arch ppc -arch ppc64 -arch = x86_64 -mmacosx-version-min=3D10.4.8 -isysroot = /Developer45/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=3D10.4.8 = -Xarch_ppc -faltivec -Xarch_ppc -mabi=3Daltivec -Xarch_ppc -mcpu=3DG4 = -Xarch_ppc -mtune=3DG4 -Xarch_ppc64 -mpowerpc-gfxopt -Xarch_ppc64 = -faltivec -Xarch_ppc64 -mabi=3Daltivec -Xarch_x86_64 -march=3Dnocona = -Xarch_x86_64 -m64 -Xarch_x86_64 -msse3 -Xarch_x86_64 -mssse3" CPP=3Dcpp-4= = PKG_CONFIG_PATH=3D/sw/lib/xft2/lib/pkgconfig:/sw/share/pkgconfig:/sw/lib/p= kgconfig:/usr/X11/lib/pkgconfig:/usr/X11/share/pkgconfig:/usr/lib/pkgconfi= g In config.log I can see: ac_cv_c_compiler_gnu=3Dyes ac_cv_env_CC_set=3Dset ac_cv_env_CC_value=3D'gcc-4.0 -arch ppc -arch ppc64 -arch x86_64 = -mmacosx-version-min=3D10.4.8 -isysroot = /Developer45/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=3D10.4.8 = -Xarch_ppc -faltivec -Xarch_ppc -mabi=3Daltivec -Xarch_ppc -mcpu=3DG4 = -Xarch_ppc -mtune=3DG4 -Xarch_ppc64 -mpowerpc-gfxopt -Xarch_ppc64 = -faltivec -Xarch_ppc64 -mabi=3Daltivec -Xarch_x86_64 -march=3Dnocona = -Xarch_x86_64 -m64 -Xarch_x86_64 -msse3 -Xarch_x86_64 -mssse3' ac_cv_env_CFLAGS_set=3Dset ac_cv_env_CFLAGS_value=3D'-H -pipe -fPIC -pthread' ac_cv_env_CPPFLAGS_set=3D ac_cv_env_CPPFLAGS_value=3D ac_cv_env_CPP_set=3Dset ac_cv_env_CPP_value=3Dcpp-4 ac_cv_env_LDFLAGS_set=3Dset ac_cv_env_LDFLAGS_value=3D'-Wl,-dead_strip_dylibs = -Wl,-bind_at_load -Wl,-t' ac_cv_env_LIBS_set=3D ac_cv_env_LIBS_value=3D but these lines are below the first excerpt with the test whether some C = preprocessor works, in a section "Cache variables." And it seems to = cache a value that it never tested... My test case also shows another problem: only one architecture, ppc (G4 = or PowerPC 74xx) is 32-bit and would need the --with-wide-int configure = option, the two other architectures, ppc64 (or G5, PowerPC 970) and = x86_64 (intel, kind of "nocona"), are inherently 64-bit. And one more problem (family) shines up: "uname -m =3D x86_64" and = "/usr/bin/uname -p =3D i386" are found, a "Processor type: i486 (Intel = 80486)" is deduced (Apple recommends the TRIPLE x86_64-apple-darwin10 = for Snow Leopard on a 64-bit machine and i686-apple-darwin10 for Snow = Leopard on a 32-bit machine). Finally configure logs: configure:4324: checking build system type configure:4338: result: i386-apple-darwin10.8.0 configure:4358: checking host system type configure:4371: result: i386-apple-darwin10.8.0 It declares my hardware 32-bit, which is OK for the libraries provided = by Fink in /sw/lib, but it's not OK for the native libraries provided by = MacPorts in /opt/local/lib, which are 64-bit. (Apple makes it simple: it = provides real fat libraries with support for i386, x86_64, and the G4 = ppc family, as I try to compile myself. Notice: this is the situation = for old Mac OS X 10.6.x, Snow Leopard; the Lion, Mac OS X 10.7.x, = situation might be simpler, only i386 and x86_64, but I have no access.) -- Greetings Pete You can never know too little of what is not worth knowing at all. =96 Anon.