Opened 11 years ago

Closed 10 years ago

#39177 closed defect (worksforme)

py-scipy build error: unrecognized command line option "-arch"

Reported by: mailforshao@… Owned by: seanfarley (Sean Farley)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: spamaddress.giveaway@…, vlsd (Vlad), jfilippidis@…, elfprince13 (Thomas Dickerson), dolfimeth@…, niall.maccrann@…, larryv (Lawrence Velázquez), petrrr
Port: py-scipy

Description (last modified by mf2k (Frank Schima))

Hi here is the log file where the error happens:

:info:build gfortran-mp-4.5:f77: scipy/optimize/minpack/rwupdt.f
:info:build ar: adding 23 object files to build/temp.macosx-10.8-x86_64-2.7/libminpack.a
:info:build ranlib:@ build/temp.macosx-10.8-x86_64-2.7/libminpack.a
:info:build building 'rootfind' library
:info:build compiling C sources
:info:build C compiler: /Developer/usr/bin/gcc-mp-4.5 -fno-strict-aliasing -fno-common -dynamic -pipe -O2 -fwrapv -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
:info:build
:info:build creating build/temp.macosx-10.8-x86_64-2.7/scipy/optimize/Zeros
:info:build compile options: '-I/Developer/usr/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -c'
:info:build gcc-mp-4.5: scipy/optimize/Zeros/ridder.c
:info:build cc1: error: unrecognized command line option "-arch"
:info:build cc1: error: unrecognized command line option "-arch"
:info:build error: Command "/Developer/usr/bin/gcc-mp-4.5 -fno-strict-aliasing -fno-common -dynamic -pipe -O2 -fwrapv -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Developer/usr/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -c scipy/optimize/Zeros/ridder.c -o build/temp.macosx-10.8-x86_64-2.7/scipy/optimize/Zeros/ridder.o" failed with exit status 1
:info:build Command failed:  cd "/Developer/usr/var/macports/build/_Developer_usr_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-scipy/py27-scipy/work/scipy-0.12.0" && /Developer/usr/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 setup.py --no-user-cfg config_fc --fcompiler gnu95 --f77exec /Developer/usr/bin/gfortran-mp-4.5 --f90exec /Developer/usr/bin/gfortran-mp-4.5 config --cc /Developer/usr/bin/gcc-mp-4.5 --include-dirs /Developer/usr/include --library-dirs /Developer/usr/lib build
:info:build Exit code: 1
:error:build org.macports.build for port py27-scipy returned: command execution failed
:debug:build Error code: CHILDSTATUS 87109 1
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: targets not executed for py27-scipy: org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Please see the log file for port py27-scipy for details:

Attachments (2)

main.log (317.2 KB) - added by mailforshao@… 11 years ago.
log file
main.2.log (317.2 KB) - added by mailforshao@… 11 years ago.
log file

Download all attachments as: .zip

Change History (18)

comment:1 Changed 11 years ago by mf2k (Frank Schima)

Description: modified (diff)
Keywords: py27-scipy removed
Owner: changed from macports-tickets@… to sean@…
Port: py-scipy added
Summary: scipy error: unrecognized command line option "-arch"py-scipy build error: unrecognized command line option "-arch"

Please attach the complete main.log and, in the future, use WikiFormatting, fill in the Port field and Cc the port maintainer(s).

Changed 11 years ago by mailforshao@…

Attachment: main.log added

log file

Changed 11 years ago by mailforshao@…

Attachment: main.2.log added

log file

comment:2 Changed 11 years ago by larryv (Lawrence Velázquez)

FSF GCC older than 4.7 does not accept -arch flags.

comment:3 Changed 11 years ago by mf2k (Frank Schima)

So we should simply delete the gcc variants less than 47 and add gcc48 and gcc49.

comment:4 in reply to:  3 ; Changed 11 years ago by larryv (Lawrence Velázquez)

We could also patch the build to use -arch or -mFOO as appropriate, with get_canonical_archflags.

comment:5 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: spamaddress.giveaway@… added

Has duplicate #39324.

comment:6 Changed 11 years ago by vlsd (Vlad)

Cc: vloodo@… added

Cc Me!

comment:7 Changed 11 years ago by jfilippidis@…

Cc: jfilippidis@… added

Cc Me!

comment:8 Changed 11 years ago by larryv (Lawrence Velázquez)

Cc: elfprince13@… added

Has duplicate #39432.

comment:9 Changed 11 years ago by dolfimeth@…

Cc: dolfimeth@… added

Cc Me!

comment:10 Changed 11 years ago by niall.maccrann@…

Cc: niall.maccrann@… added

Cc Me!

comment:11 in reply to:  4 Changed 11 years ago by elfprince13 (Thomas Dickerson)

Replying to larryv@…:

We could also patch the build to use -arch or -mFOO as appropriate, with get_canonical_archflags.

So...has this been tried? Is there any timeline for a patch?

comment:12 Changed 11 years ago by larryv (Lawrence Velázquez)

Cc: larryv@… added

Cc Me!

comment:13 Changed 10 years ago by petrrr

Hi all, I guess #39351 is a duplicate of this and should be closed.

comment:14 Changed 10 years ago by petrrr

Cc: Peter.Danecek@… added

Cc Me!

comment:15 Changed 10 years ago by seanfarley (Sean Farley)

I can't seem to be able to reproduce this error. Is this still a problem?

comment:16 Changed 10 years ago by seanfarley (Sean Farley)

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.