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

many link errors about missing <file>.f90.obj during sundials build #601

Open
rughar opened this issue Nov 12, 2024 · 1 comment
Open

many link errors about missing <file>.f90.obj during sundials build #601

rughar opened this issue Nov 12, 2024 · 1 comment

Comments

@rughar
Copy link

rughar commented Nov 12, 2024

Current Behavior:

I am building sundials 7.1.1 for c++ and fortran and cant finish install step in Visual Studio due to many link errors. It seems .c.obj files are properly created but .f90.obj are not

Expected Behavior:

I would expect with flag -DBUILD_FORTRAN_MODULE_INTERFACE=on there will be a buildable solution for fortran code of sundials in visual studio

Steps To Reproduce:

  1. Download sundials into \sundials-7.1.1
  2. Create folders \build , \install , \examples
  3. goto \build and run
    cmake -DCMAKE_INSTALL_PREFIX=..\install -DEXAMPLES_INSTALL_PATH=..\examples ..\sundials-7.1.1 -DBUILD_FORTRAN_MODULE_INTERFACE=on
  4. open \build\SUNDIALS.sln in Visual Studio
  5. Try INSTALL step on RelWithDebInfo
  6. See many errors similar to "Error LNK1181 cannot open input file '...\build\src\cvodes\fmod_int64\sundials_fcvodes_mod_obj_static.dir\RelWithDebInfo\fcvodes_mod.f90.obj' sundials_fcvodes_mod_static ...\build\src\cvodes\fmod_int64\LINK 1"

Environment:

  • SUNDIALS version: 7.1.1
  • OS: Windows 10 Enterprise
  • Compiler: Intel(R) Fortran Intel(R) 64 Compiler Classic for applications running on Intel(R) 64, Version 2021.8.0
  • CMake: cmake version 3.24.4
  • Visual Studio 2019

Anything else:

I can see in folder ...\build\src\cvodes\fmod_int64\sundials_fcvodes_mod_obj_static.dir\RelWithDebInfo

there is a file fcvodes_mod.c.obj and no fcvodes_mod.f90.obj If that is a problem, is there a way to fix that?

@balos1
Copy link
Member

balos1 commented Nov 12, 2024

We test with the Intel compilers on Windows with ninja, so that should work now (if that helps as a workaround). I will look into this specific setup (Intel fortran compiler + Visual Studio).

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