Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 469816 - media-video/ffmpeg2theora : does not respect CC
Summary: media-video/ffmpeg2theora : does not respect CC
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal QA (vote)
Assignee: media-video herd
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: tc-directly
  Show dependency tree
 
Reported: 2013-05-14 09:26 UTC by Agostino Sarubbo
Modified: 2017-11-03 15:38 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2013-05-14 09:26:54 UTC
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
Comment 1 Alexis Ballier gentoo-dev 2013-08-12 17:08:06 UTC
sounds like a scons limitation, cc'ing maintainers
Comment 2 parafin 2013-12-22 13:31:30 UTC
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.