[arch-multilib] lib32-libtheora
Hello, I maintain the lib32-libtheora package in the AUR and I'm trying to get it working the new multilib-way. The build fails though. Could someone help me, or should I bohter the upstream instead? Updated PKGBUILD: # Maintainer: Nicky726 (nicky726 <at> gmail <dot> com) # Contributor: Tom Killian (tom <at> archlinux <dot> org) pkgname=lib32-libtheora _pkgname32=libtheora pkgver=1.1.1 pkgrel=2 pkgdesc="An open video codec developed by the Xiph.org (32bit)" arch=('x86_64') depends=('libtheora' 'lib32-libogg') makedepends=('gcc-multilib' 'lib32-libvorbis') url="http://www.xiph.org" groups=lib32 license=('BSD' 'custom') options=('!libtool') source=(http://downloads.xiph.org/releases/theora/${_pkgname32}-${pkgver}.tar.bz2) md5sums=('292ab65cedd5021d6b7ddd117e07cd8e') build() { export CC="gcc -m32" export CXX="g++ -m32" export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" cd "${srcdir}/${_pkgname32}-${pkgver}" ./configure --prefix=/usr --libdir=/usr/lib32\ --enable-shared --disable-static make } package() { cd "${srcdir}/${_pkgname32}-${pkgver}" make DESTDIR="${pkgdir}" install #rm -rf "${pkgdir}/usr/"{include,share,bin} # link the licence install -dm755 "${pkgdir}/usr/share/licences/" cd "${pkgdir}/usr/share/licences/" ln -s "${_pkgname32}" "${pkgname}" } Error I get when building: make[2]: Entering directory `/home/nik/Dokumenty/build/aur/lib32- libtheora/src/libtheora-1.1.1/lib' source='x86/sse2fdct.c' object='sse2fdct.lo' libtool=yes \ depfile='.deps/sse2fdct.Plo' tmpdepfile='.deps/sse2fdct.TPlo' \ depmode=gcc3 /bin/sh ../depcomp \ /bin/sh ../libtool --mode=compile gcc -m32 -DHAVE_CONFIG_H -I. -I. - I.. -I../include -Wall -Wno-parentheses -O3 -fforce-addr -fomit-frame- pointer -finline-functions -funroll-loops -march=native -O2 -pipe -c -o sse2fdct.lo `test -f 'x86/sse2fdct.c' || echo './'`x86/sse2fdct.c libtool: compile: gcc -m32 -DHAVE_CONFIG_H -I. -I. -I.. -I../include -Wall - Wno-parentheses -O3 -fforce-addr -fomit-frame-pointer -finline-functions - funroll-loops -march=native -O2 -pipe -c x86/sse2fdct.c -MT sse2fdct.lo -MD - MP -MF .deps/sse2fdct.TPlo -fPIC -DPIC -o .libs/sse2fdct.o x86/sse2fdct.c: Assembler messages: x86/sse2fdct.c:440: Error: bad register name `%xmm15' ... and lots of simmilar stuff with different numbers ending with: make[2]: *** [sse2fdct.lo] Error 1 make[2]: Leaving directory `/home/nik/Dokumenty/build/aur/lib32- libtheora/src/libtheora-1.1.1/lib' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/nik/Dokumenty/build/aur/lib32- libtheora/src/libtheora-1.1.1' make: *** [all] Error 2 Thanx, Nicky -- Don't it always seem to go That you don't know what you've got Till it's gone (Joni Mitchell)
You may need to include ('gcc-libs-multilib' 'binutils-multilib' 'libtool-multilib' 'lib32-glibc'). I maintain the grub2-efi-bzr and grub2-efi packages in AUR. If you are interested the PKGBUILD is http://aur.archlinux.org/packages/grub2-efi-bzr/grub2-efi-bzr/PKGBUILD . Regards. Keshav On Sun, Aug 29, 2010 at 20:47, Nicky726 <nicky726@gmail.com> wrote:
Hello,
I maintain the lib32-libtheora package in the AUR and I'm trying to get it working the new multilib-way. The build fails though. Could someone help me, or should I bohter the upstream instead?
Updated PKGBUILD:
# Maintainer: Nicky726 (nicky726 <at> gmail <dot> com) # Contributor: Tom Killian (tom <at> archlinux <dot> org)
pkgname=lib32-libtheora _pkgname32=libtheora pkgver=1.1.1 pkgrel=2 pkgdesc="An open video codec developed by the Xiph.org (32bit)" arch=('x86_64') depends=('libtheora' 'lib32-libogg') makedepends=('gcc-multilib' 'lib32-libvorbis') url="http://www.xiph.org" groups=lib32 license=('BSD' 'custom') options=('!libtool') source=(http://downloads.xiph.org/releases/theora/${_pkgname32}-${pkgver}.tar.bz2) md5sums=('292ab65cedd5021d6b7ddd117e07cd8e')
build() { export CC="gcc -m32" export CXX="g++ -m32" export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
cd "${srcdir}/${_pkgname32}-${pkgver}" ./configure --prefix=/usr --libdir=/usr/lib32\ --enable-shared --disable-static make }
package() { cd "${srcdir}/${_pkgname32}-${pkgver}" make DESTDIR="${pkgdir}" install #rm -rf "${pkgdir}/usr/"{include,share,bin}
# link the licence install -dm755 "${pkgdir}/usr/share/licences/" cd "${pkgdir}/usr/share/licences/" ln -s "${_pkgname32}" "${pkgname}" }
Error I get when building:
make[2]: Entering directory `/home/nik/Dokumenty/build/aur/lib32- libtheora/src/libtheora-1.1.1/lib' source='x86/sse2fdct.c' object='sse2fdct.lo' libtool=yes \ depfile='.deps/sse2fdct.Plo' tmpdepfile='.deps/sse2fdct.TPlo' \ depmode=gcc3 /bin/sh ../depcomp \ /bin/sh ../libtool --mode=compile gcc -m32 -DHAVE_CONFIG_H -I. -I. - I.. -I../include -Wall -Wno-parentheses -O3 -fforce-addr -fomit-frame- pointer -finline-functions -funroll-loops -march=native -O2 -pipe -c -o sse2fdct.lo `test -f 'x86/sse2fdct.c' || echo './'`x86/sse2fdct.c libtool: compile: gcc -m32 -DHAVE_CONFIG_H -I. -I. -I.. -I../include -Wall - Wno-parentheses -O3 -fforce-addr -fomit-frame-pointer -finline-functions - funroll-loops -march=native -O2 -pipe -c x86/sse2fdct.c -MT sse2fdct.lo -MD - MP -MF .deps/sse2fdct.TPlo -fPIC -DPIC -o .libs/sse2fdct.o x86/sse2fdct.c: Assembler messages: x86/sse2fdct.c:440: Error: bad register name `%xmm15'
... and lots of simmilar stuff with different numbers ending with:
make[2]: *** [sse2fdct.lo] Error 1 make[2]: Leaving directory `/home/nik/Dokumenty/build/aur/lib32- libtheora/src/libtheora-1.1.1/lib' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/nik/Dokumenty/build/aur/lib32- libtheora/src/libtheora-1.1.1' make: *** [all] Error 2
Thanx, Nicky
-- Don't it always seem to go That you don't know what you've got Till it's gone
(Joni Mitchell) _______________________________________________ arch-multilib mailing list arch-multilib@archlinux.org http://mailman.archlinux.org/mailman/listinfo/arch-multilib
Nicky726 <nicky726@gmail.com> wrote:
Hello,
I maintain the lib32-libtheora package in the AUR and I'm trying to get it working the new multilib-way. The build fails though. Could someone help me, or should I bohter the upstream instead?
Hello, I don't really know how all of this work in the details, but the configure script enables 64-bit assembler optimisations, seeing that you are on a x86_64 platform, but these use instructions which only work in 64-bit mode. You may probably comment out AC_DEFINE([OC_X86_64_ASM]... in configure.ac and re-run autogen.sh before building. -- Rémy
On 08/29/2010 06:56 PM, Rémy Oudompheng wrote:
Nicky726<nicky726@gmail.com> wrote:
Hello,
I maintain the lib32-libtheora package in the AUR and I'm trying to get it working the new multilib-way. The build fails though. Could someone help me, or should I bohter the upstream instead?
Hello,
I don't really know how all of this work in the details, but the configure script enables 64-bit assembler optimisations, seeing that you are on a x86_64 platform, but these use instructions which only work in 64-bit mode.
You may probably comment out AC_DEFINE([OC_X86_64_ASM]... in configure.ac and re-run autogen.sh before building.
better pass --disable-asm instead of that hacky thing -- Ionuț
Ionuț Bîru <ibiru@archlinux.org> wrote:
better pass --disable-asm instead of that hacky thing
Wouldn't it make performance awful ? -- Rémy
On 08/29/2010 06:59 PM, Ionuț Bîru wrote:
On 08/29/2010 06:56 PM, Rémy Oudompheng wrote:
Nicky726<nicky726@gmail.com> wrote:
Hello,
I maintain the lib32-libtheora package in the AUR and I'm trying to get it working the new multilib-way. The build fails though. Could someone help me, or should I bohter the upstream instead?
Hello,
I don't really know how all of this work in the details, but the configure script enables 64-bit assembler optimisations, seeing that you are on a x86_64 platform, but these use instructions which only work in 64-bit mode.
You may probably comment out AC_DEFINE([OC_X86_64_ASM]... in configure.ac and re-run autogen.sh before building.
better pass --disable-asm instead of that hacky thing
scratch that. it would disable all optimization. we need to fool to enable x86 optimization -- Ionuț
On Sun, 29 Aug 2010 19:04:03 +0300 Ionuț Bîru <ibiru@archlinux.org> wrote:
On 08/29/2010 06:59 PM, Ionuț Bîru wrote:
On 08/29/2010 06:56 PM, Rémy Oudompheng wrote:
Nicky726<nicky726@gmail.com> wrote:
Hello,
I maintain the lib32-libtheora package in the AUR and I'm trying to get it working the new multilib-way. The build fails though. Could someone help me, or should I bohter the upstream instead?
Hello,
I don't really know how all of this work in the details, but the configure script enables 64-bit assembler optimisations, seeing that you are on a x86_64 platform, but these use instructions which only work in 64-bit mode.
You may probably comment out AC_DEFINE([OC_X86_64_ASM]... in configure.ac and re-run autogen.sh before building.
better pass --disable-asm instead of that hacky thing
scratch that. it would disable all optimization. we need to fool to enable x86 optimization
Isn't /usr/bin/linux32 meant to do stuff like this? --
participants (5)
-
Alexander Duscheleit
-
Ionuț Bîru
-
KESHAV P.R.
-
Nicky726
-
Rémy Oudompheng