-
Notifications
You must be signed in to change notification settings - Fork 62
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
MFEM compiles with no errors standalone but pip install mfem crashes #165
Comments
Hi @tbridel. Thank you for reporting this error. TransferMap is a new feature in MFEM 4.5, and a new version of wrapper is still in-progress. What is happening is that since CreateTransferMap returns an object as value, not as a pointer, SWIG is trying to so something smart, which is SwigValueWrapper. it seems it is relating to a move constructor, which I thought @pazner worked out a few days ago (mfem/mfem#3402). I was hoping this change was sufficient to avoid an error. But, there may be something else going on Mac. |
Strange, it works for me, running:
In particular, the problematic line is new mfem::TransferMap(static_cast< const mfem::TransferMap& >(result)) but in the version of new mfem::TransferMap(result) (the Any idea why there would be a difference in the generated code? (I tried with SWIG 4.1.0 and it works for me too) |
Hi @pazner and @sshiraiwa ! Thank you for your answers. @pazner Are you using llvm compilers or GNU ? Because indeed I only see that possible difference 🤔 And also the fact that you updated your Mac OS which I haven't done yet 🤔 |
I tried with the latest
|
Ah ! @pazner my version of the SWIG python wrapper was not aligned with my SWIG install -- I had swig v4.1.1 but the python wrapper was at 4.0.2. Ok so on branch |
Hi @tbridel I am glad things are okay now. SWIG had an issue with move constructor and apparently it was fixed rather recently (swig/swig#1044). Thank you for the patch. If possible, can you also make PR about not using |
Hello @sshiraiwa Sure, give me a moment, I'll post a PR as soon as time permits ! |
Good evening everyone and @sshiraiwa !
I'm opening this issue because I can compile MFEM without any issue, but I've had a really hard time with pymfem recently.
My config is:
With this config, MFEM (pointing to branch master, d84884d13) installs without any issue as the following log proves :
However, I cannot, whatever I try, install PyMFEM ... 😭😭😭
I tried:
both fail because of a bunch of errors like this one:
These start happening during the
calling ... /opt/homebrew/opt/[email protected]/bin/python3.10 setup.py build_ext --inplace
step of the building process - see attached log for more info.pymfem.log
Do you have any idea what could be going on here ? I feel like, MFEM v4.5 installing without any issues at all, the python wrapper should also get there, shouldn't it ?
Thank you very much for your help !!
The text was updated successfully, but these errors were encountered: