<scratch space>:3:1: note: expanded from here < X11 .rules> ^~~~~~~~~~~~~ 1 warning and 1 error generated. imake: Exit code 1. Stop. * ERROR: media-gfx/transfig-3.2.5e-r1::gentoo failed (configure phase): ------------------------------------------------------------------- This is an stable amd64 chroot image at a tinderbox (==build bot) name: 17.1_desktop_plasma-j4_stable-20221121-030004 ------------------------------------------------------------------- GNUMAKEFLAGS="$GNUMAKEFLAGS --jobserver-style=pipe" CC=clang CXX=clang++ gcc-config -l: [1] x86_64-pc-linux-gnu-11.3.0 * clang/llvm (if any): clang version 15.0.3 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/15/bin Configuration file: /etc/clang/clang.cfg /usr/lib/llvm/15 15.0.3 Python 3.10.8 Available Rust versions: [1] rust-bin-1.65.0 * php cli (if any): HEAD of ::gentoo commit 18e7305c2860cf124aa012cb50a168bc971ee7fa Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Mon Nov 21 08:46:51 2022 +0000 2022-11-21 08:46:51 UTC emerge -qpvO media-gfx/transfig [ebuild N ] media-gfx/transfig-3.2.5e-r1
Created attachment 835423 [details] emerge-info.txt
Created attachment 835425 [details] emerge-history.txt
Created attachment 835427 [details] environment
Created attachment 835429 [details] etc.clang.tar.bz2
Created attachment 835431 [details] etc.portage.tar.bz2
Created attachment 835433 [details] media-gfx:transfig-3.2.5e-r1:20221121-092507.log
Created attachment 835435 [details] temp.tar.bz2
This is caused by the bashrc hook, it's trying to use gcc -E for imake's traditional cpp (aka never clang, gcc is in BDEPEND), but there's a wrapper named "${CHOST}-gcc" that's actually clang which doesn't support this. for alias in ${CHOST}-gcc gcc ${CHOST}-clang; do ln -s "${T}"/clang-wrappers/clang "${T}"/clang-wrappers/${alias} || exit 1; chmod +x "${T}"/clang-wrappers/${alias}; done; Imagine this will cause about every imake packages to fail.
I'm minded to just skip imake for these given how fragile it is.
Fedora killed imake completely long time ago https://src.fedoraproject.org/rpms/transfig/blob/rawhide/f/transfig.spec But they user a newer version too