Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 202522 - media-tv/zapping-0.10_rc6 fails to compile with sys-devel/gcc-4.2.2 using sse2
Summary: media-tv/zapping-0.10_rc6 fails to compile with sys-devel/gcc-4.2.2 using sse2
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Television related Applications in Gentoo's Portage
URL: http://zapping.cvs.sourceforge.net/za...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-16 21:18 UTC by Martin von Gagern
Modified: 2009-07-31 11:44 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
diff -r1.4 -r1.5 simd.c (202522a.patch,3.05 KB, patch)
2009-01-10 13:26 UTC, Martin von Gagern
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2007-12-16 21:18:00 UTC
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -O3 -fomit-frame-pointer -msse2 -DSIMD=CPU_FEATURE_SSE2 -march=prescott -O2 -MT libsimd_SSE2_la-simd.lo -MD -MP -MF .deps/libsimd_SSE2_la-simd.Tpo -c simd.c  -fPIC -DPIC -o .libs/libsimd_SSE2_la-simd.o
simd.c: In function ‘test_SSE2’:
simd.c:219: error: shift must be an immediate
simd.c:220: error: shift must be an immediate
simd.c:221: error: shift must be an immediate
make[2]: *** [libsimd_SSE2_la-simd.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-tv/zapping-0.10_rc6/work/zapping-0.10cvs6/test'

The error message refers to the following expression which occurs as part of the macro expansion in each of the lines mentioned:
__builtin_ia32_psllwi128 ((__v8hi)(va16), (sb8 & 15))
First zapping-0.10cvs6/libtv/simd.h defines vsl16 in terms of _mm_slli_pi16, which seems to get expanded to __builtin_ia32_psllwi128 by gcc itself.

emerge --info (relevant parts):
Portage 2.1.4_rc10 (default-linux/x86/2007.0/desktop,
                    gcc-4.2.2, glibc-2.7-r1, 2.6.23-gentoo-r3 i686)
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="-march=prescott -O2"
USE="... sse sse2 ..."
Comment 1 Martin von Gagern 2008-01-18 19:10:48 UTC
There is a patch for this upstream. Setting URL accordingly. With that patch applied, the thing emerges all right.
Comment 2 Steve Dibb (RETIRED) gentoo-dev 2009-01-10 12:42:45 UTC
(In reply to comment #1)
> There is a patch for this upstream. Setting URL accordingly. With that patch
> applied, the thing emerges all right.
> 

404 on the url
Comment 3 Martin von Gagern 2009-01-10 13:26:31 UTC
Created attachment 177967 [details, diff]
diff -r1.4 -r1.5 simd.c

(In reply to comment #2)
> 404 on the url

Sourceforge CVS broser seems to have trouble. Accessing the CVS server using the cvs command line tool seems to work all right, so I grabbed the patch this way.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2009-07-31 11:44:54 UTC
removed from tree wrt bug 210820