simde icon indicating copy to clipboard operation
simde copied to clipboard

gcc 13.0.1 with -O2 + -fno-strict-aliasing + aarch64 (arm64) build stucking.

Open junaruga opened this issue 1 year ago • 5 comments

I tried to run the tests with the simde v0.7.4-rc1 on Fedora rawhide (38)'s aarch64 (arm64) build environment. The gcc is 13.0.1 (RPM version: 13.0.1-0.2.fc38). Then the ninja -C build/gcc-O2 -v -j 8 is stucking on the build environment. As I was able to build and pass the tests with the gcc only with the -fno-strict-aliasing, I assume the -O2 flag triggered the stucking. I tried 2 times, and stucking the 2 times.

Here is the log.

+ bash -
=== 1.2. tests on gcc with O2 flag ===
+ BUILD_DIR=build/gcc-O2
+ CC='gcc -fno-strict-aliasing'
+ CXX='g++ -fno-strict-aliasing'
+ CFLAGS=-O2
+ CXXFLAGS=-O2
+ _setup
+ meson setup build/gcc-O2
The Meson build system
Version: 1.0.0
Source dir: /builddir/build/BUILD/simde-9609eb2cf687984277185813fdfe81b8b200377b
Build dir: /builddir/build/BUILD/simde-9609eb2cf687984277185813fdfe81b8b200377b/build/gcc-O2
Build type: native build
Project name: SIMDe
Project version: 0.7.4
C compiler for the host machine: gcc -fno-strict-aliasing (gcc 13.0.1 "gcc (GCC) 13.0.1 20230127 (Red Hat 13.0.1-0)")
C linker for the host machine: gcc -fno-strict-aliasing ld.bfd 2.39-9
C++ compiler for the host machine: g++ -fno-strict-aliasing (gcc 13.0.1 "g++ (GCC) 13.0.1 20230127 (Red Hat 13.0.1-0)")
C++ linker for the host machine: g++ -fno-strict-aliasing ld.bfd 2.39-9
Host machine cpu family: aarch64
Host machine cpu: aarch64
Library m found: YES
Compiler for C supports arguments -fopenmp-simd: YES 
Compiler for C++ supports arguments -fopenmp-simd: YES 
Compiler for C supports arguments -Wpsabi: YES 
Compiler for C++ supports arguments -Wpsabi: YES 
Library m found: YES
Build targets in project: 1534
NOTICE: Future-deprecated features used:
 * 0.64.0: {'copy arg in configure_file'}
Found ninja-1.11.1 at /usr/bin/ninja
+ _build
+ rm -f build.log
+ _time ninja -C build/gcc-O2 -v -j 8

junaruga avatar Feb 13 '23 13:02 junaruga