Skip to content
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

Possible incorrect build order when building FORTRAN interface #410

Closed
mvsivaselvan opened this issue Feb 4, 2024 · 5 comments
Closed

Comments

@mvsivaselvan
Copy link

I am building SUNDIALS 7.0.0 with BUILD_FORTRAN_MODULE_INTERFACE=ON.

I am using the Intel oneAPI C (icx) and FORTRAN (ifx) compilers on Windows.

It appears that the target sundials_fnvecmanyvector_mod is attemped to be built before the target sundials_fgeneric_mod although the former depends on the latter. During the attempted build of sundials_fnvecmanyvector_mod, I get the error below indicating that the modules fsundials_nvector_mod and fsundials_context_mod cannot be found. Both should be present if the sundials_fgeneric_mod had been built. I am not sure why this happens, because the CMakeLists.txt for sundials_fnvecmanyvector_mod has the dependency on sundials_fgeneric_mod.

Any suggestions would be much appreciated.


[51/341] Building Fortran object src\nvector\serial\fmod\C...fnvecserial_mod_obj_static.dir\fnvector_serial_mod.f90.obj
FAILED: src/nvector/serial/fmod/CMakeFiles/sundials_fnvecserial_mod_obj_static.dir/fnvector_serial_mod.f90.obj fortran_STATIC/fnvector_serial_mod.mod
C:\PROGRA~2\Intel\oneAPI\compiler\latest\bin\ifx.exe /nologo /fpp -DSUNDIALS_STATIC_DEFINE -D_CRT_SECURE_NO_WARNINGS -IC:\Users\mvs\source\repos\sundials\src\nvector\serial\fmod -IC:\Users\mvs\source\repos\sundials\include -IC:\Users\mvs\source\repos\sundials\build\include -IC:\Users\mvs\source\repos\sundials\src\sundials -IC:\Users\mvs\source\repos\sundials\build\fortran_STATIC /W1 /nologo /fpp /libs:dll /threads /Od /debug:full /dbglibs -module:fortran_STATIC /Fosrc\nvector\serial\fmod\CMakeFiles\sundials_fnvecserial_mod_obj_static.dir\fnvector_serial_mod.f90.obj /Fdsrc\nvector\serial\fmod\CMakeFiles\sundials_fnvecserial_mod_obj_static.dir\ -c src\nvector\serial\fmod\CMakeFiles\sundials_fnvecserial_mod_obj_static.dir\fnvector_serial_mod.f90-pp.f90
C:\Users\mvs\source\repos\sundials\src\nvector\serial\fmod\fnvector_serial_mod.f90(23): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [FSUNDIALS_NVECTOR_MOD]
use fsundials_nvector_mod
-----^
C:\Users\mvs\source\repos\sundials\src\nvector\serial\fmod\fnvector_serial_mod.f90(24): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [FSUNDIALS_CONTEXT_MOD]
use fsundials_context_mod
-----^
C:\Users\mvs\source\repos\sundials\src\nvector\serial\fmod\fnvector_serial_mod.f90(25): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [FSUNDIALS_TYPES_MOD]
use fsundials_types_mod

@balos1
Copy link
Member

balos1 commented Feb 5, 2024

Can you confirm that this is with SUNDIALS v7.0.0 release candidate and not v6.7.0? The main branch is pointing at v6.7.0.

@balos1 balos1 added the triage label Feb 5, 2024
@mvsivaselvan
Copy link
Author

Apologies, I had previously cloned the main branch.

I just cloned the v7.0.0-rc.1 tag and tried to build it. I got the exact same error.

@balos1
Copy link
Member

balos1 commented Feb 15, 2024

What CMake generator are you using?

@mvsivaselvan
Copy link
Author

mvsivaselvan commented Feb 15, 2024 via email

@balos1 balos1 added the bug label Mar 29, 2024
@balos1
Copy link
Member

balos1 commented Jun 19, 2024

This should be fixed by #506.

balos1 added a commit that referenced this issue Jun 19, 2024
@balos1 balos1 closed this as completed Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants