Passing '-arch pcc' to gfortran-mp-4.8: unrecognized command line option
Blair Zajac
blair at orcaware.com
Sat Nov 9 23:00:02 PST 2013
On 11/09/2013 10:16 PM, Joshua Root wrote:
> On 2013-11-10 08:27 , Blair Zajac wrote:
>> I noticed my PPC MacPorts version was out of date so updated it to
>> 2.2.1. After this, there was an octave-devel update which failed to
>> compile while the previous version did. Looking at config.log, I'm
>> seeing this:
>>
>>
>> configure:33534: checking how to get verbose linking output from
>> /opt/local/bin/gfortran-mp-4.8
>> configure:33544: /opt/local/bin/gfortran-mp-4.8 -c -pipe -Os -m32
>> conftest.f >&5
>> configure:33544: $? = 0
>> configure:33562: /opt/local/bin/gfortran-mp-4.8 -o conftest -pipe -Os
>> -m32 -v -arch ppc conftest.f -lm
>> Using built-in specs.
>> gfortran-mp-4.8: error: unrecognized command line option '-arch'
>> Target: ppc-apple-darwin9
>> Thread model: posix
>> gcc version 4.8.2 (MacPorts gcc48 4.8.2_0)
>>
>>
>> Given that 10.5 and PPC is pretty old, is it possible that the updates
>> to portconfigure.tcl don't handle PPC as it used to?
>
> If you look in main.log at the environment that's being set when calling
> configure you should be able to see whether base is doing anything wrong
> there.
>
> It looks more like this configure check is picking up -arch ppc from
> somewhere it shouldn't. Maybe CFLAGS, but only if it's also stripping
> out duplicate flags like -Os that would be there if it was using e.g.
> $F90FLAGS -v $CFLAGS. The -m32 as also seen in the previous line is part
> of the correct fortran flags.
I was thinking that if gfortran doesn't accept -arch for any platform,
then this looks like a ppc bug because nobody else has reported it for
x86_64?
Here's part of the 'port -d -v install octave-devel' output:
DEBUG: Environment: CPATH='/opt/local/include' CXXFLAGS='-pipe -Os -arch
ppc' CFLAGS='-pipe -Os -arch ppc' LIBRARY_PATH='/opt/local/lib'
MACOSX_DEPLOYMENT_TARGET='10.5' PERL='/opt/local/bin/perl'
CXX='/usr/bin/g++-4.2'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_octave-devel/octave-devel/work/.CC_PRINT_OPTIONS'
F90FLAGS='-pipe -Os -m32' SED='/opt/local/bin/gsed' LDFLAGS='-arch ppc'
FCFLAGS='-pipe -Os -m32' TEXI2PDF='/opt/local/bin/texi2pdf'
OBJC='/usr/bin/gcc-4.2' OBJCXX='/usr/bin/g++-4.2'
INSTALL='/usr/bin/install -c' F90='/opt/local/bin/gfortran-mp-4.8'
FC='/opt/local/bin/gfortran-mp-4.8' PYTHON='' ''
AWK='/opt/local/bin/gawk' FFLAGS='-pipe -Os -m32' OBJCXXFLAGS='-pipe -Os
-arch ppc' OBJCFLAGS='-pipe -Os -arch ppc'
F77='/opt/local/bin/gfortran-mp-4.8' CC_PRINT_OPTIONS='YES'
GREP='/opt/local/bin/grep' CC='/usr/bin/gcc-4.2'
TEXI2DVI='/opt/local/bin/texi2dvi'
Blair
More information about the macports-dev
mailing list