[SciPy-dev] AttributeError link_shared_object missing when compiling with intel compilers

Huw Lynch huw_lynch@yahoo....
Wed Feb 14 01:17:38 CST 2007


Hi

I have been trying to compile scipy using intel compilers on linux. The build keeps failing with the following error;

AttributeError: 'NoneType' object has no attribute 'link_shared_object'


I have tried building using a 0.5.2 release of scipy and the current svn version - both hit the same problem. 

Is there any solution to this? I see several other postings from people reporting similar problems but none that have a working solution.

full traceback...

Traceback (most recent call last):
  File "setup.py", line 55, in ?
    setup_package()
  File "setup.py", line 47, in setup_package
    configuration=configuration )
  File "/opt/numpy/1.0.1//lib/python2.4/site-packages/numpy/distutils/core.py", line 174, in setup
    return old_setup(**new_attr)
  File "/opt/python-2.4.2/lib/python2.4/distutils/core.py", line 149, in setup
    dist.run_commands()
  File "/opt/python-2.4.2/lib/python2.4/distutils/dist.py", line 946, in run_commands
    self.run_command(cmd)
  File "/opt/python-2.4.2/lib/python2.4/distutils/dist.py", line 966, in run_command
    cmd_obj.run()
  File "/opt/numpy/1.0.1//lib/python2.4/site-packages/numpy/distutils/command/install.py", line 16, in run
    r = old_install.run(self)
  File "/opt/python-2.4.2/lib/python2.4/distutils/command/install.py", line 506, in run
    self.run_command('build')
  File "/opt/python-2.4.2/lib/python2.4/distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "/opt/python-2.4.2/lib/python2.4/distutils/dist.py", line 966, in run_command
    cmd_obj.run()
  File "/opt/python-2.4.2/lib/python2.4/distutils/command/build.py", line 112, in run
    self.run_command(cmd_name)
  File "/opt/python-2.4.2/lib/python2.4/distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "/opt/python-2.4.2/lib/python2.4/distutils/dist.py", line 966, in run_command
    cmd_obj.run()
  File "/opt/numpy/1.0.1//lib/python2.4/site-packages/numpy/distutils/command/build_ext.py", line 121, in run
    self.build_extensions()
  File "/opt/python-2.4.2/lib/python2.4/distutils/command/build_ext.py", line 405, in build_extensions
    self.build_extension(ext)
  File "/opt/numpy/1.0.1//lib/python2.4/site-packages/numpy/distutils/command/build_ext.py", line 312, in build_extension
    link = self.fcompiler.link_shared_object
AttributeError: 'NoneType' object has no attribute 'link_shared_object'

Setup is being invoked as follows;

python setup.py -v config --compiler=intel config_fc --fcompiler=intel install --prefix=/usr/local/scipy

The compilers I am using are

$ ifort -V 
Intel(R) Fortran Itanium(R) Compiler for Itanium(R)-based applications
Version 9.1    Build 20060818 Package ID: l_fc_c_9.1.037
Copyright (C) 1985-2006 Intel Corporation.  All rights reserved.

$ icc -V
Intel(R) C Itanium(R) Compiler for Itanium(R)-based applications
Version 9.1    Build 20060818 Package ID: l_cc_c_9.1.043
Copyright (C) 1985-2006 Intel Corporation.  All rights reserved.

$ uname -a
Linux xnac 2.6.5-7.283-sn2 #1 SMP Wed Nov 29 16:55:53 UTC 2006 ia64 ia64 ia64 GNU/Linux

python is v2.4.2 and numpy v1.0.1

Thanks

H

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/scipy-dev/attachments/20070213/ec693670/attachment.html 


More information about the Scipy-dev mailing list