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

Compilation error with LLVM Flang #609

Open
mmuetzel opened this issue Nov 14, 2024 · 0 comments
Open

Compilation error with LLVM Flang #609

mmuetzel opened this issue Nov 14, 2024 · 0 comments

Comments

@mmuetzel
Copy link
Contributor

MSYS2 updated their LLVM compilers to version 19. I thought I'll try to build ElmerFEM with LLVM Flang again.

Compilation fails with errors like the following:
https://github.com/mmuetzel/elmerfem/actions/runs/11840878380/job/32995797740#step:7:2088

[1223/3114] Building Fortran object fhutiter/src/CMakeFiles/fhuti.dir/huti_cgs.F90.obj
FAILED: fhutiter/src/CMakeFiles/fhuti.dir/huti_cgs.F90.obj fmodules/huti_cgs.mod 
D:\a\_temp\msys64\clang64\bin\flang.exe -ID:\a\elmerfem\elmerfem\fhutiter\src -ID:/a/elmerfem/elmerfem/build -ID:/a/elmerfem/elmerfem/build/fhutiter/src -O3 -module-dirfmodules -ffixed-line-length-72 -c fhutiter/src/CMakeFiles/fhuti.dir/huti_cgs.F90-pp.f90 -o fhutiter/src/CMakeFiles/fhuti.dir/huti_cgs.F90.obj
error: loc("D:/a/elmerfem/elmerfem/fhutiter/src/huti_cgs.F90":755:7): C:/M/B/src/flang-19.1.3.src/lib/Optimizer/CodeGen/TargetRewrite.cpp:501: not yet implemented: passing argument or result on the stack in indirect calls
LLVM ERROR: aborting
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.	Program arguments: D:/a/_temp/msys64/clang64/bin/flang -fc1 -triple x86_64-w64-windows-gnu -emit-obj -I D:\\a\\elmerfem\\elmerfem\\fhutiter\\src -I D:/a/elmerfem/elmerfem/build -I D:/a/elmerfem/elmerfem/build/fhutiter/src -ffixed-line-length=72 -mrelocation-model pic -pic-level 2 -target-cpu x86-64 -fversion-loops-for-stride -module-dir fmodules -resource-dir D:/a/_temp/msys64/clang64/lib/clang/19 -mframe-pointer=none -O3 -o fhutiter/src/CMakeFiles/fhuti.dir/huti_cgs.F90.obj -x f95-cpp-input fhutiter/src/CMakeFiles/fhuti.dir/huti_cgs.F90-pp.f90

That is very likely not an issue in ElmerFEM. It is more likely just a feature that the rather new LLVM Flang doesn't support yet.

I thought I'll leave this here as an issue just to document that.
Feel free to close it if you like.

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

No branches or pull requests

1 participant