NetBSD Problem Report #44130

From www@NetBSD.org  Mon Nov 22 17:37:21 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 8369863BAE8
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 22 Nov 2010 17:37:21 +0000 (UTC)
Message-Id: <20101122173720.D90A663B95F@www.NetBSD.org>
Date: Mon, 22 Nov 2010 17:37:20 +0000 (UTC)
From: menuhin@msaitov.de
Reply-To: menuhin@msaitov.de
To: gnats-bugs@NetBSD.org
Subject: py-numpy fails build on osx (darwin 10.5.0)
X-Send-Pr-Version: www-1.0

>Number:         44130
>Category:       pkg
>Synopsis:       py-numpy fails build on osx (darwin 10.5.0)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    darwin-pkg-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 22 17:40:00 +0000 2010
>Closed-Date:    Tue Nov 22 21:45:34 +0000 2011
>Last-Modified:  Tue Nov 22 21:45:34 +0000 2011
>Originator:     Menuhin Saitov
>Release:        
>Organization:
none
>Environment:
Darwin menuhin-saitovs-macbook.fritz.box 10.5.0 Darwin Kernel Version 10.5.0: Fri Nov  5 23:20:39 PDT 2010; root:xnu-1504.9.17~1/RELEASE_I386 i386
>Description:
TypeError: 'NoneType' object is unsubscriptable
*** Error code 1

>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/44130: py-numpy fails build on osx (darwin 10.5.0)
Date: Mon, 22 Nov 2010 23:18:13 +0000

 On Mon, Nov 22, 2010 at 05:40:00PM +0000, menuhin@msaitov.de wrote:
  > >Description:
  > TypeError: 'NoneType' object is unsubscriptable
  > *** Error code 1

 I think we probably need more context than that...

 -- 
 David A. Holland
 dholland@netbsd.org

From: "Menuhin Saitov" <menuhin@msaitov.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/44130: py-numpy fails build on osx (darwin 10.5.0)
Date: Tue, 23 Nov 2010 10:55:51 -0000

 Am Mo, 22.11.2010, 23:20 schrieb David Holland:
 > The following reply was made to PR pkg/44130; it has been noted by GNATS.
 >
 > From: David Holland <dholland-pbugs@netbsd.org>
 > To: gnats-bugs@NetBSD.org
 > Cc:
 > Subject: Re: pkg/44130: py-numpy fails build on osx (darwin 10.5.0)
 > Date: Mon, 22 Nov 2010 23:18:13 +0000
 >
 >  On Mon, Nov 22, 2010 at 05:40:00PM +0000, menuhin@msaitov.de wrote:
 >   > >Description:
 >   > TypeError: 'NoneType' object is unsubscriptable
 >   > *** Error code 1
 >
 >  I think we probably need more context than that...
 >
 >  --
 >  David A. Holland
 >  dholland@netbsd.org
 >
 >
   File
 "/usr/pkgsrc/math/py-numpy/work/numpy-1.4.1/numpy/distutils/fcompiler/gnu.py",
 line 256, in _universal_flags
     if _can_target(cmd, arch):
   File
 "/usr/pkgsrc/math/py-numpy/work/numpy-1.4.1/numpy/distutils/fcompiler/gnu.py",
 line 328, in _can_target
     newcmd = cmd[:]
 TypeError: 'NoneType' object is unsubscriptable
 *** Error code 1

 Stop.
 bmake: stopped in /usr/pkgsrc/math/py-numpy
 *** Error code 1



 Regards Menuhin

 -- 
 Menuhin Saitov
 Berliner Str. 107
 47138 Duisburg

From: "Mark E. Perkins" <perkinsm@bway.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/44130
Date: Mon, 29 Nov 2010 17:29:29 -0700

 I see the same failure on Mac OS X 10.6.4.

 To add some (hopefully useful) information here, this is a failure at
 install time.  In my case it romps through the build successfully, then
 fails at 'bmake install' with the complaint that NoneType is unsubscriptable.

 Mark

Responsible-Changed-From-To: pkg-manager->darwin-pkg-people
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Tue, 21 Dec 2010 08:19:37 +0000
Responsible-Changed-Why:
Problem on MacOS X.


From: "Mark E. Perkins" <perkinsm@bway.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/44130
Date: Sat, 15 Jan 2011 21:39:32 -0700

 This looks like a problem with what Fortran is expected (and in a very
 strange way).  I have f2c-20100903 and libf2c-20090201nb3 installed, and
 the build phase for math/py-numpy finishes (apparently) successfully, but
 the install step fails, and there are many complaints about not finding f90
 or f95 (f2c does not supply these):

 ===> Installing for py26-numpy-1.4.1

     ...

 	<stuff about searching for math libs deleted>

     ...

 /system_info.py:1299: UserWarning:
     Atlas (http://math-atlas.sourceforge.net/) libraries not found.
     Directories to search for the libraries can be specified in the
     numpy/distutils/site.cfg file (section [atlas]) or by setting
     the ATLAS environment variable.
   warnings.warn(AtlasNotFoundError.__doc__)
 lapack_info:
   FOUND:
     libraries = ['lapack']
     library_dirs = ['/usr/pkg/lib']
     language = f77

   FOUND:
     libraries = ['lapack', 'blas']
     library_dirs = ['/usr/pkg/lib']
     define_macros = [('NO_ATLAS_INFO', 1)]
     language = f77

 running install
 running build
 running config_cc
 unifing config_cc, config, build_clib, build_ext, build commands --compiler
 options
 running config_fc
 unifing config_fc, config, build_clib, build_ext, build commands
 --fcompiler options
 running build_src
 build_src
 building py_modules sources
 building library "npymath" sources
 customize NAGFCompiler
 Could not locate executable f95
 Found executable /Volumes/badger_HD2/pkgsrc/math/py-numpy/work/.wrapper/bin/f77
 nag: no Fortran 90 compiler found
 nag: no Fortran 90 compiler found
 nag: no Fortran 90 compiler found
 customize AbsoftFCompiler
 Could not locate executable f90
 absoft: no Fortran 90 compiler found
 absoft: no Fortran 90 compiler found
 absoft: no Fortran 90 compiler found
 absoft: no Fortran 90 compiler found
 absoft: no Fortran 90 compiler found
 absoft: no Fortran 90 compiler found
 customize IBMFCompiler
 Could not locate executable xlf90
 ibm: no Fortran 90 compiler found
 Could not locate executable xlf95
 ibm: no Fortran 90 compiler found
 customize IntelFCompiler
 Could not locate executable ifort
 Could not locate executable ifc
 intel: no Fortran 90 compiler found
 intel: no Fortran 90 compiler found
 customize GnuFCompiler
 gnu: no Fortran 90 compiler found
 Found executable /Volumes/badger_HD2/pkgsrc/math/py-numpy/work/.wrapper/bin/g77
 gnu: no Fortran 90 compiler found
 customize Gnu95FCompiler
 Could not locate executable gfortran
 gnu95: no Fortran 90 compiler found
 gnu95: no Fortran 90 compiler found
 Traceback (most recent call last):
   File "setup.py", line 187, in <module>
     setup_package()
   File "setup.py", line 180, in setup_package
     configuration=configuration )
   File
 "/Volumes/badger_HD2/pkgsrc/math/py-numpy/work/numpy-1.4.1/numpy/distutils/core.py",
 line 186, in setup
     return old_setup(**new_attr)
   File "/usr/pkg/lib/python2.6/distutils/core.py", line 152, in setup
     dist.run_commands()
   File "/usr/pkg/lib/python2.6/distutils/dist.py", line 975, in run_commands
     self.run_command(cmd)
   File "/usr/pkg/lib/python2.6/distutils/dist.py", line 995, in run_command
     cmd_obj.run()
   File
 "/Volumes/badger_HD2/pkgsrc/math/py-numpy/work/numpy-1.4.1/numpy/distutils/command/install.py",
 line 55, in run
     r = old_install.run(self)
   File "/usr/pkg/lib/python2.6/distutils/command/install.py", line 577, in run
     self.run_command('build')
   File "/usr/pkg/lib/python2.6/distutils/cmd.py", line 333, in run_command
     self.distribution.run_command(command)
   File "/usr/pkg/lib/python2.6/distutils/dist.py", line 995, in run_command
     cmd_obj.run()
   File
 "/Volumes/badger_HD2/pkgsrc/math/py-numpy/work/numpy-1.4.1/numpy/distutils/command/build.py",
 line 37, in run
     old_build.run(self)
   File "/usr/pkg/lib/python2.6/distutils/command/build.py", line 134, in run
     self.run_command(cmd_name)
   File "/usr/pkg/lib/python2.6/distutils/cmd.py", line 333, in run_command
     self.distribution.run_command(command)
   File "/usr/pkg/lib/python2.6/distutils/dist.py", line 995, in run_command
     cmd_obj.run()
   File
 "/Volumes/badger_HD2/pkgsrc/math/py-numpy/work/numpy-1.4.1/numpy/distutils/command/build_src.py",
 line 152, in run
     self.build_sources()
   File
 "/Volumes/badger_HD2/pkgsrc/math/py-numpy/work/numpy-1.4.1/numpy/distutils/command/build_src.py",
 line 163, in build_sources
     self.build_library_sources(*libname_info)
   File
 "/Volumes/badger_HD2/pkgsrc/math/py-numpy/work/numpy-1.4.1/numpy/distutils/command/build_src.py",
 line 298, in build_library_sources
     sources = self.generate_sources(sources, (lib_name, build_info))
   File
 "/Volumes/badger_HD2/pkgsrc/math/py-numpy/work/numpy-1.4.1/numpy/distutils/command/build_src.py",
 line 385, in generate_sources
     source = func(extension, build_dir)
   File "numpy/core/setup.py", line 655, in get_mathlib_info
     st = config_cmd.try_link('int main(void) { return 0;}')
   File "/usr/pkg/lib/python2.6/distutils/command/config.py", line 257, in
 try_link
     self._check_compiler()
   File
 "/Volumes/badger_HD2/pkgsrc/math/py-numpy/work/numpy-1.4.1/numpy/distutils/command/config.py",
 line 73, in _check_compiler
     c_compiler=self.compiler)
   File
 "/Volumes/badger_HD2/pkgsrc/math/py-numpy/work/numpy-1.4.1/numpy/distutils/fcompiler/__init__.py",
 line 809, in new_fcompiler
     c_compiler=c_compiler)
   File
 "/Volumes/badger_HD2/pkgsrc/math/py-numpy/work/numpy-1.4.1/numpy/distutils/fcompiler/__init__.py",
 line 791, in get_default_fcompiler
     c_compiler=c_compiler)
   File
 "/Volumes/badger_HD2/pkgsrc/math/py-numpy/work/numpy-1.4.1/numpy/distutils/fcompiler/__init__.py",
 line 740, in _find_existing_fcompiler
     c.customize(dist)
   File
 "/Volumes/badger_HD2/pkgsrc/math/py-numpy/work/numpy-1.4.1/numpy/distutils/fcompiler/__init__.py",
 line 493, in customize
     fflags = self.flag_vars.flags + dflags + oflags + aflags
   File
 "/Volumes/badger_HD2/pkgsrc/math/py-numpy/work/numpy-1.4.1/numpy/distutils/environment.py",
 line 37, in __getattr__
     return self._get_var(name, conf_desc)
   File
 "/Volumes/badger_HD2/pkgsrc/math/py-numpy/work/numpy-1.4.1/numpy/distutils/environment.py",
 line 51, in _get_var
     var = self._hook_handler(name, hook)
   File
 "/Volumes/badger_HD2/pkgsrc/math/py-numpy/work/numpy-1.4.1/numpy/distutils/fcompiler/__init__.py",
 line 665, in _environment_hook
     return hook()
   File
 "/Volumes/badger_HD2/pkgsrc/math/py-numpy/work/numpy-1.4.1/numpy/distutils/fcompiler/gnu.py",
 line 262, in get_flags
     arch_flags = self._universal_flags(self.compiler_f90)
   File
 "/Volumes/badger_HD2/pkgsrc/math/py-numpy/work/numpy-1.4.1/numpy/distutils/fcompiler/gnu.py",
 line 256, in _universal_flags
     if _can_target(cmd, arch):
   File
 "/Volumes/badger_HD2/pkgsrc/math/py-numpy/work/numpy-1.4.1/numpy/distutils/fcompiler/gnu.py",
 line 328, in _can_target
     newcmd = cmd[:]
 TypeError: 'NoneType' object is unsubscriptable
 *** Error code 1

 Stop.
 bmake: stopped in /Volumes/badger_HD2/pkgsrc/math/py-numpy
 *** Error code 1

 Stop.
 bmake: stopped in /Volumes/badger_HD2/pkgsrc/math/py-numpy
 *** Error code 1

 Stop.
 bmake: stopped in /Volumes/badger_HD2/pkgsrc/math/py-numpy

From: "Min Sik Kim" <minskim@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/44130 CVS commit: pkgsrc/math/py-numpy
Date: Tue, 22 Nov 2011 20:56:13 +0000

 Module Name:	pkgsrc
 Committed By:	minskim
 Date:		Tue Nov 22 20:56:13 UTC 2011

 Modified Files:
 	pkgsrc/math/py-numpy: distinfo
 Added Files:
 	pkgsrc/math/py-numpy/patches: patch-numpy_distutils_fcompiler_gnu.py

 Log Message:
 Let py-numpy not run an invalid shell command.

 This fixes PR 44130.


 To generate a diff of this commit:
 cvs rdiff -u -r1.4 -r1.5 pkgsrc/math/py-numpy/distinfo
 cvs rdiff -u -r0 -r1.1 \
     pkgsrc/math/py-numpy/patches/patch-numpy_distutils_fcompiler_gnu.py

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: minskim@NetBSD.org
State-Changed-When: Tue, 22 Nov 2011 21:45:34 +0000
State-Changed-Why:
Fixed.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.