-
Notifications
You must be signed in to change notification settings - Fork 21
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
conda: building mystran fails #83
Comments
I've never built MYSTRAN with ninja. Since it builds correctly with make, it looks like the CMake generator for ninja detected two ways to generate the same .mod file. That makes no sense, since there's one and only one .mod file for each module, there shouldn't be more than one recipe for .mod files. There's no module that shares that file name, and I can't see any paths that could overlap in the CMake script making it see the same module twice... and that'd break building on make anyway. I'm not familiar with ninja, but since it seems generator-specific, can't you build with make? We got instructions and everything (see BUILDING.md). I don't know your workflow, but if you must use ninja, I suggest you take it to the CMake forums, because either the ninja generator has a bug or it needs additional/different options (be it in the invocation command or even non-breaking changes to the CMakeLists) to work. You need people that know ninja and can look at the build script to see what CMake is doing wrong. |
Thanks for the fast resopnse! I will try some other option and maybe come back to this issue if there are other build-problems. |
I have some other questions:
|
Tests are built into CI. I believe there are 2-3 and are basic code doesn’t
crash tests. It would be nice to have a larger CI testing process that
probably uses python, but at the first level, you need to setup the CI to
be more flexible.
There are additional tests that are run manually and diff’d more manually.
…On Wed, Jul 24, 2024 at 9:27 AM lorenz ***@***.***> wrote:
I have some other questions:
- Are there some tests to test the build?
- what are the .mod (Binaries/mod) files for? Should they be included
in the package?
—
Reply to this email directly, view it on GitHub
<#83 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAICUWPU4WMI3ZB6U2SP5LLZN7IYTAVCNFSM6AAAAABLLBUHV6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBYGQ2DCMRQGM>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I am running these tests now:
but it fails with:
any ideas? |
I’m pretty sure the missing continuation case is supposed to crash.
Not sure on the other one. Seems like a build issue.
…On Sat, Jul 27, 2024 at 6:04 AM lorenz ***@***.***> wrote:
I am running these tests now:
mystran Build_Test_Cases/statics/bar_tube.bdf
mystran Build_Test_Cases/statics/cquad4_pcomp.bdf
mystran Build_Test_Cases/statics/cshear.bdf
mystran Build_Test_Cases/statics/ctria3_pshell_center.bdf
mystran Build_Test_Cases/statics/missing_continuation.bdf
but it fails with:
(%PREFIX%) %SRC_DIR%>mystran Build_Test_Cases/statics/cquad4_pcomp.bdf
Optional Initialization file:
MYSTRAN.INI
does not exist. Internal defaults will be used instead.
If you want to use the INI file, see the MYSTRAN Installation and Run Manual
MYSTRAN Version 15.2.0 Apr 07 2024 MYSTRAN developed by Dr Bill Case
At line 167 of file C:\bld\mystran_1722095065904\work\Source\MAIN\READ_INPUT_FILE_NAME.f90 (unit = 5, file = 'stdin')
Fortran runtime error: End of file
any ideas?
—
Reply to this email directly, view it on GitHub
<#83 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAICUWMSDYNAHMLWF365RVDZOPAIHAVCNFSM6AAAAABLLBUHV6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJUGE4DOMJVGY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
so far I was succesfully in building mystran for linux64, osx64 and win. Now trying to cross compile for linux-aarch64 and osx-arm. On osx-arm I am running into this issue:
Seems like cross compiling is not really supported. |
As far as I understand |
Are you still using ninja? Mystran has never been built with that, so I’m
not surprised it has issues. I strongly suggest just using CMake. I don’t
think we are familiar enough with ninja to fix it easily.
I setup the CI and got mystran building using CMake very easily. Bruno’s
build script seems very robust to me.
…On Mon, Jul 29, 2024 at 8:05 AM lorenz ***@***.***> wrote:
As far as I understand f2c should be a build-dependency, but as mystran
downloads a version of f2c and does some custom builds of it, it's compiled
for the wrong architecture and therefor failing. Any ideas how to fix this
issue?
—
Reply to this email directly, view it on GitHub
<#83 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAICUWMHCAOF472MEP4DY63ZOZ76TAVCNFSM6AAAAABLLBUHV6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJWGU4DOMJTG4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
no, I changed this to make / mingw32-make. Not using ninja anymore. Btw.: ninja is not a replacement for cmake. So far the builds went fine and packages are available for osx64, linux64 and win [1]. Line 114 in ca3b7ba
[1] https://anaconda.org/conda-forge/mystran/files |
What exactly are you trying to do at the moment? |
@looooo is there any chance you could provide a bit more information regarding the platforms you're trying to compile? We're very much interested in expanding our compilation support if you're interested in helping us do it. |
Sure. Conda is a package-manager for different platforms. Most packages are available for windows, linux-64, linux-aarch64 (arm-linux eg: rapberry-pi's), osx-64 and osx-arm (the new M1...M3 chips). Another feature of the conda-packagemanager are the virtual-environments. So you can have for example two environments with the same packages but different versions. Often this is nice for comparing different dependency-versions. But I am not sure if this is interesting for mystran. Why do I try to package mystran? How are packages build for conda? If you have any questions, please let me know. [1] https://github.com/conda-forge/mystran-feedstock/blob/main/recipe/meta.yaml |
I build Mystran without using f2c. You may try that. f2c is for old Fortran compiler. Modern gFortran doesn't need it. |
@ceanwang I am not sure how to build without f2c. Can you give some more information? |
You can try my CMakeLists.txt |
Have you solved the problem to build with ninja? I tried, got the same error. |
OK. I updated my CMakeLists.txt. Now it can be build with Ninja under Windows 10's Ubuntu sub system. |
I am running into this issue:
using this commands to build mystran:
not sure if this is a ninja error or if this is related to mystran.
The text was updated successfully, but these errors were encountered: