>>> Existing ${T}/environment for 'x264-encoder-0.0.20151011' will be >>> sourced. Run 'clean' to start with a fresh environment. >>> Checking x264-snapshot-20151011-2245.tar.bz2's mtime... >>> WORKDIR is up-to-date, keeping... >>> It appears that 'setup' has already executed for 'x264-encoder-0.0.20151011'; skipping. >>> Remove '/var/tmp/portage/media-video/x264-encoder-0.0.20151011/.setuped' to force setup. >>> It appears that 'unpack' has already executed for 'x264-encoder-0.0.20151011'; skipping. >>> Remove '/var/tmp/portage/media-video/x264-encoder-0.0.20151011/.unpacked' to force unpack. >>> It appears that 'prepare' has already executed for 'x264-encoder-0.0.20151011'; skipping. >>> Remove '/var/tmp/portage/media-video/x264-encoder-0.0.20151011/.prepared' to force prepare. >>> Configuring source in /var/tmp/portage/media-video/x264-encoder-0.0.20151011/work/x264-snapshot-20151011-2245 ... + test x--prefix=/usr = x-h -o x--prefix=/usr = x--help + rm -f x264_config.h config.h config.mak config.log x264.pc x264.def 'conftest*' +++ dirname ./configure ++ relative_path . ++ local base=/var/tmp/portage/media-video/x264-encoder-0.0.20151011/work/x264-snapshot-20151011-2245 +++ cd . +++ printf %s/. /var/tmp/portage/media-video/x264-encoder-0.0.20151011/work/x264-snapshot-20151011-2245 ++ local path=/var/tmp/portage/media-video/x264-encoder-0.0.20151011/work/x264-snapshot-20151011-2245/. ++ local up= ++ [[ /var/tmp/portage/media-video/x264-encoder-0.0.20151011/work/x264-snapshot-20151011-2245/. != \/\v\a\r\/\t\m\p\/\p\o\r\t\a\g\e\/\m\e\d\i\a\-\v\i\d\e\o\/\x\2\6\4\-\e\n\c\o\d\e\r\-\0\.\0\.\2\0\1\5\1\0\1\1\/\w\o\r\k\/\x\2\6\4\-\s\n\a\p\s\h\o\t\-\2\0\1\5\1\0\1\1\-\2\2\4\5\/* ]] ++ dirname . + SRCPATH=. + echo . + grep -q ' ' + '[' -e ./config.h -o -e ./x264_config.h ']' + prefix=/usr/local + exec_prefix='${prefix}' + bindir='${exec_prefix}/bin' + libdir='${exec_prefix}/lib' + includedir='${prefix}/include' + DEVNULL=/dev/null + cli=yes + cli_libx264=internal + shared=no + static=no + avs=auto + lavf=auto + ffms=auto + gpac=auto + lsmash=auto + mp4=no + gpl=yes + thread=auto + swscale=auto + asm=auto + interlaced=yes + debug=no + gprof=no + strip=no + pic=no + bit_depth=8 + chroma_format=all + compiler=GNU + compiler_style=GNU + opencl=yes + CFLAGS='-O2 -march=native -pipe -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize -flto=8 -fuse-linker-plugin -Wall -I. -I$(SRCPATH)' + LDFLAGS='-Wl,-O1 -Wl,--as-needed -flto=8 -fuse-linker-plugin' + LDFLAGSCLI= + ASFLAGS=' -I. -I$(SRCPATH)' + RCFLAGS= + CHECK_CFLAGS= + HAVE_GETOPT_LONG=1 + cross_prefix= + EXE= + AS_EXT=.S + NL=' ' + CONFIG_HAVE='MALLOC_H ALTIVEC ALTIVEC_H MMX ARMV6 ARMV6T2 NEON BEOSTHREAD POSIXTHREAD WIN32THREAD THREAD LOG2F SWSCALE LAVF FFMS GPAC AVS GPL VECTOREXT INTERLACED CPU_COUNT OPENCL THP LSMASH X86_INLINE_ASM AS_FUNC INTEL_DISPATCHER MSA' + for opt in '"$@"' + optarg=/usr + case "$opt" in + prefix=/usr + for opt in '"$@"' + optarg=/usr/lib64 + case "$opt" in + libdir=/usr/lib64 + for opt in '"$@"' + optarg=--system-libx264 + case "$opt" in + cli_libx264=system + for opt in '"$@"' + optarg=x86_64-pc-linux-gnu + case "$opt" in + host=x86_64-pc-linux-gnu + for opt in '"$@"' + optarg=--disable-lsmash + case "$opt" in + lsmash=no + for opt in '"$@"' + optarg=--disable-ffms + case "$opt" in + ffms=no + '[' yes = no -a no = no -a no = no ']' + CC=x86_64-pc-linux-gnu-gcc + AR=ar + RANLIB=ranlib + STRIP=strip + INSTALL=install + '[' xx86_64-pc-linux-gnu = x ']' ++ ./config.sub x86_64-pc-linux-gnu + host=x86_64-pc-linux-gnu + host_cpu=x86_64 + host=pc-linux-gnu + host_vendor=pc + host_os=linux-gnu + trap 'rm -f conftest*' EXIT ++ basename x86_64-pc-linux-gnu-gcc + cc_base=x86_64-pc-linux-gnu-gcc + QPRE=- + [[ linux-gnu = mingw* ]] + [[ linux-gnu = cygwin* ]] + [[ x86_64-pc-linux-gnu-gcc = icc ]] + [[ x86_64-pc-linux-gnu-gcc = icc[\ .]* ]] + [[ x86_64-pc-linux-gnu-gcc = clang ]] + [[ x86_64-pc-linux-gnu-gcc = clang[\ .]* ]] + libm= + case $host_os in + SYS=LINUX + define HAVE_MALLOC_H ++ '[' -n '' ']' ++ echo ' 1' + echo '#define HAVE_MALLOC_H 1' + libm=-lm + LDFLAGS='-Wl,-O1 -Wl,--as-needed -flto=8 -fuse-linker-plugin -lm' + stack_alignment=4 + case $host_cpu in + ARCH=X86_64 + AS=yasm + AS_EXT=.asm + ASFLAGS=' -I. -I$(SRCPATH) -DARCH_X86_64=1 -I$(SRCPATH)/common/x86/' + stack_alignment=16 + '[' GNU = GNU ']' + CFLAGS='-m64 -O2 -march=native -pipe -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize -flto=8 -fuse-linker-plugin -Wall -I. -I$(SRCPATH)' + LDFLAGS='-m64 -Wl,-O1 -Wl,--as-needed -flto=8 -fuse-linker-plugin -lm' + '[' LINUX = MACOSX ']' + '[' LINUX = WINDOWS -o LINUX = CYGWIN ']' + ASFLAGS=' -I. -I$(SRCPATH) -DARCH_X86_64=1 -I$(SRCPATH)/common/x86/ -f elf64' + '[' LINUX = WINDOWS ']' + log_msg 'x264 configure script' + echo 'x264 configure script' + '[' -n '--prefix=/usr --libdir=/usr/lib64 --system-libx264 --host=x86_64-pc-linux-gnu --disable-lsmash --disable-ffms' ']' + msg='Command line options:' + for i in '$@' + msg='Command line options: "--prefix=/usr"' + for i in '$@' + msg='Command line options: "--prefix=/usr" "--libdir=/usr/lib64"' + for i in '$@' + msg='Command line options: "--prefix=/usr" "--libdir=/usr/lib64" "--system-libx264"' + for i in '$@' + msg='Command line options: "--prefix=/usr" "--libdir=/usr/lib64" "--system-libx264" "--host=x86_64-pc-linux-gnu"' + for i in '$@' + msg='Command line options: "--prefix=/usr" "--libdir=/usr/lib64" "--system-libx264" "--host=x86_64-pc-linux-gnu" "--disable-lsmash"' + for i in '$@' + msg='Command line options: "--prefix=/usr" "--libdir=/usr/lib64" "--system-libx264" "--host=x86_64-pc-linux-gnu" "--disable-lsmash" "--disable-ffms"' + log_msg 'Command line options: "--prefix=/usr" "--libdir=/usr/lib64" "--system-libx264" "--host=x86_64-pc-linux-gnu" "--disable-lsmash" "--disable-ffms"' + echo 'Command line options: "--prefix=/usr" "--libdir=/usr/lib64" "--system-libx264" "--host=x86_64-pc-linux-gnu" "--disable-lsmash" "--disable-ffms"' + log_msg '' + echo '' + cc_check + '[' -z '' ']' + '[' -z '' ']' + log_check 'whether x86_64-pc-linux-gnu-gcc works' + echo -n 'checking whether x86_64-pc-linux-gnu-gcc works... ' + rm -f conftest.c + echo 'int main (void) { return 0; }' + '[' GNU = MS ']' + cc_cmd='x86_64-pc-linux-gnu-gcc conftest.c -m64 -O2 -march=native -pipe -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize -flto=8 -fuse-linker-plugin -Wall -I. -I$(SRCPATH) -m64 -Wl,-O1 -Wl,--as-needed -flto=8 -fuse-linker-plugin -lm -o conftest' + x86_64-pc-linux-gnu-gcc conftest.c -m64 -O2 -march=native -pipe -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize -flto=8 -fuse-linker-plugin -Wall -I. '-I$(SRCPATH)' -m64 -Wl,-O1 -Wl,--as-needed -flto=8 -fuse-linker-plugin -lm -o conftest + res=0 + log_ok + echo yes + return 0 + '[' GNU = GNU ']' + cc_check '' -std=gnu99 'for( int i = 0; i < 9; i++ );' + '[' -z 'for( int i = 0; i < 9; i++ );' ']' + '[' -z '' ']' + '[' -z -std=gnu99 ']' + log_check 'whether x86_64-pc-linux-gnu-gcc supports for( int i = 0; i < 9; i++ ); with -std=gnu99' + echo -n 'checking whether x86_64-pc-linux-gnu-gcc supports for( int i = 0; i < 9; i++ ); with -std=gnu99... ' + rm -f conftest.c + echo 'int main (void) { for( int i = 0; i < 9; i++ ); return 0; }' + '[' GNU = MS ']' + cc_cmd='x86_64-pc-linux-gnu-gcc conftest.c -m64 -O2 -march=native -pipe -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize -flto=8 -fuse-linker-plugin -Wall -I. -I$(SRCPATH) -std=gnu99 -m64 -Wl,-O1 -Wl,--as-needed -flto=8 -fuse-linker-plugin -lm -o conftest' + x86_64-pc-linux-gnu-gcc conftest.c -m64 -O2 -march=native -pipe -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize -flto=8 -fuse-linker-plugin -Wall -I. '-I$(SRCPATH)' -std=gnu99 -m64 -Wl,-O1 -Wl,--as-needed -flto=8 -fuse-linker-plugin -lm -o conftest + res=0 + log_ok + echo yes + return 0 + CFLAGS='-m64 -O2 -march=native -pipe -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize -flto=8 -fuse-linker-plugin -Wall -I. -I$(SRCPATH) -std=gnu99' + '[' no = yes -a '(' X86_64 = X86_64 -o X86_64 = PPC -o X86_64 = ALPHA -o X86_64 = ARM -o X86_64 = IA64 -o X86_64 = PARISC -o X86_64 = MIPS -o X86_64 = AARCH64 ')' ']' + '[' GNU = GNU -a '(' X86_64 = X86 -o X86_64 = X86_64 ')' ']' + cc_check '' -mpreferred-stack-boundary=5 + '[' -z '' ']' + '[' -z -mpreferred-stack-boundary=5 ']' + '[' -z '' ']' + log_check 'for -mpreferred-stack-boundary=5' + echo -n 'checking for -mpreferred-stack-boundary=5... ' + rm -f conftest.c + echo 'int main (void) { return 0; }' + '[' GNU = MS ']' + cc_cmd='x86_64-pc-linux-gnu-gcc conftest.c -m64 -O2 -march=native -pipe -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize -flto=8 -fuse-linker-plugin -Wall -I. -I$(SRCPATH) -std=gnu99 -mpreferred-stack-boundary=5 -m64 -Wl,-O1 -Wl,--as-needed -flto=8 -fuse-linker-plugin -lm -o conftest' + x86_64-pc-linux-gnu-gcc conftest.c -m64 -O2 -march=native -pipe -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize -flto=8 -fuse-linker-plugin -Wall -I. '-I$(SRCPATH)' -std=gnu99 -mpreferred-stack-boundary=5 -m64 -Wl,-O1 -Wl,--as-needed -flto=8 -fuse-linker-plugin -lm -o conftest + res=0 + log_ok + echo yes + return 0 + CFLAGS='-m64 -O2 -march=native -pipe -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize -flto=8 -fuse-linker-plugin -Wall -I. -I$(SRCPATH) -std=gnu99 -mpreferred-stack-boundary=5' + stack_alignment=32 + '[' auto = auto -a '(' X86_64 = X86 -o X86_64 = X86_64 ')' ']' + as_check 'vpmovzxwd ymm0, xmm0' + log_check 'whether yasm supports vpmovzxwd ymm0, xmm0' + echo -n 'checking whether yasm supports vpmovzxwd ymm0, xmm0... ' + echo 'vpmovzxwd ymm0, xmm0' + as_cmd='yasm conftest.asm -I. -I$(SRCPATH) -DARCH_X86_64=1 -I$(SRCPATH)/common/x86/ -f elf64 -o conftest.o' + yasm conftest.asm -I. '-I$(SRCPATH)' -DARCH_X86_64=1 '-I$(SRCPATH)/common/x86/' -f elf64 -o conftest.o + res=0 + log_ok + echo yes + return 0 + cc_check '' '' '__asm__("pabsw %xmm0, %xmm0");' + '[' -z '__asm__("pabsw %xmm0, %xmm0");' ']' + '[' -z '' ']' + '[' -z '' ']' + log_check 'whether x86_64-pc-linux-gnu-gcc supports __asm__("pabsw %xmm0, %xmm0");' + echo -n 'checking whether x86_64-pc-linux-gnu-gcc supports __asm__("pabsw %xmm0, %xmm0");... ' + rm -f conftest.c + echo 'int main (void) { __asm__("pabsw %xmm0, %xmm0"); return 0; }' + '[' GNU = MS ']' + cc_cmd='x86_64-pc-linux-gnu-gcc conftest.c -m64 -O2 -march=native -pipe -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize -flto=8 -fuse-linker-plugin -Wall -I. -I$(SRCPATH) -std=gnu99 -mpreferred-stack-boundary=5 -m64 -Wl,-O1 -Wl,--as-needed -flto=8 -fuse-linker-plugin -lm -o conftest' + x86_64-pc-linux-gnu-gcc conftest.c -m64 -O2 -march=native -pipe -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize -flto=8 -fuse-linker-plugin -Wall -I. '-I$(SRCPATH)' -std=gnu99 -mpreferred-stack-boundary=5 -m64 -Wl,-O1 -Wl,--as-needed -flto=8 -fuse-linker-plugin -lm -o conftest + res=0 + log_ok + echo yes + return 0 + define HAVE_X86_INLINE_ASM ++ '[' -n '' ']' ++ echo ' 1' + echo '#define HAVE_X86_INLINE_ASM 1' + ASFLAGS=' -I. -I$(SRCPATH) -DARCH_X86_64=1 -I$(SRCPATH)/common/x86/ -f elf64 -Worphan-labels' + define HAVE_MMX ++ '[' -n '' ']' ++ echo ' 1' + echo '#define HAVE_MMX 1' + '[' auto = auto -a X86_64 = ARM ']' + '[' auto = auto -a X86_64 = AARCH64 ']' + '[' auto = auto -a '(' X86_64 = ARM -o X86_64 = AARCH64 ')' ']' + '[' auto = auto -a X86_64 = MIPS ']' + '[' auto = no ']' + '[' xyasm = x ']' + asm=yes + define ARCH_X86_64 ++ '[' -n '' ']' ++ echo ' 1' + echo '#define ARCH_X86_64 1' + define SYS_LINUX ++ '[' -n '' ']' ++ echo ' 1' + echo '#define SYS_LINUX 1' + define STACK_ALIGNMENT 32 ++ '[' -n 32 ']' ++ echo ' 32' + echo '#define STACK_ALIGNMENT 32' + ASFLAGS=' -I. -I$(SRCPATH) -DARCH_X86_64=1 -I$(SRCPATH)/common/x86/ -f elf64 -Worphan-labels -DSTACK_ALIGNMENT=32' + CPU_ENDIAN=little-endian + '[' GNU = GNU ']' + echo 'int i[2] = {0x42494745,0}; double f[2] = {0x1.0656e6469616ep+102,0};' + x86_64-pc-linux-gnu-gcc -m64 -O2 -march=native -pipe -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize -flto=8 -fuse-linker-plugin -Wall -I. '-I$(SRCPATH)' -std=gnu99 -mpreferred-stack-boundary=5 conftest.c -c -o conftest.o + strings -a conftest.o + grep -q BIGE + strings -a conftest.o + grep -q EGIB + die 'endian test failed' + log_msg 'DIED: endian test failed' + echo 'DIED: endian test failed' + echo 'endian test failed' endian test failed + exit 1 + rm -f conftest conftest.asm conftest.c conftest.log conftest.o * ERROR: media-video/x264-encoder-0.0.20151011::gentoo failed (configure phase): * (no error message) * * Call stack: * ebuild.sh, line 133: Called src_configure * environment, line 2424: Called die * The specific snippet of code: * ./configure --prefix="${EPREFIX}"/usr --libdir="${EPREFIX}"/usr/$(get_libdir) --system-libx264 --host="${CHOST}" --disable-lsmash $(usex 10bit "--bit-depth=10" "") $(usex avs "" "--disable-avs") $(usex ffmpeg "" "--disable-lavf --disable-swscale") $(usex ffmpegsource "" "--disable-ffms") $(usex interlaced "" "--disable-interlaced") $(usex mp4 "" "--disable-gpac") $(usex threads "" "--disable-thread") || die; * * If you need support, post the output of `emerge --info '=media-video/x264-encoder-0.0.20151011::gentoo'`, * the complete build log and the output of `emerge -pqv '=media-video/x264-encoder-0.0.20151011::gentoo'`. * The complete build log is located at '/var/tmp/portage/media-video/x264-encoder-0.0.20151011/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-video/x264-encoder-0.0.20151011/temp/environment'. * Working directory: '/var/tmp/portage/media-video/x264-encoder-0.0.20151011/work/x264-snapshot-20151011-2245' * S: '/var/tmp/portage/media-video/x264-encoder-0.0.20151011/work/x264-snapshot-20151011-2245'