Hi,
I wanted to recompile MFront (new gcc 10.2) but it has compilation errors:
C:/msys64/mingw64/include/c++/10.2.0/system_error:262:5: note: template argument deduction/substitution failed:
C:/msys64/usr/local/tfel-TFEL-3.3.0/mfront/src/SecondBroydenSolver.cxx:182:12: note: cannot convert '"this->updateMaterialPropertiesDependantOnStateVariables();\012"' (type 'const char [60]') to type 'const std::error_code&'
182 | out << "this->updateMaterialPropertiesDependantOnStateVariables();\n"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [mfront/src/CMakeFiles/TFELMFront.dir/build.make:1070: mfront/src/CMakeFiles/TFELMFront.dir/BroydenSolvers.obj] Błąd 1
make[2]: *** [mfront/src/CMakeFiles/TFELMFront.dir/build.make:1083: mfront/src/CMakeFiles/TFELMFront.dir/SecondBroydenSolver.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:3166: mfront/src/CMakeFiles/TFELMFront.dir/all] Error 2
make: *** [Makefile:182: all] Error 2
or
C:/msys64/usr/local/tfel-TFEL-3.3.0/mfront/src/SecondBroydenSolver.cxx:182:9: error: no match for 'operator<<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [60]')
182 | out << "this->updateMaterialPropertiesDependantOnStateVariables();\n"
| ~~~ ^~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | const char [60]
| std::ostream {aka std::basic_ostream<char>}
In file included from C:/msys64/mingw64/include/c++/10.2.0/memory:84,
from C:/msys64/usr/local/tfel-TFEL-3.3.0/mfront/include/MFront/BehaviourDescription.hxx:19,
Best regars
Rafal
Hi Rafal,
Thanks for reporting. I believe that's a duplicate of Ticket #239: https://sourceforge.net/p/tfel/tickets/239/
Would you try to compile the current rliv-3.3 branch ?
Go here : https://github.com/thelfer/tfel/tree/rliv-3.3, then Code then Download ZIP
Regards,
Thomas
Hi,
Now is OK.
I try make msys package (makepkg base o ninja), but I have this error:
Best regards
Rafal
Hi, I find fix in master branch.
Hi @rav-exdin,
I am suprised, it seems fixed in the rliv-3.3 branch, isn't it ?
Best,
Thomas
Hi,
The rliv-3.3 is OK, the bug is from the main version 3.3.
Hi@rav-exdin,
This is a duplicate of : https://sourceforge.net/p/tfel/tickets/228/
However, I am quite surprise that you compile
MFrontinC++-17. Is this your choice or somehow the new default ofgcc-10.2?Best,
Thomas
Last edit: Helfer Thomas 2020-10-27
Hi,
If I add:
I have this error (main 3.3 branch):
Best regards
Rafal
Last edit: Rafał Brzegowy 2020-10-27
Hi Rafal,
I never tried to build the
pythonbindings with mingw as the officialpythonpackage is build withVisual Studio.Currently, the build of the
ExternalMaterialPropertyDescription.cxxis excluded from the build underWIN32in theCMakeLists.txtfile (inbindings/python/tfel. I don't remember if it's on purpose or just a mistake and can't give it a try right now.Would you help and try to change those lines
by
Thanks in advance,
Thomas
Hi,
Now i OK, compilation pass 100%
Great,
I'll fix that next week. !
Does the
pythonmodules work ?I don't know, can I check it quickly somehow?
Hi @rav-exdin,
Sorry, I did not see your reply. The idea would be to do the following:
You probably have to update appropriately your
PATHandPYTHONPATHenvironment variables.Thanks,
Thomas
I made a tfel installation package for mingw64 but I have file conflicts:
The basic version of mfront works (as an installation package): https://github.com/msys2/MINGW-packages/pull/7178
Last edit: Rafał Brzegowy 2020-11-02
I don't understand the first error
For the second, you may want to add the
-DTFEL_APPEND_VERSION=ONoption to the call tocmake. See http://tfel.sourceforge.net/install.htmlLet me know when your pull-request is accepted, so we can advice users !
I try to install new packages (with python support), but I have error. It it seems that install packages have to copy "bin" folder with python3.8 (folder) but in the mingw64/bin there is a file with the same name as this folder and i guess that is doing a conflict.
The base Mfront is aledy acceptet, now I want to add python support.
I am not an user of the mingw64 package manager. Do you have any idea where other pacakges install their python modules ?
See this (at the bottom of the page):
https://packages.msys2.org/package/mingw-w64-x86_64-python?repo=mingw64
Ok, so it seems that the
pythonmodule shall be installed inlibrather than inbin(formingw). Could you try to modify thepython_lib_module(code below) incmake/module/tfel.cmakeand changebintolib(at two places) ?Now I have python3.8 in bin and lib folder, in bin are .py files but in lib folder .pyd files.
Could you also modify the
tfel_python_script_basefunction in the same file ?Now instalation is OK, for:
$ python -c "import mfront"I have:
Is the
PYTHONPATHvariable set correctly ?I think it's set up correctly because the python command calls the python console
I am surprised by the command:
Last edit: Rafał Brzegowy 2020-11-02
I seems quite ok for me. The idea was to be able to install two versions of
TFELat the same location.So the
pythonbindings are working ? Great !