RPi2 | Compiling of TVheadend fails due to undefined reference to `__sync_lock_test_and_set_8' in function `atomic_exchange_s64'
Added by Bernardo Gui almost 9 years ago
Hello world,
I'm trying to make TVheadend (cloned respository 2h ago) work on my RPi2 running Raspian Wheezy, but after running
AUTOBUILD_CONFIGURE_EXTRA=--disable-libav_static ./Autobuild.sh
the process crashes with the following error messages:
[...] CC src/avahi.o CC src/descrambler/tvhcsa.o CC src/descrambler/cwc.o CC src/descrambler/emm_reass.o CC src/descrambler/capmt.o CC src/descrambler/constcw.o CC src/descrambler/ffdecsa/ffdecsa_interface.o CC src/descrambler/ffdecsa/ffdecsa_int.o CC src/descrambler/libaesdec/libaesdec.o CC src/dbus.o CC build.o CC timestamp.o CC tvheadend /opt/tvheadend/build.linux/src/timeshift.o: In function `atomic_exchange_s64': /opt/tvheadend/src/atomic.h:144: undefined reference to `__sync_lock_test_and_set_8' collect2: ld returned 1 exit status Makefile:567: recipe for target '/opt/tvheadend/build.linux/tvheadend' failed make[2]: *** [/opt/tvheadend/build.linux/tvheadend] Error 1 make[2]: Leaving directory '/opt/tvheadend' debian/rules:11: recipe for target 'override_dh_auto_build' failed make[1]: *** [override_dh_auto_build] Error 2 make[1]: Leaving directory '/opt/tvheadend' debian/rules:5: recipe for target 'build' failed make: *** [build] Error 2 dpkg-buildpackage: error: debian/rules build gave error exit status 2
Any hint on how to resolve this issue is highly appreciated.
Thank you!
Replies (1)
RE: RPi2 | Compiling of TVheadend fails due to undefined reference to `__sync_lock_test_and_set_8' in function `atomic_exchange_s64' - Added by Bernardo Gui almost 9 years ago
I've found a way out by doing
cd tvheadend CC=gcc-4.7 ./configure --disable-avahi make sudo make install
and following the further instructions provided at http://www.forum-raspberrypi.de/Thread-tutorial-tvheadend-kompilieren
Since I have no idea what this gcc-4.7 did I'm eager to learn what this did and what the issue with atomic.h was.