https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117712
Max Ivan <mixython at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mixython at gmail dot com --- Comment #5 from Max Ivan <mixython at gmail dot com> --- Hi, I got the same error when compiling mesa package for arm (armv7) devices. For compilation, gcc is used which was compiled from git source with a specific commit setting (694613a7f9adfa9c87e733adc63839c8801f2b5c). Here is the log that might be useful: ``` FAILED: src/gallium/drivers/r600/libr600.a.p/radeon_vce.c.o arm-linux-gnueabihf-gcc -Isrc/gallium/drivers/r600/libr600.a.p -Isrc/gallium/drivers/r600 -I../src/src/gallium/drivers/r600 -Isrc -I../src/src -Isrc/mapi -I../src/src/mapi -Isrc/mesa -I../src/src/mesa -Iinclude -I../src/include -I../src/src/gallium/include -Isrc/gallium/auxiliary -I../src/src/gallium/auxiliary -Isrc/amd/common -I../src/src/amd/common -Isrc/gallium/drivers -I../src/src/gallium/drivers -Isrc/compiler/nir -I../src/src/compiler/nir -Isrc/compiler -I../src/src/compiler -Isrc/util/format -I/data/data/com.termux/files/usr/glibc/include -I/data/data/com.termux/files/usr/glibc/include/libdrm -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -Wall -Winvalid-pch -std=c11 -Os -g '-DPACKAGE_VERSION="24.2.7.termux-glibc-0"' '-DPACKAGE_BUGREPORT="https://gitlab.freedesktop.org/mesa/mesa/-/issues"' -DHAVE_OPENGL=1 -DHAVE_OPENGL_ES_1=1 -DHAVE_OPENGL_ES_2=1 -DHAVE_FREEDRENO -DHAVE_VIRGL -DHAVE_ZINK -DHAVE_R600 -DHAVE_RADEONSI -DHAVE_NOUVEAU -DHAVE_LIMA -DHAVE_PANFROST -DHAVE_SWRAST -DHAVE_FREEDRENO_KGSL -DVIDEO_CODEC_VC1DEC=0 -DVIDEO_CODEC_H264DEC=0 -DVIDEO_CODEC_H264ENC=0 -DVIDEO_CODEC_H265DEC=0 -DVIDEO_CODEC_H265ENC=0 -DVIDEO_CODEC_AV1DEC=1 -DVIDEO_CODEC_AV1ENC=1 -DVIDEO_CODEC_VP9DEC=1 -DHAVE_X11_PLATFORM -DHAVE_WAYLAND_PLATFORM -DHAVE_SURFACELESS_PLATFORM -DHAVE_DRM_PLATFORM -DHAVE_XCB_PLATFORM -DUSE_LIBGLVND=1 -DHAVE_ST_VDPAU -DENABLE_ST_OMX_BELLAGIO=1 -DENABLE_ST_OMX_TIZONIA=0 -DHAVE_VA_SURFACE_ATTRIB_DRM_FORMAT_MODIFIERS -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_DRM -DGLAPI_EXPORT_PROTO_ENTRY_POINTS=0 -DALLOW_KCMP -DMESA_DEBUG=0 -DENABLE_SHADER_CACHE -DHAVE___BUILTIN_BSWAP32 -DHAVE___BUILTIN_BSWAP64 -DHAVE___BUILTIN_CLZ -DHAVE___BUILTIN_CLZLL -DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS -DHAVE___BUILTIN_FFSLL -DHAVE___BUILTIN_POPCOUNT -DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_UNREACHABLE -DHAVE___BUILTIN_TYPES_COMPATIBLE_P -DHAVE_FUNC_ATTRIBUTE_CONST -DHAVE_FUNC_ATTRIBUTE_FLATTEN -DHAVE_FUNC_ATTRIBUTE_MALLOC -DHAVE_FUNC_ATTRIBUTE_PURE -DHAVE_FUNC_ATTRIBUTE_UNUSED -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT -DHAVE_FUNC_ATTRIBUTE_WEAK -DHAVE_FUNC_ATTRIBUTE_FORMAT -DHAVE_FUNC_ATTRIBUTE_PACKED -DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL -DHAVE_FUNC_ATTRIBUTE_ALIAS -DHAVE_FUNC_ATTRIBUTE_NORETURN -DHAVE_FUNC_ATTRIBUTE_OPTIMIZE -DHAVE_FUNC_ATTRIBUTE_VISIBILITY -DHAVE_REALLOCARRAY -DHAVE_FMEMOPEN -DUSE_GCC_ATOMIC_BUILTINS -DUSE_ARM_ASM -DMAJOR_IN_SYSMACROS -DHAS_SCHED_H -DHAS_SCHED_GETAFFINITY -DHAVE_LINUX_FUTEX_H -DHAVE_ENDIAN_H -DHAVE_DLFCN_H -DHAVE_SYS_SHM_H -DHAVE_SYS_INOTIFY_H -DHAVE_LINUX_UDMABUF_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_MEMFD_CREATE -DHAVE_RANDOM_R -DHAVE_FLOCK -DHAVE_STRTOK_R -DHAVE_GETRANDOM -DHAVE_POSIX_FALLOCATE -DHAVE_SECURE_GETENV -DHAVE_GNU_QSORT_R -DHAVE_STRUCT_TIMESPEC -DHAVE_PROGRAM_INVOCATION_NAME -DHAVE_ISSIGNALING -DHAVE_POSIX_MEMALIGN -DHAVE_DIRENT_D_TYPE -DHAVE_STRTOD_L -DHAVE_DLADDR -DHAVE_DL_ITERATE_PHDR -DHAVE_ZLIB -DHAVE_ZSTD -DHAVE_COMPRESSION -DHAVE_PTHREAD -DHAVE_PTHREAD_SETAFFINITY -DHAVE_LIBDRM '-DMESA_LLVM_VERSION_STRING="19.1.3"' -DLLVM_IS_SHARED=1 -DLLVM_AVAILABLE=1 -DDRAW_LLVM_AVAILABLE=1 -DAMD_LLVM_AVAILABLE=1 -DGALLIVM_USE_ORCJIT=0 -DUSE_LIBELF -DTHREAD_SANITIZER=0 -DWL_HIDE_DEPRECATED -DHAVE_WL_CREATE_QUEUE_WITH_NAME -DHAVE_DRI -DHAVE_DRI2 -DHAVE_DRI3 -DHAVE_DRI3_MODIFIERS -DHAVE_DRI3_EXPLICIT_SYNC -DHAVE_DRISW_KMS -DHAVE_GALLIUM_EXTRA_HUD=1 -mtls-dialect=gnu2 -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=empty-body -Werror=incompatible-pointer-types -Werror=int-conversion -Wimplicit-fallthrough -Wmisleading-indentation -Wno-missing-field-initializers -Wno-format-truncation -Wno-nonnull-compare -fno-math-errno -fno-trapping-math -fno-common -Wno-unknown-pragmas -Wno-unused-function -Werror=format -Wformat-security -ffunction-sections -fdata-sections -Wno-unused-variable -Wno-unused-but-set-variable -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -march=armv7-a -mfloat-abi=hard -mfpu=neon -fstack-protector-strong -fPIC -pthread -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DHAVE_OPENCL -Wstrict-overflow=0 -MD -MQ src/gallium/drivers/r600/libr600.a.p/radeon_vce.c.o -MF src/gallium/drivers/r600/libr600.a.p/radeon_vce.c.o.d -o src/gallium/drivers/r600/libr600.a.p/radeon_vce.c.o -c ../src/src/gallium/drivers/r600/radeon_vce.c during RTL pass: ce1 ../src/src/gallium/drivers/r600/radeon_vce.c: In function 'rvce_create_encoder': ../src/src/gallium/drivers/r600/radeon_vce.c:462:1: internal compiler error: in expand_fix, at optabs.cc:5936 462 | } | ^ 0x1b3b07e diagnostic_context::diagnostic_impl(rich_location*, diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag (*) [1], diagnostic_t) ???:0 0x1b4bc71 internal_error(char const*, ...) ???:0 0x699a11 fancy_abort(char const*, int, char const*) ???:0 0x91ec50 force_operand(rtx_def*, rtx_def*) ???:0 0x91ea9b force_operand(rtx_def*, rtx_def*) ???:0 0x8f927a copy_to_mode_reg(machine_mode, rtx_def*) ???:0 0xb91d8b maybe_legitimize_operands(insn_code, unsigned int, unsigned int, expand_operand*) ???:0 0xb8f799 maybe_gen_insn(insn_code, unsigned int, expand_operand*) ???:0 0xb916e0 emit_conditional_move(rtx_def*, rtx_comparison, rtx_def*, rtx_def*, machine_mode, int) ???:0 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://github.com/termux-pacman/glibc-packages/issues> for instructions. ``` --- I also tried to simulate the error using sources from this issue on armv8l device, but I get `Segmentation fault` error. ``` ~/test-gcc $ g++ -O2 -ffast-math analysis.cpp.ii during RTL pass: ce1 analysis.cpp.ii: In function 'void compressInterCU_rd5_6(int)': analysis.cpp.ii:7:1: internal compiler error: Segmentation fault 7 | } | ^ Please submit a full bug report, with preprocessed source (by using -freport-bug). See <https://github.com/termux-pacman/glibc-packages/issues> for instructions. ~/test-gcc $ g++ -v Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/data/data/com.termux/files/usr/glibc/lib/gcc/arm-linux-gnueabihf/14.2.1/lto-wrapper Target: arm-linux-gnueabihf Configured with: /home/builder/.termux-build/gcc-libs-glibc/src/configure --host=arm-linux-gnueabihf --build=arm-linux-gnueabihf --target=arm-linux-gnueabihf --prefix=/data/data/com.termux/files/usr/glibc --libdir=/data/data/com.termux/files/usr/glibc/lib --libexecdir=/data/data/com.termux/files/usr/glibc/lib --mandir=/data/data/com.termux/files/usr/glibc/share/man --infodir=/data/data/com.termux/files/usr/glibc/share/info --with-bugurl=https://github.com/termux-pacman/glibc-packages/issues --with-gmp=/data/data/com.termux/files/usr/glibc --with-mpfr=/data/data/com.termux/files/usr/glibc --with-mpc=/data/data/com.termux/files/usr/glibc --enable-clocale=gnu --with-arch=armv7-a --with-float=hard --with-fpu=neon --disable-multilib --disable-bootstrap --disable-nls --enable-default-pie --enable-default-ssp --enable-languages=c,c++,fortran --with-system-zlib --enable-__cxa_atexit --enable-linker-build-id --enable-plugin --enable-libstdcxx-backtrace --with-linker-hash-style=gnu --enable-gnu-indirect-function --disable-werror --disable-checking --enable-host-shared --disable-libssp --disable-libstdcxx-pch LD_FOR_TARGET=/data/data/com.termux/files/usr/glibc/bin/ld Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.2.1 20241119 (694613a7f9adfa9c87e733adc63839c8801f2b5c) (GCC) ```