<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Cannot build numpy from source with intel c++ and fortran compilers in Intel® Distribution for Python*</title>
    <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Cannot-build-numpy-from-source-with-intel-c-and-fortran/m-p/1376865#M1838</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for posting in Intel Communities.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We were unable to reproduce the issue from our end. We did not face any error with and without modifying the intelccompiler.py and intel.py.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;U style="font-size: 16px;"&gt;Details of our machine&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;NOTE: Ensure the versions are the same&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;·&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;OS: &lt;/SPAN&gt;&lt;STRONG style="font-size: 16px;"&gt;Windows 10&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;·&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Intel® MKL version used: &lt;/SPAN&gt;&lt;STRONG style="font-size: 16px;"&gt;2020 update 3&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;NOTE: &lt;/SPAN&gt;&lt;STRONG style="font-size: 16px;"&gt;You need a license serial number to install any older version of Intel® oneAPI Toolkit. You must purchase a license if you do not have one.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Access the &lt;/SPAN&gt;&lt;A style="font-size: 16px;" href="https://registrationcenter.intel.com/en/products/" target="_blank" rel="noopener noreferrer"&gt;Registration Center&lt;/A&gt;&lt;SPAN&gt; and follow the instructions below.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Select the product&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Select the OS&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Specify the required component, version and click download.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;·&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Visual studio version :&lt;/SPAN&gt;&lt;STRONG style="font-size: 16px;"&gt;2017(&lt;/STRONG&gt;&lt;SPAN&gt;Visit&lt;/SPAN&gt; &lt;A style="font-size: 16px;" href="https://visualstudio.microsoft.com/vs/older-downloads/" target="_blank" rel="noopener noreferrer"&gt;https://visualstudio.microsoft.com/vs/older-downloads/&lt;/A&gt;&lt;SPAN&gt; to download older versions&lt;/SPAN&gt;&lt;STRONG style="font-size: 16px;"&gt;)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(If you build on Windows platforms, Visual Studio 2017 and Visual C++ Build Tools 2015 are also required.&amp;nbsp;When install VS2017, just select the “VC++ 2015.3 v14.00 (v140) toolset for desktop” at the bottom of the “Desktop development with C++” section)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="numpy.jpg" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/28533i19094B4440CFA79B/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="numpy.jpg" alt="numpy.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;U style="font-size: 16px;"&gt;Details needed&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Could you please share with us the following details? &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1.&amp;nbsp;The numpy version you are using&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2.&amp;nbsp;The MKL version you are using&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3.&amp;nbsp;Can you confirm whether you are using the components installed from Base Toolkit and HPC Toolkit (2021.3.0.3221 version)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please let us know if you still face issues even after using the same versions mentioned above&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Gopika&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Apr 2022 14:29:17 GMT</pubDate>
    <dc:creator>Gopika_Intel</dc:creator>
    <dc:date>2022-04-13T14:29:17Z</dc:date>
    <item>
      <title>Cannot build numpy from source with intel c++ and fortran compilers</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Cannot-build-numpy-from-source-with-intel-c-and-fortran/m-p/1375955#M1836</link>
      <description>&lt;P&gt;I followed the section "Windows platforms" from&amp;nbsp;&lt;A href="https://www.intel.com/content/www/us/en/developer/articles/technical/build-numpy-with-mkl-and-icc.html" target="_self"&gt;https://www.intel.com/content/www/us/en/developer/articles/technical/build-numpy-with-mkl-and-icc.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It didn't work. I tried to inspire myself from&amp;nbsp;&lt;A href="https://gehrcke.de/2014/02/building-numpy-and-scipy-with-intel-compilers-and-intel-mkl-on-a-64-bit-machine/" target="_self"&gt;https://gehrcke.de/2014/02/building-numpy-and-scipy-with-intel-compilers-and-intel-mkl-on-a-64-bit-machine/&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://christoph-conrads.name/building-numpy-and-scipy-with-intel-compilers-and-intel-mkl/" target="_self"&gt;https://christoph-conrads.name/building-numpy-and-scipy-with-intel-compilers-and-intel-mkl/&lt;/A&gt;&amp;nbsp;without success.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Concretly I have I am using Python 3.8.10 64bits under windows 11 64bits last update with intel One Api Base and HPC kit&amp;nbsp;2021.3.0.3221.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have the following site.cfg file :&lt;/P&gt;
&lt;P&gt;[mkl]&lt;BR /&gt;include_dirs = C:\Program Files (x86)\Intel\oneAPI\mkl\2021.3.0\include&lt;BR /&gt;library_dirs = C:\Program Files (x86)\Intel\oneAPI\mkl\2021.3.0\lib\intel64&lt;BR /&gt;libraries = mkl_rt&lt;/P&gt;
&lt;P&gt;and I modified the intelcompiler.py as follows :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattHouston_0-1649619849753.png" style="width: 2069px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/28428iB6C03D4A06B3EC25/image-dimensions/2069x340/is-moderation-mode/true?v=v2&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" width="2069" height="340" role="button" title="MattHouston_0-1649619849753.png" alt="MattHouston_0-1649619849753.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and the intel.py file (for the fortran compiler) as follows :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattHouston_1-1649619969022.png" style="width: 1013px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/28429i30F91B0A8DCE5E30/image-dimensions/1013x152/is-moderation-mode/true?v=v2&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" width="1013" height="152" role="button" title="MattHouston_1-1649619969022.png" alt="MattHouston_1-1649619969022.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I compiled with the following command :&lt;/P&gt;
&lt;P&gt;python setup.py config --compiler=intelemw --fcompiler=intelvem build_clib --compiler=intelemw --fcompiler=intelvem build_ext --compiler=intelemw --fcompiler=intelvem&lt;/P&gt;
&lt;P&gt;I have then the following errors (see log attached as well) :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;C:\CODING\OTHERS\NUMPY\numpy&amp;gt;python setup.py config --compiler=intelemw --fcompiler=intelvem build_clib --compiler=intelemw --fcompiler=intelvem build_ext --compiler=intelemw --fcompiler=intelvem&lt;BR /&gt;Running from numpy source directory.&lt;BR /&gt;setup.py:86: DeprecationWarning:&lt;/P&gt;
&lt;P&gt;`numpy.distutils` is deprecated since NumPy 1.23.0, as a result&lt;BR /&gt;of the deprecation of `distutils` itself. It will be removed for&lt;BR /&gt;Python &amp;gt;= 3.12. For older Python versions it will remain present.&lt;BR /&gt;It is recommended to use `setuptools &amp;lt; 60.0` for those Python versions.&lt;BR /&gt;For more details, see:&lt;BR /&gt;&lt;A href="https://numpy.org/devdocs/reference/distutils_status_migration.html" target="_blank"&gt;https://numpy.org/devdocs/reference/distutils_status_migration.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;import numpy.distutils.command.sdist&lt;BR /&gt;Cythonizing sources&lt;BR /&gt;numpy/random\_bounded_integers.pxd.in has not changed&lt;BR /&gt;numpy/random\bit_generator.pyx has not changed&lt;BR /&gt;numpy/random\mtrand.pyx has not changed&lt;BR /&gt;numpy/random\_bounded_integers.pyx has not changed&lt;BR /&gt;numpy/random\_bounded_integers.pyx.in has not changed&lt;BR /&gt;numpy/random\_common.pyx has not changed&lt;BR /&gt;numpy/random\_generator.pyx has not changed&lt;BR /&gt;numpy/random\_mt19937.pyx has not changed&lt;BR /&gt;numpy/random\_pcg64.pyx has not changed&lt;BR /&gt;numpy/random\_philox.pyx has not changed&lt;BR /&gt;numpy/random\_sfc64.pyx has not changed&lt;BR /&gt;C:\CODING\OTHERS\NUMPY\numpy\numpy\core\setup.py:484: MismatchCAPIWarning: API mismatch detected, the C API version numbers have to be updated. Current C api version is 15, with checksum 04a7bf1e65350926a0e528798da263c0, but recorded checksum for C API version 15 in core/codegen_dir/cversions.txt is b8783365b873681cd204be50cdfb448d. If functions were added in the C API, you have to update C_API_VERSION in C:\CODING\OTHERS\NUMPY\numpy\numpy\core\setup_common.py.&lt;BR /&gt;check_api_version(C_API_VERSION, codegen_dir)&lt;BR /&gt;INFO: blas_opt_info:&lt;BR /&gt;INFO: blas_armpl_info:&lt;BR /&gt;INFO: No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils&lt;BR /&gt;INFO: customize MSVCCompiler&lt;BR /&gt;INFO: libraries armpl_lp64_mp not found in ['C:\\PYTHON\\3\\3.8.10\\lib', 'C:\\', 'C:\\PYTHON\\3\\3.8.10\\libs']&lt;BR /&gt;INFO: NOT AVAILABLE&lt;BR /&gt;INFO:&lt;BR /&gt;INFO: blas_mkl_info:&lt;BR /&gt;INFO: FOUND:&lt;BR /&gt;INFO: libraries = ['mkl_rt', 'mkl_rt']&lt;BR /&gt;INFO: library_dirs = ['C:\\Program Files (x86)\\Intel\\oneAPI\\mkl\\2021.3.0\\lib\\intel64']&lt;BR /&gt;INFO: define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]&lt;BR /&gt;INFO: include_dirs = ['C:\\Program Files (x86)\\Intel\\oneAPI\\mkl\\2021.3.0\\include']&lt;BR /&gt;INFO:&lt;BR /&gt;INFO: FOUND:&lt;BR /&gt;INFO: libraries = ['mkl_rt', 'mkl_rt']&lt;BR /&gt;INFO: library_dirs = ['C:\\Program Files (x86)\\Intel\\oneAPI\\mkl\\2021.3.0\\lib\\intel64']&lt;BR /&gt;INFO: define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]&lt;BR /&gt;INFO: include_dirs = ['C:\\Program Files (x86)\\Intel\\oneAPI\\mkl\\2021.3.0\\include']&lt;BR /&gt;INFO:&lt;BR /&gt;INFO: lapack_opt_info:&lt;BR /&gt;INFO: lapack_armpl_info:&lt;BR /&gt;INFO: libraries armpl_lp64_mp not found in ['C:\\PYTHON\\3\\3.8.10\\lib', 'C:\\', 'C:\\PYTHON\\3\\3.8.10\\libs']&lt;BR /&gt;INFO: NOT AVAILABLE&lt;BR /&gt;INFO:&lt;BR /&gt;INFO: lapack_mkl_info:&lt;BR /&gt;INFO: FOUND:&lt;BR /&gt;INFO: libraries = ['mkl_rt', 'mkl_rt']&lt;BR /&gt;INFO: library_dirs = ['C:\\Program Files (x86)\\Intel\\oneAPI\\mkl\\2021.3.0\\lib\\intel64']&lt;BR /&gt;INFO: define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]&lt;BR /&gt;INFO: include_dirs = ['C:\\Program Files (x86)\\Intel\\oneAPI\\mkl\\2021.3.0\\include']&lt;BR /&gt;INFO:&lt;BR /&gt;INFO: FOUND:&lt;BR /&gt;INFO: libraries = ['mkl_rt', 'mkl_rt']&lt;BR /&gt;INFO: library_dirs = ['C:\\Program Files (x86)\\Intel\\oneAPI\\mkl\\2021.3.0\\lib\\intel64']&lt;BR /&gt;INFO: define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]&lt;BR /&gt;INFO: include_dirs = ['C:\\Program Files (x86)\\Intel\\oneAPI\\mkl\\2021.3.0\\include']&lt;BR /&gt;INFO:&lt;BR /&gt;Warning: attempted relative import with no known parent package&lt;BR /&gt;C:\PYTHON\3\3.8.10\lib\distutils\dist.py:274: UserWarning: Unknown distribution option: 'define_macros'&lt;BR /&gt;warnings.warn(msg)&lt;BR /&gt;running config&lt;BR /&gt;running build_clib&lt;BR /&gt;running build_src&lt;BR /&gt;INFO: build_src&lt;BR /&gt;INFO: building py_modules sources&lt;BR /&gt;INFO: building library "npymath" sources&lt;BR /&gt;WARN: Could not locate executable icc&lt;BR /&gt;WARN: Could not locate executable ecc&lt;BR /&gt;WARN: Could not locate executable C:\Program&lt;BR /&gt;MSVCRT.lib(loadcfg.obj) : error LNK2001: unresolved external symbol __enclave_config&lt;BR /&gt;MSVCRT.lib(loadcfg.obj) : error LNK2001: unresolved external symbol __volatile_metadata&lt;BR /&gt;_configtest.exe : fatal error LNK1120: 2 unresolved externals&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "setup.py", line 492, in &amp;lt;module&amp;gt;&lt;BR /&gt;setup_package()&lt;BR /&gt;File "setup.py", line 484, in setup_package&lt;BR /&gt;setup(**metadata)&lt;BR /&gt;File "C:\CODING\OTHERS\NUMPY\numpy\numpy\distutils\core.py", line 169, in setup&lt;BR /&gt;return old_setup(**new_attr)&lt;BR /&gt;File "C:\PYTHON\3\3.8.10\lib\site-packages\setuptools\__init__.py", line 153, in setup&lt;BR /&gt;return distutils.core.setup(**attrs)&lt;BR /&gt;File "C:\PYTHON\3\3.8.10\lib\distutils\core.py", line 148, in setup&lt;BR /&gt;dist.run_commands()&lt;BR /&gt;File "C:\PYTHON\3\3.8.10\lib\distutils\dist.py", line 966, in run_commands&lt;BR /&gt;self.run_command(cmd)&lt;BR /&gt;File "C:\PYTHON\3\3.8.10\lib\distutils\dist.py", line 985, in run_command&lt;BR /&gt;cmd_obj.run()&lt;BR /&gt;File "C:\CODING\OTHERS\NUMPY\numpy\numpy\distutils\command\build_clib.py", line 95, in run&lt;BR /&gt;self.run_command('build_src')&lt;BR /&gt;File "C:\PYTHON\3\3.8.10\lib\distutils\cmd.py", line 313, in run_command&lt;BR /&gt;self.distribution.run_command(command)&lt;BR /&gt;File "C:\PYTHON\3\3.8.10\lib\distutils\dist.py", line 985, in run_command&lt;BR /&gt;cmd_obj.run()&lt;BR /&gt;File "C:\CODING\OTHERS\NUMPY\numpy\numpy\distutils\command\build_src.py", line 144, in run&lt;BR /&gt;self.build_sources()&lt;BR /&gt;File "C:\CODING\OTHERS\NUMPY\numpy\numpy\distutils\command\build_src.py", line 155, in build_sources&lt;BR /&gt;self.build_library_sources(*libname_info)&lt;BR /&gt;File "C:\CODING\OTHERS\NUMPY\numpy\numpy\distutils\command\build_src.py", line 288, in build_library_sources&lt;BR /&gt;sources = self.generate_sources(sources, (lib_name, build_info))&lt;BR /&gt;File "C:\CODING\OTHERS\NUMPY\numpy\numpy\distutils\command\build_src.py", line 378, in generate_sources&lt;BR /&gt;source = func(extension, build_dir)&lt;BR /&gt;File "C:\CODING\OTHERS\NUMPY\numpy\numpy\core\setup.py", line 757, in get_mathlib_info&lt;BR /&gt;raise RuntimeError(&lt;BR /&gt;RuntimeError: Broken toolchain: cannot link a simple C program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please help ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I must precise that I am aware of&amp;nbsp;&lt;A href="https://community.intel.com/t5/Intel-Distribution-for-Python/Compiling-numpy-amp-scipy-with-Intel-MKL-in-windows-10/m-p/1318469" target="_self"&gt;https://community.intel.com/t5/Intel-Distribution-for-Python/Compiling-numpy-amp-scipy-with-Intel-MKL-in-windows-10/m-p/1318469&lt;/A&gt;&amp;nbsp;and that I don't want to use prebuilt packages. I really want to build it mysefl on my machine.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Apr 2022 19:53:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Cannot-build-numpy-from-source-with-intel-c-and-fortran/m-p/1375955#M1836</guid>
      <dc:creator>MattHouston</dc:creator>
      <dc:date>2022-04-10T19:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot build numpy from source with intel c++ and fortran compilers</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Cannot-build-numpy-from-source-with-intel-c-and-fortran/m-p/1376865#M1838</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for posting in Intel Communities.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We were unable to reproduce the issue from our end. We did not face any error with and without modifying the intelccompiler.py and intel.py.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;U style="font-size: 16px;"&gt;Details of our machine&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;NOTE: Ensure the versions are the same&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;·&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;OS: &lt;/SPAN&gt;&lt;STRONG style="font-size: 16px;"&gt;Windows 10&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;·&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Intel® MKL version used: &lt;/SPAN&gt;&lt;STRONG style="font-size: 16px;"&gt;2020 update 3&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;NOTE: &lt;/SPAN&gt;&lt;STRONG style="font-size: 16px;"&gt;You need a license serial number to install any older version of Intel® oneAPI Toolkit. You must purchase a license if you do not have one.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Access the &lt;/SPAN&gt;&lt;A style="font-size: 16px;" href="https://registrationcenter.intel.com/en/products/" target="_blank" rel="noopener noreferrer"&gt;Registration Center&lt;/A&gt;&lt;SPAN&gt; and follow the instructions below.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Select the product&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Select the OS&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Specify the required component, version and click download.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;·&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Visual studio version :&lt;/SPAN&gt;&lt;STRONG style="font-size: 16px;"&gt;2017(&lt;/STRONG&gt;&lt;SPAN&gt;Visit&lt;/SPAN&gt; &lt;A style="font-size: 16px;" href="https://visualstudio.microsoft.com/vs/older-downloads/" target="_blank" rel="noopener noreferrer"&gt;https://visualstudio.microsoft.com/vs/older-downloads/&lt;/A&gt;&lt;SPAN&gt; to download older versions&lt;/SPAN&gt;&lt;STRONG style="font-size: 16px;"&gt;)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(If you build on Windows platforms, Visual Studio 2017 and Visual C++ Build Tools 2015 are also required.&amp;nbsp;When install VS2017, just select the “VC++ 2015.3 v14.00 (v140) toolset for desktop” at the bottom of the “Desktop development with C++” section)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="numpy.jpg" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/28533i19094B4440CFA79B/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="numpy.jpg" alt="numpy.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;U style="font-size: 16px;"&gt;Details needed&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Could you please share with us the following details? &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1.&amp;nbsp;The numpy version you are using&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2.&amp;nbsp;The MKL version you are using&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3.&amp;nbsp;Can you confirm whether you are using the components installed from Base Toolkit and HPC Toolkit (2021.3.0.3221 version)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please let us know if you still face issues even after using the same versions mentioned above&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Gopika&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 14:29:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Cannot-build-numpy-from-source-with-intel-c-and-fortran/m-p/1376865#M1838</guid>
      <dc:creator>Gopika_Intel</dc:creator>
      <dc:date>2022-04-13T14:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot build numpy from source with intel c++ and fortran compilers</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Cannot-build-numpy-from-source-with-intel-c-and-fortran/m-p/1376977#M1839</link>
      <description>&lt;P&gt;I am under windows 10 or 11 (I tried both) pro last updates + visual studio 2019 enterprise full install (all win 10 and 11 SDKs installed). I have intel the following version of intel parallel studio and intel one api :&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;IPSXE2020u4&lt;/LI&gt;
&lt;LI&gt;intel one api&amp;nbsp;w_BaseKit_p_2021.3.0.3221 +&amp;nbsp;w_HPCKit_p_2021.3.0.3227&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;(Both are full installs, hence : all components of&lt;SPAN&gt;&amp;nbsp;Base Toolkit and HPC Toolkit (2021.3.0.3221 version) are installed.&lt;/SPAN&gt;)&lt;/P&gt;
&lt;P&gt;(This also gives you the exact versions of my intel c/c++ and fortran compilers as well as the MKL version.)&lt;/P&gt;
&lt;P&gt;I have official python 3.8.10 64 bits.&lt;/P&gt;
&lt;P&gt;I don't know what do you mean with "the numpy version I am using". I indeed have the pip package numpy version 1.21.5 installed, but I am trying to build numpy from source myself, so that I just git cloned numpy repo the day I asked the question here, and it is this numpy version I am trying to build.&lt;/P&gt;
&lt;P&gt;I must precise that in my four configurations (win 10 or 11, ipsxe2020u4 or one api&amp;nbsp;&lt;SPAN&gt;2021.3.0.3221)&amp;nbsp;&lt;/SPAN&gt;I have the very same error log, I just attached. The crucial bit seems to be :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;MSVCRT.lib(loadcfg.obj) : error LNK2001: unresolved external symbol __enclave_config&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;MSVCRT.lib(loadcfg.obj) : error LNK2001: unresolved external symbol __volatile_metadata&lt;/STRONG&gt;&lt;BR /&gt;_configtest.exe : fatal error LNK1120: 2 unresolved externals&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "setup.py", line 492, in &amp;lt;module&amp;gt;&lt;BR /&gt;setup_package()&lt;BR /&gt;File "setup.py", line 484, in setup_package&lt;BR /&gt;setup(**metadata)&lt;BR /&gt;File "C:\CODING\OTHERS\NUMPY\numpy\numpy\distutils\core.py", line 169, in setup&lt;BR /&gt;return old_setup(**new_attr)&lt;BR /&gt;File "C:\PYTHON\3\3.8.10\lib\site-packages\setuptools\__init__.py", line 153, in setup&lt;BR /&gt;return distutils.core.setup(**attrs)&lt;BR /&gt;File "C:\PYTHON\3\3.8.10\lib\distutils\core.py", line 148, in setup&lt;BR /&gt;dist.run_commands()&lt;BR /&gt;File "C:\PYTHON\3\3.8.10\lib\distutils\dist.py", line 966, in run_commands&lt;BR /&gt;self.run_command(cmd)&lt;BR /&gt;File "C:\PYTHON\3\3.8.10\lib\distutils\dist.py", line 985, in run_command&lt;BR /&gt;cmd_obj.run()&lt;BR /&gt;File "C:\CODING\OTHERS\NUMPY\numpy\numpy\distutils\command\build_clib.py", line 95, in run&lt;BR /&gt;self.run_command('build_src')&lt;BR /&gt;File "C:\PYTHON\3\3.8.10\lib\distutils\cmd.py", line 313, in run_command&lt;BR /&gt;self.distribution.run_command(command)&lt;BR /&gt;File "C:\PYTHON\3\3.8.10\lib\distutils\dist.py", line 985, in run_command&lt;BR /&gt;cmd_obj.run()&lt;BR /&gt;File "C:\CODING\OTHERS\NUMPY\numpy\numpy\distutils\command\build_src.py", line 144, in run&lt;BR /&gt;self.build_sources()&lt;BR /&gt;File "C:\CODING\OTHERS\NUMPY\numpy\numpy\distutils\command\build_src.py", line 155, in build_sources&lt;BR /&gt;self.build_library_sources(*libname_info)&lt;BR /&gt;File "C:\CODING\OTHERS\NUMPY\numpy\numpy\distutils\command\build_src.py", line 288, in build_library_sources&lt;BR /&gt;sources = self.generate_sources(sources, (lib_name, build_info))&lt;BR /&gt;File "C:\CODING\OTHERS\NUMPY\numpy\numpy\distutils\command\build_src.py", line 378, in generate_sources&lt;BR /&gt;source = func(extension, build_dir)&lt;BR /&gt;File "C:\CODING\OTHERS\NUMPY\numpy\numpy\core\setup.py", line 757, in get_mathlib_info&lt;BR /&gt;raise RuntimeError(&lt;BR /&gt;RuntimeError: Broken toolchain: cannot link a simple C program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(I attached the new log because I corrected the site.cfg file ; indeed, although the windows plateform section from&amp;nbsp;&lt;A href="https://www.intel.com/content/www/us/en/developer/articles/technical/build-numpy-with-mkl-and-icc.html" target="_self"&gt;https://www.intel.com/content/www/us/en/developer/articles/technical/build-numpy-with-mkl-and-icc.html&lt;/A&gt;&amp;nbsp;mentions paths of the form :&lt;/P&gt;
&lt;PRE class="line-numbers language-bash"&gt;&lt;CODE&gt;library_dirs = C:\Program Files (x86)\IntelSWTools\compilers_and_libraries \windows\mkl\lib\intel64; 
include_dirs = C:\Program Files (x86)\IntelSWTools\compilers_and_libraries \windows\mkl\include&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;it appears that the fact they are containing spaces causes issues, hence I replaced the "C:\Program Files (x86)" bit with "C:\PROGRA~2")&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 21:20:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Cannot-build-numpy-from-source-with-intel-c-and-fortran/m-p/1376977#M1839</guid>
      <dc:creator>MattHouston</dc:creator>
      <dc:date>2022-04-13T21:20:05Z</dc:date>
    </item>
  </channel>
</rss>

