install emacs-app failed on Tiger, ppc

Joe Davison jwdavison at mac.com
Wed Jan 28 07:33:20 PST 2009


I recently did a port selfupdate and am now on MacPorts 1.700.  It's  
been working fine with other installs.

I'm running 10.4.11 on a PowerPC G4 (Quicksilver)

Today I tried  sudo port -v install emacs-app and got a, to me,  
bizarre failure.     I captured both the output from port -v and the  
config.log.   Examining the latter shows that, for some reason when it  
checked the executable generated by gcc4 it was for intel, not ppc --  
possibly an error in flags passed to it?

NOTE: After investigating further I isolated the problem to the CFLAGS  
set in nextstep/compile

You can see the result from the trace in configure:
        configure:3183: gcc-4.0 -g -O3 -arch ppc -arch i386    
conftest.c  >&5

the CFLAGS sets both -arch ppc and -arch i386 -- and on PPC it ends up  
saying the compiler can't generate executable files...

I dropped the -arch i386 and was able to install on my machine

joe

PS.  In case they're useful, here are the files I mentioned above.

-------------------------- start  port output  
---------------------------
--->  Fetching emacs-app
--->  emacs-23.0.0_NS-9.0rc3.tar.bz2 doesn't seem to exist in /opt/ 
local/var/macports/distfiles/emacs-app
--->  Attempting to fetch emacs-23.0.0_NS-9.0rc3.tar.bz2 from http://downloads.sourceforge.net/emacs-app
--->  Verifying checksum(s) for emacs-app
--->  Checksumming emacs-23.0.0_NS-9.0rc3.tar.bz2
--->  Extracting emacs-app
--->  Extracting emacs-23.0.0_NS-9.0rc3.tar.bz2
--->  Configuring emacs-app
--->  Building emacs-app
./configure --with-ns --without-x --prefix=/opt/local/var/macports/ 
build/ 
_opt_local_var_macports_sources_rsync 
.macports.org_release_ports_aqua_emacs-app/work/emacs-23.0.0_NS-9.0rc3/ 
nextstep/build/Emacs.app/Contents/Resources --exec_prefix=/opt/local/ 
var/macports/build/ 
_opt_local_var_macports_sources_rsync 
.macports.org_release_ports_aqua_emacs-app/work/emacs-23.0.0_NS-9.0rc3/ 
nextstep/build/Emacs.app/Contents/MacOS --libexecdir=/opt/local/var/ 
macports/build/ 
_opt_local_var_macports_sources_rsync 
.macports.org_release_ports_aqua_emacs-app/work/emacs-23.0.0_NS-9.0rc3/ 
nextstep/build/Emacs.app/Contents/MacOS/libexec --with-pop --enable- 
font-backend --without-freetype
checking build system type... powerpc-apple-darwin8.11.0
checking host system type... powerpc-apple-darwin8.11.0
checking for gcc... gcc-4.0
checking for C compiler default output file name... configure: error:  
C compiler cannot create executables
See `config.log' for more details.
*** Configure run failed. ***
Please examine the above output to determine what went wrong,
edit this script (\'compile\') to fix it, and rerun.
Warning: the following items did not execute (for emacs-app):  
org.macports.activate org.macports.build org.macports.destroot  
org.macports.archive org.macports.install
-------------------------- end  port output ---------------------------


------------------------- start config.log---------------------------
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure --with-ns --without-x --prefix=/opt/local/var/macports/ 
build/ 
_opt_local_var_macports_sources_rsync 
.macports.org_release_ports_aqua_emacs-app/work/emacs-23.0.0_NS-9.0rc3/ 
nextstep/build/Emacs.app/Contents/Resources --exec_prefix=/opt/local/ 
var/macports/build/ 
_opt_local_var_macports_sources_rsync 
.macports.org_release_ports_aqua_emacs-app/work/emacs-23.0.0_NS-9.0rc3/ 
nextstep/build/Emacs.app/Contents/MacOS --libexecdir=/opt/local/var/ 
macports/build/ 
_opt_local_var_macports_sources_rsync 
.macports.org_release_ports_aqua_emacs-app/work/emacs-23.0.0_NS-9.0rc3/ 
nextstep/build/Emacs.app/Contents/MacOS/libexec --with-pop --enable- 
font-backend --without-freetype

## --------- ##
## Platform. ##
## --------- ##

hostname = jupiter.local
uname -m = Power Macintosh
uname -r = 8.11.0
uname -s = Darwin
uname -v = Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007;  
root:xnu-792.24.17~1/RELEASE_PPC

/usr/bin/uname -p = powerpc
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = Mach kernel version:
	 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007;  
root:xnu-792.24.17~1/RELEASE_PPC
Kernel configured for a single processor only.
1 processor is physically available.
Processor type: ppc7450 (PowerPC 7450)
Processor active: 0
Primary memory available: 1.25 gigabytes
Default processor set: 93 tasks, 260 threads, 1 processors
Load average: 4.35, Mach factor: 0.20
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /opt/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /Users/jwd/bin
PATH: /opt/exp/bin
PATH: /usr/local/bin
PATH: /usr/local/mysql/bin
PATH: /sw/bin
PATH: /Developer/Tools


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1717: checking build system type
configure:1735: result: powerpc-apple-darwin8.11.0
configure:1743: checking host system type
configure:1757: result: powerpc-apple-darwin8.11.0
configure:2871: checking for gcc
configure:2897: result: gcc-4.0
configure:3141: checking for C compiler version
configure:3144: gcc-4.0 --version </dev/null >&5
powerpc-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc.  
build 5341)
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.

configure:3147: $? = 0
configure:3149: gcc-4.0 -v </dev/null >&5
Using built-in specs.
Target: powerpc-apple-darwin8
Configured with: /private/var/tmp/gcc/gcc-5341.obj~1/src/configure -- 
disable-checking -enable-werror --prefix=/usr --mandir=/share/man -- 
enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg] 
[^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with- 
slibdir=/usr/lib --build=powerpc-apple-darwin8 --host=powerpc-apple- 
darwin8 --target=powerpc-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5341)
configure:3152: $? = 0
configure:3154: gcc-4.0 -V </dev/null >&5
gcc-4.0: argument to `-V' is missing
configure:3157: $? = 1
configure:3180: checking for C compiler default output file name
configure:3183: gcc-4.0 -g -O3 -arch ppc -arch i386   conftest.c  >&5
/usr/bin/ld: for architecture i386
/usr/bin/ld: warning fat file: /usr/lib/gcc/i686-apple- 
darwin8/4.0.1/../../../libSystem.dylib does not contain an  
architecture that matches the specified -arch flag: i386 (file ignored)
/usr/bin/ld: Undefined symbols:
___keymgr_dwarf2_register_sections
__cthread_init_routine
_atexit
_errno
_exit
_mach_init_routine
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccN8s8yF.out (No such file or  
directory)
configure:3186: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define MAIL_USE_POP 1
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3225: error: C compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=powerpc-apple-darwin8.11.0
ac_cv_build_alias=powerpc-apple-darwin8.11.0
ac_cv_env_CC_set=set
ac_cv_env_CC_value=gcc-4.0
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-g -O3 -arch ppc -arch i386'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=powerpc-apple-darwin8.11.0
ac_cv_host_alias=powerpc-apple-darwin8.11.0
ac_cv_prog_ac_ct_CC=gcc-4.0

## ----------------- ##
## Output variables. ##
## ----------------- ##

ALLOCA=''
ALSA_CFLAGS=''
ALSA_LIBS=''
CC='gcc-4.0'
CFLAGS='-g -O3 -arch ppc -arch i386'
CFLAGS_SOUND=''
CPP='gcc-4.0 -E -no-cpp-precomp -I/sw/include -L/sw/lib'
CPPFLAGS=''
C_SWITCH_X_SITE=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FONTCONFIG_CFLAGS=''
FONTCONFIG_LIBS=''
FREETYPE_CFLAGS=''
FREETYPE_LIBS=''
GETLOADAVG_LIBS=''
GETOPTOBJS=''
GETOPT_H=''
GTK_CFLAGS=''
GTK_LIBS=''
GZIP_PROG=''
HAVE_LIBOTF=''
HAVE_XSERVER=''
INSTALL_DATA=''
INSTALL_INFO=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
KMEM_GROUP=''
LDFLAGS=''
LD_SWITCH_X_SITE=''
LD_SWITCH_X_SITE_AUX=''
LIBOBJS=''
LIBOTF_CFLAGS=''
LIBOTF_LIBS=''
LIBS=''
LIBSOUND=''
LN_S=''
LTLIBOBJS=''
MAINT='#'
MAKEINFO=''
NEED_SETGID=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PKG_CONFIG=''
RANLIB=''
RSVG_CFLAGS=''
RSVG_LIBS=''
SET_MAKE=''
SHELL='/bin/sh'
XFT_CFLAGS=''
XFT_LIBS=''
X_TOOLKIT_TYPE=''
ac_ct_CC='gcc-4.0'
ac_ct_RANLIB=''
archlibdir='${libexecdir}/emacs/${version}/${configuration}'
bindir='${exec_prefix}/bin'
bitmapdir=''
build='powerpc-apple-darwin8.11.0'
build_alias=''
build_cpu='powerpc'
build_os='darwin8.11.0'
build_vendor='apple'
c_switch_machine=''
c_switch_system=''
canonical='powerpc-apple-darwin8.11.0'
carbon_appdir=''
configuration='powerpc-apple-darwin8.11.0'
datadir='${prefix}/share'
docdir='${datadir}/emacs/${version}/etc'
etcdir='${datadir}/emacs/${version}/etc'
exec_prefix='/opt/local/var/macports/build/ 
_opt_local_var_macports_sources_rsync 
.macports.org_release_ports_aqua_emacs-app/work/emacs-23.0.0_NS-9.0rc3/ 
nextstep/build/Emacs.app/Contents/MacOS'
gamedir='${localstatedir}/games/emacs'
gameuser='games'
host='powerpc-apple-darwin8.11.0'
host_alias=''
host_cpu='powerpc'
host_os='darwin8.11.0'
host_vendor='apple'
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='/opt/local/var/macports/build/ 
_opt_local_var_macports_sources_rsync 
.macports.org_release_ports_aqua_emacs-app/work/emacs-23.0.0_NS-9.0rc3/ 
nextstep/build/Emacs.app/Contents/MacOS/libexec'
liblockfile=''
lispdir='${datadir}/emacs/${version}/lisp'
lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
locallisppath='${datadir}/emacs/${version}/site-lisp:${datadir}/emacs/ 
site-lisp'
localstatedir='${prefix}/var'
machfile='m/powermac.h'
mandir='${prefix}/man'
ns_appdir=''
oldincludedir='/usr/include'
opsysfile='s/darwin.h'
prefix='/opt/local/var/macports/build/ 
_opt_local_var_macports_sources_rsync 
.macports.org_release_ports_aqua_emacs-app/work/emacs-23.0.0_NS-9.0rc3/ 
nextstep/build/Emacs.app/Contents/Resources'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
srcdir='/opt/local/var/macports/build/ 
_opt_local_var_macports_sources_rsync 
.macports.org_release_ports_aqua_emacs-app/work/emacs-23.0.0_NS-9.0rc3'
sysconfdir='${prefix}/etc'
target_alias=''
version=''
x_default_search_path=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define MAIL_USE_POP 1
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""

configure: exit 77
--------------------------- end config.log  
-------------------------------------------



More information about the macports-users mailing list