View previous topic :: View next topic |
Author |
Message |
Ato n00b
Joined: 22 Dec 2007 Posts: 66 Location: Macclesfield, United Kingdom
|
Posted: Wed Mar 16, 2011 11:41 am Post subject: dev-libs/STLport-5.2.1 stable fails to build on my G4 |
|
|
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 |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
Posted: Thu Mar 17, 2011 5:12 am Post subject: |
|
|
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 |
|
|
Ato n00b
Joined: 22 Dec 2007 Posts: 66 Location: Macclesfield, United Kingdom
|
Posted: Thu Mar 17, 2011 6:53 am Post subject: |
|
|
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 |
|
|
blob999 n00b
Joined: 07 Jun 2009 Posts: 64 Location: NATO area
|
Posted: Sun Mar 20, 2011 2:43 pm Post subject: |
|
|
instead, did you submitted that bug to STLport developers? _________________ LinuxPPC user!
my blog: http://linuxpowerpc.blogspot.com/ |
|
Back to top |
|
|
Ato n00b
Joined: 22 Dec 2007 Posts: 66 Location: Macclesfield, United Kingdom
|
Posted: Sun Mar 20, 2011 5:53 pm Post subject: |
|
|
blob999 wrote: | instead, did you submitted that bug to STLport developers? |
I let the Gentoo devs take that upstairs. |
|
Back to top |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
Posted: Mon Mar 21, 2011 1:24 am Post subject: |
|
|
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 |
|
|
Ato n00b
Joined: 22 Dec 2007 Posts: 66 Location: Macclesfield, United Kingdom
|
Posted: Mon Mar 21, 2011 1:48 am Post subject: |
|
|
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 |
|
|
|