-
Notifications
You must be signed in to change notification settings - Fork 133
BUG: Errors when upgrading to gcc version 15 #1401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
May be related to #1398. How did you install PyTensor? Is there any error message/stacktrace? ChatGPT answer is completely senseless, you would see a compile error in that case. |
Hi @mvds314, please recreate your Conda environment. That will force gcc 14. |
Would still be useful to know if it's the same error or different |
Also what's the warning? |
The error I got was so long, that I coudn't really figure out what the actual error is. Also, I am not using Anaconda, I am using winpython with Python version 3.13 and installed pytensor with pip.
|
Thanks @mvds314 for the additional info! The output shows essentially the same error occurring over and over. If you're lucky you may be able to paste one of those long lines from your output (it should look like the following), and hopefully it executes and shows a more informative error message: "..\msys64\mingw64\bin\g++.EXE" -shared -g -O3 -fno-math-errno -Wno-unused-label -Wno-unused-variable -Wno-write-strings -Wno-c++11-narrowing -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -m64 -DMS_WIN64 -I"..\python\Lib\site-packages\numpy_core\include" -I"..\python\include" -I"..\python\Lib\site-packages\pytensor\link\c\c_code" -L"..\python\libs" -L"..\python" -o "C:\Users\USERNAME\AppData\Local\PyTensor\compiledir_Windows-11-10.0.22631-SP0-Intel64_Family_6_Model_186_Stepping_2_GenuineIntel-3.13.3-64\tmp_oc9l42q\me7fa920728e5d2389ff334307defa22f3d9bd0933d7665ee04ca7b89f0a69b2d.pyd" "C:\Users\USERNAME\AppData\Local\PyTensor\compiledir_Windows-11-10.0.22631-SP0-Intel64_Family_6_Model_186_Stepping_2_GenuineIntel-3.13.3-64\tmp_oc9l42q\mod.cpp" -lopenblas -lgfortran "..\python\python313.dll" My expectation is that this is somehow a duplicate of #1398, but I'm surprised that you're not getting the same |
When I do this, I get a popup window with
|
Reopening because I think we'd need to merge also #1400 to fix this. |
It's merged |
@mvds314 could you please try again with the version we just released? |
I ran the example code again with gcc 15.1 and pytensor 2.31.2. Unfortunately, the issue persists. |
Thanks for getting back to me @mvds314! That's disappointing that the issue persists. Would you be able to repeat the procedure from #1401 (comment) and see if the error message there is the same or different? Thanks! |
Sometimes, I get the message in a popup window, and I don't have to run the g++ command separately.
Then, after a couple of minutes, just before I get a huge error in the terminal I get another one popup which is the same as before
Note the differences between the two messages: |
Try to clear the pytensor cache just in case that's the problem. Run |
Unfortunately, purging the cache does not help. The error remains the same. |
Just to double check, you get a dump core running the example in the first message, in a fresh new conda environment with Are you using regular python interpreter or ipython/jupyter? Can you print |
When I install pytensor with conda it works, that's probably because conda uses gcc 13.3. Problems arise with gcc 15 and higher. I am using winpython with Python version 3.13 and installed pytensor with pip.
|
Also, I checked whether I could find the symbol There are no matches (none in any of the gcc versions 13, 14, 15 which are anywhere on my system). Which is to be expected, because, as I understand it, My conclusion is that, somehow, pytensor starts using this symbol when it compiles stuff with gcc version 15 and above. |
Not sure whether winpython introduces some sort of incompatibility, but it's odd you are seeing that error since we removed any mention of Hence my suspicion about the cache. Can you try to manually delete the contents of Do you see any info on the error message as to what file/line |
I manually cleaned the folder, but the problem remains. Any, within the compiledir, there is a
|
That's the PyTensor C module used to evaluate compiled graphs yes. It's compiled the first time you define a PyTensor function in the default backend |
Do you have any up to date traceback / file it tried to compile that goes in that direction? |
Sure, some up to date stack traces! One frome the terminal:
And the contents of: pytensor_compilation_error_mgsnumrb
|
The message is not showing why it failed to compile at all :( |
I figured it out. A dll called |
Code seems to be from: Thanks @mvds314 for all the help |
Closing this issue, doesn't seem like there's anything for us to do here? |
Uh oh!
There was an error while loading. Please reload this page.
Describe the issue:
I am getting compiler errors when I upgrade from from gcc 14 to 15 (under Windows using the gcc compiler of MSYS2).
I don't understand the details, but according to ChatGpt:
Reproducable code example:
Error message:
PyTensor version information:
2.30.3
Context for the issue:
No response
The text was updated successfully, but these errors were encountered: