Bug #4059
closed
Autobuild from git failes on my raspberry pi
Added by Al Bundy over 8 years ago.
Updated over 7 years ago.
Found in version:
lates version from git
Description
I've a checked out git repository und usually build tvh with Autobuild.sh
Currently the build fails (see log).
Does anybody know hat to get tvh compiled?
make[2]: Entering directory '/media/usbhdd/tvheadend'
make -f Makefile.ffmpeg
make[3]: Entering directory '/media/usbhdd/tvheadend'
DOWNLOAD https://dl.bintray.com/tvheadend/misc/staticlib//arm/ffmpeg-4fdcc3914928325dc272674980527915eed5ebd9.tgz--2016-11-01 22:52:10-- https://dl.bintray.com/tvheadend/misc/staticlib//arm/ffmpeg-4fdcc3914928325dc272674980527915eed5ebd9.tgz
Auflösen des Hostnamen »dl.bintray.com (dl.bintray.com)«... 5.153.35.248
Verbindungsaufbau zu dl.bintray.com (dl.bintray.com)|5.153.35.248|:443... verbunden.
HTTP-Anforderung gesendet, warte auf Antwort... 404 Not Found
2016-11-01 22:52:11 FEHLER 404: Not Found.
FAILED TO DOWNLOAD https://dl.bintray.com/tvheadend/misc/staticlib//arm/ffmpeg-4fdcc3914928325dc272674980527915eed5ebd9.tgz (BUT THIS IS NOT A FATAL ERROR! DO NOT REPORT THAT!)
cd /media/usbhdd/tvheadend/build.linux/ffmpeg/libvpx-1.6.0 && \
ASFLAGS="-DENABLE_PIC=1 -DPIC=1" FFMPEG_PREFIX=/media/usbhdd/tvheadend/build.linux/ffmpeg/build/ffmpeg PKG_CONFIG=/media/usbhdd/tvheadend/support/pkg-config.ffmpeg ./configure --prefix=/ffmpeg --enable-static --disable-shared \
--extra-cflags="-fPIE" \
--disable-examples \
--disable-docs \
--disable-unit-tests \
disabling shared
disabling examples
disabling docs
disabling unit_tests
enabling vp8_encoder
enabling vp8_decoder
enabling vp9_encoder
enabling vp9_decoder
Configuring for target 'armv7-linux-gcc' enabling armv7
enabling neon
enabling neon_asm
enabling media
enabling webm_io
enabling libyuv
Creating makefiles for armv7-linux-gcc libs
DIST_DIR=/media/usbhdd/tvheadend/build.linux/ffmpeg/build/ffmpeg \
make -C /media/usbhdd/tvheadend/build.linux/ffmpeg/libvpx-1.6.0 install
make[4]: Entering directory '/media/usbhdd/tvheadend/build.linux/ffmpeg/libvpx-1.6.0'
[DEP] vpx_config.c.d
[CC] vpx_config.c.o
[AS] vpx_dsp/arm/intrapred_neon_asm.asm.s.o
as: Unbekannte Option »-ENABLE_PIC=1«
Makefile:190: recipe for target 'vpx_dsp/arm/intrapred_neon_asm.asm.s.o' failed
make[5]: *** [vpx_dsp/arm/intrapred_neon_asm.asm.s.o] Error 1
make[4]: *** [.DEFAULT] Error 2
Makefile:17: recipe for target '.DEFAULT' failed
make[4]: Leaving directory '/media/usbhdd/tvheadend/build.linux/ffmpeg/libvpx-1.6.0'
Makefile.ffmpeg:285: recipe for target '/media/usbhdd/tvheadend/build.linux/ffmpeg/libvpx-1.6.0/.tvh_build' failed
make[3]: *** [/media/usbhdd/tvheadend/build.linux/ffmpeg/libvpx-1.6.0/.tvh_build] Error 2
make[3]: Leaving directory '/media/usbhdd/tvheadend'
make[2]: *** [/media/usbhdd/tvheadend/build.linux/ffmpeg/build/ffmpeg/lib/libavcodec.a] Error 2
Makefile:756: recipe for target '/media/usbhdd/tvheadend/build.linux/ffmpeg/build/ffmpeg/lib/libavcodec.a' failed
make[2]: Leaving directory '/media/usbhdd/tvheadend'
make[1]: *** [override_dh_auto_build] Error 2
debian/rules:11: recipe for target 'override_dh_auto_build' failed
make[1]: Leaving directory '/media/usbhdd/tvheadend'
debian/rules:5: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: Fehler: Fehler-Exitstatus von debian/rules build war 2
Di 1. Nov 22:52:26 CET 2016
pi@rpi:/media/usbhdd/tvheadend $
Files
There was an update yesterday to the most recent ffmpeg-3.2, i guess it's not synced up on bintray yet, try to compile with
./configure --disable-bintray_cache
/hp
Disabling the cache and installing libvpx-dev seems to fix this issue.
Thanks for this hint.
Build is currently running...
Build failed again.
Will now try make clean and build again...
cc: error: /media/usbhdd/tvheadend/build.linux/ffmpeg/build/ffmpeg/lib/libvpx.a: Datei oder Verzeichnis nicht gefunden
make[2]: *** [/media/usbhdd/tvheadend/build.linux/tvheadend] Error 1
Makefile:623: recipe for target '/media/usbhdd/tvheadend/build.linux/tvheadend' failed
make[2]: Leaving directory '/media/usbhdd/tvheadend'
make[1]: *** [override_dh_auto_build] Error 2
debian/rules:11: recipe for target 'override_dh_auto_build' failedmake[1]: Leaving directory '/media/usbhdd/tvheadend'
make: *** [build] Error 2
debian/rules:5: recipe for target 'build' failed
dpkg-buildpackage: Fehler: Fehler-Exitstatus von debian/rules build war 2
Clean did not help either...
Now I'll try --disable-libvpx
Build with --disable-libvpx worked...
Same problem here, but --disable-libvpx didn't work..
Using that (and various other combinations):
AUTOBUILD_CONFIGURE_EXTRA=--arch=armv7l--disable-libvpx--enable-libffmpeg_static--disable-hdhomerun_client--disable-bintray_cache
./Autobuild.sh
Nihil Baxter wrote:
Same problem here, but --disable-libvpx didn't work..
Using that (and various other combinations):
[...]
I think that should be..
AUTOBUILD_CONFIGURE_EXTRA=--arch=armv7l\ --disable-libvpx\ --enable-libffmpeg_static\ --disable-hdhomerun_client\ --disable-bintray_cache
will test that, but used my version of that string long time and works....
nope, didnt work
Makefile.ffmpeg:285: recipe for target '/home/hts/build/tvheadend/build.linux/ffmpeg/libvpx-1.6.0/.tvh_build' failed
make[3]: *** [/home/hts/build/tvheadend/build.linux/ffmpeg/libvpx-1.6.0/.tvh_build] Error 2
make[3]: Leaving directory '/media/portable/build/tvheadend'
Makefile:756: recipe for target '/home/hts/build/tvheadend/build.linux/ffmpeg/build/ffmpeg/lib/libavcodec.a' failed
make[2]: *** [/home/hts/build/tvheadend/build.linux/ffmpeg/build/ffmpeg/lib/libavcodec.a] Error 2
make[2]: Leaving directory '/media/portable/build/tvheadend'
debian/rules:11: recipe for target 'override_dh_auto_build' failed
make[1]: *** [override_dh_auto_build] Error 2
make[1]: Leaving directory '/media/portable/build/tvheadend'
debian/rules:5: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: Fehler: Fehler-Exitstatus von debian/rules build war 2
Annoying, everytime ffmpeg gets updated same problems...
According to your log libvpx was enabled.
Try this command - attention, this is one command (no linenreaks)!
AUTOBUILD_CONFIGURE_EXTRA="--disable-libvpx --disable-bintray_cache" ./Autobuild.sh
Maybe run
make clean
before.
Same issue here building for ARM architecture(s)
The culprit is definitely libvpx, reverting to 1.5.0 and built was successfully again
Howto revert libvpx? --disable-libvpx option definitely doesnt work for me, same error whatever option format i choose.
Mmm, --disable-libvpx and --disable-libvpx_static together seems to work.
Apply this patch as workaround
After a clean download.
and apply the patch tvh-revert-libvpx.patch
and run ./configure --disable-libvpx --disable-libvpx_static
and make -j4
I've got this issue :
encoder/CMakeFiles/encoder.dir/build.make:77: recipe for target 'encoder/CMakeFiles/encoder.dir/search.cpp.o' failed
make
4:
* [encoder/CMakeFiles/encoder.dir/search.cpp.o] Error 134
make4: * Waiting for unfinished jobs....
Building CXX object encoder/CMakeFiles/encoder.dir/analysis.cpp.o
- Error in `/usr/bin/c++': double free or corruption (top): 0x00795188
Aborted
common/CMakeFiles/common.dir/build.make:54: recipe for target 'common/CMakeFiles/common.dir/arm/asm-primitives.cpp.o' failed
make4: * [common/CMakeFiles/common.dir/arm/asm-primitives.cpp.o] Error 134
make4: ** Waiting for unfinished jobs....
- Error in `/usr/bin/c++': double free or corruption (!prev): 0x01a023b0 *
Aborted
encoder/CMakeFiles/encoder.dir/build.make:54: recipe for target 'encoder/CMakeFiles/encoder.dir/analysis.cpp.o' failed
make4: * [encoder/CMakeFiles/encoder.dir/analysis.cpp.o] Error 134
Building CXX object encoder/CMakeFiles/encoder.dir/bitcost.cpp.o
- Error in `/usr/bin/c++': double free or corruption (!prev): 0x002553b0
Aborted
encoder/CMakeFiles/encoder.dir/build.make:100: recipe for target 'encoder/CMakeFiles/encoder.dir/bitcost.cpp.o' failed
make4: * [encoder/CMakeFiles/encoder.dir/bitcost.cpp.o] Error 134
make4: Leaving directory '/home/osmc/tvheadend/build.linux/ffmpeg/x265_2.1/build/linux'
CMakeFiles/Makefile2:208: recipe for target 'encoder/CMakeFiles/encoder.dir/all' failed
make3: [encoder/CMakeFiles/encoder.dir/all] Error 2
make3: * Waiting for unfinished jobs....
[ 6%] Building CXX object common/CMakeFiles/common.dir/primitives.cpp.o
- Error in `/usr/bin/c++': double free or corruption (!prev): 0x0121b3b0
Aborted
common/CMakeFiles/common.dir/build.make:77: recipe for target 'common/CMakeFiles/common.dir/primitives.cpp.o' failed
make4: * [common/CMakeFiles/common.dir/primitives.cpp.o] Error 134
make4: Leaving directory '/home/osmc/tvheadend/build.linux/ffmpeg/x265_2.1/build/linux'
CMakeFiles/Makefile2:258: recipe for target 'common/CMakeFiles/common.dir/all' failed
make3: [common/CMakeFiles/common.dir/all] Error 2
make3: Leaving directory '/home/osmc/tvheadend/build.linux/ffmpeg/x265_2.1/build/linux'
Makefile:117: recipe for target 'all' failed
make2: [all] Error 2
make2: Leaving directory '/home/osmc/tvheadend/build.linux/ffmpeg/x265_2.1/build/linux'
Makefile.ffmpeg:238: recipe for target '/home/osmc/tvheadend/build.linux/ffmpeg/x265_2.1/.tvh_build' failed
make1: [/home/osmc/tvheadend/build.linux/ffmpeg/x265_2.1/.tvh_build] Error 2
make1: Leaving directory '/home/osmc/tvheadend'
Makefile:756: recipe for target '/home/osmc/tvheadend/build.linux/ffmpeg/build/ffmpeg/lib/libavcodec.a' failed
make: * [/home/osmc/tvheadend/build.linux/ffmpeg/build/ffmpeg/lib/libavcodec.a] Error 2
look like a memory issue.
Do you have the same issue ? I try to identify if this is due of the current code or due of my box.
For me it looks like Autobuild script dont use given paramaters, if i set vpx to NO directly in configure file it compiles nromally and without vpx.
Maybe one can make clear how Autobuild can configured and which are the right commands, for me as a linux noob its hard to see whats going wrong. In the Wiki i cant find list of suitable commands for autobuild script...
I confirm that also mi RPi 2 (debian Jessie) can't compile as usual:
as: opzione non riconosciuta "-ENABLE_PIC=1"
Makefile:190: set di istruzioni per l'obiettivo "vpx_dsp/arm/intrapred_neon_asm.asm.s.o" non riuscito
make[5]: *** [vpx_dsp/arm/intrapred_neon_asm.asm.s.o] Errore 1
Makefile:17: set di istruzioni per l'obiettivo ".DEFAULT" non riuscito
make[4]: *** [.DEFAULT] Errore 2
make[4]: uscita dalla directory "/opt/tvheadend/build.linux/ffmpeg/libvpx-1.6.0"
Makefile.ffmpeg:285: set di istruzioni per l'obiettivo "/opt/tvheadend/build.linux/ffmpeg/libvpx-1.6.0/.tvh_build" non riuscito
make[3]: *** [/opt/tvheadend/build.linux/ffmpeg/libvpx-1.6.0/.tvh_build] Errore 2
make[3]: uscita dalla directory "/opt/tvheadend"
Makefile:756: set di istruzioni per l'obiettivo "/opt/tvheadend/build.linux/ffmpeg/build/ffmpeg/lib/libavcodec.a" non riuscito
make[2]: *** [/opt/tvheadend/build.linux/ffmpeg/build/ffmpeg/lib/libavcodec.a] Errore 2
make[2]: uscita dalla directory "/opt/tvheadend"
debian/rules:11: set di istruzioni per l'obiettivo "override_dh_auto_build" non riuscito
make[1]: *** [override_dh_auto_build] Errore 2
make[1]: uscita dalla directory "/opt/tvheadend"
debian/rules:5: set di istruzioni per l'obiettivo "build" non riuscito
make: *** [build] Errore 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
I had to add --disable-libvpx to my usual autobuild command
AUTOBUILD_CONFIGURE_EXTRA=--disable-libx265\ --disable-pie\ --disable-libvpx ./Autobuild.sh
and the compile was successful
Manfred Kreisl wrote:
Apply this patch as workaround
Excuse me for asking a dumb question, but HOW do I apply this patch?
And could anyone please tell me what's the procedure if I want to start over again? Delete directories (which?) and "make clean"?
Thanks.
Wim
Wim K wrote:
Manfred Kreisl wrote:
Apply this patch as workaround
Excuse me for asking a dumb question, but HOW do I apply this patch?
And could anyone please tell me what's the procedure if I want to start over again? Delete directories (which?) and "make clean"?
Thanks.
Wim
man patch
if you are working with git sources, easiest way to clean directory would be git clean -xfd
EDIT:
I just deleted the folder "master" and then did:
AUTOBUILD_CONFIGURE_EXTRA="--disable-libvpx --disable --disable-libvpx_static --disable-bintray_cache --enable-hdhomerun_client" ./Autobuild.sh
Now it works.
Excuse me for asking a dumb question, but HOW do I apply this patch?
And could anyone please tell me what's the procedure if I want to start over again? Delete directories (which?) and "make clean"?
Thanks.
Wim
EDIT:
I just deleted the folder "master" and then did:
AUTOBUILD_CONFIGURE_EXTRA="--disable-libvpx --disable --disable-libvpx_static --disable-bintray_cache --enable-hdhomerun_client" ./Autobuild.sh
Now it works.
@ Manfred Kreisl: excuse me, didn't see your post until now. Thanks anyway.
Wim K wrote:
Excuse me for asking a dumb question, but HOW do I apply this patch?
And could anyone please tell me what's the procedure if I want to start over again? Delete directories (which?) and "make clean"?
Thanks.
Wim
EDIT:
I just deleted the folder "master" and then did:
AUTOBUILD_CONFIGURE_EXTRA="--disable-libvpx --disable --disable-libvpx_static --disable-bintray_cache --enable-hdhomerun_client" ./Autobuild.sh
Now it works.
@ Manfred Kreisl: excuse me, didn't see your post until now. Thanks anyway.
hello,
i have the same error but it doesn't work.
what i've done:
sudo apt-get install git build-essential debhelper gettext libssl-dev zlib1g-dev libcurl4-gnutls-dev curl cmake libavahi-client-dev liburiparser-dev
mkdir ~/build
git clone https://github.com/tvheadend/tvheaden... ~/build/tvheadend/master
cd ~/build/tvheadend/master
AUTOBUILD_CONFIGURE_EXTRA=--enable-libffmpeg_static\ --enable-trace\ --enable-debug ./Autobuild.sh
do i need to apply the patch?
if yes, how do i apply it?
i also tried to remove folder "master" but after that i can't navigate to "master" folder and run AUTOBUILD_CONFIGURE_EXTRA="--disable-libvpx --disable --disable-libvpx_static --disable-bintray_cache --enable-hdhomerun_client" ./Autobuild.sh
what's the issue?
Gnag Flow wrote:
Wim K wrote:
Excuse me for asking a dumb question, but HOW do I apply this patch?
And could anyone please tell me what's the procedure if I want to start over again? Delete directories (which?) and "make clean"?
Thanks.
Wim
EDIT:
I just deleted the folder "master" and then did:
AUTOBUILD_CONFIGURE_EXTRA="--disable-libvpx --disable --disable-libvpx_static --disable-bintray_cache --enable-hdhomerun_client" ./Autobuild.sh
Now it works.
@ Manfred Kreisl: excuse me, didn't see your post until now. Thanks anyway.
hello,
i have the same error but it doesn't work.
what i've done:
[...]
do i need to apply the patch?
if yes, how do i apply it?
i also tried to remove folder "master" but after that i can't navigate to "master" folder and run AUTOBUILD_CONFIGURE_EXTRA="--disable-libvpx --disable --disable-libvpx_static --disable-bintray_cache --enable-hdhomerun_client" ./Autobuild.sh
what's the issue?
You need to disable the x265 libs, see --configure --help
As mentioned above, I have no issues with this command
AUTOBUILD_CONFIGURE_EXTRA="--disable-bintray_cache --disable-libvpx" ./Autobuild.sh
Al
Manfred Kreisl wrote:
Apply this patch as workaround
Same here. After the patch it works (armv7l)
./configure --disable-bintray_cache
Thanks!
- Status changed from New to Fixed
Why is this issue marked as fixed?
I've updated my project and started Autobuild.sh on my raspberry pi without any arguments or variables set.
The result is still an error because of libvpx.
Al
...
Markdown: docs/wizard/channels.md
Markdown: docs/wizard/hello.md
Markdown: docs/wizard/network.md
CC src/docs.o
CC build.o
CC timestamp.o
CC tvheadend
cc: error: /media/usbhdd/tvheadend/build.linux/ffmpeg/build/ffmpeg/lib/libvpx.a: Datei oder Verzeichnis nicht gefunden
make[2]: *** [/media/usbhdd/tvheadend/build.linux/tvheadend] Error 1
Makefile:636: recipe for target '/media/usbhdd/tvheadend/build.linux/tvheadend' failed
make[2]: Leaving directory '/media/usbhdd/tvheadend'
make[1]: *** [override_dh_auto_build] Error 2
debian/rules:11: recipe for target 'override_dh_auto_build' failed
make[1]: Leaving directory '/media/usbhdd/tvheadend'
make: *** [build] Error 2
debian/rules:5: recipe for target 'build' failed
dpkg-buildpackage: Fehler: Fehler-Exitstatus von debian/rules build war 2
Fr 16. Jun 22:46:46 CEST 2017
When compiling Tvheadend on OSMC rpi3 the following error
how can I fix this
Scanning dependencies of target encoder
make
4: Leaving directory '/usr/src/tvheadend/build.linux/ffmpeg/x265_2.4/build/linux'
make
4: Entering directory '/usr/src/tvheadend/build.linux/ffmpeg/x265_2.4/build/linux'
[ 1%] Building CXX object encoder/CMakeFiles/encoder.dir/analysis.cpp.o
- Error in `/usr/bin/c++': double free or corruption (!prev): 0x01618348
Aborted
encoder/CMakeFiles/encoder.dir/build.make:54: recipe for target 'encoder/CMakeFiles/encoder.dir/analysis.cpp.o' failed
make4: * [encoder/CMakeFiles/encoder.dir/analysis.cpp.o] Error 134
make4: Leaving directory '/usr/src/tvheadend/build.linux/ffmpeg/x265_2.4/build/linux'
CMakeFiles/Makefile2:208: recipe for target 'encoder/CMakeFiles/encoder.dir/all' failed
make3: [encoder/CMakeFiles/encoder.dir/all] Error 2
make3: Leaving directory '/usr/src/tvheadend/build.linux/ffmpeg/x265_2.4/build/linux'
Makefile:117: recipe for target 'all' failed
make2: [all] Error 2
make2: Leaving directory '/usr/src/tvheadend/build.linux/ffmpeg/x265_2.4/build/linux'
Makefile.ffmpeg:263: recipe for target '/usr/src/tvheadend/build.linux/ffmpeg/x265_2.4/.tvh_build' failed
make1: [/usr/src/tvheadend/build.linux/ffmpeg/x265_2.4/.tvh_build] Error 2
make1: Leaving directory '/usr/src/tvheadend'
Makefile:832: recipe for target '/usr/src/tvheadend/build.linux/ffmpeg/build/ffmpeg/lib/libavcodec.a' failed
make: * [/usr/src/tvheadend/build.linux/ffmpeg/build/ffmpeg/lib/libavcodec.a] Error 2
root@osmc:/usr/src/tvheadend#
Disable x265
AUTOBUILD_CONFIGURE_EXTRA=--disable-libx265\ --disable-pie\ --disable-libvpx ./Autobuild.sh
Next error
root@osmc:/usr/src# cd tvheadend
root@osmc:/usr/src/tvheadend# AUTOBUILD_CONFIGURE_EXTRA=--disable-libx265\ --disable-pie\ --disable-libvpx ./Autobuild.sh
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
dpkg-buildpackage: source package tvheadend
dpkg-buildpackage: source version 4.3-584~g5f84353
dpkg-buildpackage: source distribution unstable
dpkg-buildpackage: source changed by Andreas Öman <andreas@tvheadend.org>
dpkg-buildpackage: host architecture armhf
dpkg-source --before-build tvheadend
dpkg-checkbuilddeps: Unmet build dependencies: libpcre2-dev | libpcre3-dev
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)
root@osmc:/usr/src/tvheadend#
Also available in: Atom
PDF