-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SciPy fails to build on CentOS 6.6 #1192
Comments
After hitting this error, I sourced the setup_runtime script and then executed:
It then built without error. |
closing it for now until we can reproduce this. |
I haven't solved the problem. I was able to work around it using @ThomasMaxwell's instructions. |
Okay, in that case, we will keep this issue open. We should fix it properly when we get a chance. |
@aashish24 @sankhesh I wonder if we shouldn't edit/get rid of https://github.com/UV-CDAT/uvcdat/blob/master/CMake/cdat_modules_extra/cdat_common_environment.cmake.in and instead tell our build command to source setup_runtime.sh |
@sankhesh so i was looking at this tonight. It's interesting if I build with
No eggs, everything happy.
egg for Cython... |
the good news that both my RH6 bots with make -j12 seem to trigger this error. So we can test our solutions. |
the bad news is ${HOME} solution above does not solve it |
ok there's hope the following works:
as described at: http://stackoverflow.com/questions/18300017/how-to-prevent-setuptools-install-package-as-an-egg |
@sankhesh it's probably worth looking at: pypa/pip#2537 |
I don't think either of those pip issues are relevant here. My guess to what is happening is you are hitting this condition in cython's The key is to figure out why this works: subprocess.call([sys.executable, '-c',
'import sys; from Cython.Compiler.Main import '
'setuptools_main as main; sys.exit(main())'] + flags +
["-o", tofile, fromfile]) but this doesn't
|
Get the following error building UVCDAT on CentOS release 6.6:
CMake Error at /usr/local/uvcdat-test/build/SCIPY-prefix/src/SCIPY-stamp/SCIPY-configure.cmake:56 (message):
CTEST_FULL_OUTPUT
Command failed: 1
'/usr/local/scratch/tpmaxwel/cmake/bin/cmake' '-DCONFIG_TYPE=.' '-DCDAT_USE_SYSTEM_LAPACK:STRING=OFF' '-DLAPACK_LIBRARIES:STRING=/usr/lib64/liblapack.so' '/usr/lib64/libblas.so' '-DBLAS_LIBRARIES:STRING=/usr/lib64/libblas.so' '-P' '/usr/local/uvcdat-test/build/CMake/SCIPY_configure_step.cmake'
From /usr/local/uvcdat-test/build/SCIPY-prefix/src/SCIPY-stamp/SCIPY-configure-out.log
Processing scipy/cluster/_hierarchy.pyx
Cythonizing sources
From /usr/local/uvcdat-test/build/SCIPY-prefix/src/SCIPY-stamp/SCIPY-configure-err.log
Configuring SCIPY:
/usr/local/uvcdat-test/build/build/SCIPY
Error compiling Cython file:
...
cpdef calculate_cluster_sizes(double[:, :] Z, double[:] cs, int n):
scipy/cluster/_hierarchy.pyx:47:37: Expected an identifier or literal
Traceback (most recent call last):
Exception: Cython failed
Traceback (most recent call last):
RuntimeError: Running cythonize failed!
CMake Error at
/usr/local/uvcdat-test/build/CMake/SCIPY_configure_step.cmake:58 (message):
The text was updated successfully, but these errors were encountered: