Skip to content

Conversation

@maresb
Copy link
Contributor

@maresb maresb commented Oct 15, 2025

Description

It seems that libiomp5.lib has been renamed to libiomp5md.lib, so the detection was failing. Add another search step with the new library name.

TODO: is there a more modern approach?

Related Issue

  • Closes #
  • Related to #

Checklist

Type of change

  • New feature / enhancement
  • Bug fix
  • Documentation
  • Maintenance
  • Other (please specify):

📚 Documentation preview 📚: https://pytensor--1667.org.readthedocs.build/en/1667/

It seems that libiomp5.lib has been renamed to libiomp5md.lib, so the detection was failing.
Add another search step with the new library name.

TODO: is there a more modern approach?

Co-authored-by: Luciano Paz <luciano.paz.neuro@gmail.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes MKL BLAS detection by adding support for a renamed Intel OpenMP library. Intel has renamed libiomp5.lib to libiomp5md.lib, causing the existing MKL detection to fail.

  • Adds a new fallback detection step for MKL with the renamed iomp5md library
  • Updates comments to distinguish between the original and new detection attempts
  • Maintains backward compatibility by keeping the original detection logic

@maresb
Copy link
Contributor Author

maresb commented Oct 15, 2025

@ricardoV94, I managed to do a debug session with @lucianopaz, so we came up with this workaround. If we get this in a release, then we expect to be able to make Windows builds again on conda-forge.

Copy link
Member

@lucianopaz lucianopaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm. Thanks @maresb

@maresb
Copy link
Contributor Author

maresb commented Oct 15, 2025

I managed to successfully cherry-pick this into the 2.34.0 2.35.0 release on conda-forge, so hopefully this will make testing easier for @ricardoV94 now that we have Windows builds (as soon as they propagate to the conda-forge CDN).

@ricardoV94
Copy link
Member

I managed to successfully cherry-pick this into the 2.34.0 release on conda-forge, so hopefully this will make testing easier for @ricardoV94 now that we have Windows builds (as soon as they propagate to the conda-forge CDN).

Can you get it to 2.35.0 (if it's not yet). That's the one we're trying against now

@ricardoV94
Copy link
Member

Awesome work guys! Failing test is flaky and def shouldn't be related

@ricardoV94 ricardoV94 changed the title Fix MKL BLAS detection Fix MKL BLAS detection with renamed libiomp5md.lib Oct 15, 2025
@ricardoV94 ricardoV94 merged commit 022f189 into pymc-devs:main Oct 15, 2025
55 of 57 checks passed
@ricardoV94
Copy link
Member

Would you guys mind leaving a short comment how you debugged this? Could be useful for future devs

@maresb maresb deleted the fix-mkl-blas-detection branch October 15, 2025 19:41
@maresb
Copy link
Contributor Author

maresb commented Oct 15, 2025

Can you get it to 2.35.0 (if it's not yet). That's the one we're trying against now

I meant to write v2.35.0, there's no Windows build for v2.34.0.

Would you guys mind leaving a short comment how you debugged this? Could be useful for future devs

Ya, good call @ricardoV94. Also for myself one month from now. 😂

To debug, we used a Windows VM, and ran

import logging
logger = logging.getLogger("pytensor.link.c.cmodule")
logger.setLevel(logging.DEBUG)
import pytensor
pytensor.config.blas__ldflags

This produced output like

>>> pytensor.config.blas__ldflags
DEBUG (pytensor.link.c.cmodule): Will search for BLAS libraries in the following directories:
C:\Users\Ben\micromamba\envs\pytensor-blas-test\Library\x86_64-w64-mingw32\sysroot\usr\lib
C:\Users\Ben\micromamba\envs\pytensor-blas-test\libs
C:\Users\Ben\micromamba\envs\pytensor-blas-test
C:\Users\Ben\micromamba\envs\pytensor-blas-test\Library\bin
C:\Users\Ben\micromamba\envs\pytensor-blas-test\Library\lib
DEBUG (pytensor.link.c.cmodule): Checking MKL flags with intel threading
INFO (pytensor.link.c.cmodule): g++ -march=native selected lines: ['C:/Users/Ben/micromamba/envs/pytensor-blas-test/Library/bin/../libexec/gcc/x86_64-w64-mingw32/14.3.0/cc1.exe -E -quiet -v -iprefix C:/Users/Ben/micromamba/envs/pytensor-blas-test/Library/bin/../lib/gcc/x86_64-w64-mingw32/14.3.0/ -isysroot C:/Users/Ben/micromamba/envs/pytensor-blas-test/Library/bin/../x86_64-w64-mingw32/sysroot -U_REENTRANT - -march=x86-64 -mmmx -mno-popcnt -msse -msse2 -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mno-avx -mno-avx2 -mno-sse4a -mno-fma4 -mno-xop -mno-fma -mno-avx512f -mno-bmi -mno-bmi2 -mno-aes -mno-pclmul -mno-avx512vl -mno-avx512bw -mno-avx512dq -mno-avx512cd -mno-avx512vbmi -mno-avx512ifma -mno-avx512vpopcntdq -mno-avx512vbmi2 -mno-gfni -mno-vpclmulqdq -mno-avx512vnni -mno-avx512bitalg -mno-avx512bf16 -mno-avx512vp2intersect -mno-3dnow -mno-adx -mno-abm -mno-cldemote -mno-clflushopt -mno-clwb -mno-clzero -mcx16 -mno-enqcmd -mno-f16c -mno-fsgsbase -mfxsr -mno-hle -msahf -mno-lwp -mno-lzcnt -mno-movbe -mno-movdir64b -mno-movdiri -mno-mwaitx -mno-pconfig -mno-pku -mno-prfchw -mno-ptwrite -mno-rdpid -mno-rdrnd -mno-rdseed -mno-rtm -mno-serialize -mno-sgx -mno-sha -mno-shstk -mno-tbm -mno-tsxldtrk -mno-vaes -mno-waitpkg -mno-wbnoinvd -mno-xsave -mno-xsavec -mno-xsaveopt -mno-xsaves -mno-amx-tile -mno-amx-int8 -mno-amx-bf16 -mno-uintr -mno-hreset -mno-kl -mno-widekl -mno-avxvnni -mno-avx512fp16 -mno-avxifma -mno-avxvnniint8 -mno-avxneconvert -mno-cmpccxadd -mno-amx-fp16 -mno-prefetchi -mno-raoint -mno-amx-complex -mno-avxvnniint16 -mno-sm3 -mno-sha512 -mno-sm4 -mno-apxf -mno-usermsr --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=16384 -mtune=generic -idirafter C:/Users/Ben/micromamba/envs/pytensor-blas-test/Library/include -dumpbase -']
INFO (pytensor.link.c.cmodule): g++ default lines: ['C:/Users/Ben/micromamba/envs/pytensor-blas-test/Library/bin/../libexec/gcc/x86_64-w64-mingw32/14.3.0/cc1.exe -E -quiet -v -iprefix C:/Users/Ben/micromamba/envs/pytensor-blas-test/Library/bin/../lib/gcc/x86_64-w64-mingw32/14.3.0/ -isysroot C:/Users/Ben/micromamba/envs/pytensor-blas-test/Library/bin/../x86_64-w64-mingw32/sysroot -U_REENTRANT - -mtune=generic -march=x86-64 -idirafter C:/Users/Ben/micromamba/envs/pytensor-blas-test/Library/include -dumpbase -']
INFO (pytensor.link.c.cmodule): g++ -march=native equivalent flags: ['-march=x86-64', '-mmmx', '-mno-popcnt', '-msse', '-msse2', '-msse3', '-mno-ssse3', '-mno-sse4.1', '-mno-sse4.2', '-mno-avx', '-mno-avx2', '-mno-sse4a', '-mno-fma4', '-mno-xop', '-mno-fma', '-mno-avx512f', '-mno-bmi', '-mno-bmi2', '-mno-aes', '-mno-pclmul', '-mno-avx512vl', '-mno-avx512bw', '-mno-avx512dq', '-mno-avx512cd', '-mno-avx512vbmi', '-mno-avx512ifma', '-mno-avx512vpopcntdq', '-mno-avx512vbmi2', '-mno-gfni', '-mno-vpclmulqdq', '-mno-avx512vnni', '-mno-avx512bitalg', '-mno-avx512bf16', '-mno-avx512vp2intersect', '-mno-3dnow', '-mno-adx', '-mno-abm', '-mno-cldemote', '-mno-clflushopt', '-mno-clwb', '-mno-clzero', '-mcx16', '-mno-enqcmd', '-mno-f16c', '-mno-fsgsbase', '-mfxsr', '-mno-hle', '-msahf', '-mno-lwp', '-mno-lzcnt', '-mno-movbe', '-mno-movdir64b', '-mno-movdiri', '-mno-mwaitx', '-mno-pconfig', '-mno-pku', '-mno-prfchw', '-mno-ptwrite', '-mno-rdpid', '-mno-rdrnd', '-mno-rdseed', '-mno-rtm', '-mno-serialize', '-mno-sgx', '-mno-sha', '-mno-shstk', '-mno-tbm', '-mno-tsxldtrk', '-mno-vaes', '-mno-waitpkg', '-mno-wbnoinvd', '-mno-xsave', '-mno-xsavec', '-mno-xsaveopt', '-mno-xsaves', '-mno-amx-tile', '-mno-amx-int8', '-mno-amx-bf16', '-mno-uintr', '-mno-hreset', '-mno-kl', '-mno-widekl', '-mno-avxvnni', '-mno-avx512fp16', '-mno-avxifma', '-mno-avxvnniint8', '-mno-avxneconvert', '-mno-cmpccxadd', '-mno-amx-fp16', '-mno-prefetchi', '-mno-raoint', '-mno-amx-complex', '-mno-avxvnniint16', '-mno-sm3', '-mno-sha512', '-mno-sm4', '-mno-apxf', '-mno-usermsr', '--param', 'l1-cache-size=32', '--param', 'l1-cache-line-size=64', '--param', 'l2-cache-size=16384', '-mtune=generic']
DEBUG (pytensor.link.c.cmodule): Compiling for 64 bit architecture
DEBUG (pytensor.link.c.cmodule): Compiling for 64 bit architecture
DEBUG (pytensor.link.c.cmodule): try_blas_flags of flags: ['-L"C:\\Users\\Ben\\micromamba\\envs\\pytensor-blas-test\\Library\\bin"', '-lmkl_core', '-lmkl_rt', '-lmkl_intel_thread', '-liomp5', '-lpthread', '-Wl,-rpath,C:\\Users\\Ben\\micromamba\\envs\\pytensor-blas-test\\libs']
failed with error message b'C:/Users/Ben/micromamba/envs/pytensor-blas-test/Library/bin/../lib/gcc/x86_64-w64-mingw32/14.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -liomp5: No such file or directory\r\ncollect2.exe: error: ld returned 1 exit status\n'
DEBUG (pytensor.link.c.cmodule): Supplied flags '' failed to compile
DEBUG (pytensor.link.c.cmodule): Supplied flags ['-L"C:\\Users\\Ben\\micromamba\\envs\\pytensor-blas-test\\Library\\bin"', '-lmkl_core', '-lmkl_rt', '-lmkl_intel_thread', '-liomp5', '-lpthread', '-Wl,-rpath,C:\\Users\\Ben\\micromamba\\envs\\pytensor-blas-test\\libs'] failed to compile
DEBUG (pytensor.link.c.cmodule): Checking MKL flags with GNU OpenMP threading
DEBUG (pytensor.link.c.cmodule): Required file 'mkl_gnu_thread' not found
DEBUG (pytensor.link.c.cmodule): Required file mkl_gnu_thread not found
DEBUG (pytensor.link.c.cmodule): Checking Accelerate framework
DEBUG (pytensor.link.c.cmodule): Compiling for 64 bit architecture
DEBUG (pytensor.link.c.cmodule): try_blas_flags of flags: ['-framework', 'Accelerate', '-Wl,-rpath,C:\\Users\\Ben\\micromamba\\envs\\pytensor-blas-test\\libs']
failed with error message b"g++.EXE: error: unrecognized command-line option '-framework'\n"
DEBUG (pytensor.link.c.cmodule): Accelerate framework flag failed
DEBUG (pytensor.link.c.cmodule): Checking Lapack + blas
DEBUG (pytensor.link.c.cmodule): Compiling for 64 bit architecture
DEBUG (pytensor.link.c.cmodule): try_blas_flags of flags: ['-L"C:\\Users\\Ben\\micromamba\\envs\\pytensor-blas-test\\Library\\bin"', '-L"C:\\Users\\Ben\\micromamba\\envs\\pytensor-blas-test"', '-llapack', '-lblas', '-lcblas', '-lm', '-Wl,-rpath,C:\\Users\\Ben\\micromamba\\envs\\pytensor-blas-test\\libs']
failed with error message b'Mingw-w64 runtime failure:\r\n32 bit pseudo relocation at 00007FF6E32314BC out of range, targeting 00007FF985A31600, yielding the value 00000002A2800140.\r\n'
DEBUG (pytensor.link.c.cmodule): Supplied flags '' failed to compile
DEBUG (pytensor.link.c.cmodule): Supplied flags ['-L"C:\\Users\\Ben\\micromamba\\envs\\pytensor-blas-test\\Library\\bin"', '-L"C:\\Users\\Ben\\micromamba\\envs\\pytensor-blas-test"', '-llapack', '-lblas', '-lcblas', '-lm', '-Wl,-rpath,C:\\Users\\Ben\\micromamba\\envs\\pytensor-blas-test\\libs'] failed to compile
DEBUG (pytensor.link.c.cmodule): Checking blas alone
DEBUG (pytensor.link.c.cmodule): Compiling for 64 bit architecture
DEBUG (pytensor.link.c.cmodule): try_blas_flags of flags: ['-L"C:\\Users\\Ben\\micromamba\\envs\\pytensor-blas-test\\Library\\bin"', '-lblas', '-lcblas', '-Wl,-rpath,C:\\Users\\Ben\\micromamba\\envs\\pytensor-blas-test\\libs']
failed with error message b'Mingw-w64 runtime failure:\r\n32 bit pseudo relocation at 00007FF7A52314BC out of range, targeting 00007FF985A31600, yielding the value 00000001E0800140.\r\n'
DEBUG (pytensor.link.c.cmodule): Supplied flags '' failed to compile
DEBUG (pytensor.link.c.cmodule): Supplied flags ['-L"C:\\Users\\Ben\\micromamba\\envs\\pytensor-blas-test\\Library\\bin"', '-lblas', '-lcblas', '-Wl,-rpath,C:\\Users\\Ben\\micromamba\\envs\\pytensor-blas-test\\libs'] failed to compile
DEBUG (pytensor.link.c.cmodule): Checking openblas
DEBUG (pytensor.link.c.cmodule): Required file 'openblas' not found
DEBUG (pytensor.link.c.cmodule): Required file openblas not found
DEBUG (pytensor.link.c.cmodule): Failed to identify blas ldflags. Will leave them empty.
C:\Users\Ben\micromamba\envs\pytensor-blas-test\Lib\site-packages\pytensor\link\c\cmodule.py:2968: UserWarning: PyTensor could not link to a BLAS installation. Operations that might benefit from BLAS will be severely degraded.
This usually happens when PyTensor is installed via pip. We recommend it be installed via conda/mamba/pixi instead.
Alternatively, you can use an experimental backend such as Numba or JAX that perform their own BLAS optimizations, by setting `pytensor.config.mode == 'NUMBA'` or passing `mode='NUMBA'` when compiling a PyTensor function.
For more options and details see https://pytensor.readthedocs.io/en/latest/troubleshooting.html#how-do-i-configure-test-my-blas-library
  warnings.warn(
''

The key message here is:

DEBUG (pytensor.link.c.cmodule): try_blas_flags of flags: ['-L"C:\\Users\\Ben\\micromamba\\envs\\pytensor-blas-test\\Library\\bin"', '-lmkl_core', '-lmkl_rt', '-lmkl_intel_thread', '-liomp5', '-lpthread', '-Wl,-rpath,C:\\Users\\Ben\\micromamba\\envs\\pytensor-blas-test\\libs']
failed with error message b'C:/Users/Ben/micromamba/envs/pytensor-blas-test/Library/bin/../lib/gcc/x86_64-w64-mingw32/14.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -liomp5: No such file or directory\r\ncollect2.exe: error: ld returned 1 exit status\n'

indicating that it can't find libiomp5.lib. Then we looked at the library directory:

(base) C:\Users\Ben\micromamba\envs\pytensor-blas-test\Library\lib>dir
 Datenträger in Laufwerk C: ist Windows
 Volumeseriennummer: 2A9B-C2DD

 Verzeichnis von C:\Users\Ben\micromamba\envs\pytensor-blas-test\Library\lib

13.09.2025  11:21    <DIR>          .
13.09.2025  11:21    <DIR>          ..
13.09.2025  11:21             2.486 -gdb.py
13.09.2025  11:20    <DIR>          bfd-plugins
09.09.2025  19:03             6.328 bzip2.lib
09.09.2025  19:03           102.272 bzip2_static.lib
11.08.2025  12:45             2.810 charset.lib
13.09.2025  11:20    <DIR>          clang
13.09.2025  11:20    <DIR>          cmake
13.09.2025  11:20    <DIR>          dde1.4
31.03.2025  17:25            10.772 ffi.lib
13.09.2025  11:20    <DIR>          gcc
11.09.2025  22:56            71.844 hwloc.lib
11.08.2025  12:45             3.480 iconv.lib
13.09.2025  11:20    <DIR>          itcl4.2.3
09.07.2025  05:48         1.532.048 libbfd.a
09.09.2025  19:03             6.328 libbz2.lib
09.09.2025  19:03           102.272 libbz2_static.lib
06.08.2025  10:06         1.377.216 libcrypto.lib
09.07.2025  05:48           241.742 libctf-nobfd.a
09.07.2025  05:48           247.914 libctf.a
31.03.2025  17:25            10.772 libffi.lib
25.08.2025  20:02           182.330 libiomp5md.lib
25.08.2025  20:00           182.330 libomp.lib
09.07.2025  05:48           867.254 libopcodes.a
09.07.2025  05:48            20.538 libsframe.a
06.08.2025  10:06           147.386 libssl.lib
30.08.2024  12:09            83.702 mkl_blacs_ilp64_dll.lib
30.08.2024  12:09            83.184 mkl_blacs_lp64_dll.lib
30.08.2024  12:09             7.626 mkl_cdft_core_dll.lib
30.08.2024  12:09         3.270.402 mkl_core_dll.lib
30.08.2024  12:09        36.841.216 mkl_intel_ilp64_dll.lib
30.08.2024  12:09        40.280.554 mkl_intel_lp64_dll.lib
30.08.2024  12:09         1.663.392 mkl_intel_thread_dll.lib
30.08.2024  12:09         1.647.772 mkl_pgi_thread_dll.lib
30.08.2024  12:09        11.081.388 mkl_rt.lib
30.08.2024  12:09           638.248 mkl_scalapack_ilp64_dll.lib
30.08.2024  12:09           634.670 mkl_scalapack_lp64_dll.lib
30.08.2024  12:09         1.650.370 mkl_sequential_dll.lib
30.08.2024  12:09         1.650.370 mkl_tbb_thread_dll.lib
13.09.2025  11:20    <DIR>          nmake
13.09.2025  11:20    <DIR>          pkgconfig
13.09.2025  11:20    <DIR>          reg1.3
13.09.2025  11:20    <DIR>          sqlite3.40.0
31.07.2025  09:57            81.676 sqlite3.lib
13.09.2025  11:20    <DIR>          tcl8
13.09.2025  11:20    <DIR>          tcl8.6
28.05.2025  01:13           185.936 tcl86t.lib
13.09.2025  11:20             8.009 tclConfig.sh
06.06.2022  17:58               773 tclooConfig.sh
28.05.2025  01:13            10.100 tclstub86.lib
13.09.2025  11:20    <DIR>          tdbc1.1.5
13.09.2025  11:20    <DIR>          tdbcmysql1.1.5
13.09.2025  11:20    <DIR>          tdbcodbc1.1.5
13.09.2025  11:20    <DIR>          tdbcpostgres1.1.5
13.09.2025  11:20    <DIR>          tdbcsqlite31.1.5
13.09.2025  11:20    <DIR>          tk8.6
28.05.2025  01:15           125.062 tk86t.lib
28.05.2025  01:15             8.298 tkstub86.lib
              39 Datei(en),    105.070.870 Bytes
              20 Verzeichnis(se), 29.540.212.736 Bytes frei

Here we observe that the library file is now called ibiomp5md.lib. Therefore, we need to change the flag from -liomp5 to -liomp5md.

To maintain backwards compatibility, one possibility is to intelligently try and discover the name ourselves. But we decided to keep the fix super simple and just add another try-except.

@ricardoV94
Copy link
Member

Nice. And how did you get a hold of a Windows VM?

@maresb
Copy link
Contributor Author

maresb commented Oct 16, 2025

@lucianopaz, I just tried on the VM with an older environment I set up. I see the same error on the MKL detection, but then later it succeeds on the OpenBLAS detection, perhaps mistaking MKL as OpenBLAS? https://conda-metadata-app.streamlit.app/Search_by_file_path

DEBUG (pytensor.link.c.cmodule): Will search for BLAS libraries in the following directories:
C:\Users\Ben\micromamba\envs\multinom3\Library\x86_64-w64-mingw32\sysroot\usr\lib
C:\Users\Ben\micromamba\envs\multinom3\libs
C:\Users\Ben\micromamba\envs\multinom3
C:\Users\Ben\micromamba\envs\multinom3\Library\bin
C:\Users\Ben\micromamba\envs\multinom3\Library\lib
DEBUG (pytensor.link.c.cmodule): Checking MKL flags with intel threading
INFO (pytensor.link.c.cmodule): g++ -march=native selected lines: ['C:/Users/Ben/micromamba/envs/multinom3/Library/bin/../libexec/gcc/x86_64-w64-mingw32/13.3.0/cc1.exe -E -quiet -v -iprefix C:/Users/Ben/micromamba/envs/multinom3/Library/bin/../lib/gcc/x86_64-w64-mingw32/13.3.0/ -isysroot C:/Users/Ben/micromamba/envs/multinom3/Library/bin/../x86_64-w64-mingw32/sysroot -U_REENTRANT - -march=x86-64 -mmmx -mno-popcnt -msse -msse2 -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mno-avx -mno-avx2 -mno-sse4a -mno-fma4 -mno-xop -mno-fma -mno-avx512f -mno-bmi -mno-bmi2 -mno-aes -mno-pclmul -mno-avx512vl -mno-avx512bw -mno-avx512dq -mno-avx512cd -mno-avx512er -mno-avx512pf -mno-avx512vbmi -mno-avx512ifma -mno-avx5124vnniw -mno-avx5124fmaps -mno-avx512vpopcntdq -mno-avx512vbmi2 -mno-gfni -mno-vpclmulqdq -mno-avx512vnni -mno-avx512bitalg -mno-avx512bf16 -mno-avx512vp2intersect -mno-3dnow -mno-adx -mno-abm -mno-cldemote -mno-clflushopt -mno-clwb -mno-clzero -mcx16 -mno-enqcmd -mno-f16c -mno-fsgsbase -mfxsr -mno-hle -msahf -mno-lwp -mno-lzcnt -mno-movbe -mno-movdir64b -mno-movdiri -mno-mwaitx -mno-pconfig -mno-pku -mno-prefetchwt1 -mno-prfchw -mno-ptwrite -mno-rdpid -mno-rdrnd -mno-rdseed -mno-rtm -mno-serialize -mno-sgx -mno-sha -mno-shstk -mno-tbm -mno-tsxldtrk -mno-vaes -mno-waitpkg -mno-wbnoinvd -mno-xsave -mno-xsavec -mno-xsaveopt -mno-xsaves -mno-amx-tile -mno-amx-int8 -mno-amx-bf16 -mno-uintr -mno-hreset -mno-kl -mno-widekl -mno-avxvnni -mno-avx512fp16 -mno-avxifma -mno-avxvnniint8 -mno-avxneconvert -mno-cmpccxadd -mno-amx-fp16 -mno-prefetchi -mno-raoint -mno-amx-complex --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=16384 -mtune=generic -dumpbase -']
INFO (pytensor.link.c.cmodule): g++ default lines: ['C:/Users/Ben/micromamba/envs/multinom3/Library/bin/../libexec/gcc/x86_64-w64-mingw32/13.3.0/cc1.exe -E -quiet -v -iprefix C:/Users/Ben/micromamba/envs/multinom3/Library/bin/../lib/gcc/x86_64-w64-mingw32/13.3.0/ -isysroot C:/Users/Ben/micromamba/envs/multinom3/Library/bin/../x86_64-w64-mingw32/sysroot -U_REENTRANT - -mtune=generic -march=x86-64 -dumpbase -']
INFO (pytensor.link.c.cmodule): g++ -march=native equivalent flags: ['-march=x86-64', '-mmmx', '-mno-popcnt', '-msse', '-msse2', '-msse3', '-mno-ssse3', '-mno-sse4.1', '-mno-sse4.2', '-mno-avx', '-mno-avx2', '-mno-sse4a', '-mno-fma4', '-mno-xop', '-mno-fma', '-mno-avx512f', '-mno-bmi', '-mno-bmi2', '-mno-aes', '-mno-pclmul', '-mno-avx512vl', '-mno-avx512bw', '-mno-avx512dq', '-mno-avx512cd', '-mno-avx512er', '-mno-avx512pf', '-mno-avx512vbmi', '-mno-avx512ifma', '-mno-avx5124vnniw', '-mno-avx5124fmaps', '-mno-avx512vpopcntdq', '-mno-avx512vbmi2', '-mno-gfni', '-mno-vpclmulqdq', '-mno-avx512vnni', '-mno-avx512bitalg', '-mno-avx512bf16', '-mno-avx512vp2intersect', '-mno-3dnow', '-mno-adx', '-mno-abm', '-mno-cldemote', '-mno-clflushopt', '-mno-clwb', '-mno-clzero', '-mcx16', '-mno-enqcmd', '-mno-f16c', '-mno-fsgsbase', '-mfxsr', '-mno-hle', '-msahf', '-mno-lwp', '-mno-lzcnt', '-mno-movbe', '-mno-movdir64b', '-mno-movdiri', '-mno-mwaitx', '-mno-pconfig', '-mno-pku', '-mno-prefetchwt1', '-mno-prfchw', '-mno-ptwrite', '-mno-rdpid', '-mno-rdrnd', '-mno-rdseed', '-mno-rtm', '-mno-serialize', '-mno-sgx', '-mno-sha', '-mno-shstk', '-mno-tbm', '-mno-tsxldtrk', '-mno-vaes', '-mno-waitpkg', '-mno-wbnoinvd', '-mno-xsave', '-mno-xsavec', '-mno-xsaveopt', '-mno-xsaves', '-mno-amx-tile', '-mno-amx-int8', '-mno-amx-bf16', '-mno-uintr', '-mno-hreset', '-mno-kl', '-mno-widekl', '-mno-avxvnni', '-mno-avx512fp16', '-mno-avxifma', '-mno-avxvnniint8', '-mno-avxneconvert', '-mno-cmpccxadd', '-mno-amx-fp16', '-mno-prefetchi', '-mno-raoint', '-mno-amx-complex', '--param', 'l1-cache-size=32', '--param', 'l1-cache-line-size=64', '--param', 'l2-cache-size=16384', '-mtune=generic']
DEBUG (pytensor.link.c.cmodule): Compiling for 64 bit architecture
DEBUG (pytensor.link.c.cmodule): Compiling for 64 bit architecture
DEBUG (pytensor.link.c.cmodule): try_blas_flags of flags: ['-L"C:\\Users\\Ben\\micromamba\\envs\\multinom3\\Library\\bin"', '-lmkl_core', '-lmkl_rt', '-lmkl_intel_thread', '-liomp5', '-lpthread', '-Wl,-rpath,C:\\Users\\Ben\\micromamba\\envs\\multinom3\\libs']
failed with error message b'C:/Users/Ben/micromamba/envs/multinom3/Library/bin/../lib/gcc/x86_64-w64-mingw32/13.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -liomp5: No such file or directory\r\ncollect2.exe: error: ld returned 1 exit status\n'
DEBUG (pytensor.link.c.cmodule): Supplied flags '' failed to compile
DEBUG (pytensor.link.c.cmodule): Supplied flags ['-L"C:\\Users\\Ben\\micromamba\\envs\\multinom3\\Library\\bin"', '-lmkl_core', '-lmkl_rt', '-lmkl_intel_thread', '-liomp5', '-lpthread', '-Wl,-rpath,C:\\Users\\Ben\\micromamba\\envs\\multinom3\\libs'] failed to compile
DEBUG (pytensor.link.c.cmodule): Checking MKL flags with GNU OpenMP threading
DEBUG (pytensor.link.c.cmodule): Required file 'mkl_gnu_thread' not found
DEBUG (pytensor.link.c.cmodule): Required file mkl_gnu_thread not found
DEBUG (pytensor.link.c.cmodule): Checking Accelerate framework
DEBUG (pytensor.link.c.cmodule): Compiling for 64 bit architecture
DEBUG (pytensor.link.c.cmodule): try_blas_flags of flags: ['-framework', 'Accelerate', '-Wl,-rpath,C:\\Users\\Ben\\micromamba\\envs\\multinom3\\libs']
failed with error message b"g++.EXE: error: unrecognized command-line option '-framework'\n"
DEBUG (pytensor.link.c.cmodule): Accelerate framework flag failed
DEBUG (pytensor.link.c.cmodule): Checking Lapack + blas
DEBUG (pytensor.link.c.cmodule): Compiling for 64 bit architecture
DEBUG (pytensor.link.c.cmodule): The following blas flags will be used: '-L"C:\Users\Ben\micromamba\envs\multinom3\Library\bin" -L"C:\Users\Ben\micromamba\envs\multinom3" -llapack -lblas -lcblas -lm -Wl,-rpath,C:\Users\Ben\micromamba\envs\multinom3\libs'
'-L"C:\\Users\\Ben\\micromamba\\envs\\multinom3\\Library\\bin" -L"C:\\Users\\Ben\\micromamba\\envs\\multinom3" -llapack -lblas -lcblas -lm -Wl,-rpath,C:\\Users\\Ben\\micromamba\\envs\\multinom3\\libs'
C:\Users\Ben\micromamba\envs\multinom3\Library\lib>dir
 Volume in drive C is Windows
 Volume Serial Number is 2A9B-C2DD

 Directory of C:\Users\Ben\micromamba\envs\multinom3\Library\lib

05/12/2025  12:54 AM    <DIR>          .
05/12/2025  12:54 AM    <DIR>          ..
05/12/2025  12:54 AM             2,468 -gdb.py
03/21/2024  01:42 PM             4,862 aec.lib
05/12/2025  12:52 AM    <DIR>          bfd-plugins
09/02/2024  11:04 AM             4,410 brotlicommon.lib
09/02/2024  11:04 AM             5,110 brotlidec.lib
09/02/2024  11:04 AM             4,990 brotlienc.lib
07/14/2024  06:30 PM             6,328 bzip2.lib
07/14/2024  06:30 PM           102,036 bzip2_static.lib
03/09/2025  11:13 PM           131,816 cairo-gobject-static.lib
03/09/2025  11:13 PM            11,960 cairo-gobject.lib
03/09/2025  11:13 PM           513,216 cairo-script-interpreter-static.lib
03/09/2025  11:12 PM             4,972 cairo-script-interpreter.lib
03/09/2025  11:13 PM         5,097,974 cairo-static.lib
03/09/2025  11:12 PM           108,098 cairo.lib
02/03/2025  07:16 PM             4,472 cdt.lib
02/03/2025  07:16 PM            20,704 cgraph.lib
02/21/2025  10:57 AM             2,810 charset.lib
05/12/2025  12:44 AM    <DIR>          cmake
06/27/2024  06:46 AM             2,918 comerr64.lib
05/12/2025  12:44 AM    <DIR>          dde1.4
04/21/2025  08:35 PM             7,054 deflate.lib
03/31/2025  05:25 PM            10,772 ffi.lib
10/30/2024  12:24 PM            51,176 fontconfig.lib
04/23/2025  03:00 AM            49,620 freetype.lib
11/03/2020  05:22 PM            10,190 fribidi.lib
05/12/2025  12:43 AM    <DIR>          gcc
01/22/2025  02:16 PM            51,010 gd.lib
09/11/2023  04:51 AM             3,346 getopt.lib
05/01/2025  09:20 AM           552,414 gio-2.0.lib
05/12/2025  12:44 AM    <DIR>          girepository-1.0
05/01/2025  09:20 AM            67,076 girepository-2.0.lib
05/01/2025  09:19 AM           434,234 glib-2.0.lib
05/01/2025  09:19 AM             4,270 gmodule-2.0.lib
05/01/2025  09:19 AM           118,862 gobject-2.0.lib
03/28/2024  03:59 PM            16,762 graphite2.lib
06/27/2024  06:46 AM            34,390 gssapi64.lib
05/01/2025  09:20 AM             2,192 gthread-2.0.lib
06/12/2023  06:51 AM            97,558 gts.lib
02/03/2025  07:16 PM            51,478 gvc.lib
02/03/2025  07:16 PM             1,878 gvplugin_core.lib
02/03/2025  07:16 PM             1,974 gvplugin_dot_layout.lib
02/03/2025  07:16 PM             1,770 gvplugin_gd.lib
02/03/2025  07:16 PM             1,930 gvplugin_gdiplus.lib
02/03/2025  07:16 PM             1,898 gvplugin_kitty.lib
02/03/2025  07:16 PM             9,232 gvplugin_neato_layout.lib
02/03/2025  07:16 PM             1,898 gvplugin_pango.lib
02/03/2025  07:16 PM             1,770 gvplugin_vt.lib
02/03/2025  07:16 PM             1,878 gvplugin_webp.lib
04/17/2025  02:56 PM             4,314 harfbuzz-cairo.lib
04/17/2025  02:56 PM            16,670 harfbuzz-gobject.lib
04/17/2025  02:56 PM             2,422 harfbuzz-icu.lib
04/17/2025  02:56 PM            10,354 harfbuzz-subset.lib
04/17/2025  02:54 PM           135,006 harfbuzz.lib
04/22/2025  06:48 AM           779,270 hdf5.lib
04/22/2025  06:49 AM           404,742 hdf5_cpp.lib
04/22/2025  06:48 AM            28,582 hdf5_hl.lib
04/22/2025  06:50 AM            11,804 hdf5_hl_cpp.lib
04/22/2025  06:49 AM            35,030 hdf5_tools.lib
11/12/2024  03:38 AM            71,342 hwloc.lib
02/21/2025  10:57 AM             3,290 iconv.lib
05/12/2025  12:44 AM    <DIR>          icu
07/13/2024  08:58 AM             1,686 icudt.lib
07/13/2024  08:58 AM         3,616,770 icuin.lib
07/13/2024  08:58 AM            12,584 icuio.lib
07/13/2024  08:58 AM            37,330 icutest.lib
07/13/2024  08:58 AM            72,820 icutu.lib
07/13/2024  08:57 AM         1,097,544 icuuc.lib
05/12/2025  12:44 AM    <DIR>          itcl4.2.3
04/21/2025  10:44 PM         1,751,512 jpeg-static.lib
04/21/2025  10:45 PM            31,204 jpeg.lib
06/27/2024  06:46 AM            29,022 k5sprt64.lib
06/27/2024  06:46 AM             2,758 kfwlogon.lib
06/27/2024  06:46 AM           108,976 krb5_64.lib
06/27/2024  06:46 AM             8,552 krbcc64.lib
02/10/2025  06:16 AM            84,654 lcms2.lib
06/27/2024  06:46 AM            17,894 leashw64.lib
04/21/2025  09:36 PM             4,158 Lerc.lib
02/21/2025  06:30 PM         1,518,090 libbfd.a
07/14/2024  06:30 PM             6,328 libbz2.lib
07/14/2024  06:30 PM           102,036 libbz2_static.lib
05/03/2025  01:02 AM         1,377,216 libcrypto.lib
02/21/2025  06:30 PM           239,160 libctf-nobfd.a
02/21/2025  06:30 PM           245,212 libctf.a
04/02/2025  03:49 PM            21,338 libcurl.lib
03/31/2025  05:25 PM            10,772 libffi.lib
01/22/2025  02:16 PM            51,010 libgd.lib
05/12/2025  12:44 AM             3,850 libhdf5.settings
12/15/2024  03:55 AM            85,608 libICE.dll.a
07/11/2024  10:56 PM           264,912 libiomp5md.lib
07/11/2024  10:56 PM            72,262 libiompstubs5md.lib
02/21/2025  06:30 PM           825,294 libopcodes.a
04/30/2025  02:27 PM         1,903,816 libpixman-1.a
05/12/2025  12:44 AM    <DIR>          libpng
04/27/2025  06:32 PM            57,874 libpng.lib
04/27/2025  06:32 PM            57,874 libpng16.lib
04/27/2025  06:32 PM           653,884 libpng16_static.lib
04/27/2025  06:32 PM           653,884 libpng_static.lib
02/21/2025  06:30 PM            20,760 libsframe.a
12/21/2024  12:38 PM             4,780 libsharpyuv.lib
03/13/2025  10:09 PM            31,570 libSM.dll.a
05/27/2024  06:50 PM           185,752 libsodium.lib
04/25/2025  09:17 PM            35,648 libssh2.lib
05/03/2025  01:02 AM           147,386 libssl.lib
04/23/2025  03:45 AM            42,278 libtiff.lib
12/21/2024  12:39 PM            85,908 libwebp.lib
12/21/2024  12:39 PM            48,576 libwebpdecoder.lib
12/21/2024  12:39 PM             6,384 libwebpdemux.lib
12/21/2024  12:39 PM            14,586 libwebpmux.lib
03/13/2025  11:34 PM             2,322 libX11-xcb.dll.a
03/13/2025  11:34 PM           817,194 libX11.dll.a
12/15/2024  04:20 AM             6,070 libXau.dll.a
09/25/2024  05:42 PM            17,264 libxcb-composite.dll.a
09/25/2024  05:42 PM            10,762 libxcb-damage.dll.a
09/25/2024  05:42 PM            30,678 libxcb-dbe.dll.a
09/25/2024  05:42 PM            16,910 libxcb-dpms.dll.a
09/25/2024  05:42 PM            45,700 libxcb-dri2.dll.a
09/25/2024  05:42 PM           423,410 libxcb-glx.dll.a
09/25/2024  05:42 PM            23,950 libxcb-present.dll.a
09/25/2024  05:42 PM           244,724 libxcb-randr.dll.a
09/25/2024  05:42 PM            49,486 libxcb-record.dll.a
09/25/2024  05:42 PM           177,888 libxcb-render.dll.a
09/25/2024  05:42 PM            41,702 libxcb-res.dll.a
09/25/2024  05:42 PM            18,034 libxcb-screensaver.dll.a
09/25/2024  05:42 PM            26,124 libxcb-shape.dll.a
09/25/2024  05:42 PM            16,858 libxcb-shm.dll.a
09/25/2024  05:42 PM            65,640 libxcb-sync.dll.a
09/25/2024  05:42 PM            43,618 libxcb-xf86dri.dll.a
09/25/2024  05:42 PM            91,972 libxcb-xfixes.dll.a
09/25/2024  05:42 PM            19,704 libxcb-xinerama.dll.a
09/25/2024  05:42 PM           529,200 libxcb-xinput.dll.a
09/25/2024  05:42 PM           380,186 libxcb-xkb.dll.a
09/25/2024  05:42 PM             8,760 libxcb-xtest.dll.a
09/25/2024  05:42 PM            84,398 libxcb-xv.dll.a
09/25/2024  05:42 PM            40,108 libxcb-xvmc.dll.a
09/25/2024  05:42 PM           486,186 libxcb.dll.a
10/01/2024  05:07 PM            28,708 libXdmcp.dll.a
10/01/2024  05:14 AM            91,774 libXext.dll.a
05/07/2025  06:12 PM           374,152 libxml2.lib
05/07/2025  06:12 PM         4,866,190 libxml2_a.lib
05/07/2025  06:13 PM         4,861,158 libxml2_a_dll.lib
10/01/2024  06:53 PM            44,682 libXpm.dll.a
11/17/2024  06:24 PM           317,196 libXt.dll.a
11/14/2024  01:45 PM            15,932 libzmq-mt-4_3_5.lib
11/14/2024  01:46 PM        21,000,392 libzmq-mt-s-4_3_5.lib
11/14/2024  01:49 PM            15,932 libzmq.lib
03/20/2025  03:17 AM            45,308 libzstd.lib
08/30/2024  12:09 PM            83,702 mkl_blacs_ilp64_dll.lib
08/30/2024  12:09 PM            83,184 mkl_blacs_lp64_dll.lib
08/30/2024  12:09 PM             7,626 mkl_cdft_core_dll.lib
08/30/2024  12:09 PM         3,270,402 mkl_core_dll.lib
08/30/2024  12:09 PM        36,841,216 mkl_intel_ilp64_dll.lib
08/30/2024  12:09 PM        40,280,554 mkl_intel_lp64_dll.lib
08/30/2024  12:09 PM         1,663,392 mkl_intel_thread_dll.lib
08/30/2024  12:09 PM         1,647,772 mkl_pgi_thread_dll.lib
08/30/2024  12:09 PM        11,081,388 mkl_rt.lib
08/30/2024  12:09 PM           638,248 mkl_scalapack_ilp64_dll.lib
08/30/2024  12:09 PM           634,670 mkl_scalapack_lp64_dll.lib
08/30/2024  12:09 PM         1,650,370 mkl_sequential_dll.lib
08/30/2024  12:09 PM         1,650,370 mkl_tbb_thread_dll.lib
05/12/2025  12:44 AM    <DIR>          nmake
07/11/2024  10:56 PM            31,502 omptarget.lib
12/10/2024  09:45 AM            13,326 openjp2.lib
03/30/2025  06:37 PM           132,628 pango-1.0.lib
03/30/2025  06:37 PM            11,508 pangocairo-1.0.lib
03/30/2025  06:37 PM            28,140 pangoft2-1.0.lib
03/30/2025  06:37 PM            11,864 pangowin32-1.0.lib
02/03/2025  07:16 PM             4,444 pathplan.lib
04/29/2025  09:37 PM            21,886 pcre2-16.lib
04/29/2025  09:37 PM            21,886 pcre2-32.lib
04/29/2025  09:36 PM            21,406 pcre2-8.lib
04/29/2025  09:37 PM             2,362 pcre2-posix.lib
04/30/2025  02:27 PM            49,648 pixman-1.lib
05/12/2025  12:44 AM    <DIR>          pkgconfig
04/27/2025  06:32 PM            57,874 png16.lib
04/27/2025  06:32 PM           653,884 png16_static.lib
07/12/2024  09:56 PM         1,924,918 qhullcpp.lib
07/12/2024  09:56 PM         1,446,638 qhullstatic.lib
07/12/2024  09:56 PM         1,376,624 qhullstatic_r.lib
07/12/2024  09:56 PM            82,482 qhull_r.lib
05/12/2025  12:44 AM    <DIR>          reg1.3
05/12/2025  12:44 AM    <DIR>          sqlite3.40.0
05/07/2025  06:58 PM            81,446 sqlite3.lib
03/21/2024  01:42 PM             5,566 szip.lib
05/12/2025  12:44 AM    <DIR>          tcl8
05/12/2025  12:44 AM    <DIR>          tcl8.6
11/05/2023  06:35 PM           185,936 tcl86t.lib
05/12/2025  12:44 AM             7,955 tclConfig.sh
06/06/2022  05:58 PM               773 tclooConfig.sh
11/05/2023  06:35 PM             9,484 tclstub86.lib
05/12/2025  12:44 AM    <DIR>          tdbc1.1.5
05/12/2025  12:44 AM    <DIR>          tdbcmysql1.1.5
05/12/2025  12:44 AM    <DIR>          tdbcodbc1.1.5
05/12/2025  12:44 AM    <DIR>          tdbcpostgres1.1.5
05/12/2025  12:44 AM    <DIR>          tdbcsqlite31.1.5
04/23/2025  03:45 AM            42,278 tiff.lib
04/23/2025  03:45 AM            22,780 tiffxx.lib
05/12/2025  12:44 AM    <DIR>          tk8.6
11/05/2023  06:37 PM           125,062 tk86t.lib
11/05/2023  06:37 PM             7,868 tkstub86.lib
04/21/2025  10:45 PM         2,140,712 turbojpeg-static.lib
04/21/2025  10:44 PM            17,446 turbojpeg.lib
02/07/2018  12:33 AM            12,294 winpty.lib
02/03/2025  07:16 PM             3,236 xdot.lib
05/07/2025  06:12 PM           374,152 xml2.lib
06/27/2024  06:46 AM             5,786 xpprof64.lib
01/05/2022  03:46 AM            15,316 yaml.lib
03/20/2025  03:17 AM            45,308 zstd.lib
             187 File(s)    168,679,698 bytes
              22 Dir(s)  24,509,042,688 bytes free
C:\Users\Ben>micromamba list -n multinom3
List of packages in environment: "C:\\Users\\Ben\\micromamba\\envs\\multinom3"

  Name                                            Version                 Build                    Channel
----------------------------------------------------------------------------------------------------------------
  _openmp_mutex                                   4.5                     2_gnu                    conda-forge
  anyio                                           4.9.0                   pyh29332c3_0             conda-forge
  argon2-cffi                                     23.1.0                  pyhd8ed1ab_1             conda-forge
  argon2-cffi-bindings                            21.2.0                  py312h4389bb4_5          conda-forge
  arrow                                           1.3.0                   pyhd8ed1ab_1             conda-forge
  arviz                                           0.21.0                  pyhd8ed1ab_0             conda-forge
  asttokens                                       3.0.0                   pyhd8ed1ab_1             conda-forge
  async-lru                                       2.0.5                   pyh29332c3_0             conda-forge
  attrs                                           25.3.0                  pyh71513ae_0             conda-forge
  babel                                           2.17.0                  pyhd8ed1ab_0             conda-forge
  beautifulsoup4                                  4.13.4                  pyha770c72_0             conda-forge
  binutils                                        2.43                    hd1c8def_4               conda-forge
  binutils_impl_win-64                            2.43                    h095e170_4               conda-forge
  binutils_win-64                                 2.43                    hd1c8def_4               conda-forge
  blas                                            2.131                   mkl                      conda-forge
  blas-devel                                      3.9.0                   31_hfb1a452_mkl          conda-forge
  bleach                                          6.2.0                   pyh29332c3_4             conda-forge
  bleach-with-css                                 6.2.0                   h82add2a_4               conda-forge
  brotli                                          1.1.0                   h2466b09_2               conda-forge
  brotli-bin                                      1.1.0                   h2466b09_2               conda-forge
  brotli-python                                   1.1.0                   py312h275cf98_2          conda-forge
  bzip2                                           1.0.8                   h2466b09_7               conda-forge
  ca-certificates                                 2025.4.26               h4c7d964_0               conda-forge
  cached-property                                 1.5.2                   hd8ed1ab_1               conda-forge
  cached_property                                 1.5.2                   pyha770c72_1             conda-forge
  cachetools                                      5.5.2                   pyhd8ed1ab_0             conda-forge
  cairo                                           1.18.4                  h5782bbf_0               conda-forge
  certifi                                         2025.4.26               pyhd8ed1ab_0             conda-forge
  cffi                                            1.17.1                  py312h4389bb4_0          conda-forge
  charset-normalizer                              3.4.2                   pyhd8ed1ab_0             conda-forge
  cloudpickle                                     3.1.1                   pyhd8ed1ab_0             conda-forge
  colorama                                        0.4.6                   pyhd8ed1ab_1             conda-forge
  comm                                            0.2.2                   pyhd8ed1ab_1             conda-forge
  cons                                            0.4.6                   pyhd8ed1ab_1             conda-forge
  contourpy                                       1.3.2                   py312hd5eb7cc_0          conda-forge
  cpython                                         3.12.10                 py312hd8ed1ab_0          conda-forge
  cycler                                          0.12.1                  pyhd8ed1ab_1             conda-forge
  debugpy                                         1.8.14                  py312h275cf98_0          conda-forge
  decorator                                       5.2.1                   pyhd8ed1ab_0             conda-forge
  defusedxml                                      0.7.1                   pyhd8ed1ab_0             conda-forge
  distutils-activate-mingw                        2.3                     py312h2e8e312_4          conda-forge
  etuples                                         0.3.9                   pyhd8ed1ab_1             conda-forge
  exceptiongroup                                  1.3.0                   pyhd8ed1ab_0             conda-forge
  executing                                       2.2.0                   pyhd8ed1ab_0             conda-forge
  filelock                                        3.18.0                  pyhd8ed1ab_0             conda-forge
  font-ttf-dejavu-sans-mono                       2.37                    hab24e00_0               conda-forge
  font-ttf-inconsolata                            3.000                   h77eed37_0               conda-forge
  font-ttf-source-code-pro                        2.038                   h77eed37_0               conda-forge
  font-ttf-ubuntu                                 0.83                    h77eed37_3               conda-forge
  fontconfig                                      2.15.0                  h765892d_1               conda-forge
  fonts-conda-ecosystem                           1                       0                        conda-forge
  fonts-conda-forge                               1                       0                        conda-forge
  fonttools                                       4.58.0                  py312h31fea79_0          conda-forge
  fqdn                                            1.5.1                   pyhd8ed1ab_1             conda-forge
  freetype                                        2.13.3                  h57928b3_1               conda-forge
  fribidi                                         1.0.10                  h8d14728_0               conda-forge
  gcc                                             13.3.0                  hf9c6911_2               conda-forge
  gcc_impl_win-64                                 13.3.0                  h14668b0_2               conda-forge
  gcc_win-64                                      13.3.0                  h3842d22_10              conda-forge
  gendef                                          v12.0.0.r1.ggdc42231f0  he1bec0e_1               conda-forge
  getopt-win32                                    0.1                     hcfcfb64_1               conda-forge
  graphite2                                       1.3.13                  h63175ca_1003            conda-forge
  graphviz                                        12.2.1                  hf40819d_1               conda-forge
  gts                                             0.7.6                   h6b5321d_4               conda-forge
  gxx                                             13.3.0                  hf9c6911_2               conda-forge
  gxx_impl_win-64                                 13.3.0                  h317ec3d_2               conda-forge
  gxx_win-64                                      13.3.0                  h3842d22_10              conda-forge
  h11                                             0.16.0                  pyhd8ed1ab_0             conda-forge
  h2                                              4.2.0                   pyhd8ed1ab_0             conda-forge
  h5netcdf                                        1.6.1                   pyhd8ed1ab_0             conda-forge
  h5py                                            3.13.0                  nompi_py312h4e244af_101  conda-forge
  harfbuzz                                        11.1.0                  h8796e6f_0               conda-forge
  hdf5                                            1.14.6                  nompi_hd5d9e70_101       conda-forge
  hpack                                           4.1.0                   pyhd8ed1ab_0             conda-forge
  httpcore                                        1.0.9                   pyh29332c3_0             conda-forge
  httpx                                           0.28.1                  pyhd8ed1ab_0             conda-forge
  hyperframe                                      6.1.0                   pyhd8ed1ab_0             conda-forge
  icu                                             75.1                    he0c23c2_0               conda-forge
  idna                                            3.10                    pyhd8ed1ab_1             conda-forge
  importlib-metadata                              8.6.1                   pyha770c72_0             conda-forge
  importlib_resources                             6.5.2                   pyhd8ed1ab_0             conda-forge
  intel-openmp                                    2024.2.1                h57928b3_1083            conda-forge
  ipykernel                                       6.29.5                  pyh4bbf305_0             conda-forge
  ipython                                         9.2.0                   pyhca29cf9_0             conda-forge
  ipython_pygments_lexers                         1.1.1                   pyhd8ed1ab_0             conda-forge
  ipywidgets                                      8.1.7                   pyhd8ed1ab_0             conda-forge
  isoduration                                     20.11.0                 pyhd8ed1ab_1             conda-forge
  jedi                                            0.19.2                  pyhd8ed1ab_1             conda-forge
  jinja2                                          3.1.6                   pyhd8ed1ab_0             conda-forge
  json5                                           0.12.0                  pyhd8ed1ab_0             conda-forge
  jsonpointer                                     3.0.0                   py312h2e8e312_1          conda-forge
  jsonschema                                      4.23.0                  pyhd8ed1ab_1             conda-forge
  jsonschema-specifications                       2025.4.1                pyh29332c3_0             conda-forge
  jsonschema-with-format-nongpl                   4.23.0                  hd8ed1ab_1               conda-forge
  jupyter                                         1.1.1                   pyhd8ed1ab_1             conda-forge
  jupyter-lsp                                     2.2.5                   pyhd8ed1ab_1             conda-forge
  jupyter_client                                  8.6.3                   pyhd8ed1ab_1             conda-forge
  jupyter_console                                 6.6.3                   pyhd8ed1ab_1             conda-forge
  jupyter_core                                    5.7.2                   pyh5737063_1             conda-forge
  jupyter_events                                  0.12.0                  pyh29332c3_0             conda-forge
  jupyter_server                                  2.15.0                  pyhd8ed1ab_0             conda-forge
  jupyter_server_terminals                        0.5.3                   pyhd8ed1ab_1             conda-forge
  jupyterlab                                      4.4.2                   pyhd8ed1ab_0             conda-forge
  jupyterlab_pygments                             0.3.0                   pyhd8ed1ab_2             conda-forge
  jupyterlab_server                               2.27.3                  pyhd8ed1ab_1             conda-forge
  jupyterlab_widgets                              3.0.15                  pyhd8ed1ab_0             conda-forge
  kiwisolver                                      1.4.8                   py312hc790b64_0          conda-forge
  krb5                                            1.21.3                  hdf4eb48_0               conda-forge
  lcms2                                           2.17                    hbcf6048_0               conda-forge
  ld_impl_win-64                                  2.43                    hae1bf67_4               conda-forge
  lerc                                            4.0.0                   h6470a55_1               conda-forge
  libaec                                          1.1.3                   h63175ca_0               conda-forge
  libblas                                         3.9.0                   31_h641d27c_mkl          conda-forge
  libbrotlicommon                                 1.1.0                   h2466b09_2               conda-forge
  libbrotlidec                                    1.1.0                   h2466b09_2               conda-forge
  libbrotlienc                                    1.1.0                   h2466b09_2               conda-forge
  libcblas                                        3.9.0                   31_h5e41251_mkl          conda-forge
  libcurl                                         8.13.0                  h88aaa65_0               conda-forge
  libdeflate                                      1.23                    h76ddb4d_0               conda-forge
  libexpat                                        2.7.0                   he0c23c2_0               conda-forge
  libffi                                          3.4.6                   h537db12_1               conda-forge
  libfreetype                                     2.13.3                  h57928b3_1               conda-forge
  libfreetype6                                    2.13.3                  h0b5ce68_1               conda-forge
  libgcc                                          14.2.0                  h1383e82_2               conda-forge
  libgcc-devel_win-64                             13.3.0                  h5200ebd_102             conda-forge
  libgd                                           2.3.3                   h7208af6_11              conda-forge
  libglib                                         2.84.1                  hbc94333_1               conda-forge
  libgomp                                         14.2.0                  h1383e82_2               conda-forge
  libhwloc                                        2.11.2                  default_ha69328c_1001    conda-forge
  libiconv                                        1.18                    h135ad9c_1               conda-forge
  libintl                                         0.22.5                  h5728263_3               conda-forge
  libjpeg-turbo                                   3.1.0                   h2466b09_0               conda-forge
  liblapack                                       3.9.0                   31_h1aa476e_mkl          conda-forge
  liblapacke                                      3.9.0                   31_h845c4fa_mkl          conda-forge
  liblzma                                         5.8.1                   h2466b09_1               conda-forge
  libpng                                          1.6.47                  h7a4582a_0               conda-forge
  libpython                                       2.3                     h57928b3_4               conda-forge
  libsodium                                       1.0.20                  hc70643c_0               conda-forge
  libsqlite                                       3.49.2                  h67fdade_0               conda-forge
  libssh2                                         1.11.1                  h9aa295b_0               conda-forge
  libstdcxx                                       14.2.0                  h904f734_2               conda-forge
  libstdcxx-devel_win-64                          13.3.0                  h5200ebd_102             conda-forge
  libtiff                                         4.7.0                   h797046b_4               conda-forge
  libwebp-base                                    1.5.0                   h3b0e114_0               conda-forge
  libwinpthread                                   12.0.0.r4.gg4f2fc60ca   h57928b3_9               conda-forge
  libxcb                                          1.17.0                  h0e4246c_0               conda-forge
  libxml2                                         2.13.8                  h442d1da_0               conda-forge
  libzlib                                         1.3.1                   h2466b09_2               conda-forge
  logical-unification                             0.4.6                   pyhd8ed1ab_0             conda-forge
  m2w64-sysroot_win-64                            12.0.0.r4.gg4f2fc60ca   h7428d3b_9               conda-forge
  markdown-it-py                                  3.0.0                   pyhd8ed1ab_1             conda-forge
  markupsafe                                      3.0.2                   py312h31fea79_1          conda-forge
  matplotlib-base                                 3.10.3                  py312h90004f6_0          conda-forge
  matplotlib-inline                               0.1.7                   pyhd8ed1ab_1             conda-forge
  mdurl                                           0.1.2                   pyhd8ed1ab_1             conda-forge
  mingw-w64-ucrt-x86_64-crt-git                   12.0.0.r4.gg4f2fc60ca   h7428d3b_9               conda-forge
  mingw-w64-ucrt-x86_64-headers-git               12.0.0.r4.gg4f2fc60ca   h7428d3b_9               conda-forge
  mingw-w64-ucrt-x86_64-windows-default-manifest  6.4                     he206cdd_7               conda-forge
  mingw-w64-ucrt-x86_64-winpthreads-git           12.0.0.r4.gg4f2fc60ca   h7428d3b_9               conda-forge
  minikanren                                      1.0.3                   pyhd8ed1ab_1             conda-forge
  mistune                                         3.1.3                   pyh29332c3_0             conda-forge
  mkl                                             2024.2.2                h66d3029_15              conda-forge
  mkl-devel                                       2024.2.2                h57928b3_15              conda-forge
  mkl-include                                     2024.2.2                h66d3029_15              conda-forge
  mkl-service                                     2.4.2                   py312hb47c4b0_1          conda-forge
  multipledispatch                                0.6.0                   pyhd8ed1ab_1             conda-forge
  munkres                                         1.1.4                   pyh9f0ad1d_0             conda-forge
  nbclient                                        0.10.2                  pyhd8ed1ab_0             conda-forge
  nbconvert-core                                  7.16.6                  pyh29332c3_0             conda-forge
  nbformat                                        5.10.4                  pyhd8ed1ab_1             conda-forge
  nest-asyncio                                    1.6.0                   pyhd8ed1ab_1             conda-forge
  notebook                                        7.4.2                   pyhd8ed1ab_0             conda-forge
  notebook-shim                                   0.2.4                   pyhd8ed1ab_1             conda-forge
  numpy                                           2.2.5                   py312h3150e54_0          conda-forge
  openjpeg                                        2.5.3                   h4d64b90_0               conda-forge
  openssl                                         3.5.0                   ha4e3fda_1               conda-forge
  overrides                                       7.7.0                   pyhd8ed1ab_1             conda-forge
  packaging                                       25.0                    pyh29332c3_1             conda-forge
  pandas                                          2.2.3                   py312h72972c8_3          conda-forge
  pandocfilters                                   1.5.0                   pyhd8ed1ab_0             conda-forge
  pango                                           1.56.3                  h0c53d3b_1               conda-forge
  parso                                           0.8.4                   pyhd8ed1ab_1             conda-forge
  pcre2                                           10.45                   h99c9b8b_0               conda-forge
  pickleshare                                     0.7.5                   pyhd8ed1ab_1004          conda-forge
  pillow                                          11.2.1                  py312h078707f_0          conda-forge
  pip                                             25.1.1                  pyh8b19718_0             conda-forge
  pixman                                          0.46.0                  had0cd8c_0               conda-forge
  pkgutil-resolve-name                            1.3.10                  pyhd8ed1ab_2             conda-forge
  platformdirs                                    4.3.8                   pyhe01879c_0             conda-forge
  prometheus_client                               0.21.1                  pyhd8ed1ab_0             conda-forge
  prompt-toolkit                                  3.0.51                  pyha770c72_0             conda-forge
  prompt_toolkit                                  3.0.51                  hd8ed1ab_0               conda-forge
  psutil                                          7.0.0                   py312h4389bb4_0          conda-forge
  pthread-stubs                                   0.4                     h0e40799_1002            conda-forge
  pure_eval                                       0.2.3                   pyhd8ed1ab_1             conda-forge
  pycparser                                       2.22                    pyh29332c3_1             conda-forge
  pygments                                        2.19.1                  pyhd8ed1ab_0             conda-forge
  pymc                                            5.22.0                  hd8ed1ab_0               conda-forge
  pymc-base                                       5.22.0                  pyhd8ed1ab_0             conda-forge
  pyparsing                                       3.2.3                   pyhd8ed1ab_1             conda-forge
  pysocks                                         1.7.1                   pyh09c184e_7             conda-forge
  pytensor                                        2.30.3                  py312h2962fd8_1          conda-forge
  pytensor-base                                   2.30.3                  np20py312h21a228a_1      conda-forge
  python                                          3.12.10                 h3f84c4b_0_cpython       conda-forge
  python-dateutil                                 2.9.0.post0             pyhff2d567_1             conda-forge
  python-fastjsonschema                           2.21.1                  pyhd8ed1ab_0             conda-forge
  python-graphviz                                 0.20.3                  pyh91182bf_2             conda-forge
  python-json-logger                              2.0.7                   pyhd8ed1ab_0             conda-forge
  python-tzdata                                   2025.2                  pyhd8ed1ab_0             conda-forge
  python_abi                                      3.12                    7_cp312                  conda-forge
  pytz                                            2025.2                  pyhd8ed1ab_0             conda-forge
  pywin32                                         307                     py312h275cf98_3          conda-forge
  pywinpty                                        2.0.15                  py312h275cf98_0          conda-forge
  pyyaml                                          6.0.2                   py312h31fea79_2          conda-forge
  pyzmq                                           26.4.0                  py312hd7027bb_0          conda-forge
  qhull                                           2020.2                  hc790b64_5               conda-forge
  referencing                                     0.36.2                  pyh29332c3_0             conda-forge
  requests                                        2.32.3                  pyhd8ed1ab_1             conda-forge
  rfc3339-validator                               0.1.4                   pyhd8ed1ab_1             conda-forge
  rfc3986-validator                               0.1.1                   pyh9f0ad1d_0             conda-forge
  rich                                            14.0.0                  pyh29332c3_0             conda-forge
  rpds-py                                         0.24.0                  py312hfe1d9c4_0          conda-forge
  scipy                                           1.15.2                  py312h451d5c4_0          conda-forge
  send2trash                                      1.8.3                   pyh5737063_1             conda-forge
  setuptools                                      80.1.0                  pyhff2d567_0             conda-forge
  six                                             1.17.0                  pyhd8ed1ab_0             conda-forge
  sniffio                                         1.3.1                   pyhd8ed1ab_1             conda-forge
  soupsieve                                       2.7                     pyhd8ed1ab_0             conda-forge
  stack_data                                      0.6.3                   pyhd8ed1ab_1             conda-forge
  tbb                                             2021.13.0               h62715c5_1               conda-forge
  terminado                                       0.18.1                  pyh5737063_0             conda-forge
  threadpoolctl                                   3.6.0                   pyhecae5ae_0             conda-forge
  tinycss2                                        1.4.0                   pyhd8ed1ab_0             conda-forge
  tk                                              8.6.13                  h5226925_1               conda-forge
  tomli                                           2.2.1                   pyhd8ed1ab_1             conda-forge
  toolz                                           1.0.0                   pyhd8ed1ab_1             conda-forge
  tornado                                         6.4.2                   py312h4389bb4_0          conda-forge
  traitlets                                       5.14.3                  pyhd8ed1ab_1             conda-forge
  types-python-dateutil                           2.9.0.20241206          pyhd8ed1ab_0             conda-forge
  typing-extensions                               4.13.2                  h0e9735f_0               conda-forge
  typing_extensions                               4.13.2                  pyh29332c3_0             conda-forge
  typing_utils                                    0.1.0                   pyhd8ed1ab_1             conda-forge
  tzdata                                          2025b                   h78e105d_0               conda-forge
  ucrt                                            10.0.22621.0            h57928b3_1               conda-forge
  unicodedata2                                    16.0.0                  py312h4389bb4_0          conda-forge
  uri-template                                    1.3.0                   pyhd8ed1ab_1             conda-forge
  urllib3                                         2.4.0                   pyhd8ed1ab_0             conda-forge
  vc                                              14.3                    h2b53caa_26              conda-forge
  vc14_runtime                                    14.42.34438             hfd919c2_26              conda-forge
  vs2015_runtime                                  14.42.34438             h7142326_26              conda-forge
  wcwidth                                         0.2.13                  pyhd8ed1ab_1             conda-forge
  webcolors                                       24.11.1                 pyhd8ed1ab_0             conda-forge
  webencodings                                    0.5.1                   pyhd8ed1ab_3             conda-forge
  websocket-client                                1.8.0                   pyhd8ed1ab_1             conda-forge
  wheel                                           0.45.1                  pyhd8ed1ab_1             conda-forge
  widgetsnbextension                              4.0.14                  pyhd8ed1ab_0             conda-forge
  win_inet_pton                                   1.1.0                   pyh7428d3b_8             conda-forge
  winpty                                          0.4.3                   4                        conda-forge
  xarray                                          2025.4.0                pyhd8ed1ab_0             conda-forge
  xarray-einstats                                 0.8.0                   pyhd8ed1ab_1             conda-forge
  xorg-libice                                     1.1.2                   h0e40799_0               conda-forge
  xorg-libsm                                      1.2.6                   h0e40799_0               conda-forge
  xorg-libx11                                     1.8.12                  hf48077a_0               conda-forge
  xorg-libxau                                     1.0.12                  h0e40799_0               conda-forge
  xorg-libxdmcp                                   1.1.5                   h0e40799_0               conda-forge
  xorg-libxext                                    1.3.6                   h0e40799_0               conda-forge
  xorg-libxpm                                     3.5.17                  h0e40799_1               conda-forge
  xorg-libxt                                      1.3.1                   h0e40799_0               conda-forge
  yaml                                            0.2.5                   h8ffe710_2               conda-forge
  zeromq                                          4.3.5                   ha9f60a1_7               conda-forge
  zipp                                            3.21.0                  pyhd8ed1ab_1             conda-forge
  zstandard                                       0.23.0                  py312h4389bb4_2          conda-forge
  zstd                                            1.5.7                   hbeecb71_2               conda-forge

@lucianopaz
Copy link
Member

I see the same error on the MKL detection, but then later it succeeds on the OpenBLAS detection

I don’t know, but I’ve seen some libraries add symbolic links from standard libblas, liblapack, and the standard stack library names, pointing to their specific libraries. I’ve seen this with Mac and vecLib.dylib. Maybe it happened as well here? As far as I can tell libblas and the rest are not in the folder you searched, so the linker must have found them in another standard library directory

@maresb
Copy link
Contributor Author

maresb commented Oct 25, 2025

Sorry, my last message was a bit off. To be clear, it looks like libiomp5md.lib has been the only valid name for a long time, but we were instead succeeding on BLAS.

The actual new error seems to be:

Mingw-w64 runtime failure:
32 bit pseudo relocation at 00007FF6E32314BC out of range, targeting 00007FF985A31600, yielding the value 00000002A2800140.

This comes from "Checking Lapack + blas" and "Checking blas alone":

DEBUG (pytensor.link.c.cmodule): Checking Lapack + blas
DEBUG (pytensor.link.c.cmodule): Compiling for 64 bit architecture
DEBUG (pytensor.link.c.cmodule): try_blas_flags of flags: ['-L"C:\\Users\\Ben\\micromamba\\envs\\pytensor-blas-test\\Library\\bin"', '-L"C:\\Users\\Ben\\micromamba\\envs\\pytensor-blas-test"', '-llapack', '-lblas', '-lcblas', '-lm', '-Wl,-rpath,C:\\Users\\Ben\\micromamba\\envs\\pytensor-blas-test\\libs']
failed with error message b'Mingw-w64 runtime failure:\r\n32 bit pseudo relocation at 00007FF6E32314BC out of range, targeting 00007FF985A31600, yielding the value 00000002A2800140.\r\n'
DEBUG (pytensor.link.c.cmodule): Supplied flags '' failed to compile
DEBUG (pytensor.link.c.cmodule): Supplied flags ['-L"C:\\Users\\Ben\\micromamba\\envs\\pytensor-blas-test\\Library\\bin"', '-L"C:\\Users\\Ben\\micromamba\\envs\\pytensor-blas-test"', '-llapack', '-lblas', '-lcblas', '-lm', '-Wl,-rpath,C:\\Users\\Ben\\micromamba\\envs\\pytensor-blas-test\\libs'] failed to compile
DEBUG (pytensor.link.c.cmodule): Checking blas alone
DEBUG (pytensor.link.c.cmodule): Compiling for 64 bit architecture
DEBUG (pytensor.link.c.cmodule): try_blas_flags of flags: ['-L"C:\\Users\\Ben\\micromamba\\envs\\pytensor-blas-test\\Library\\bin"', '-lblas', '-lcblas', '-Wl,-rpath,C:\\Users\\Ben\\micromamba\\envs\\pytensor-blas-test\\libs']
failed with error message b'Mingw-w64 runtime failure:\r\n32 bit pseudo relocation at 00007FF7A52314BC out of range, targeting 00007FF985A31600, yielding the value 00000001E0800140.\r\n'
DEBUG (pytensor.link.c.cmodule): Supplied flags '' failed to compile
DEBUG (pytensor.link.c.cmodule): Supplied flags ['-L"C:\\Users\\Ben\\micromamba\\envs\\pytensor-blas-test\\Library\\bin"', '-lblas', '-lcblas', '-Wl,-rpath,C:\\Users\\Ben\\micromamba\\envs\\pytensor-blas-test\\libs'] failed to compile

@maresb
Copy link
Contributor Author

maresb commented Oct 25, 2025

I opened #1695 as a fresh issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants