Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#15834 closed defect (fixed)

py25-scipy-0.6.0 upgrade fails to build

Reported by: ralph@… Owned by: skymoo (Adam Mercer)
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: py25-scipy Cc:
Port:

Description

--->  Building py25-scipy with target build
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-scipy/work/scipy-0.6.0" && /opt/local/bin/python2.5 setup.py config_fc --fcompiler gnu95 --f77exec /opt/local/bin/gfortran-mp-4.3 --f90exec /opt/local/bin/gfortran-mp-4.3 build " returned error 1
Command output: 		Constructing wrapper function "dgmresrevcom"...
		  x,iter,resid,info,ndx1,ndx2,sclr1,sclr2,ijob = dgmresrevcom(b,x,restrt,work,work2,iter,resid,info,ndx1,ndx2,ijob)
		Constructing wrapper function "cgmresrevcom"...
		  x,iter,resid,info,ndx1,ndx2,sclr1,sclr2,ijob = cgmresrevcom(b,x,restrt,work,work2,iter,resid,info,ndx1,ndx2,ijob)
		Constructing wrapper function "zgmresrevcom"...
		  x,iter,resid,info,ndx1,ndx2,sclr1,sclr2,ijob = zgmresrevcom(b,x,restrt,work,work2,iter,resid,info,ndx1,ndx2,ijob)
		Constructing wrapper function "sstoptest2"...
		  bnrm2,resid,info = sstoptest2(r,b,bnrm2,tol,info)
		Constructing wrapper function "dstoptest2"...
		  bnrm2,resid,info = dstoptest2(r,b,bnrm2,tol,info)
		Constructing wrapper function "cstoptest2"...
		  bnrm2,resid,info = cstoptest2(r,b,bnrm2,tol,info)
		Constructing wrapper function "zstoptest2"...
		  bnrm2,resid,info = zstoptest2(r,b,bnrm2,tol,info)
	Wrote C/API module "_iterative" to file "build/src.macosx-10.3-i386-2.5/build/src.macosx-10.3-i386-2.5/scipy/linalg/iterative/_iterativemodule.c"
  adding 'build/src.macosx-10.3-i386-2.5/fortranobject.c' to sources.
  adding 'build/src.macosx-10.3-i386-2.5' to include_dirs.
building extension "scipy.linsolve._zsuperlu" sources
building extension "scipy.linsolve._dsuperlu" sources
building extension "scipy.linsolve._csuperlu" sources
building extension "scipy.linsolve._ssuperlu" sources
building extension "scipy.linsolve.umfpack.__umfpack" sources
creating build/src.macosx-10.3-i386-2.5/scipy/linsolve
creating build/src.macosx-10.3-i386-2.5/scipy/linsolve/umfpack
  adding 'scipy/linsolve/umfpack/umfpack.i' to sources.
swig: scipy/linsolve/umfpack/umfpack.i
swig -python -o build/src.macosx-10.3-i386-2.5/scipy/linsolve/umfpack/_umfpack_wrap.c -outdir build/src.macosx-10.3-i386-2.5/scipy/linsolve/umfpack scipy/linsolve/umfpack/umfpack.i
:3: Error: Unable to find 'python.swg'
scipy/linsolve/umfpack/umfpack.i:233: Error: Unable to find 'typemaps.i'
error: command 'swig' failed with exit status 1

Error: Unable to upgrade port: 1

Change History (20)

comment:1 Changed 16 years ago by skymoo (Adam Mercer)

Milestone: Port Bugs
Owner: changed from macports-tickets@… to ram@…
Status: newassigned

comment:2 Changed 16 years ago by skymoo (Adam Mercer)

What platform is this?

comment:3 Changed 16 years ago by ralph@…

Intel, MacOS 10.5.4

comment:4 Changed 16 years ago by mf2k (Frank Schima)

I see the same problem here with Mac OS X 10.5.4 on a (Intel) Mac Pro with Xcode 3.0.

comment:5 Changed 16 years ago by skymoo (Adam Mercer)

strange, as on the same platform it works for me.

Is this problem only on upgrade or do you get it on a fresh build as well?

comment:6 Changed 16 years ago by henkpoley@…

Same problem. Upgrade on OS X.5.4, GCC: i686-apple-darwin9-gcc-4.0.1

Just ran sudo port clean -f --all py25-scipy, let's see if that helps.

comment:7 Changed 16 years ago by henkpoley@…

Console output of: clean, force-clean, upgrade, re-upgrade ::

noname:~ henk$ sudo port clean --all py25-scipy
--->  Cleaning py25-scipy
Warning: Distfiles directory '/opt/local/var/macports/distfiles/python' may contain distfiles needed for other ports, use the -f flag to force removal
noname:~ henk$ sudo port clean -f --all py25-scipy
--->  Cleaning py25-scipy
noname:~ henk$ sudo port upgrade py25-scipy
--->  Fetching py25-scipy
--->  Attempting to fetch scipy-0.6.0.tar.gz from http://downloads.sourceforge.net/scipy
--->  Verifying checksum(s) for py25-scipy
--->  Extracting py25-scipy
--->  Applying patches to py25-scipy
--->  Configuring py25-scipy
--->  Building py25-scipy with target build
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-scipy/work/scipy-0.6.0" && /opt/local/bin/python2.5 setup.py config_fc --fcompiler gnu95 --f77exec /opt/local/bin/gfortran-mp-4.3 --f90exec /opt/local/bin/gfortran-mp-4.3 build " returned error 1
Command output: 		Constructing wrapper function "dgmresrevcom"...
		  x,iter,resid,info,ndx1,ndx2,sclr1,sclr2,ijob = dgmresrevcom(b,x,restrt,work,work2,iter,resid,info,ndx1,ndx2,ijob)
		Constructing wrapper function "cgmresrevcom"...
		  x,iter,resid,info,ndx1,ndx2,sclr1,sclr2,ijob = cgmresrevcom(b,x,restrt,work,work2,iter,resid,info,ndx1,ndx2,ijob)
		Constructing wrapper function "zgmresrevcom"...
		  x,iter,resid,info,ndx1,ndx2,sclr1,sclr2,ijob = zgmresrevcom(b,x,restrt,work,work2,iter,resid,info,ndx1,ndx2,ijob)
		Constructing wrapper function "sstoptest2"...
		  bnrm2,resid,info = sstoptest2(r,b,bnrm2,tol,info)
		Constructing wrapper function "dstoptest2"...
		  bnrm2,resid,info = dstoptest2(r,b,bnrm2,tol,info)
		Constructing wrapper function "cstoptest2"...
		  bnrm2,resid,info = cstoptest2(r,b,bnrm2,tol,info)
		Constructing wrapper function "zstoptest2"...
		  bnrm2,resid,info = zstoptest2(r,b,bnrm2,tol,info)
	Wrote C/API module "_iterative" to file "build/src.macosx-10.3-i386-2.5/build/src.macosx-10.3-i386-2.5/scipy/linalg/iterative/_iterativemodule.c"
  adding 'build/src.macosx-10.3-i386-2.5/fortranobject.c' to sources.
  adding 'build/src.macosx-10.3-i386-2.5' to include_dirs.
building extension "scipy.linsolve._zsuperlu" sources
building extension "scipy.linsolve._dsuperlu" sources
building extension "scipy.linsolve._csuperlu" sources
building extension "scipy.linsolve._ssuperlu" sources
building extension "scipy.linsolve.umfpack.__umfpack" sources
creating build/src.macosx-10.3-i386-2.5/scipy/linsolve
creating build/src.macosx-10.3-i386-2.5/scipy/linsolve/umfpack
  adding 'scipy/linsolve/umfpack/umfpack.i' to sources.
swig: scipy/linsolve/umfpack/umfpack.i
swig -python -o build/src.macosx-10.3-i386-2.5/scipy/linsolve/umfpack/_umfpack_wrap.c -outdir build/src.macosx-10.3-i386-2.5/scipy/linsolve/umfpack scipy/linsolve/umfpack/umfpack.i
:3: Error: Unable to find 'python.swg'
scipy/linsolve/umfpack/umfpack.i:233: Error: Unable to find 'typemaps.i'
error: command 'swig' failed with exit status 1

Error: Unable to upgrade port: 1
noname:~ henk$ sudo port upgrade py25-scipy
--->  Building py25-scipy with target build
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-scipy/work/scipy-0.6.0" && /opt/local/bin/python2.5 setup.py config_fc --fcompiler gnu95 --f77exec /opt/local/bin/gfortran-mp-4.3 --f90exec /opt/local/bin/gfortran-mp-4.3 build " returned error 1
Command output:   adding 'build/src.macosx-10.3-i386-2.5/build/src.macosx-10.3-i386-2.5/scipy/linalg/flapack-f2pywrappers.f' to sources.
building extension "scipy.linalg.clapack" sources
  adding 'build/src.macosx-10.3-i386-2.5/scipy/linalg/clapack.pyf' to sources.
f2py options: []
  adding 'build/src.macosx-10.3-i386-2.5/fortranobject.c' to sources.
  adding 'build/src.macosx-10.3-i386-2.5' to include_dirs.
building extension "scipy.linalg._flinalg" sources
f2py options: []
  adding 'build/src.macosx-10.3-i386-2.5/fortranobject.c' to sources.
  adding 'build/src.macosx-10.3-i386-2.5' to include_dirs.
building extension "scipy.linalg.calc_lwork" sources
f2py options: []
  adding 'build/src.macosx-10.3-i386-2.5/fortranobject.c' to sources.
  adding 'build/src.macosx-10.3-i386-2.5' to include_dirs.
building extension "scipy.linalg.atlas_version" sources
building extension "scipy.linalg._iterative" sources
f2py options: []
  adding 'build/src.macosx-10.3-i386-2.5/fortranobject.c' to sources.
  adding 'build/src.macosx-10.3-i386-2.5' to include_dirs.
building extension "scipy.linsolve._zsuperlu" sources
building extension "scipy.linsolve._dsuperlu" sources
building extension "scipy.linsolve._csuperlu" sources
building extension "scipy.linsolve._ssuperlu" sources
building extension "scipy.linsolve.umfpack.__umfpack" sources
  adding 'scipy/linsolve/umfpack/umfpack.i' to sources.
swig: scipy/linsolve/umfpack/umfpack.i
swig -python -o build/src.macosx-10.3-i386-2.5/scipy/linsolve/umfpack/_umfpack_wrap.c -outdir build/src.macosx-10.3-i386-2.5/scipy/linsolve/umfpack scipy/linsolve/umfpack/umfpack.i
:3: Error: Unable to find 'python.swg'
scipy/linsolve/umfpack/umfpack.i:233: Error: Unable to find 'typemaps.i'
error: command 'swig' failed with exit status 1

Error: Unable to upgrade port: 1

comment:8 Changed 16 years ago by henkpoley@…

Fixed it, you need swig with python variant (ram, can you add that as a dependency?):

noname:~ henk$ sudo port info swig
swig 1.3.36, devel/swig (Variants: universal, doc, python, perl, gcj, guile, mzscheme, ruby, php4, ocaml, pike, lua, chicken, allegro, clisp, r)
http://www.swig.org/

SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages. SWIG is primarily used with common scripting languages such as Perl, Python, Tcl/Tk, Ruby, Guile and MzScheme, however the list of supported languages also includes non-scripting languages such as Java and OCAML. SWIG is most commonly used to create high-level interpreted programming environments, user interfaces, and as a tool for testing and prototyping C/C++ software. SWIG may be freely used, distributed, and modified for commercial and noncommercial use.

Build Dependencies: bison, gsed
Platforms: darwin
Maintainers: kevin@macports.org jwa@macports.org
noname:~ henk$ sudo port activate swig
--->  Activating swig 
--->  The following versions of swig are currently installed:
--->  	swig @1.3.35_0
--->  	swig @1.3.36_0 (active)
Error: port activate failed: Registry error: Please specify the full version as recorded in the port registry.
noname:~ henk$ sudo port install swig+python
Error: Port swig+python not found
noname:~ henk$ sudo port install swig +python
--->  Fetching swig
--->  Verifying checksum(s) for swig
--->  Extracting swig
--->  Configuring swig
--->  Building swig
--->  Staging swig into destroot
--->  Installing swig 1.3.36_0+python
--->  Activating swig 1.3.36_0+python
Error: Target org.macports.activate returned: Image error: Another version of this port (swig @1.3.36_0) is already active.
Error: Status 1 encountered during processing.
noname:~ henk$ sudo port deactivate swig
--->  Deactivating swig 
noname:~ henk$ sudo port install swig +python
--->  Activating swig 1.3.36_0+python
--->  Cleaning swig
noname:~ henk$ sudo port upgrade py25-scipy
--->  Activating swig 1.3.36_0+python
Error: Activating swig 1.3.36_0 failed: Image error: swig @1.3.36_0+python is already active.
--->  Building py25-scipy with target build
--->  Staging py25-scipy into destroot
--->  Deactivating py25-scipy 0.6.0_9+gcc43
--->  Installing py25-scipy 0.6.0_10+gcc43
--->  Activating py25-scipy 0.6.0_10+gcc43
--->  Cleaning py25-scipy

comment:9 in reply to:  8 Changed 16 years ago by skymoo (Adam Mercer)

Replying to henkpoley@gmail.com:

Fixed it, you need swig with python variant (ram, can you add that as a dependency?):

In a word, no. MacPorts currently doesn't provide a way to specify dependencies on variants.

comment:10 Changed 16 years ago by skymoo (Adam Mercer)

There may be a way to error out on install if the python variant of swig is not installed. I'll take a look.

comment:11 Changed 16 years ago by ralph@…

"MacPorts currently doesn't provide a way to specify dependencies on variants."

Sounds like someone ought to raise this as a high priority bug in MacPorts. There's not much point having variants if one cannot depend on them.

comment:12 Changed 16 years ago by mnoga@…

I just want to add that the same issue concerns py-scipy port and the fix suggested by henk works there too. So ram, if you could please fix the py-scipy port too it will be much appreciated.

comment:13 in reply to:  12 ; Changed 16 years ago by skymoo (Adam Mercer)

Replying to mnoga@smp.if.uj.edu.pl:

I just want to add that the same issue concerns py-scipy port and the fix suggested by henk works there too. So ram, if you could please fix the py-scipy port too it will be much appreciated.

It shouldn't as the swig port currently only provides swig bindings for python25 not python24.

comment:14 in reply to:  13 Changed 16 years ago by mnoga@…

Replying to ram@macports.org:

It shouldn't as the swig port currently only provides swig bindings for python25 not python24.

Apparently it does affect python24 too:

mary:ms2 m$ sudo port upgrade py-scipy 
--->  Fetching py-scipy
--->  Verifying checksum(s) for py-scipy
--->  Extracting py-scipy
--->  Applying patches to py-scipy
--->  Configuring py-scipy
--->  Building py-scipy with target build
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-scipy/work/scipy-0.6.0" && /opt/local/bin/python2.4 setup.py config_fc --fcompiler gnu95 --f77exec /opt/local/bin/gfortran-mp-4.2 --f90exec /opt/local/bin/gfortran-mp-4.2 build " returned error 1
Command output: 		Constructing wrapper function "dgmresrevcom"...
		  x,iter,resid,info,ndx1,ndx2,sclr1,sclr2,ijob = dgmresrevcom(b,x,restrt,work,work2,iter,resid,info,ndx1,ndx2,ijob)
		Constructing wrapper function "cgmresrevcom"...
		  x,iter,resid,info,ndx1,ndx2,sclr1,sclr2,ijob = cgmresrevcom(b,x,restrt,work,work2,iter,resid,info,ndx1,ndx2,ijob)
		Constructing wrapper function "zgmresrevcom"...
		  x,iter,resid,info,ndx1,ndx2,sclr1,sclr2,ijob = zgmresrevcom(b,x,restrt,work,work2,iter,resid,info,ndx1,ndx2,ijob)
		Constructing wrapper function "sstoptest2"...
		  bnrm2,resid,info = sstoptest2(r,b,bnrm2,tol,info)
		Constructing wrapper function "dstoptest2"...
		  bnrm2,resid,info = dstoptest2(r,b,bnrm2,tol,info)
		Constructing wrapper function "cstoptest2"...
		  bnrm2,resid,info = cstoptest2(r,b,bnrm2,tol,info)
		Constructing wrapper function "zstoptest2"...
		  bnrm2,resid,info = zstoptest2(r,b,bnrm2,tol,info)
	Wrote C/API module "_iterative" to file "build/src.macosx-10.3-i386-2.4/build/src.macosx-10.3-i386-2.4/scipy/linalg/iterative/_iterativemodule.c"
  adding 'build/src.macosx-10.3-i386-2.4/fortranobject.c' to sources.
  adding 'build/src.macosx-10.3-i386-2.4' to include_dirs.
building extension "scipy.linsolve._zsuperlu" sources
building extension "scipy.linsolve._dsuperlu" sources
building extension "scipy.linsolve._csuperlu" sources
building extension "scipy.linsolve._ssuperlu" sources
building extension "scipy.linsolve.umfpack.__umfpack" sources
creating build/src.macosx-10.3-i386-2.4/scipy/linsolve
creating build/src.macosx-10.3-i386-2.4/scipy/linsolve/umfpack
  adding 'scipy/linsolve/umfpack/umfpack.i' to sources.
swig: scipy/linsolve/umfpack/umfpack.i
swig -python -o build/src.macosx-10.3-i386-2.4/scipy/linsolve/umfpack/_umfpack_wrap.c -outdir build/src.macosx-10.3-i386-2.4/scipy/linsolve/umfpack scipy/linsolve/umfpack/umfpack.i
:3: Error: Unable to find 'python.swg'
scipy/linsolve/umfpack/umfpack.i:233: Error: Unable to find 'typemaps.i'
error: command 'swig' failed with exit status 1

Error: Unable to upgrade port: 1
mary:ms2 m$ sudo port install swig +python
--->  Fetching swig
--->  Verifying checksum(s) for swig
--->  Extracting swig
--->  Configuring swig
--->  Building swig
--->  Staging swig into destroot
--->  Installing swig 1.3.36_0+python
--->  Activating swig 1.3.36_0+python
Error: Target org.macports.activate returned: Image error: Another version of this port (swig @1.3.36_0) is already active.
Error: Status 1 encountered during processing.
mary:ms2 m$ sudo port deactivate swig
Password:
--->  Deactivating swig 
mary:ms2 m$ sudo port install swig +python
--->  Activating swig 1.3.36_0+python
--->  Cleaning swig
mary:ms2 m$ sudo port upgrade py-scipy 
--->  Activating swig 1.3.36_0+python
Error: Activating swig 1.3.36_0 failed: Image error: swig @1.3.36_0+python is already active.
--->  Building py-scipy with target build
--->  Staging py-scipy into destroot
--->  Deactivating py-scipy 0.6.0_7+gcc42
--->  Installing py-scipy 0.6.0_9+gcc42
--->  Activating py-scipy 0.6.0_9+gcc42
--->  Cleaning py-scipy

or this is caused because I'm using gcc42 variant? (BTW: I've tested gcc43 variant of py-scipy too and got the same issue)

comment:15 Changed 16 years ago by skymoo (Adam Mercer)

This is the appropriate section of the swig port:

set bindings {
    python      python25    python=${prefix}/bin/python2.5
    perl        perl5.8     perl5
    gcj         gcj34       gcj
    guile       guile       guile
    mzscheme    mzscheme    mzscheme
    ruby        ruby        ruby
    php4        php4        php4
    ocaml       ocaml       ocaml
    pike        pike        pike
    lua         lua         lua
    chicken     chicken     chicken
    allegro     allegro     allegrocl
    clisp       clisp       clisp
    r           R           r
}

i.e. the python variant provides bindings for python25, not python24. The files that are actually installed are independent of a specific python version but as the port currently stands it adds a dependency on python25.

comment:16 Changed 16 years ago by skymoo (Adam Mercer)

as of r38050 installation will error out if the python variant of swig is not installed. A fix for the python24 version is dependent on #15854.

comment:17 Changed 16 years ago by skymoo (Adam Mercer)

Resolution: fixed
Status: assignedclosed

the swig port has been modified to build the python variant by default so this issue should now be resolved, however it will add an extra dependency on python25 for the python24 version. That issue is being tracked in #15854.

comment:18 Changed 16 years ago by ralph@…

Resolution: fixed
Status: closedreopened

This has gone from bad to worse. port now tries to install php and ruby on my machine as swig also depends on those. It is crazy to install php and ruby when the user asks for py25-scipy...

comment:19 Changed 16 years ago by skymoo (Adam Mercer)

Resolution: fixed
Status: reopenedclosed

thats an issue with swig not scipy

comment:20 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.