Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xine-lib fails to build
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
mr-simon
Guru
Guru


Joined: 22 Nov 2002
Posts: 364
Location: Leamington Spa, Warks, UK

PostPosted: Wed Mar 10, 2004 4:17 pm    Post subject: xine-lib fails to build Reply with quote

I'm trying to emerge xine-lib on my Powermac G4.

It fails as follows:
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    -Wa,-m7400 -O3 -pipe -fomit-frame-pointer   -fexpensive-optimizations -fschedule-insns2 -fno-strict-aliasing -ffast-math -funroll-loops -funroll-all-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 -O2 -pipe -mcpu=7450 -fsigned-char -mpowerpc-gfxopt -fforce-mem -fomit-frame-pointer -falign-functions=4 -fprefetch-loop-arrays -ffast-math -fforce-addr -c -o idct_altivec.lo `test -f 'idct_altivec.c' || echo './'`idct_altivec.c
idct_altivec.c:629: error: syntax error before "signed"
idct_altivec.c:630: error: `vector' undeclared here (not in a function)
idct_altivec.c:630: error: syntax error before "signed"
idct_altivec.c:630: error: initializer element is not constant
idct_altivec.c:630: error: (near initialization for `constants[0]')
idct_altivec.c:631: error: `vector' undeclared here (not in a function)
idct_altivec.c:631: error: syntax error before "signed"
idct_altivec.c:631: error: initializer element is not constant
idct_altivec.c:631: error: (near initialization for `constants[1]')
idct_altivec.c:632: error: `vector' undeclared here (not in a function)
idct_altivec.c:632: error: syntax error before "signed"
idct_altivec.c:632: error: initializer element is not constant
idct_altivec.c:632: error: (near initialization for `constants[2]')
idct_altivec.c:633: error: `vector' undeclared here (not in a function)
idct_altivec.c:633: error: syntax error before "signed"
idct_altivec.c:633: error: initializer element is not constant
idct_altivec.c:633: error: (near initialization for `constants[3]')
idct_altivec.c:634: error: `vector' undeclared here (not in a function)
idct_altivec.c:634: error: syntax error before "signed"
idct_altivec.c:635: error: initializer element is not constant
idct_altivec.c:635: error: (near initialization for `constants[4]')
idct_altivec.c:637: error: syntax error before "signed"
idct_altivec.c:639: warning: no previous prototype for `mpeg2_idct_copy_altivec'
idct_altivec.c: In function `mpeg2_idct_copy_altivec':
idct_altivec.c:640: error: `vector' undeclared (first use in this function)
idct_altivec.c:640: error: (Each undeclared identifier is reported only once
idct_altivec.c:640: error: for each function it appears in.)
idct_altivec.c:640: error: syntax error before "unsigned"
idct_altivec.c:642: error: `c4' undeclared (first use in this function)
idct_altivec.c:642: warning: implicit declaration of function `vec_splat'
idct_altivec.c:642: error: `a0' undeclared (first use in this function)
idct_altivec.c:642: error: `a1' undeclared (first use in this function)
idct_altivec.c:642: error: `a2' undeclared (first use in this function)
idct_altivec.c:642: error: `mc4' undeclared (first use in this function)
idct_altivec.c:642: error: `ma2' undeclared (first use in this function)
idct_altivec.c:642: error: `bias' undeclared (first use in this function)
idct_altivec.c:642: error: syntax error before "signed"
idct_altivec.c:642: error: `zero' undeclared (first use in this function)
idct_altivec.c:642: warning: implicit declaration of function `vec_splat_s16'
idct_altivec.c:642: error: `shift' undeclared (first use in this function)
idct_altivec.c:642: warning: implicit declaration of function `vec_splat_u16'
idct_altivec.c:642: error: `vx0' undeclared (first use in this function)
idct_altivec.c:642: warning: implicit declaration of function `vec_mradds'
idct_altivec.c:642: warning: implicit declaration of function `vec_sl'
idct_altivec.c:642: error: `block' undeclared (first use in this function)
idct_altivec.c:642: error: `vx1' undeclared (first use in this function)
idct_altivec.c:642: error: `vx2' undeclared (first use in this function)
idct_altivec.c:642: error: `vx3' undeclared (first use in this function)
idct_altivec.c:642: error: `vx4' undeclared (first use in this function)
idct_altivec.c:642: error: `vx5' undeclared (first use in this function)
idct_altivec.c:642: error: `vx6' undeclared (first use in this function)
idct_altivec.c:642: error: `vx7' undeclared (first use in this function)
idct_altivec.c:642: error: `t1' undeclared (first use in this function)
idct_altivec.c:642: error: `t8' undeclared (first use in this function)
idct_altivec.c:642: warning: implicit declaration of function `vec_subs'
idct_altivec.c:642: error: `t7' undeclared (first use in this function)
idct_altivec.c:642: error: `t3' undeclared (first use in this function)
idct_altivec.c:642: error: `t5' undeclared (first use in this function)
idct_altivec.c:642: warning: implicit declaration of function `vec_adds'
idct_altivec.c:642: error: `t0' undeclared (first use in this function)
idct_altivec.c:642: error: `t2' undeclared (first use in this function)
idct_altivec.c:642: error: `t4' undeclared (first use in this function)
idct_altivec.c:642: error: `t6' undeclared (first use in this function)
idct_altivec.c:642: error: `vy0' undeclared (first use in this function)
idct_altivec.c:642: error: `vy7' undeclared (first use in this function)
idct_altivec.c:642: error: `vy1' undeclared (first use in this function)
idct_altivec.c:642: error: `vy6' undeclared (first use in this function)
idct_altivec.c:642: error: `vy2' undeclared (first use in this function)
idct_altivec.c:642: error: `vy5' undeclared (first use in this function)
idct_altivec.c:642: error: `vy3' undeclared (first use in this function)
idct_altivec.c:642: error: `vy4' undeclared (first use in this function)
idct_altivec.c:642: warning: implicit declaration of function `vec_mergeh'
idct_altivec.c:642: warning: implicit declaration of function `vec_mergel'
idct_altivec.c:642: warning: implicit declaration of function `vec_sra'
idct_altivec.c:649: error: `tmp' undeclared (first use in this function)
idct_altivec.c:649: warning: implicit declaration of function `vec_packsu'
idct_altivec.c:649: warning: implicit declaration of function `vec_ste'
idct_altivec.c:649: error: syntax error before "unsigned"
idct_altivec.c:649: error: syntax error before "unsigned"
idct_altivec.c:649: error: `dest' undeclared (first use in this function)
idct_altivec.c:649: error: `stride' undeclared (first use in this function)
idct_altivec.c:650: error: syntax error before "unsigned"
idct_altivec.c:650: error: syntax error before "unsigned"
idct_altivec.c:651: error: syntax error before "unsigned"
idct_altivec.c:651: error: syntax error before "unsigned"
idct_altivec.c:652: error: syntax error before "unsigned"
idct_altivec.c:652: error: syntax error before "unsigned"
idct_altivec.c:653: error: syntax error before "unsigned"
idct_altivec.c:653: error: syntax error before "unsigned"
idct_altivec.c:654: error: syntax error before "unsigned"
idct_altivec.c:654: error: syntax error before "unsigned"
idct_altivec.c:655: error: syntax error before "unsigned"
idct_altivec.c:655: error: syntax error before "unsigned"
idct_altivec.c:656: error: syntax error before "unsigned"
idct_altivec.c:656: error: syntax error before "unsigned"
idct_altivec.c:657: warning: implicit declaration of function `memset'
idct_altivec.c: At top level:
idct_altivec.c:660: error: syntax error before "signed"
idct_altivec.c:662: warning: no previous prototype for `mpeg2_idct_add_altivec'
idct_altivec.c: In function `mpeg2_idct_add_altivec':
idct_altivec.c:663: error: `vector' undeclared (first use in this function)
idct_altivec.c:663: error: syntax error before "unsigned"
idct_altivec.c:669: error: `c4' undeclared (first use in this function)
idct_altivec.c:669: error: `a0' undeclared (first use in this function)
idct_altivec.c:669: error: `a1' undeclared (first use in this function)
idct_altivec.c:669: error: `a2' undeclared (first use in this function)
idct_altivec.c:669: error: `mc4' undeclared (first use in this function)
idct_altivec.c:669: error: `ma2' undeclared (first use in this function)
idct_altivec.c:669: error: `bias' undeclared (first use in this function)
idct_altivec.c:669: error: syntax error before "signed"
idct_altivec.c:669: error: `zero' undeclared (first use in this function)
idct_altivec.c:669: error: `shift' undeclared (first use in this function)
idct_altivec.c:669: error: `vx0' undeclared (first use in this function)
idct_altivec.c:669: error: `block' undeclared (first use in this function)
idct_altivec.c:669: error: `vx1' undeclared (first use in this function)
idct_altivec.c:669: error: `vx2' undeclared (first use in this function)
idct_altivec.c:669: error: `vx3' undeclared (first use in this function)
idct_altivec.c:669: error: `vx4' undeclared (first use in this function)
idct_altivec.c:669: error: `vx5' undeclared (first use in this function)
idct_altivec.c:669: error: `vx6' undeclared (first use in this function)
idct_altivec.c:669: error: `vx7' undeclared (first use in this function)
idct_altivec.c:669: error: `t1' undeclared (first use in this function)
idct_altivec.c:669: error: `t8' undeclared (first use in this function)
idct_altivec.c:669: error: `t7' undeclared (first use in this function)
idct_altivec.c:669: error: `t3' undeclared (first use in this function)
idct_altivec.c:669: error: `t5' undeclared (first use in this function)
idct_altivec.c:669: error: `t0' undeclared (first use in this function)
idct_altivec.c:669: error: `t2' undeclared (first use in this function)
idct_altivec.c:669: error: `t4' undeclared (first use in this function)
idct_altivec.c:669: error: `t6' undeclared (first use in this function)
idct_altivec.c:669: error: `vy0' undeclared (first use in this function)
idct_altivec.c:669: error: `vy7' undeclared (first use in this function)
idct_altivec.c:669: error: `vy1' undeclared (first use in this function)
idct_altivec.c:669: error: `vy6' undeclared (first use in this function)
idct_altivec.c:669: error: `vy2' undeclared (first use in this function)
idct_altivec.c:669: error: `vy5' undeclared (first use in this function)
idct_altivec.c:669: error: `vy3' undeclared (first use in this function)
idct_altivec.c:669: error: `vy4' undeclared (first use in this function)
idct_altivec.c:671: error: `p0' undeclared (first use in this function)
idct_altivec.c:671: warning: implicit declaration of function `vec_lvsl'
idct_altivec.c:671: error: `dest' undeclared (first use in this function)
idct_altivec.c:672: error: `p1' undeclared (first use in this function)
idct_altivec.c:672: error: `stride' undeclared (first use in this function)
idct_altivec.c:673: error: `p' undeclared (first use in this function)
idct_altivec.c:673: warning: implicit declaration of function `vec_splat_u8'
idct_altivec.c:674: error: `perm0' undeclared (first use in this function)
idct_altivec.c:675: error: `perm1' undeclared (first use in this function)
idct_altivec.c:686: error: `tmp' undeclared (first use in this function)
idct_altivec.c:686: warning: implicit declaration of function `vec_ld'
idct_altivec.c:686: error: `tmp2' undeclared (first use in this function)
idct_altivec.c:686: error: syntax error before "signed"
idct_altivec.c:686: error: `tmp3' undeclared (first use in this function)
idct_altivec.c:686: error: syntax error before "unsigned"
idct_altivec.c:686: error: syntax error before "unsigned"
idct_altivec.c:687: error: syntax error before "signed"
idct_altivec.c:687: error: syntax error before "unsigned"
idct_altivec.c:687: error: syntax error before "unsigned"
idct_altivec.c:688: error: syntax error before "signed"
idct_altivec.c:688: error: syntax error before "unsigned"
idct_altivec.c:688: error: syntax error before "unsigned"
idct_altivec.c:689: error: syntax error before "signed"
idct_altivec.c:689: error: syntax error before "unsigned"
idct_altivec.c:689: error: syntax error before "unsigned"
idct_altivec.c:690: error: syntax error before "signed"
idct_altivec.c:690: error: syntax error before "unsigned"
idct_altivec.c:690: error: syntax error before "unsigned"
idct_altivec.c:691: error: syntax error before "signed"
idct_altivec.c:691: error: syntax error before "unsigned"
idct_altivec.c:691: error: syntax error before "unsigned"
idct_altivec.c:692: error: syntax error before "signed"
idct_altivec.c:692: error: syntax error before "unsigned"
idct_altivec.c:692: error: syntax error before "unsigned"
idct_altivec.c:693: error: syntax error before "signed"
idct_altivec.c:693: error: syntax error before "unsigned"
idct_altivec.c:693: error: syntax error before "unsigned"
make[3]: *** [idct_altivec.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/xine-lib-1_rc3-r1/work/xine-lib-1-rc3a/src/libmpeg2'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/xine-lib-1_rc3-r1/work/xine-lib-1-rc3a/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/xine-lib-1_rc3-r1/work/xine-lib-1-rc3a'
make: *** [all] Error 2

!!! ERROR: media-libs/xine-lib-1_rc3-r1 failed.
!!! Function src_compile, Line 112, Exitcode 2
!!! Parallel make failed
I had a look at the offending .c file, and it looks like the compiler doesn't understand the "vector" keyword. I believe this is something to do with altivec, so I recompiled with USE="-altivec" but hit the same error.

CFLAGS="-O2 -pipe -mcpu=7450 -fsigned-char -mpowerpc-gfxopt -maltivec -mabi=altivec"
Not that I would have thought that affected a syntax error.

I'm compiling the whole box with ACCEPT_KEYWORDS="~ppc"

BTW, this is my first install of Gentoo on ppc... I've never had a mac before. I managed to loan one off work for a while so I could learn about them.

Any ideas?
_________________
"Pokey, are you drunk on love?"
"Yes. Also whiskey. But mostly love... and whiskey."
Back to top
View user's profile Send private message
cottonmouth
Tux's lil' helper
Tux's lil' helper


Joined: 24 Jan 2004
Posts: 105

PostPosted: Thu Mar 11, 2004 2:23 pm    Post subject: Reply with quote

Except from the obvious of removing the ~, check out these flags and see if you've been a tad to fancy

http://www.freehackers.org/gentoo/gccflags/flag_gcc3.html.

All the best[/u]
_________________
Answer an unanswered post
Back to top
View user's profile Send private message
mr-simon
Guru
Guru


Joined: 22 Nov 2002
Posts: 364
Location: Leamington Spa, Warks, UK

PostPosted: Thu Mar 11, 2004 5:03 pm    Post subject: Reply with quote

Okay, I tried it with every combination of flags imaginable, stripping it down to "-O1 -pipe" (which worked), and added them back one at a time.

Suprisingly, (or maybe not, I know nothing about macs but this suprised me) it broke again when I added -mcpu=7450. Removing this flag fixes it.

Perhaps one of the devs can filter this flag in the ebuild?
_________________
"Pokey, are you drunk on love?"
"Yes. Also whiskey. But mostly love... and whiskey."
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:18 pm    Post subject: Reply with quote

I am having the same issues. What about the "~" is supposed to be obvious? I have that set as well. I have made MAKEOPTS = "-j1" and to no avail. I've heard that removing -funroll-loop from make.conf but I don't have that in mine. Anyone know what is the real fix? Thanks, Jeremy
_________________
He who listens well, speaks well.
Back to top
View user's profile Send private message
tomasino
Apprentice
Apprentice


Joined: 11 Feb 2004
Posts: 154
Location: Italy, Bologna

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

I think that https://bugs.gentoo.org is a better place for problem like this.
Take a look here.
Back to top
View user's profile Send private message
MidnightCheese
n00b
n00b


Joined: 14 Jun 2004
Posts: 10
Location: Music City

PostPosted: Mon Jun 14, 2004 7:06 pm    Post subject: xine-lib Reply with quote

I had been running into this same problem the last couple days on a PowerBookG4.

Removing the mcpu=7400 CFLAG in my make.conf as suggested earlier allowed everything to compile successfully.

Hopefully this will help those people who are not searching the bugs area.
Back to top
View user's profile Send private message
JCScoobyRS
n00b
n00b


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

PostPosted: Tue Jun 15, 2004 12:15 am    Post subject: Reply with quote

Should I add it back after it compiles? Thanks, Jeremy
_________________
He who listens well, speaks well.
Back to top
View user's profile Send private message
JCScoobyRS
n00b
n00b


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

PostPosted: Tue Jun 15, 2004 12:28 am    Post subject: Reply with quote

Okay...I took out the mcpu flag in CLFAGS and it still didn't compile but it failed quicker. :) Anyways, I've also seen that "-O2 -pipe" would work. If not, I'll try "-O1 -pipe" and go from there. I wonder what could be the issue? Doesn't seem to be the same as the previously discussed ones. Thanks, Jeremy
_________________
He who listens well, speaks well.
Back to top
View user's profile Send private message
JCScoobyRS
n00b
n00b


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

PostPosted: Tue Jun 15, 2004 1:47 am    Post subject: Reply with quote

Doh...typo in make.conf. "02" != "O2". Working now. Should I add it back after it's cone compiling and why is it there if it breaks things? Where can I get more information on this? Thanks, Jeremy
_________________
He who listens well, speaks well.
Back to top
View user's profile Send private message
MidnightCheese
n00b
n00b


Joined: 14 Jun 2004
Posts: 10
Location: Music City

PostPosted: Tue Jun 15, 2004 2:26 am    Post subject: xine-lib Reply with quote

In my case I was able to put the flag back in after xine-lib completed, and compile other packages without a problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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