You receive this bug because this package does not respect my system's CC (x86_64-pc-linux-gnu-gcc) and calls directly /usr/bin/gcc(or similar) The possible solutions to fix this issue are: 1)Fix the buildsystem, if you can; 2)inherit toolchain-funcs and use tc-export CC 3)inherit toolchain-funcs and use emake CC="$(tc-getCC)" From the build log: gcc -o src/index.o -c -DPACKAGE_VERSION=\"0.29\" -DPACKAGE_STRING=\"ffmpeg2theora-0.29\" -DPACKAGE=\"ffmpeg2theora\" -D_FILE_OFFSET_BITS=64 -march=native -O2 -g0 -pipe -DHAVE_ICONV -I. src/index.c
sounds like a scons limitation, cc'ing maintainers
I think this bug also makes building fail in case of ccache enabled in FEATURES and PORTAGE_TMPDIR moved to non-standard location, see log below: scons -j3 APPEND_CCFLAGS=-O2 -march=core2 -fomit-frame-pointer -ftracer -pipe APPEND_LINKFLAGS=-Wl,-O1 -Wl,--as-needed debug=0 prefix=/usr mandir=PREFIX/share/man libkate=0 scons: Reading SConscript files ... Checking for pkg-config... (cached) yes Checking for ogg >= 1.1... (cached) yes Checking for vorbis... (cached) yes Checking for vorbisenc... (cached) yes Checking for theoraenc >= 1.1.0... (cached) yes Checking for ogg >= 1.1 vorbis vorbisenc theoraenc >= 1.1.0... (cached) yes Checking for libavdevice libavformat libavfilter libavcodec >= 52.30.0 libpostproc libswscale libavutil... (cached) yes Checking for C header file libavformat/framehook.h... no Checking for C header file iconv.h... no scons: done reading SConscript files. scons: Building targets ... gcc -o src/theorautils.o -c -DPACKAGE_VERSION=\"0.29\" -DPACKAGE_STRING=\"ffmpeg2theora-0.29\" -DPACKAGE=\"ffmpeg2theora\" -D_FILE_OFFSET_BITS=64 -O2 -march=core2 -fomit-frame-pointer -ftracer -pipe -I. src/theorautils.c ccache: failed to create /var/tmp/portage/.ccache (No such file or directory) gcc -o src/avinfo.o -c -DPACKAGE_VERSION=\"0.29\" -DPACKAGE_STRING=\"ffmpeg2theora-0.29\" -DPACKAGE=\"ffmpeg2theora\" -D_FILE_OFFSET_BITS=64 -O2 -march=core2 -fomit-frame-pointer -ftracer -pipe -I. src/avinfo.c gcc -o src/iso639.o -c -DPACKAGE_VERSION=\"0.29\" -DPACKAGE_STRING=\"ffmpeg2theora-0.29\" -DPACKAGE=\"ffmpeg2theora\" -D_FILE_OFFSET_BITS=64 -O2 -march=core2 -fomit-frame-pointer -ftracer -pipe -I. src/iso639.c scons: *** [src/theorautils.o] Error 1 ccache: failed to create /var/tmp/portage/.ccache (No such file or directory) scons: *** [src/avinfo.o] Error 1 ccache: failed to create /var/tmp/portage/.ccache (No such file or directory) scons: *** [src/iso639.o] Error 1 scons: building terminated because of errors. With FEATURES=-ccache building succeeds.
Package masked for removal.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dee26cc3c59dbb56429fa768272395516957c815 commit dee26cc3c59dbb56429fa768272395516957c815 Author: David Seifert <soap@gentoo.org> AuthorDate: 2023-03-18 16:43:01 +0000 Commit: David Seifert <soap@gentoo.org> CommitDate: 2023-03-18 16:43:01 +0000 media-video/ffmpeg2theora: treeclean Closes: https://bugs.gentoo.org/469816 Closes: https://bugs.gentoo.org/654486 Closes: https://bugs.gentoo.org/834403 Signed-off-by: David Seifert <soap@gentoo.org> media-video/ffmpeg2theora/Manifest | 1 - .../ffmpeg2theora/ffmpeg2theora-0.30-r1.ebuild | 55 ---------------------- .../files/ffmpeg2theora-0.29-swr.patch | 24 ---------- .../files/ffmpeg2theora-0.29-underlinking.patch | 21 --------- media-video/ffmpeg2theora/metadata.xml | 10 ---- profiles/package.mask | 1 - 6 files changed, 112 deletions(-)