Opened 6 years ago

Closed 6 years ago

#20658 closed defect (fixed)

Error building numpy

Reported by: Miguel Marco Owned by:
Priority: major Milestone: sage-7.3
Component: build Keywords: numpy
Cc: Volker Braun Merged in:
Authors: Miguel Marco Reviewers: Volker Braun
Report Upstream: N/A Work issues:
Branch: bcfffcb (Commits, GitHub, GitLab) Commit: bcfffcbc18561b147d0acebe489446a824a68e73
Dependencies: Stopgaps:

Status badges


Trying to compile Sage-7.2 in a mageia box, i get the following error when compiling the numpy package.

running install_clib
copying build/temp.linux-x86_64-2.7/libnpymath.a -> build/bdist.linux-x86_64/egg/numpy/core/lib
creating build/bdist.linux-x86_64/egg/EGG-INFO
installing scripts to build/bdist.linux-x86_64/egg/EGG-INFO/scripts
running install_scripts
running build_scripts
creating build/scripts.linux-x86_64-2.7
Creating build/scripts.linux-x86_64-2.7/f2py
  adding 'build/scripts.linux-x86_64-2.7/f2py' to scripts
changing mode of build/scripts.linux-x86_64-2.7/f2py from 664 to 775
creating build/bdist.linux-x86_64/egg/EGG-INFO/scripts
copying build/scripts.linux-x86_64-2.7/f2py -> build/bdist.linux-x86_64/egg/EGG-INFO/scripts
changing mode of build/bdist.linux-x86_64/egg/EGG-INFO/scripts/f2py to 775
copying numpy.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying numpy.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying numpy.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying numpy.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/numpy-1.11.0-py2.7-linux-x86_64.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing numpy-1.11.0-py2.7-linux-x86_64.egg
Removing /home/sage/sage-7.2/local/lib/python2.7/site-packages/numpy-1.11.0-py2.7-linux-x86_64.egg
Copying numpy-1.11.0-py2.7-linux-x86_64.egg to /home/sage/sage-7.2/local/lib/python2.7/site-packages
numpy 1.11.0 is already the active version in easy-install.pth
Installing f2py script to /home/sage/sage-7.2/local/bin

Installed /home/sage/sage-7.2/local/lib/python2.7/site-packages/numpy-1.11.0-py2.7-linux-x86_64.egg
Processing dependencies for numpy==1.11.0
Finished processing dependencies for numpy==1.11.0
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
Traceback (most recent call last):
  File "<stdin>", line 4, in <module>
OSError: [Errno 20] Not a directory: '/home/sage/sage-7.2/local/lib/python2.7/site-packages/numpy-1.11.0-py2.7-linux-x86_64.egg/numpy/core/include'

real    3m43.216s
user    3m26.420s
sys     0m10.000s
Error installing package numpy-1.11.0
Please email sage-devel (
explaining the problem and including the relevant part of the log file
Describe your computer, operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/home/sage/sage-7.2/local/var/tmp/sage/build/numpy-1.11.0 and type 'make' or whatever is appropriate.
Instead, the following commands setup all environment variables
correctly and load a subshell for you to debug the error:
  (cd '/home/sage/sage-7.2/local/var/tmp/sage/build/numpy-1.11.0' && '/home/sage/sage-7.2/sage' --sh)
When you are done debugging, you can type "exit" to leave the subshell.
make[2]: *** [/home/sage/sage-7.2/local/var/lib/sage/installed/numpy-1.11.0] Error 1
make[2]: se sale del directorio `/home/sage/sage-7.2/build/make'
make[1]: *** [all] Error 2
make[1]: se sale del directorio `/home/sage/sage-7.2/build/make'

real    3m45.330s
user    3m27.920s
sys     0m10.520s
Error building Sage.

The following package(s) may have failed to build (not necessarily
during this run of 'make all'):

* package: numpy-1.11.0
  log file: /home/sage/sage-7.2/logs/pkgs/numpy-1.11.0.log
  build directory: /home/sage/sage-7.2/local/var/tmp/sage/build/numpy-1.11.0

The build directory may contain configuration files and other potentially
helpful information. WARNING: if you now run 'make' again, the build
directory will, by default, be deleted. Set the environment variable
SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this.

Change History (4)

comment:1 Changed 6 years ago by Volker Braun

Branch: u/vbraun/error_building_numpy

comment:2 Changed 6 years ago by Volker Braun

Commit: bcfffcbc18561b147d0acebe489446a824a68e73
Reviewers: Volker Braun
Status: newneeds_review

Does the patch work for you?

New commits:

bcfffcbForce a flat install of numpy

comment:3 Changed 6 years ago by Miguel Marco

Status: needs_reviewpositive_review

Yes, it worked

comment:4 Changed 6 years ago by Volker Braun

Branch: u/vbraun/error_building_numpybcfffcbc18561b147d0acebe489446a824a68e73
Resolution: fixed
Status: positive_reviewclosed
Note: See TracTickets for help on using tickets.