https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: x11-terms/wezterm-20240203.110809 fails to compile. Discovered on: amd64 (internal ref: lto_tinderbox) System: LTO-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#LTO) Info about the issue: https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Created attachment 889056 [details] build.log build log and emerge --info
Error(s) that match a know pattern in addition to what has been reported in the summary: cargo:warning=ToolExecError: Command "x86_64-pc-linux-gnu-gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-O2" "-march=x86-64" "-pipe" "-pipe" "-frecord-gcc-switches" "-fno-diagnostics-color" "-fmessage-length=0" "-Werror=odr" "-Werror=lto-type-mismatch" "-Werror=strict-aliasing" "-I" "cairo/src" "-I" "pixman/pixman" "-fno-stack-check" "-Wno-attributes" "-Wno-enum-conversion" "-Wno-incompatible-pointer-types" "-Wno-parentheses-equality" "-Wno-unused-value" "-DCAIRO_NO_MUTEX=1" "-DSIZE_VOID_P=8" "-DHAVE_STDINT_H=1" "-DHAVE_UINT64_T=1" "-o" "/var/tmp/portage/x11-terms/wezterm-20240203.110809/work/wezterm-20240203-110809-5046fc22/target/debug/build/cairo-sys-rs-5429c690abdb5911/out/cairo/src/cairo-tor-scan-converter.o" "-c" "cairo/src/cairo-tor-scan-converter.c" with args "x86_64-pc-linux-gnu-gcc" did not execute successfully (status code exit status: 1).running: "x86_64-pc-linux-gnu-gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-O2" "-march=x86-64" "-pipe" "-pipe" "-frecord-gcc-switches" "-fno-diagnostics-color" "-fmessage-length=0" "-Werror=odr" "-Werror=lto-type-mismatch" "-Werror=strict-aliasing" "-I" "cairo/src" "-I" "pixman/pixman" "-fno-stack-check" "-Wno-attributes" "-Wno-enum-conversion" "-Wno-incompatible-pointer-types" "-Wno-parentheses-equality" "-Wno-unused-value" "-DCAIRO_NO_MUTEX=1" "-DSIZE_VOID_P=8" "-DHAVE_STDINT_H=1" "-DHAVE_UINT64_T=1" "-o" "/var/tmp/portage/x11-terms/wezterm-20240203.110809/work/wezterm-20240203-110809-5046fc22/target/debug/build/cairo-sys-rs-5429c690abdb5911/out/cairo/util/cairo-missing/getline.o" "-c" "cairo/util/cairo-missing/getline.c" cargo:warning=ToolExecError: Command "x86_64-pc-linux-gnu-gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-O2" "-march=x86-64" "-pipe" "-pipe" "-frecord-gcc-switches" "-fno-diagnostics-color" "-fmessage-length=0" "-Werror=odr" "-Werror=lto-type-mismatch" "-Werror=strict-aliasing" "-I" "cairo/src" "-I" "pixman/pixman" "-fno-stack-check" "-Wno-attributes" "-Wno-enum-conversion" "-Wno-incompatible-pointer-types" "-Wno-parentheses-equality" "-Wno-unused-value" "-DCAIRO_NO_MUTEX=1" "-DSIZE_VOID_P=8" "-DHAVE_STDINT_H=1" "-DHAVE_UINT64_T=1" "-o" "/var/tmp/portage/x11-terms/wezterm-20240203.110809/work/wezterm-20240203-110809-5046fc22/target/debug/build/cairo-sys-rs-5429c690abdb5911/out/cairo/src/cairo-tor22-scan-converter.o" "-c" "cairo/src/cairo-tor22-scan-converter.c" with args "x86_64-pc-linux-gnu-gcc" did not execute successfully (status code exit status: 1).running: "x86_64-pc-linux-gnu-gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-O2" "-march=x86-64" "-pipe" "-pipe" "-frecord-gcc-switches" "-fno-diagnostics-color" "-fmessage-length=0" "-Werror=odr" "-Werror=lto-type-mismatch" "-Werror=strict-aliasing" "-I" "cairo/src" "-I" "pixman/pixman" "-fno-stack-check" "-Wno-attributes" "-Wno-enum-conversion" "-Wno-incompatible-pointer-types" "-Wno-parentheses-equality" "-Wno-unused-value" "-DCAIRO_NO_MUTEX=1" "-DSIZE_VOID_P=8" "-DHAVE_STDINT_H=1" "-DHAVE_UINT64_T=1" "-o" "/var/tmp/portage/x11-terms/wezterm-20240203.110809/work/wezterm-20240203-110809-5046fc22/target/debug/build/cairo-sys-rs-5429c690abdb5911/out/cairo/src/cairo-type3-glyph-surface.o" "-c" "cairo/src/cairo-type3-glyph-surface.c" warning: cairo-sys-rs@0.18.0: ToolExecError: Command "x86_64-pc-linux-gnu-gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-O2" "-march=x86-64" "-pipe" "-pipe" "-frecord-gcc-switches" "-fno-diagnostics-color" "-fmessage-length=0" "-Werror=odr" "-Werror=lto-type-mismatch" "-Werror=strict-aliasing" "-I" "cairo/src" "-I" "pixman/pixman" "-fno-stack-check" "-Wno-attributes" "-Wno-enum-conversion" "-Wno-incompatible-pointer-types" "-Wno-parentheses-equality" "-Wno-unused-value" "-DCAIRO_NO_MUTEX=1" "-DSIZE_VOID_P=8" "-DHAVE_STDINT_H=1" "-DHAVE_UINT64_T=1" "-o" "/var/tmp/portage/x11-terms/wezterm-20240203.110809/work/wezterm-20240203-110809-5046fc22/target/debug/build/cairo-sys-rs-5429c690abdb5911/out/cairo/src/cairo-tor-scan-converter.o" "-c" "cairo/src/cairo-tor-scan-converter.c" with args "x86_64-pc-linux-gnu-gcc" did not execute successfully (status code exit status: 1).running: "x86_64-pc-linux-gnu-gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-O2" "-march=x86-64" "-pipe" "-pipe" "-frecord-gcc-switches" "-fno-diagnostics-color" "-fmessage-length=0" "-Werror=odr" "-Werror=lto-type-mismatch" "-Werror=strict-aliasing" "-I" "cairo/src" "-I" "pixman/pixman" "-fno-stack-check" "-Wno-attributes" "-Wno-enum-conversion" "-Wno-incompatible-pointer-types" "-Wno-parentheses-equality" "-Wno-unused-value" "-DCAIRO_NO_MUTEX=1" "-DSIZE_VOID_P=8" "-DHAVE_STDINT_H=1" "-DHAVE_UINT64_T=1" "-o" "/var/tmp/portage/x11-terms/wezterm-20240203.110809/work/wezterm-20240203-110809-5046fc22/target/debug/build/cairo-sys-rs-5429c690abdb5911/out/cairo/util/cairo-missing/getline.o" "-c" "cairo/util/cairo-missing/getline.c" warning: cairo-sys-rs@0.18.0: ToolExecError: Command "x86_64-pc-linux-gnu-gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-O2" "-march=x86-64" "-pipe" "-pipe" "-frecord-gcc-switches" "-fno-diagnostics-color" "-fmessage-length=0" "-Werror=odr" "-Werror=lto-type-mismatch" "-Werror=strict-aliasing" "-I" "cairo/src" "-I" "pixman/pixman" "-fno-stack-check" "-Wno-attributes" "-Wno-enum-conversion" "-Wno-incompatible-pointer-types" "-Wno-parentheses-equality" "-Wno-unused-value" "-DCAIRO_NO_MUTEX=1" "-DSIZE_VOID_P=8" "-DHAVE_STDINT_H=1" "-DHAVE_UINT64_T=1" "-o" "/var/tmp/portage/x11-terms/wezterm-20240203.110809/work/wezterm-20240203-110809-5046fc22/target/debug/build/cairo-sys-rs-5429c690abdb5911/out/cairo/src/cairo-tor22-scan-converter.o" "-c" "cairo/src/cairo-tor22-scan-converter.c" with args "x86_64-pc-linux-gnu-gcc" did not execute successfully (status code exit status: 1).running: "x86_64-pc-linux-gnu-gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-O2" "-march=x86-64" "-pipe" "-pipe" "-frecord-gcc-switches" "-fno-diagnostics-color" "-fmessage-length=0" "-Werror=odr" "-Werror=lto-type-mismatch" "-Werror=strict-aliasing" "-I" "cairo/src" "-I" "pixman/pixman" "-fno-stack-check" "-Wno-attributes" "-Wno-enum-conversion" "-Wno-incompatible-pointer-types" "-Wno-parentheses-equality" "-Wno-unused-value" "-DCAIRO_NO_MUTEX=1" "-DSIZE_VOID_P=8" "-DHAVE_STDINT_H=1" "-DHAVE_UINT64_T=1" "-o" "/var/tmp/portage/x11-terms/wezterm-20240203.110809/work/wezterm-20240203-110809-5046fc22/target/debug/build/cairo-sys-rs-5429c690abdb5911/out/cairo/src/cairo-type3-glyph-surface.o" "-c" "cairo/src/cairo-type3-glyph-surface.c" warning: cairo-sys-rs@0.18.0: cairo/src/cairo-tor-scan-converter.c:660:6: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
I recommend treecleaning. This is atrocious beyond belief.
cc'ing QA for their opinion on whether this is suitable software for ::gentoo. Based on the upstream commit message I have my doubts that it is viable to come to an agreement with them on suitably packaging the software, but I could be surprised. There's more stuff here too, by the way. e.g. freetype, harfbuzz, fontconfig: "needed for consistency with macos" https://github.com/wez/wezterm/commit/27cb18f8aeb4074fe76ab14d263754882a1e7c44