Title: Switching Compilers (Intel Related) · Issue #4518 · matplotlib/matplotlib · GitHub
Open Graph Title: Switching Compilers (Intel Related) · Issue #4518 · matplotlib/matplotlib
X Title: Switching Compilers (Intel Related) · Issue #4518 · matplotlib/matplotlib
Description: Hello all, I have an intel-compiled version of Python 2.7.8 that I'm trying to build and install Matplotlib into. When I run "python setup.py build" everything builds fine until: icc -pthread -fno-strict-aliasing -O3 -fPIC -fp-model stri...
Open Graph Description: Hello all, I have an intel-compiled version of Python 2.7.8 that I'm trying to build and install Matplotlib into. When I run "python setup.py build" everything builds fine until: icc -pthread -fno-...
X Description: Hello all, I have an intel-compiled version of Python 2.7.8 that I'm trying to build and install Matplotlib into. When I run "python setup.py build" everything builds fine until: icc ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/4518
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Switching Compilers (Intel Related)","articleBody":"Hello all, I have an intel-compiled version of Python 2.7.8 that I'm trying to build and install Matplotlib into. When I run \"python setup.py build\" everything builds fine until:\n\n``` shell\nicc -pthread -fno-strict-aliasing -O3 -fPIC -fp-model strict -fomit-frame-pointer -DNDEBUG -g -O3 -Wall -fPIC -DMPL_DEVNULL=/dev/null -DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib__qhull_ARRAY_API -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -I/usr/local/python2/2.7.8/x86_64/intel14/nonet/lib/python2.7/site-packages/numpy/core/include -I/usr/local/include -I/usr/include -I. -Iextern -I/usr/local/python2/2.7.8/x86_64/intel14/nonet/include/python2.7 -c src/qhull_wrap.c -o build/temp.linux-x86_64-2.7/src/qhull_wrap.o\nIn file included from src/qhull_wrap.c(10):\nextern/qhull/qhull_a.h(106): warning #77: this declaration has no storage class or type specifier \ntemplate \u003ctypename T\u003e \n^\n\nIn file included from src/qhull_wrap.c(10):\nextern/qhull/qhull_a.h(106): error: expected a \";\"\ntemplate \u003ctypename T\u003e\n ^\n\nIn file included from src/qhull_wrap.c(10):\nextern/qhull/qhull_a.h(115): warning #12: parsing restarts here after previous syntax error\n void qh_qhull(void);\n ^\n\ncompilation aborted for src/qhull_wrap.c (code 2) \nerror: command 'icc' failed with exit status 2\n```\n\nThe issue here is that icc does not support templates. When I manually run this command with icpc rather than icc it compiles fine. Can someone advise me on how I can go about switching to icpc to compile qhull_wrap.c? I'm also happy to submit a pull request if this is something that can be generalized in the build process. Version info listed below.\n\n``` shell\n[frenchwr@vmps11 matplotlib]$ uname -a\nLinux vmps11 2.6.32-358.14.1.el6.x86_64 #1 SMP Tue Jul 16 23:51:20 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux\n```\n\n``` shell\n[frenchwr@vmps11 matplotlib]$ lsb_release -a\nLSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch\nDistributor ID: CentOS\nDescription: CentOS release 6.5 (Final)\nRelease: 6.5\nCodename: Final\n```\n\n``` shell\n[frenchwr@vmps11 matplotlib]$ python --version\nPython 2.7.8\n```\n\n``` shell\n[frenchwr@vmps11 matplotlib]$ icc --version\nicc (ICC) 14.0.2 20140120\nCopyright (C) 1985-2014 Intel Corporation. All rights reserved.\n```\n\n``` shell\n[frenchwr@vmps11 matplotlib]$ pip freeze\nbiopython==1.65\nCython==0.22\nmock==1.0.1\nnose==1.3.4\nnumpy==1.9.1\npandas==0.15.2\npyparsing==2.0.3\npython-dateutil==2.4.0\npytz==2014.10\nscikit-learn==0.15.2\nscipy==0.15.1\nseaborn==0.4.dev0\nsix==1.9.0\nword-count==0.1.0\n```\n\n``` shell\n[frenchwr@vmps11 matplotlib]$ git describe\nv1.4.3-1743-ga951b75\n```\n","author":{"url":"https://github.com/frenchwr","@type":"Person","name":"frenchwr"},"datePublished":"2015-06-12T16:22:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/4518/matplotlib/issues/4518"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e1e34f68-5083-f8b2-50e8-a0993b5f4f06 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8F8C:320B78:5EFB9F:89B321:6A5610E9 |
| html-safe-nonce | c0791012aefe00fc972f36c793d7a144685108fb2d0f9678cc75681c46ebbeeb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjhDOjMyMEI3ODo1RUZCOUY6ODlCMzIxOjZBNTYxMEU5IiwidmlzaXRvcl9pZCI6IjExODc1NjgyNjc3MDk2ODgwOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f0b6065173db471d9e3c1aef79dfc114a22b0b2174ba57a88f0d38b409701891 |
| hovercard-subject-tag | issue:87779176 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/4518/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c27d3e850d96a6f17289fce3054579f99f9583f86b9ec8f2d5d74636bbbe5e52/matplotlib/matplotlib/issues/4518 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c27d3e850d96a6f17289fce3054579f99f9583f86b9ec8f2d5d74636bbbe5e52/matplotlib/matplotlib/issues/4518 |
| og:image:alt | Hello all, I have an intel-compiled version of Python 2.7.8 that I'm trying to build and install Matplotlib into. When I run "python setup.py build" everything builds fine until: icc -pthread -fno-... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | frenchwr |
| hostname | github.com |
| expected-hostname | github.com |
| None | f4368738fc918fecd9b3958f6b49218bbe60d4185f38e72e3954e11f1ad0213a |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 85a7179838b41e8b23f939d3b67b53f752ecfc54 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width