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.