[Bug target/111677] [12/13/14 Regression] darktable build on aarch64 fails with unrecognizable insn due to -fstack-protector changes
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111677 --- Comment #19 from Gianfranco --- looks like branch 14 is not FTBFS.
[Bug target/111677] [12/13/14 Regression] darktable build on aarch64 fails with unrecognizable insn due to -fstack-protector changes
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111677 --- Comment #18 from Gianfranco --- Created attachment 57159 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57159=edit unreduced testcase // works: /usr/lib/gcc-snapshot/bin/gcc -O3 -fstack-protector-strong -fopenmp -ffast-math -fexpensive-optimizations foo.c -Wno-int-conversion -Wno-implicit-int -c // /usr/lib/gcc-snapshot/bin/gcc -v //Using built-in specs. //COLLECT_GCC=/usr/lib/gcc-snapshot/bin/gcc //COLLECT_LTO_WRAPPER=/usr/lib/gcc-snapshot/libexec/gcc/aarch64-linux-gnu/14/lto-wrapper //OFFLOAD_TARGET_NAMES=nvptx-none //OFFLOAD_TARGET_DEFAULT=1 //Target: aarch64-linux-gnu //Configured with: ../src/configure -v --with-pkgversion='Debian 20240117-1' --with-bugurl=file:///usr/share/doc/gcc-snapshot/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr/lib/gcc-snapshot --with-gcc-major-version-only --program-prefix= --enable-shared --enable-linker-build-id --disable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-offload-targets=nvptx-none=/build/reproducible-path/gcc-snapshot-20240117/debian/tmp-nvptx/usr/lib/gcc-snapshot --enable-offload-defaulted --without-cuda-driver --enable-checking=yes,extra,rtl --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=4 //Thread model: posix //Supported LTO compression algorithms: zlib zstd //gcc version 14.0.1 20240117 (experimental) [master r14-8187-gb00be6f1576] (Debian 20240117-1) // fails: gcc -O3 -fstack-protector-strong -fopenmp -ffast-math -fexpensive-optimizations foo.c -Wno-int-conversion -Wno-implicit-int -c // gcc -v // Using built-in specs. //COLLECT_GCC=gcc //COLLECT_LTO_WRAPPER=/usr/libexec/gcc/aarch64-linux-gnu/13/lto-wrapper //OFFLOAD_TARGET_NAMES=nvptx-none //OFFLOAD_TARGET_DEFAULT=1 //Target: aarch64-linux-gnu //Configured with: ../src/configure -v --with-pkgversion='Debian 13.2.0-9' --with-bugurl=file:///usr/share/doc/gcc-13/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-13 --program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/libexec --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-offload-targets=nvptx-none=/build/reproducible-path/gcc-13-13.2.0/debian/tmp-nvptx/usr --enable-offload-defaulted --without-cuda-driver --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=4 //Thread model: posix //Supported LTO compression algorithms: zlib zstd //gcc version 13.2.0 (Debian 13.2.0-9) //bilateral.c:468:6: warning: GCC does not currently support mixed size types for 'simd' functions // 468 | void dt_bilateral_slice_to_output(const dt_bilateral_t *const b, // | ^~~~ //bilateral.c:420:6: warning: GCC does not currently support mixed size types for 'simd' functions // 420 | void dt_bilateral_slice(const dt_bilateral_t *const b, // | ^~ //bilateral.c: In function 'dt_bilateral_splat.simdclone.1': //bilateral.c:297:1: error: unrecognizable insn: // 297 | } // | ^ //(insn 463 462 464 3 (set (mem/c:TF (plus:DI (reg/f:DI 31 sp) //(const_int 512 [0x200])) [63 S16 A8]) //(reg:TF 54 v22)) -1 // (expr_list:REG_DEAD (reg:TF 54 v22) // // (nil))) //during RTL pass: sched_fusion //bilateral.c:297:1: internal compiler error: in get_attr_type, at config/aarch64/aarch64.md:24655 //0xb1cb33 internal_error(char const*, ...) //???:0 //0xb10093 fancy_abort(char const*, int, char const*) //???:0 //0x77401b _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) //???:0 //0x77404f _fatal_insn_not_found(rtx_def const*, char const*, int, char const*) //???:0 //0x1145723 get_attr_type(rtx_insn*) //???:0 //0x10f1cdf schedule_block(basic_block_def**, void*) //???:0 //0x10c7543 schedule_insns() //???:0 //Please submit a full bug report, with preprocessed source (by using
[Bug c++/112680] New: g++-13 segfault on std::regex_match with c++11 or above -O2 and lto
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112680 Bug ID: 112680 Summary: g++-13 segfault on std::regex_match with c++11 or above -O2 and lto Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: costamagnagianfranco at yahoo dot it Target Milestone: --- Created attachment 56672 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56672=edit reproduce test case This used to work with g++-10 and started to fail with g++-11 g++-12 and g++-13 sh runme.sh Segmentation fault (core dumped) g++-12 main.cpp -std=c++11 -O2 -flto=auto -o main && ./main The main is really simple, load two strings, and call regex function #include #include #include #include int main() { std::ifstream t("file.txt"); std::stringstream file; file << t.rdbuf(); std::string filestr = file.str(); std::ifstream t2("regex.txt"); std::stringstream filepathregex; filepathregex << t2.rdbuf(); std::string regexstr = filepathregex.str(); const std::regex regex(regexstr); std::regex_match(filestr.begin(), filestr.end(), regex); } I attached the tarball with the files to reproduce the issue. The content triggering the issue was originated by the testsuite dump of zim-tools https://launchpad.net/ubuntu/+source/zim-tools/3.2.0-1build1
[Bug target/111677] [12/13/14 Regression] darktable build on aarch64 fails with unrecognizable insn due to -fstack-protector changes
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111677 --- Comment #14 from Gianfranco --- Hello, any news for this issue?
[Bug target/111677] [12/13/14 Regression] darktable build on aarch64 fails with unrecognizable insn due to -fstack-protector changes
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111677 --- Comment #10 from Gianfranco --- $ gcc -O3 -fstack-protector-strong -fopenmp -ffast-math -fexpensive-optimizations testcase.i -c This is the minimal cmdline to trigger the issue I could find. cat testcase.i typedef struct { int width } dt_bilateral_t; typedef dt_aligned_pixel_t[4]; #pragma omp declare simd void dt_bilateral_splat(dt_bilateral_t *b) { int oy = b; float *buf; long offsets[8]; for (int slice; slice < b; slice++) { for (int i; i < b->width; i++) { dt_aligned_pixel_t contrib; for (int k = 0; k < 4; k++) buf[offsets[k]] += contrib[k]; } float *dest, *src = oy; for (int i = 0; i < oy; i++) dest[i] += src[i]; } } testcase.i:3:1: warning: no semicolon at end of struct or union 3 | } dt_bilateral_t; | ^ testcase.i:4:9: warning: type defaults to 'int' in declaration of 'dt_aligned_pixel_t' [-Wimplicit-int] 4 | typedef dt_aligned_pixel_t[4]; | ^~ testcase.i: In function 'dt_bilateral_splat': testcase.i:7:12: warning: initialization of 'int' from 'dt_bilateral_t *' makes integer from pointer without a cast [-Wint-conversion] 7 | int oy = b; |^ testcase.i:10:25: warning: comparison between pointer and integer 10 | for (int slice; slice < b; slice++) { | ^ testcase.i:16:25: warning: initialization of 'float *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 16 | float *dest, *src = oy; | ^~ testcase.i: In function 'dt_bilateral_splat.simdclone.3': testcase.i:20:1: error: unrecognizable insn: 20 | } | ^ (insn 1109 1108 462 62 (set (mem/c:TF (plus:DI (reg/f:DI 31 sp) (const_int 512 [0x200])) [9 S16 A8]) (reg:TF 55 v23)) -1 (expr_list:REG_DEAD (reg:TF 55 v23) (nil))) during RTL pass: sched_fusion testcase.i:20:1: internal compiler error: in get_attr_type, at config/aarch64/aarch64.md:24655 0xb1c083 internal_error(char const*, ...) ???:0 0xb0f58b fancy_abort(char const*, int, char const*) ???:0 0x77453f _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) ???:0 0x774573 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*) ???:0 0x1148503 get_attr_type(rtx_insn*) ???:0 0x10f5a2f schedule_block(basic_block_def**, void*) ???:0 0x10cb843 schedule_insns() ???:0 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions.
[Bug target/111677] [12/13/14 Regression] darktable build on aarch64 fails with unrecognizable insn due to -fstack-protector changes
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111677 --- Comment #9 from Gianfranco --- /usr/libexec/gcc/aarch64-linux-gnu/13/cc1 -quiet -imultiarch aarch64-linux-gnu -D _FORTIFY_SOURCE=2 -D NDEBUG -isystem -dumpbase -mbranch-protection=standard -mtune=generic -mlittle-endian -mabi=lp64 -g -g -O2 -O3 -Wformat=1 -Werror=format-security -Wdate-time -Wall -Wformat=1 -Wformat-security -Wshadow -Wtype-limits -Wvla -Wold-style-declaration -Wmaybe-uninitialized -Wno-unknown-pragmas -Wno-error=varargs -Wformat-truncation=0 -Wno-error=address-of-packed-member -std=c99 -fstack-protector-strong -fstack-clash-protection -fopenmp -ffast-math -fno-finite-math-only -fexpensive-optimizations -fPIC -fasynchronous-unwind-tables -o - -frandom-seed=0 -fdump-noaddr -freport-bug testcase.i This reproduces the issue.
[Bug target/111677] [12/13/14 Regression] darktable build on aarch64 fails with unrecognizable insn due to -fstack-protector changes
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111677 --- Comment #8 from Gianfranco --- reduced testcase: typedef struct { int width } dt_bilateral_t; typedef dt_aligned_pixel_t[4]; #pragma omp declare simd void dt_bilateral_splat(dt_bilateral_t *b) { int oy = b; float *buf; long offsets[8]; for (int slice; slice < b; slice++) { for (int i; i < b->width; i++) { dt_aligned_pixel_t contrib; for (int k = 0; k < 4; k++) buf[offsets[k]] += contrib[k]; } float *dest, *src = oy; for (int i = 0; i < oy; i++) dest[i] += src[i]; } } removing openmp, fstack-protector-strong or ffast-math works.
[Bug target/111677] [12/13/14 Regression] darktable build on aarch64 fails with unrecognizable insn due to -fstack-protector changes
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111677 --- Comment #7 from Gianfranco --- I'm reducing it, 8.2%
[Bug target/111677] [12/13/14 Regression] darktable build on aarch64 fails with unrecognizable insn due to -fstack-protector changes
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111677 --- Comment #6 from Gianfranco --- @Andrew, can you please get it from the build log? https://buildd.debian.org/status/fetch.php?pkg=darktable=arm64=4.4.2-1%2Bb1=1696847922=0 there are the === BEGIN GCC DUMP === and === END GCC DUMP === that should contain it, right?
[Bug target/111677] arm64 build fails unrecognizable insn [REGRESSION]
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111677 Gianfranco changed: What|Removed |Added Resolution|MOVED |--- Status|RESOLVED|UNCONFIRMED --- Comment #3 from Gianfranco --- Hello, after syncing gcc-13 with last fixes, the bug still occurs gcc-13 (13.2.0-5) unstable; urgency=medium . * Update to git 20231005 from the gcc-13 branch. - Fix PR tree-optimization/111331, PR tree-optimization/110386, PR target/21 (AArch64), PR tree-optimization/110315, PR target/111411 (AArch64), PR target/111412 (riscv), PR ada/110488, PR c++/111493, PR c++/111485, PR c++/99631, PR c++/111471, PR fortran/37336, PR fortran/111674, PR fortran/92586, PR fortran/68155, PR modula2/111510, PR libstdc++/111050, PR libstdc++/02, PR libstdc++/108046, PR libstdc++/111511, PR c++/111512, PR c++/111357. * Provide symlinks for the shared Modula-2 runtime libraries in the private gcc library directory. Closes: #1052008. * Install the static Modula-2 libraries. * Add autopkg test for Modula-2. * Don't assume that hppa64-linux-gnu has the sys/mman.h header, use the fallback for libgcov. * Update the libquadmath portions of the copyright file. Closes: #1052314. cd /<>/obj-aarch64-linux-gnu/bin/external/LibRaw-cmake && /usr/bin/c++ -DDT_HAVE_SIGNAL_TRACE -DGDK_DISABLE_DEPRECATED -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_24 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_MIN_REQUIRED -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_56 -DGTK_DISABLE_DEPRECATED -DGTK_DISABLE_SINGLE_INCLUDES -DHAVE_CONFIG_H -DHAVE_GAME -DHAVE_GPHOTO2 -DHAVE_GRAPHICSMAGICK -DHAVE_ICU -DHAVE_IMATH -DHAVE_ISO_CODES -DHAVE_KWALLET -DHAVE_LIBEXIV2_WITH_ISOBMFF=1 -DHAVE_LIBHEIF=1 -DHAVE_LIBJXL -DHAVE_LIBRAW=1 -DHAVE_LIBSECRET -DHAVE_MAP -DHAVE_OPENCL -DHAVE_OPENEXR -DHAVE_OPENJPEG -DHAVE_OSMGPSMAP_110_OR_NEWER -DHAVE_OSMGPSMAP_NEWER_THAN_110 -DHAVE_PRINT -DHAVE_SQLITE_324_OR_NEWER -DHAVE_WEBP -DLIBRAW_NODLL -DSQLITE_CORE -DSQLITE_ENABLE_ICU -DUSE_COLORDGTK -DUSE_LUA -DUSE_ZLIB -D_RELEASE -D_XOPEN_SOURCE=700 -I/<>/obj-aarch64-linux-gnu/bin/external/LibRaw-cmake -I/<>/src/external/LibRaw-cmake -I/<>/src -I/<>/src/external/LuaAutoC -I/<>/src/external/LibRaw -isystem /<>/src/external -isystem /<>/src/external/OpenCL -isystem /usr/include/glib-2.0 -isystem /usr/lib/aarch64-linux-gnu/glib-2.0/include -isystem /usr/include/gtk-3.0 -isystem /usr/include/pango-1.0 -isystem /usr/include/harfbuzz -isystem /usr/include/freetype2 -isystem /usr/include/libpng16 -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/fribidi -isystem /usr/include/cairo -isystem /usr/include/pixman-1 -isystem /usr/include/gdk-pixbuf-2.0 -isystem /usr/include/webp -isystem /usr/include/gio-unix-2.0 -isystem /usr/include/cloudproviders -isystem /usr/include/atk-1.0 -isystem /usr/include/at-spi2-atk/2.0 -isystem /usr/include/at-spi-2.0 -isystem /usr/include/dbus-1.0 -isystem /usr/lib/aarch64-linux-gnu/dbus-1.0/include -isystem /usr/include/libxml2 -isystem /usr/include/lensfun -isystem /usr/include/librsvg-2.0 -isystem /usr/include/json-glib-1.0 -isystem /usr/include/openjpeg-2.5 -isystem /usr/include/libsecret-1 -isystem /usr/include/GraphicsMagick -isystem /usr/include/lua5.4 -isystem /usr/include/osmgpsmap-1.0 -isystem /usr/include/libsoup-2.4 -isystem /usr/include/colord-1 -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -O3 -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wformat -Wformat-security -Wshadow -Wtype-limits -Wvla -Wmaybe-uninitialized -Wno-unknown-pragmas -Wno-error=varargs -Wno-format-truncation -Wno-error=address-of-packed-member -fopenmp -mtune=generic -g -O3 -DNDEBUG -O3 -ffast-math -fno-finite-math-only -fexpensive-optimizations -std=c++17 -fPIC -fopenmp -w -MD -MT bin/external/LibRaw-cmake/CMakeFiles/raw_r.dir/__/LibRaw/src/write/apply_profile.cpp.o -MF CMakeFiles/raw_r.dir/__/LibRaw/src/write/apply_profile.cpp.o.d -o CMakeFiles/raw_r.dir/__/LibRaw/src/write/apply_profile.cpp.o -c /<>/src/external/LibRaw/src/write/apply_profile.cpp /<>/src/common/bilateral.c:468:6: warning: GCC does not currently support mixed size types for ‘simd’ functions 468 | void dt_bilateral_slice_to_output(const dt_bilateral_t *const b, | ^~~~ /<>/src/common/bilateral.c:420:6: warning: GCC does not currently support mixed size types for ‘simd’ functions 420 | void dt_bilateral_slice(const dt_bilateral_t *const b, | ^~ /<>/src/common/bilateral.c: In function ‘dt_bilateral_splat.simdclone.1’: /<>/src/common/bilateral.c:297:1: error: unrecognizable insn: 297 | } | ^ (insn 563 562 564 3 (set (mem/c:TF (plus:DI (reg/f:DI 31 sp) (const_int 512 [0x200])) [63
[Bug target/111677] arm64 build fails unrecognizable insn [REGRESSION]
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111677 --- Comment #2 from Gianfranco --- Thanks, Debian syncs the branch fixes from time to time, last time was up to * Update to git 20230913 from the gcc-13 branch. Indeed, I requested to sync again sources. thanks!
[Bug c/111677] New: arm64 build fails unrecognizable insn [REGRESSION]
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111677 Bug ID: 111677 Summary: arm64 build fails unrecognizable insn [REGRESSION] Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: costamagnagianfranco at yahoo dot it Target Milestone: --- Created attachment 56038 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56038=edit build log and dump Hello, according to https://buildd.debian.org/status/fetch.php?pkg=darktable=arm64=4.4.2-1=1692542143=0 The build was fine with gcc-13 13.2.0-2 and fails with 13.2.0-4 So, the regression if this is really a gcc regression might be in the following changes: * Update to git 20230902 from the gcc-13 branch. - Fix PR target/27 (x86), PR middle-end/111017 (x86), PR tree-optimization/111070, PR tree-optimization/111039, PR tree-optimization/111019, PR tree-optimization/110702, PR tree-optimization/09, PR debug/111080, PR target/111010 (x86), PR c++/106652, PR c++/110927, PR c++/109678, PR c++/106310, PR fortran/87477, PR modula2/110779, PR modula2/108119, PR libgcc/110956, PR middle-end/111017, PR libstdc++/110860, PR libstdc++/110990, PR libstdc++/110970, PR libstdc++/110974, PR libstdc++/110968, PR target/110484 (loong64), PR tree-optimization/110914, PR tree-optimization/111015, PR target/109725 (riscv), PR c++/109751, PR c++/92407. . [ Aurelien Jarno ] * Fix PR target/110066 (RISCV), taken from the trunk. . [ Matthias Klose ] * Remove test protocols in clean target. Addresses: #1044154. * Disable Ada, Go, D, Modula-2 frontends on loong64. . [ Nicolas Boulenguez ] * Ada: deprecate the gnatgcc symbolic link. * Ada: move README.gnat to debian/ada/. * Ada: remove the obsolete acats-killer script. * Ada: let gnat-BV provide a versioned virtual package. or * Update to git 20230913 from the gcc-13 branch. - Fix PR target/96762 (PPC), PR target/111340 (x86), PR target/111306 (x86), PR target/111335 (x86), PR modula2/111330. - Address stack protector and stack clash protection weaknesses on AArch64. CVE-2023-4039. . [ Matthias Klose ] * Fix PR fortran/88552, taken from the trunk. LP: #1842164. . [ Aurelien Jarno ] * Update libasan8 symbols for riscv64. I'm attaching the gcc dump report