Issue |
120201
|
Summary |
SPEC CPU2017 521.wrf_r and 621wrf_s build error (flang 19.1.5 and 20.0 Segmentation fault)
|
Labels |
flang
|
Assignees |
|
Reporter |
edisonchan
|
Encountered a segmentation fault error when trying to compile SPEC CPU2017 521.wrf_r adn 621.wrf_s for aarch64-android-linux-gnu target using flang-new.
```
default=base: # flags for all base
OPTIMIZE = -Ofast -march=armv8-a -static
EXTRA_FLAGS = -Wno-implicit-int -Wno-deprecated-ofast -Wno-deprecated-non-prototype # for flang-new 19.1+
EXTRA_CFLAGS = -Wno-implicit-int -Wno-deprecated-ofast -Wno-deprecated-non-prototype # for flang-new 19.1+
intrate,intspeed=base: # flags for integer base
EXTRA_CFLAGS = -fno-strict-aliasing -fno-unsafe-math-optimizations -fno-finite-math-only -fgnu89-inline -fcommon
fprate,fpspeed=base:
EXTRA_CFLAGS += -fno-strict-aliasing
EXTRA_CXXFLAGS = -fno-finite-math-only
EXTRA_FFLAGS = #-fallow-argument-mismatch
......
521.wrf_r,621.wrf_s: #lang='F,C'
CPORTABILITY = -DSPEC_CASE_FLAG
FPORTABILITY = -fconvert=swap
......
```
Device: vivo iQOO 13
OS: termux proot Ubuntu 24.04.1 LTS aarch64
LLVM: llvm 19.1.5 and LLVM 20.0
```
/home/edison/llvm/bin/flang-new -c -o module_alloc_space_3.fppized.o -I. -I./netcdf/include -I./inc -Ofast -march=armv8-a -static -fconvert=swap module_alloc_space_3.fppized.f90
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0. Program arguments: /home/edison/llvm/bin/flang-new -fc1 -triple aarch64-android-linux-gnu -emit-obj -I . -I ./netcdf/include -I ./inc -mrelocation-model pic -pic-level 2 -pic-is-pie -ffast-math -target-cpu generic -target-feature +outline-atomics -target-feature +v>
flang-new: error: unable to execute command: Segmentation fault
flang-new: error: flang frontend command failed due to signal (use -v to see invocation)
flang-new version 19.1.5 (https://github.com/llvm/llvm-project.git ab4b5a2db582958af1ee308a790cfdb42bd24720)
Target: aarch64-android-linux-gnu
Thread model: posix
InstalledDir: /home/edison/llvm/bin
flang-new: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
flang-new: note: diagnostic msg: /tmp/module_alloc_space_3-dac996
flang-new: note: diagnostic msg: /tmp/module_alloc_space_3-dac996.sh
flang-new: note: diagnostic msg:
********************
specmake: *** [/home/edison/cpu2017/benchspec/Makefile.defaults:386: module_alloc_space_3.fppized.o] Error 254
specmake: *** Waiting for unfinished jobs....
/home/edison/llvm/bin/flang-new -c -o module_alloc_space_2.fppized.o -I. -I./netcdf/include -I./inc -Ofast -march=armv8-a -static -fconvert=swap module_alloc_space_2.fppized.f90
```
[diagnostic_msg.zip](https://github.com/user-attachments/files/18162694/diagnostic_msg.zip)
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs