Skip to content
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

Building with icc failes #56

Closed
dschwoerer opened this issue Jul 24, 2018 · 5 comments
Closed

Building with icc failes #56

dschwoerer opened this issue Jul 24, 2018 · 5 comments

Comments

@dschwoerer
Copy link

I have been trying to build with icc, but that failes as for the linking of the so, gcc is used instead.

Other extensions seem to work fine.
You can reproduce this issue as well without an extra compiler:

CC=echo CXX=echo python3 setup.py build_ext

I have tested other extensions, and they use echo for compiling and linking, whereas cftime uses it only for compiling, and gcc for linking.

This issue is present in master, as well as cftime-1.0.0 from pypi.

@dopplershift
Copy link
Member

Can you point to one that works with your echo test? Looking over the setup.py, I don't see anything that looks wrong. It seems to just be using setuptools.

@dschwoerer
Copy link
Author

I thought it would be working for netcdf4-python, but that came apparently pre-compiled :-/

It is working for me in boutcore:
https://github.com/boutproject/BOUT-dev/blob/next/tools/pylib/_boutcore_build/setup.py.in

@dschwoerer
Copy link
Author

I noticed boutcore is using distutils.core rather then setuptools
I guess I should report this to setuptools ...

@jswhit
Copy link
Collaborator

jswhit commented Jul 27, 2018

LDSHARED needs to be set to change the linker from gcc to icc.

@dschwoerer
Copy link
Author

Thanks, setting LDSHARED resolves the issue.
Would really be nice if that would be documented ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants