Issue 136535
Summary Flang on Windows AArch64: LLVM ERROR: INIT_TRAMPOLINE operation is only supported on Linux.
Labels flang
Assignees
Reporter hmartinez82
    While building the json-fortran project targeting `aarch64-w64-windows-gnu`:

```
[1/8] C:\msys64\clangarm64\bin\flang.exe -IC:\Dev\Github\MINGW-packages\mingw-w64-json-fortran\src\json-fortran-9.0.2\src -IC:\Dev\Github\MINGW-packages\mingw-w64-json-fortran\src\build-CLANGARM64\include -O3 -module-dir. -ffixed-line-length-72 -c CMakeFiles\jsonfortran.dir\src\json_value_module.F90-pp.f90 -o CMakeFiles\jsonfortran.dir\src\json_value_module.F90.obj
FAILED: CMakeFiles/jsonfortran.dir/src/json_value_module.F90.obj json_value_module.mod
C:\msys64\clangarm64\bin\flang.exe -IC:\Dev\Github\MINGW-packages\mingw-w64-json-fortran\src\json-fortran-9.0.2\src -IC:\Dev\Github\MINGW-packages\mingw-w64-json-fortran\src\build-CLANGARM64\include -O3 -module-dir. -ffixed-line-length-72 -c CMakeFiles\jsonfortran.dir\src\json_value_module.F90-pp.f90 -o CMakeFiles\jsonfortran.dir\src\json_value_module.F90.obj
LLVM ERROR: INIT_TRAMPOLINE operation is only supported on Linux.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.      Program arguments: C:/msys64/clangarm64/bin/flang -fc1 -triple aarch64-w64-windows-gnu -emit-obj -I C:\\Dev\\Github\\MINGW-packages\\mingw-w64-json-fortran\\src\\json-fortran-9.0.2\\src -I C:\\Dev\\Github\\MINGW-packages\\mingw-w64-json-fortran\\src\\build-CLANGARM64\\include -ffixed-line-length=72 -mrelocation-model pic -pic-level 2 -target-cpu generic -target-feature +v8a -target-feature +fp-armv8 -target-feature +neon -fversion-loops-for-stride -module-dir . -resource-dir C:/msys64/clangarm64/lib/clang/20 -mframe-pointer=none -O3 -o CMakeFiles\\jsonfortran.dir\\src\\json_value_module.F90.obj -x f95-cpp-input CMakeFiles\\jsonfortran.dir\\src\\json_value_module.F90-pp.f90
1. Running pass 'Function Pass Manager' on module 'FIRModule'.
2.      Running pass 'AArch64 Instruction Selection' on function '@_QMjson_value_modulePjson_check_all_for_duplicate_keys'
Exception Code: 0xC000001D
#0 0x00007ffda6cf9928 HandleAbort (C:\msys64\clangarm64\bin\libLLVM-20.dll+0xc59928)
#1 0x00007ffe7647ae50 (C:\Windows\System32\ucrtbase.dll+0x7ae50)
#2 0x8e39fffe7647ba5c
flang: error: flang frontend command failed due to signal (use -v to see invocation)
flang version 20.1.3
Target: aarch64-w64-windows-gnu
Thread model: posix
InstalledDir: C:/msys64/clangarm64/bin
flang: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
flang: note: diagnostic msg: C:/msys64/tmp/json_value_module-0fd919
flang: note: diagnostic msg: C:/msys64/tmp/json_value_module-0fd919.sh
flang: note: diagnostic msg:

********************
ninja: build stopped: subcommand failed.
```
Attached are the two files, and also `json_value_module.F90` preprocessed
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to