Skip to content

firefox fails to build with ICE in src/gl.cc with clang-19  #110374

@stefson

Description

@stefson

from the build log, I think this is the error:

179:48.20   cargo:warning=fatal error: error in backend: Do not know how to scalarize the result of this operator!
179:48.20   cargo:warning=
179:48.21   cargo:warning=PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
179:48.22   cargo:warning=Stack dump:
179:48.33   cargo:warning=0.	Program arguments: /usr/lib/llvm/19/bin/armv7a-unknown-linux-musleabihf-clang++-19 -O2 -ffunction-sections -fdata-sections -fPIC --target=armv7a-unknown-linux-musleabihf -I/var/tmp/portage/www-client/firefox-131.0_rc1/work/firefox_build/dist/stl_wrappers -fvisibility=hidden -fvisibility-inlines-hidden -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -DNDEBUG=1 -DTRIMMED=1 -I/var/tmp/portage/www-client/firefox-131.0_rc1/work/firefox_build/dist/include -I/usr/include/nspr -I/usr/include/nss -I/usr/include/nspr -I/var/tmp/portage/www-client/firefox-131.0_rc1/work/firefox_build/dist/include/nss -I/usr/include/libpng16 -I/usr/include/pixman-1 -DMOZILLA_CLIENT -include /var/tmp/portage/www-client/firefox-131.0_rc1/work/firefox_build/mozilla-config.h -mfloat-abi=hard -fno-rtti -pthread -fno-sized-deallocation -fno-aligned-new -ffunction-sections -fdata-sections -fno-math-errno -fno-exceptions -fPIC -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -fomit-frame-pointer -O2 -fomit-frame-pointer -funwind-tables -Wno-error=tautological-type-limit-compare -Wno-invalid-offsetof -Wno-range-loop-analysis -Wno-deprecated-anon-enum-enum-conversion -Wno-deprecated-enum-enum-conversion -Wno-deprecated-this-capture -Wno-inline-new-delete -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wno-error=atomic-alignment -Wno-error=deprecated-builtins -Wno-psabi -Wno-error=builtin-macro-redefined -Wno-vla-cxx-extension -Wno-unknown-warning-option -fno-strict-aliasing -ffp-contract=off -DMOZILLA_CONFIG_H -I /var/tmp/portage/www-client/firefox-131.0_rc1/work/firefox-131.0/gfx/wr/swgl/../webrender/res -I src -I /var/tmp/portage/www-client/firefox-131.0_rc1/work/firefox_build/armv7a-unknown-linux-musleabihf/release/build/swgl-3e66616cdca95a28/out -std=c++17 -fno-exceptions -fno-rtti -fno-math-errno -UMOZILLA_CONFIG_H -ffast-math -mrecip=none -fno-finite-math-only -D_GLIBCXX_USE_CXX11_ABI=0 -o /var/tmp/portage/www-client/firefox-131.0_rc1/work/firefox_build/armv7a-unknown-linux-musleabihf/release/build/swgl-3e66616cdca95a28/out/2e40c9e35e9506f4-gl.o -c src/gl.cc
179:48.33   cargo:warning=1.	<eof> parser at end of file
179:48.33   cargo:warning=2.	Code generation
179:48.34   cargo:warning=3.	Running pass 'Function Pass Manager' on module 'src/gl.cc'.
179:48.35   cargo:warning=4.	Running pass 'ARM Instruction Selection' on function '@_ZN25cs_blur_ALPHA_TARGET_frag15swgl_drawSpanR8Ev'
179:48.36   cargo:warning=armv7a-unknown-linux-musleabihf-clang++-19: error: clang frontend command failed with exit code 70 (use -v to see invocation)
179:48.36   cargo:warning=clang version 19.1.0
179:48.36   cargo:warning=Target: armv7a-unknown-linux-musleabihf
179:48.37   cargo:warning=Thread model: posix
179:48.37   cargo:warning=InstalledDir: /usr/lib/llvm/19/bin
179:48.38   cargo:warning=Configuration file: /etc/clang/armv7a-unknown-linux-musleabihf-clang++.cfg
179:48.38   cargo:warning=armv7a-unknown-linux-musleabihf-clang++-19: note: diagnostic msg:
179:48.39   cargo:warning=********************
179:48.39   cargo:warning=
179:48.40   cargo:warning=PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
179:48.40   cargo:warning=Preprocessed source(s) and associated run script(s) are located at:
179:48.41   cargo:warning=armv7a-unknown-linux-musleabihf-clang++-19: note: diagnostic msg: /var/tmp/portage/www-client/firefox-131.0_rc1/temp/gl-a0fb08.cpp
179:48.42   cargo:warning=armv7a-unknown-linux-musleabihf-clang++-19: note: diagnostic msg: /var/tmp/portage/www-client/firefox-131.0_rc1/temp/gl-a0fb08.sh
179:48.42   cargo:warning=armv7a-unknown-linux-musleabihf-clang++-19: note: diagnostic msg:
179:48.43   cargo:warning=
179:48.43   cargo:warning=********************
179:48.43   --- stderr

here is the full compressed build log: build.log.gz

and here is the preprocessed sources, and the reproducer: preprocess.tar.gz

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions