Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dev-libs/STLport-5.2.1 stable fails to build on my G4
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
Ato
n00b
n00b


Joined: 22 Dec 2007
Posts: 66
Location: Duisburg, Germany

PostPosted: Wed Mar 16, 2011 11:41 am    Post subject: dev-libs/STLport-5.2.1 stable fails to build on my G4 Reply with quote

Hi,

it seems that my box (Mac Mini G4) does not like to compile the new stable STLport (dev-libs/STLport-5.2.1). It fails right off the bat:

>>> Compiling source in /var/tmp/portage/dev-libs/STLport-5.2.1/work/STLport-5.2.1 ...
make -j1
make -C build/lib all;
make[1]: Entering directory `/var/tmp/portage/dev-libs/STLport-5.2.1/work/STLport-5.2.1/build/lib'
powerpc-unknown-linux-gnu-g++ -pthread -fexceptions -fPIC -fvisibility=hidden -O2 -mcpu=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe -ggdb3 -D_GNU_SOURCE -I../../stlport -c -o obj/gcc/so/dll_main.o ../../src/dll_main.cpp
In file included from ../../stlport/vector:38,
from ../../src/dll_main.cpp:43:
../../stlport/stl/_vector.h:714: error: expected declaration before ‘}’ token
make[1]: *** [obj/gcc/so/dll_main.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-libs/STLport-5.2.1/work/STLport-5.2.1/build/lib'
make: *** [all] Error 2
emake failed

The offending line is a macro which defined the end of a namespace. As a matter of fact, I found two definitions for it in features.h, one with trailing } and one without it. Besides adding -ggdb3 to the GCC options, make.conf does not really contain anything that could trigger this build failure. Question is now if anybody else is experiencing this, too?

Cheers,
T.
Back to top
View user's profile Send private message
JoseJX
Developer
Developer


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu Mar 17, 2011 5:12 am    Post subject: Reply with quote

It's most likely related to Altivec, it wouldn't be the first time that STLport has broken due to this. :/ Unfortunately, I can't test it at the moment, my main development machine has died. It would be nice if you could make a bug for this problem though!
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Ato
n00b
n00b


Joined: 22 Dec 2007
Posts: 66
Location: Duisburg, Germany

PostPosted: Thu Mar 17, 2011 6:53 am    Post subject: Reply with quote

JoseJX wrote:
It would be nice if you could make a bug for this problem though!


I just wanted to check here first if somebody already had a remedy. I will file a bug right now.

Cheers,
T.

PS Bug filed: https://bugs.gentoo.org/show_bug.cgi?id=359247
Back to top
View user's profile Send private message
blob999
n00b
n00b


Joined: 07 Jun 2009
Posts: 64
Location: NATO area

PostPosted: Sun Mar 20, 2011 2:43 pm    Post subject: Reply with quote

instead, did you submitted that bug to STLport developers?
_________________
LinuxPPC user!
my blog: http://linuxpowerpc.blogspot.com/
Back to top
View user's profile Send private message
Ato
n00b
n00b


Joined: 22 Dec 2007
Posts: 66
Location: Duisburg, Germany

PostPosted: Sun Mar 20, 2011 5:53 pm    Post subject: Reply with quote

blob999 wrote:
instead, did you submitted that bug to STLport developers?


I let the Gentoo devs take that upstairs.
Back to top
View user's profile Send private message
JoseJX
Developer
Developer


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Mar 21, 2011 1:24 am    Post subject: Reply with quote

I tried it on my G4, it does compile with gcc-4.3, but not anything newer. It does appear to be a conflict with the vector keyword. If you really need to compile the package, try using gcc-4.3.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Ato
n00b
n00b


Joined: 22 Dec 2007
Posts: 66
Location: Duisburg, Germany

PostPosted: Mon Mar 21, 2011 1:48 am    Post subject: Reply with quote

JoseJX wrote:
I tried it on my G4, it does compile with gcc-4.3, but not anything newer. It does appear to be a conflict with the vector keyword. If you really need to compile the package, try using gcc-4.3.


Nah, it is OK. I just mask the ebuild. Thanks for looking into it.

Cheers,
T.
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