Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 928252 - x11-terms/wezterm-20240203.110809 fails to compile: warning: cairo-sys-rs@0.18.0: cairo-tor-scan-converter.c:660:6: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
Summary: x11-terms/wezterm-20240203.110809 fails to compile: warning: cairo-sys-rs@0.1...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mark Wright
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: bundled-libs lto
  Show dependency tree
 
Reported: 2024-03-30 18:25 UTC by Agostino Sarubbo
Modified: 2024-03-31 04:16 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,892.90 KB, text/plain)
2024-03-30 18:25 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-03-30 18:25:23 UTC
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
Comment 1 Agostino Sarubbo gentoo-dev 2024-03-30 18:25:25 UTC
Created attachment 889056 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-03-30 18:25:27 UTC
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]
Comment 3 Eli Schwartz 2024-03-31 03:56:06 UTC
I recommend treecleaning. This is atrocious beyond belief.
Comment 4 Eli Schwartz 2024-03-31 04:16:49 UTC
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