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

Issue when compiling OpenFAST with VS Code 2022 and IFX Fortran Compiler #2539

Open
ajmlu opened this issue Nov 28, 2024 · 6 comments · Fixed by #2548
Open

Issue when compiling OpenFAST with VS Code 2022 and IFX Fortran Compiler #2539

ajmlu opened this issue Nov 28, 2024 · 6 comments · Fixed by #2548

Comments

@ajmlu
Copy link

ajmlu commented Nov 28, 2024

Dear all,

I am trying to compile OpenFAST following the documentation provided here: https://openfast.readthedocs.io/en/dev/source/install/install_vs_windows.html. I am using VSCode Community 2022 and the IFX Intel Fortran Compiler (as IFORT as recently be deprecated). However I always facing the same error that I don't manage to solve alone (x64\Release\simclist.obj: not a COFF object, bitcode, archive, import library or resource file
FASTlib : error PRJ0019: A tool returned an error code). I attached below the entire build output.

Do you have any insights on how I can solve this?

Thanks for you help.

Error_compiling_OpenFAST.txt

@andrew-platt
Copy link
Collaborator

Which version of OpenFAST are you trying to compile?

@ajmlu
Copy link
Author

ajmlu commented Dec 5, 2024

The dev branch of OpenFAST 3.5.4

@deslaughter
Copy link
Collaborator

I was able to reproduce the issue on my Windows system, though I'm not sure what's causing it. As a temporary workaround, I was able to get the system to build by opening vs-build/MAPlib/MAP_dll.sln and building that solution first, then building FAST from FAST.sln. Please give this a try and see if it works while we try to come up with a better solution.

@andrew-platt
Copy link
Collaborator

@ajmlu, could you try compiling again with the latest dev branch?

@ajmlu
Copy link
Author

ajmlu commented Dec 6, 2024

Thanks a lot for your help!

@andrew-platt I just tried to compile again from the latest dev branch and I still get the same error (
Error_compiling_OpenFAST.txt)... Could that be due to an other thing than using IFX?

@deslaughter Thanks for this workaround! Where can I find this file vs-build/MAPlib/MAP_dll.sln? I could not find it anywhere on the Github repository.

Thanks again for your time and support!

@deslaughter
Copy link
Collaborator

@ajmlu I apologize, the MAP_dll.sln that I had was left over from a previous version of OpenFAST. However, I was able to build the full solution with the latest changes to the dev branch. Please try removing the build directory and cleaning the solution before rebuilding. Sometimes Visual Studio will try to reuse files that it thinks haven't changed so it's best to start clean when troubleshooting these issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants