Bug #4330
4.2.1 won't compile on raspbian/RPI2
0%
Description
Fresh checkout of tag v4.2.1
make4: Entering directory '/home/pi/git/tvheadend-new/build.linux/ffmpeg/x265_2.1/build/linux'
[ 1%] Building CXX object common/CMakeFiles/common.dir/arm/asm-primitives.cpp.o
cc1plus: error: bad value (native) for -mcpu switch
common/CMakeFiles/common.dir/build.make:54: recipe for target 'common/CMakeFiles/common.dir/arm/asm-primitives.cpp.o' failed
pi@raspberrypi ~/git/tvheadend-new $ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.6/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Debian 4.6.3-14+rpi1' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --disable-sjlj-exceptions --with-arch=armv6 --with-fpu=vfp --with-float=hard --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
Thread model: posix
gcc version 4.6.3 (Debian 4.6.3-14+rpi1)
History
Updated by Jaroslav Kysela over 7 years ago
There's probably no point to compile x265 on RPI. Just compile tvh without x265 and probably x264, too - like '--disable-libx265 --disable-libx264' or whole ffmpeg stuff '--disable-ffmpeg_static --disable-libav'.