OpenELEC / OpenELEC.tv

OpenELEC - The living room PC for everyone
http://openelec.tv
1.61k stars 883 forks source link

xine-lib fails to compile #949

Closed henkwiedig closed 12 years ago

henkwiedig commented 12 years ago

noise.c: In function 'lineNoiseAvg_MMX': noise.c:232:5: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm' noise.c:232:5: error: 'asm' operand has impossible constraints

see: http://pastebin.com/Uka4xKrX

vpeter4 commented 12 years ago

No problem for PROJECT=Ultra ARCH=x86_64 on 32 bit host Ubuntu 10.04.4 LTS.

henkwiedig commented 12 years ago

The same is reported here: http://www.vdr-portal.de/board17-developer/board25-patches/p1074007-patches-xine-lib-1-2-xine-plugin-verbesserter-vdr-support/?highlight=GENERAL_REGS#post1074007

I use PROJECT=Generic ARCH=i386 Debian Squeeze 2.6.32-5-amd64

vpeter4 commented 12 years ago

Can't reproduce on another 64 bit Ubuntu. Seems some CFLAGS parameters must be add or removed.

henkwiedig commented 12 years ago

Seems like https://github.com/OpenELEC/OpenELEC.tv/commit/45707080600ab004a98849285396060365f833ee is responsible for that.

vpeter4 commented 12 years ago

In build script try adding:

strip_lto

henkwiedig commented 12 years ago

This solves it.

diff --git a/packages/3rdparty/lib/xine-lib/build b/packages/3rdparty/lib/xine-lib/build
index a1c8794..cde604a 100755
--- a/packages/3rdparty/lib/xine-lib/build
+++ b/packages/3rdparty/lib/xine-lib/build
@@ -26,6 +26,8 @@ VDR_GUI_ADDON_DIR="/storage/.xbmc/addons/script.video.vdr-gui"

 cd $PKG_BUILD

+strip_lto
+
 ./autogen.sh --host=$TARGET_NAME \
              --build=$HOST_NAME \
              --with-external-ffmpeg \

Shall i open a pull request ?

stefansaraev commented 12 years ago

thanks @henkwiedig - 9c9bb9b