expat 2.1.0 fails - compiler test is trying to make a Universal binary?
earle at isolar.DynDNS.ORG
Wed Jun 27 07:27:39 PDT 2012
I'm trying to build wine-devel on a Late 2011 MacBook Pro running 10.7.4.
I've already done "port selfupdate" to get to 2.1.0 and "port upgrade outdated"
to get all my current stuff up to snuff with no problems.
But while trying to build WINE it's falling flat on textproc/expat 2.1.0.
Looks to me from the 'configure' logs (see below) that it's trying to build
it as a Universal binary, when there is no PPC support on my system.
(I should note that this is a fairly new system and I did a Migration
Assistant migration from an old Power Mac G5. Maybe something is
making MacPorts - or at least "expat" - think there is PowerPC support
[7:03] macossex:/<7>work/expat-2.1.0 % pwd
[7:03] macossex:/<7>work/expat-2.1.0 % grep FLAGS= config.log
CFLAGS='-O2 -arch ppc -arch i386'
CXXFLAGS='-O2 -arch ppc -arch i386'
LDFLAGS='-L/opt/local/lib -arch ppc -arch i386'
Why/where are CFLAGS et al. picking up "-arch ppc"? None of my
"port update outdated" builds ran into this issue.
P.S. Here are the relevant lines from "config.log":
[7:04] macossex:/<7>work/expat-2.1.0 % cat 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 expat configure 2.1.0, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ ./configure --prefix=/opt/local --disable-dependency-tracking
configure:2897: checking for gcc
configure:2924: result: /usr/bin/clang
configure:3153: checking for C compiler version
configure:3162: /usr/bin/clang --version >&5
Apple clang version 3.0 (tags/Apple/clang-211.10.1) (based on LLVM 3.0svn)
Thread model: posix
configure:3173: $? = 0
configure:3193: checking whether the C compiler works
configure:3215: /usr/bin/clang -O2 -arch ppc -arch i386 -I/opt/local/include -L/opt/local/lib -arch ppc -arch i386 conftest.c >&5
clang: warning: not using the clang compiler for the 'powerpc' architecture
llvm-gcc-4.2: error trying to exec '/usr/bin/../llvm-gcc-4.2/bin/powerpc-apple-darwin11-llvm-gcc-4.2': execvp: No such file or directory
clang: error: gcc frontend command failed with exit code 255 (use -v to see invocation)
configure:3262: error: in `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/expat/work/expat-2.1.0':
configure:3264: error: C compiler cannot create executables
More information about the macports-users