-
Notifications
You must be signed in to change notification settings - Fork 185
Build error with ifx on windows #979
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
This means that the hash test is not built. Other than that, running the build ignoring this error, the build completes. However, there are test failures.
The errors encountered:
|
@R-Goc would you mind testing the following:
I tested with oneAPI25 on Windows and managed to build everything |
Actually still fails with that. The output now:
it seems like a lot of weirdness around msvc libs is happening. |
Builds on release mode |
I have a hack that makes it build in debug modes |
Is to too hacky? or something we could consider to patch the build? |
Which should only happen on debug builds. also
this should be set to use the debug version on builds with debug info. |
This seems to be what I ended up on: if(WIN32)
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreadedDLL$<$<CONFIG:Debug>:Debug>")
target_compile_options(
test_hash_functions
PRIVATE
$<$<COMPILE_LANGUAGE:Fortran>:/libs:dll>
)
if (CMAKE_BUILD_TYPE STREQUAL "Debug" OR "RelWithDebInfo")
target_link_options(test_hash_functions
PRIVATE
/Qoption,link,/NODEFAULTLIB:libcmt
/Qoption,link,/NODEFAULTLIB:msvcrt.lib
/Qoption,link,/NODEFAULTLIB:libifcoremt.lib
)
endif()
endif() |
This is the test output with that:
All three failure overflow the stack |
A top level: |
So it seems like having everything working and building on native windows is very much possible. Still not sure why that c/c++ library weirdness is happening. |
Yes it is possible, I tested also with GNU and the segfaults I saw were comming also from the stack issue on Windows. I'll open a PR on this. |
I tried building with ifx on windows. The way the compiler options are handled, the default language mode is set to fortran 18 (/stand:f18) files in .f90 have a large number of warnings for deprecated constructs. Also there is a large amount of unused variable warnings. Edit: I see the warnings are due to the normal build being a RelWithDebInfo. So the debug flags are used as well.
However the build also fails with and issue with finding c++ standard library symbols.
The text was updated successfully, but these errors were encountered: