Title: Installing Slycot with pip on Windows (Microsoft C++ toolset Build Tools + Intel Fortran + oneMKL) failed build wheels · Issue #235 · python-control/Slycot · GitHub
Open Graph Title: Installing Slycot with pip on Windows (Microsoft C++ toolset Build Tools + Intel Fortran + oneMKL) failed build wheels · Issue #235 · python-control/Slycot
X Title: Installing Slycot with pip on Windows (Microsoft C++ toolset Build Tools + Intel Fortran + oneMKL) failed build wheels · Issue #235 · python-control/Slycot
Description: I tried to install Slycot on Windows 10, Python 3.12.0 and follow the instructions on the README. I managed to go some steps further than #191, with a configuration of the build environment using: C compiler - Microsoft C++ toolset Build...
Open Graph Description: I tried to install Slycot on Windows 10, Python 3.12.0 and follow the instructions on the README. I managed to go some steps further than #191, with a configuration of the build environment using: ...
X Description: I tried to install Slycot on Windows 10, Python 3.12.0 and follow the instructions on the README. I managed to go some steps further than #191, with a configuration of the build environment using: ...
Opengraph URL: https://github.com/python-control/Slycot/issues/235
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Installing Slycot with pip on Windows (Microsoft C++ toolset Build Tools + Intel Fortran + oneMKL) failed build wheels","articleBody":"I tried to install Slycot on Windows 10, Python 3.12.0 and follow the instructions on the README. I managed to go some steps further than #191, with a configuration of the build environment using:\r\n\r\n- C compiler - Microsoft C++ toolset Build Tools MSVC 19.39.33523.0 cl\r\n- FORTRAN compiler - IntelLLVM 2024.1.0 with MSVC-like command-line, bascially the Intel(R) Fortran Compiler ifx\r\n- BLAS/LAPACK - Intel oneAPI Math Kernel Library\r\n- Numpy 1.26.4\r\n- Scikit-build 0.17.6\r\n\r\nBut I also encounter a roadblock, I think the origin is at the start of Post-processing\r\n`slycot/src/_wrapper.pyf:_wrapper:unknown_interface:ab08nd analyzevars: could not parse dimension for variable 'max(n,m)+1'\r\n`\r\nThat I think leads to\r\n\r\n```\r\n Generating possibly empty wrappers\"\r\n Maybe empty \"_wrapper-f2pywrappers.f\"\r\n Constructing wrapper function \"ab08nd\"...\r\n getarrdims:warning: assumed shape array, using 0 instead of '*'\r\n getarrdims:warning: assumed shape array, using 0 instead of '*'\r\n getarrdims:warning: assumed shape array, using 0 instead of '*'\r\n getarrdims:warning: assumed shape array, using 0 instead of '*'\r\n```\r\n\r\n\r\nWith the error\r\n```\r\n[1259/1260] Linking Fortran shared module slycot\\_wrapper.cp312-win_amd64.pyd\r\n FAILED: slycot/_wrapper.cp312-win_amd64.pyd\r\n C:\\WINDOWS\\system32\\cmd.exe /C \"cd . \u0026\u0026 C:\\Users\\A1063610\\AppData\\Local\\Temp\\pip-build-env-kvwyujzv\\overlay\\Lib\\site-packages\\cmake\\data\\bin\\cmake.exe -E vs_link_dll --intdir=slycot\\CMakeFiles\\_wrapper.dir --rc=C:\\PROGRA~2\\WI3CF2~1\\10\\bin\\100226~1.0\\x86\\rc.exe --mt=C:\\PROGRA~2\\WI3CF2~1\\10\\bin\\100226~1.0\\x86\\mt.exe --manifests -- C:\\PROGRA~2\\Intel\\oneAPI\\compiler\\latest\\bin\\ifx.exe /nologo @CMakeFiles\\_wrapper.rsp -LD /machine:x64 /INCREMENTAL:NO /EXPORT:PyInit__wrapper -link /out:slycot\\_wrapper.cp312-win_amd64.pyd /implib:slycot\\_wrapper.lib /pdb:slycot\\_wrapper.pdb /version:0.0 \u0026\u0026 cd .\"\r\n LINK: command \"C:\\PROGRA~2\\Intel\\oneAPI\\compiler\\latest\\bin\\ifx.exe /nologo @CMakeFiles\\_wrapper.rsp -LD /machine:x64 /INCREMENTAL:NO /EXPORT:PyInit__wrapper -link /out:slycot\\_wrapper.cp312-win_amd64.pyd /implib:slycot\\_wrapper.lib /pdb:slycot\\_wrapper.pdb /version:0.0 /MANIFEST:EMBED,ID=2\" failed (exit code 1120) with the following output:\r\n ifx: command line warning #10006: ignoring unknown option '/machine:x64'\r\n ifx: command line warning #10006: ignoring unknown option '/EXPORT:PyInit__wrapper'\r\n Creating library slycot\\_wrapper.lib and object slycot\\_wrapper.exp\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol ab01nd_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol ab04md_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol ab05md_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol ab05nd_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol ab07nd_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol ab08nd_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol ab08nz_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol ab09ad_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol ab09ax_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol ab09bd_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol ab09md_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol ab09nd_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol f2pywrapab13bd_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol ab13dd_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol ab13md_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol ab13ed_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol ab13fd_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol ag08bd_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol mc01td_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol mb02ed_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol mb03rd_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol mb03vd_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol mb03vy_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol mb03wd_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol mb05md_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol mb05nd_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol sb01bd_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol sb02md_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol sb02od_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol sb02mt_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol sb03md_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol sb03od_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol sb04md_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol sb04qd_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol sb10ad_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol sb10dd_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol sb10fd_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol sb10hd_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol sb10jd_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol sb10yd_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol sg03ad_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol sg02ad_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol sg03bd_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol tb01id_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol tb03ad_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol tb04ad_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol tb05ad_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol tc01od_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol tc04ad_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol td04ad_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol tf01md_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol tf01rd_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol tb01pd_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol tg01ad_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol tg01fd_\r\n _wrappermodule.c.obj : error LNK2001: unresolved external symbol ftruefalse_\r\n _wrappermodule.c.obj : error LNK2019: unresolved external symbol ab13bd_ referenced in function PyInit__wrapper\r\n\r\n slycot\\_wrapper.cp312-win_amd64.pyd : fatal error LNK1120: 57 unresolved externals\r\n\r\n ninja: build stopped: subcommand failed.\r\n Traceback (most recent call last):\r\n File \"C:\\Users\\A1063610\\AppData\\Local\\Temp\\pip-build-env-kvwyujzv\\overlay\\Lib\\site-packages\\skbuild\\setuptools_wrap.py\", line 674, in setup\r\n cmkr.make(make_args, install_target=cmake_install_target, env=env)\r\n File \"C:\\Users\\A1063610\\AppData\\Local\\Temp\\pip-build-env-kvwyujzv\\overlay\\Lib\\site-packages\\skbuild\\cmaker.py\", line 697, in make\r\n self.make_impl(clargs=clargs, config=config, source_dir=source_dir, install_target=install_target, env=env)\r\n File \"C:\\Users\\A1063610\\AppData\\Local\\Temp\\pip-build-env-kvwyujzv\\overlay\\Lib\\site-packages\\skbuild\\cmaker.py\", line 742, in make_impl\r\n raise SKBuildError(msg)\r\n\r\n An error occurred while building with CMake.\r\n Command:\r\n 'C:\\Users\\A1063610\\AppData\\Local\\Temp\\pip-build-env-kvwyujzv\\overlay\\Lib\\site-packages\\cmake\\data\\bin/cmake.exe' --build . --target install --config Release --\r\n Install target:\r\n install\r\n Source directory:\r\n C:\\Users\\A1063610\\AppData\\Local\\Temp\\pip-install-rqqmzrzv\\slycot_0e9c969270b347ee8377b15d2e5ae52c\r\n Working directory:\r\n C:\\Users\\A1063610\\AppData\\Local\\Temp\\pip-install-rqqmzrzv\\slycot_0e9c969270b347ee8377b15d2e5ae52c\\_skbuild\\win-amd64-3.12\\cmake-build\r\n Please check the install target is valid and see CMake's output for more information.\r\n\r\n [end of output]\r\n\r\n note: This error originates from a subprocess, and is likely not a problem with pip.\r\n ERROR: Failed building wheel for slycot\r\nFailed to build slycot\r\nERROR: Could not build wheels for slycot, which is required to install pyproject.toml-based projects\r\n```\r\n\r\nCould this be the issue of some of the tools/compilers/libs I used?\r\n\r\nThe full output is too long to add it, but if interested I could provide it.\r\n\r\n","author":{"url":"https://github.com/jaivgar","@type":"Person","name":"jaivgar"},"datePublished":"2024-04-19T12:44:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/235/Slycot/issues/235"}
| 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:5bda19fb-917f-7fa1-c363-5af6e698ec23 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B426:360EE8:20F4C9A:2C46F5A:697AB97C |
| html-safe-nonce | 18314a48d5ac42885427ee35c65088b3d08e81ed7302c9458fcbf45376f49ebc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDI2OjM2MEVFODoyMEY0QzlBOjJDNDZGNUE6Njk3QUI5N0MiLCJ2aXNpdG9yX2lkIjoiMTYzMzcxOTEyNDk1MTIxODU1NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7f869361c0afdec2c5147dfbd011a1ee21aeaa2b4a0474d50c6fb83e3f0433b0 |
| hovercard-subject-tag | issue:2252896401 |
| 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/python-control/Slycot/235/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b7878f27111c156faf304a09fb6a56b55c62a3105057e7c5785855f47c0f5740/python-control/Slycot/issues/235 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b7878f27111c156faf304a09fb6a56b55c62a3105057e7c5785855f47c0f5740/python-control/Slycot/issues/235 |
| og:image:alt | I tried to install Slycot on Windows 10, Python 3.12.0 and follow the instructions on the README. I managed to go some steps further than #191, with a configuration of the build environment using: ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jaivgar |
| hostname | github.com |
| expected-hostname | github.com |
| None | 33acda8ebf71b04c9d33b494d2b6e0db48193ec89eb3ad92a9539d491fa9a3da |
| turbo-cache-control | no-preview |
| go-import | github.com/python-control/Slycot git https://github.com/python-control/Slycot.git |
| octolytics-dimension-user_id | 2285872 |
| octolytics-dimension-user_login | python-control |
| octolytics-dimension-repository_id | 66001480 |
| octolytics-dimension-repository_nwo | python-control/Slycot |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 66001480 |
| octolytics-dimension-repository_network_root_nwo | python-control/Slycot |
| 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 | 4f714a84d3384e467839505ed65f968fc01aedf1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width