-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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 compilation when building from source #8680
Comments
UPDATE: upon removing the extra_link_args (-Wl, --version-script=) by commenting line#214 compilation succeeded. or upon cleaning up the list ext.extra_link_args This change in setup.py fixes issue.
|
@aisri Is this issue resolved? We don't have much information to work with so I don't know how we can help. |
@ilayn I got it resolved by making changes to your setup.py script. These are the lines I changed. You can review these changes
|
The problem is that we can't understand what the cause was in the first place. Could you provide your system and configuration? Otherwise this is a special fix for your own system. |
|
I got the same error (scipy 1.0.1 is fine). I'm using CentOS 7.5, gcc 4.8.5, ld/binutils 2.27-28.
The build succeeds if I comment out the 'extra_link_args'. |
I have the same problem Sys-info: binutils: 2.31.1 [openblas]
...
extra_link_args = ... GCC 8.2.0 It successfully compiles with the above fix. |
This small addition also seems to work fine (simply remove any version-script flags already in the argument list): ext.extra_link_args = [arg for arg in ext.extra_link_args if not "version-script" in arg] |
Are we willing to make the fix proposed above without perhaps fully understanding the issue? I don't see a linked PR. |
The fix from @zerothi seems fine to make in any case. Let's do that. |
* remove any version-script flags prior to processing of extra_link_args in setup.py to resolve scipygh-8680
This was introduced in gh-8463 |
scipy_build_tail.log
Building the scipy source from tip fails when compiling :
This might be the offending line: Dont know how the line in BLOCK text showed up
-L"Using built-in specs
/opt/amba/cv22_third/tv2/exe/gfortran -Wall -g -Wall -g -shared build/temp.linux-x86_64-3.5/scipy/integrate/_quadpackmodule.o -L/opt/amba/cv22_third/tv2/release/atlas/3.10.3/lib -L"Using built-in specs.
PLEASE HELP. BLOCKING DEVELOPMENT
Error message:
Scipy/Numpy/Python version information:
The text was updated successfully, but these errors were encountered: