Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge xine-lib fails at assembler
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
sergio2003
n00b
n00b


Joined: 13 Mar 2004
Posts: 17

PostPosted: Sun Mar 21, 2004 6:23 am    Post subject: emerge xine-lib fails at assembler Reply with quote

I've added some USE variables in the /etc/make.conf, particularly the sse and the directfb flags and tried re-emerging xine and xine-lib. I was able to re-emerge xine successfully but xine-lib failed with the following message:

Code:
/bin/sh ../../../libtool-nofpic --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../..
 -I../../../include -I../../../include -I../../../src -I../../../src/xine-engine -I../../../src/
xine-engine -I../../../src/xine-utils  -I../../../src/input -I../../../src/input    `echo -Wall
-D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE  -Wpointer-arith -Wnested-externs -Wcast-alig
n -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -march=athlon-xp -O3 -pipe -fomi
t-frame-pointer -momit-leaf-frame-pointer -ftracer -fno-crossjumping -falign-functions=16 -falig
n-loops=16 -falign-jumps=16 -fno-align-labels -mfpmath=sse,387 -maccumulate-outgoing-args -fmove
-all-movables -freduce-all-givs -fnew-ra -mno-sse2   -I/usr/kde/3.2/include/artsc -pthread -I/us
r/include/glib-2.0 -I/usr/lib/glib-2.0/include  | sed -e 's/-fomit-frame-pointer//g'` -c -o line
s.lo `test -f 'lines.c' || echo './'`lines.c
In file included from lines.c:10:
drawmethods.h:79:9: warning: "/*" within comment
drawmethods.h:90:9: warning: "/*" within comment
drawmethods.h:101:9: warning: "/*" within comment
lines.c:52: warning: no previous prototype for `genline'
lines.c:85: warning: no previous prototype for `getcouleur'
lines.c:121: warning: no previous prototype for `goom_lines_move'
{standard input}: Assembler messages:
{standard input}:705: Error: suffix or operands invalid for `paddusb'
{standard input}:767: Error: suffix or operands invalid for `paddusb'
{standard input}:800: Error: suffix or operands invalid for `paddusb'
{standard input}:826: Error: suffix or operands invalid for `paddusb'
{standard input}:870: Error: suffix or operands invalid for `paddusb'
{standard input}:915: Error: suffix or operands invalid for `paddusb'
{standard input}:963: Error: suffix or operands invalid for `paddusb'
{standard input}:1008: Error: suffix or operands invalid for `paddusb'
make[4]: *** [lines.lo] Error 1
make[4]: Leaving directory `/var/tmp/portage/xine-lib-1_rc2/work/xine-lib-1-rc2/src/post/goom'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/xine-lib-1_rc2/work/xine-lib-1-rc2/src/post'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/xine-lib-1_rc2/work/xine-lib-1-rc2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/xine-lib-1_rc2/work/xine-lib-1-rc2'


Was adding a sse mistake? My cpu is Athlon-xp so I thought it supported it. Here is my cpuinfo:
Code:
# cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 6
model           : 8
model name      : AMD Athlon(tm) XP 1800+
stepping        : 0
cpu MHz         : 1532.464
cache size      : 256 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fx
sr sse syscall mmxext 3dnowext 3dnow
bogomips        : 3022.84


And here is my USE flag:
Code:
USE="x86 mmx 3dnow sse -xinerama dvd cdr alsa oss X xv gnome directfb gtk -qt -kde canna cjk nls
 canna ssh ssl tcltk"
Back to top
View user's profile Send private message
pengu
Tux's lil' helper
Tux's lil' helper


Joined: 21 May 2003
Posts: 114
Location: Germany

PostPosted: Fri Apr 30, 2004 10:45 am    Post subject: Reply with quote

same here ...

xine-lib-1_rc4

athlon-xp 2400+

Code:

USE="nptl 3dnow gtk2 mmx pda ppds radeon samba sse tiff lzw-tiff xfs zvbi lirc fbcon monkey flac gstreamer opengl speex dga v4l2 wmf png mng gif gtkhtml gimpprint xml truetype mmx 3dnow usb mozxmlterm moznocompose moznomail"


Code:

CFLAGS="-Os -mcpu=athlon-xp -mmmx -msse -m3dnow -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -falign-functions=16 -falign-jumps=16 -pipe"



no problem with xine-lib 1_rc3-r3
Back to top
View user's profile Send private message
kitsunenokenja
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jan 2004
Posts: 131

PostPosted: Fri Apr 30, 2004 8:32 pm    Post subject: Reply with quote

I always had problems compiling xine-lib but when I lower my CFLAGS it seems to build just fine.
Code:

CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"

I have higher settings but using that just for xine-lib let me merge it. xine-ui was merged just for testing and it built with my normal CFLAGS. Hopefully this "trick" works with the Athlons. :)
_________________
ProtonMail - Free encrypted e-mail from Switzerland
Let's Encrypt - Free SSL cert organisation
Back to top
View user's profile Send private message
sobers_2002
Veteran
Veteran


Joined: 16 Mar 2004
Posts: 1128

PostPosted: Fri Apr 30, 2004 8:44 pm    Post subject: Reply with quote

well use the default
Code:
-03 -mcpu=athlon-xp -fomit-frame-pointer -ftracer -pipe


when u compile xine
Code:
USE="mmx sse 3dnow"
should do the job.

btw sse2 isnt supported by athlon-xp AFAIK

luck!
Saurabh
Back to top
View user's profile Send private message
pengu
Tux's lil' helper
Tux's lil' helper


Joined: 21 May 2003
Posts: 114
Location: Germany

PostPosted: Fri Apr 30, 2004 9:26 pm    Post subject: Reply with quote

doesn't help :-(
Back to top
View user's profile Send private message
nx12
Apprentice
Apprentice


Joined: 14 Jan 2004
Posts: 193

PostPosted: Sat May 01, 2004 3:21 am    Post subject: Reply with quote

Re-emerge binutils with not so tight flags and then try again. Hope it helps.
_________________
signature sucks
Back to top
View user's profile Send private message
pengu
Tux's lil' helper
Tux's lil' helper


Joined: 21 May 2003
Posts: 114
Location: Germany

PostPosted: Sat May 01, 2004 7:14 am    Post subject: Reply with quote

nx12 wrote:
Re-emerge binutils with not so tight flags and then try again. Hope it helps.


hmm, doesn't help :-(
Back to top
View user's profile Send private message
GentooBox
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1168
Location: Denmark

PostPosted: Sat May 01, 2004 12:53 pm    Post subject: Reply with quote

Quote:
source='layer12.c' object='layer12.lo' libtool=yes \
depfile='.deps/layer12.Plo' tmpdepfile='.deps/layer12.TPlo' \
depmode=gcc3 /bin/sh ../../depcomp \
/bin/sh ../../libtool-nofpic --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../include -I../../include -I../../src -I../../src/xine-engine -I../../src/xine-engine -I../../src/xine-utils -I../../src/input -I../../src/input -march=k8 -O2 -fomit-frame-pointer -mmmx -msse -msse2 -m3dnow -pipe -DOPT_SPEED -O3 -fomit-frame-pointer -fexpensive-optimizations -fschedule-insns2 -fno-strict-aliasing -ffast-math -funroll-loops -finline-functions -Wall -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE -Wpointer-arith -Wnested-externs -Wcast-align -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -march=k8 -O2 -fomit-frame-pointer -mmmx -msse -msse2 -m3dnow -pipe -c -o layer12.lo `test -f 'layer12.c' || echo './'`layer12.c
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../include -I../../include -I../../src -I../../src/xine-engine -I../../src/xine-engine -I../../src/xine-utils -I../../src/input -I../../src/input -march=k8 -O2 -fomit-frame-pointer -mmmx -msse -msse2 -m3dnow -pipe -DOPT_SPEED -O3 -fomit-frame-pointer -fexpensive-optimizations -fschedule-insns2 -fno-strict-aliasing -ffast-math -funroll-loops -finline-functions -Wall -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE -Wpointer-arith -Wnested-externs -Wcast-align -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -march=k8 -O2 -fomit-frame-pointer -mmmx -msse -msse2 -m3dnow -pipe -c layer12.c -MT layer12.lo -MD -MP -MF .deps/layer12.TPlo -fPIC -DPIC -o .libs/layer12.o
{standard input}: Assembler messages:
{standard input}:836: Error: Incorrect register `%rcx' used with `l' suffix
{standard input}:843: Error: Incorrect register `%rax' used with `l' suffix
{standard input}:1058: Error: Incorrect register `%rcx' used with `l' suffix
{standard input}:1064: Error: Incorrect register `%rax' used with `l' suffix
{standard input}:1096: Error: Incorrect register `%rdi' used with `l' suffix
{standard input}:1122: Error: Incorrect register `%rsi' used with `l' suffix
{standard input}:1144: Error: Incorrect register `%rsi' used with `l' suffix
{standard input}:1159: Error: Incorrect register `%rsi' used with `l' suffix
{standard input}:1172: Error: Incorrect register `%rsi' used with `l' suffix
{standard input}:1188: Error: Incorrect register `%rsi' used with `l' suffix
{standard input}:1200: Error: Incorrect register `%rsi' used with `l' suffix
{standard input}:1212: Error: Incorrect register `%rsi' used with `l' suffix
{standard input}:1223: Error: Incorrect register `%rsi' used with `l' suffix
{standard input}:1262: Error: Incorrect register `%rcx' used with `l' suffix
{standard input}:1268: Error: Incorrect register `%rax' used with `l' suffix
{standard input}:1821: Error: Incorrect register `%r8' used with `l' suffix
{standard input}:1826: Error: Incorrect register `%r9' used with `l' suffix
{standard input}:1839: Error: Incorrect register `%r8' used with `l' suffix
{standard input}:1844: Error: Incorrect register `%r9' used with `l' suffix
{standard input}:1857: Error: Incorrect register `%r8' used with `l' suffix
{standard input}:1862: Error: Incorrect register `%r9' used with `l' suffix
{standard input}:1884: Error: Incorrect register `%rcx' used with `l' suffix
{standard input}:1901: Error: Incorrect register `%rcx' used with `l' suffix
{standard input}:1921: Error: Incorrect register `%rcx' used with `l' suffix
{standard input}:2030: Error: Incorrect register `%r8' used with `l' suffix
{standard input}:2035: Error: Incorrect register `%r9' used with `l' suffix
{standard input}:2048: Error: Incorrect register `%r8' used with `l' suffix
{standard input}:2053: Error: Incorrect register `%r9' used with `l' suffix
{standard input}:2066: Error: Incorrect register `%r8' used with `l' suffix
{standard input}:2070: Error: Incorrect register `%r9' used with `l' suffix
{standard input}:2102: Error: Incorrect register `%rsi' used with `l' suffix
{standard input}:2119: Error: Incorrect register `%rsi' used with `l' suffix
{standard input}:2136: Error: Incorrect register `%rsi' used with `l' suffix
make[3]: *** [layer12.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/xine-lib-1_rc4/work/xine-lib-1-rc4/src/libmad'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/xine-lib-1_rc4/work/xine-lib-1-rc4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/xine-lib-1_rc4/work/xine-lib-1-rc4'
make: *** [all] Error 2

!!! ERROR: media-libs/xine-lib-1_rc4 failed.
!!! Function src_compile, Line 114, Exitcode 2
!!! Parallel make failed


i dont know if its related, but i get this error then i compile xine-lib with GCC 3.4 on a AMD64
_________________
Encrypt, lock up everything and duct tape the rest
Back to top
View user's profile Send private message
pengu
Tux's lil' helper
Tux's lil' helper


Joined: 21 May 2003
Posts: 114
Location: Germany

PostPosted: Sat May 01, 2004 1:14 pm    Post subject: Reply with quote

yes .. same here ...
:(
Back to top
View user's profile Send private message
GentooBox
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1168
Location: Denmark

PostPosted: Sat May 01, 2004 1:15 pm    Post subject: Reply with quote

https://bugs.gentoo.org/show_bug.cgi?id=49569

found this.
xine-lib fails in amd46.
_________________
Encrypt, lock up everything and duct tape the rest
Back to top
View user's profile Send private message
pengu
Tux's lil' helper
Tux's lil' helper


Joined: 21 May 2003
Posts: 114
Location: Germany

PostPosted: Sun May 02, 2004 1:06 pm    Post subject: Reply with quote

I think that's it!

https://bugs.gentoo.org/show_bug.cgi?id=49482
Back to top
View user's profile Send private message
pengu
Tux's lil' helper
Tux's lil' helper


Joined: 21 May 2003
Posts: 114
Location: Germany

PostPosted: Sun May 02, 2004 1:25 pm    Post subject: Reply with quote

seems to work after removing -funroll-loops from CFLAGS

;-)
Back to top
View user's profile Send private message
JATMAN
Tux's lil' helper
Tux's lil' helper


Joined: 08 Aug 2002
Posts: 85
Location: Delaware, USA

PostPosted: Sun May 02, 2004 1:55 pm    Post subject: Reply with quote

Please pardon the dumb question - but how do I remove "-funroll-loops" from CFLAGS? I looked at my make.conf file, but it only has

CFLAGS="-O3 -pipe"
_________________
Tyan (S2932)
Dual Opteron 2344HE quad-core processors
8GB RAM
Four 500GB SATA-II drives (7200 RPM) - RAID 0
3ware 9650SE controller
Back to top
View user's profile Send private message
pengu
Tux's lil' helper
Tux's lil' helper


Joined: 21 May 2003
Posts: 114
Location: Germany

PostPosted: Sun May 02, 2004 2:07 pm    Post subject: Reply with quote

Code:


CFLAGS="-Os -mcpu=athlon-xp -mmmx -msse -m3dnow -fomit-frame-pointer -fexpensive-optimizations -falign-functions=16 -falign-jumps=16 -pipe"


fine here :)


[/code]
Back to top
View user's profile Send private message
pengu
Tux's lil' helper
Tux's lil' helper


Joined: 21 May 2003
Posts: 114
Location: Germany

PostPosted: Sun May 02, 2004 2:13 pm    Post subject: Reply with quote

JATMAN wrote:
Please pardon the dumb question - but how do I remove "-funroll-loops" from CFLAGS? I looked at my make.conf file, but it only has

CFLAGS="-O3 -pipe"



and after compiling xine-lib:

CFLAGS="-Os -mcpu=athlon-xp -mmmx -msse -m3dnow -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -falign-functions=16 -falign-jumps=16 -pipe"

just have two lines and uncomment the right one ...

the other thing is to modify the ebuild ....
adding

Code:

filter-flags -funroll-loops

in the src_compile () section.
Back to top
View user's profile Send private message
JATMAN
Tux's lil' helper
Tux's lil' helper


Joined: 08 Aug 2002
Posts: 85
Location: Delaware, USA

PostPosted: Sun May 02, 2004 7:49 pm    Post subject: Reply with quote

pungu:

Tried your CFLAGS - no success. Fail in exactly the same manner. Noticed that you are running an Athlon XP (not AMD64). Perhaps my problem is related to running AMD64.

Thanks anyway.

JATMAN
_________________
Tyan (S2932)
Dual Opteron 2344HE quad-core processors
8GB RAM
Four 500GB SATA-II drives (7200 RPM) - RAID 0
3ware 9650SE controller
Back to top
View user's profile Send private message
Root Moose
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jan 2004
Posts: 112

PostPosted: Tue May 04, 2004 6:01 pm    Post subject: Reply with quote

FYI,

removing -funroll-loops worked on my P4.

r@m
Back to top
View user's profile Send private message
JCScoobyRS
n00b
n00b


Joined: 18 Dec 2003
Posts: 57
Location: Colorado, USA

PostPosted: Mon Jun 14, 2004 6:15 pm    Post subject: Reply with quote

Root Moose,
What did you remove -funroll-loops from? I don't have -funroll-loops in my make.conf so I assume that you removed it from the src? I am having the same problems on a PowerPC G4. Thanks, Jeremy
_________________
He who listens well, speaks well.
Back to top
View user's profile Send private message
Root Moose
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jan 2004
Posts: 112

PostPosted: Mon Jun 14, 2004 7:28 pm    Post subject: Reply with quote

JCScoobyRS wrote:
Root Moose,
What did you remove -funroll-loops from? I don't have -funroll-loops in my make.conf so I assume that you removed it from the src? I am having the same problems on a PowerPC G4. Thanks, Jeremy


CFLAGS in /etc/make.conf

r@m
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum