Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 359247 - dev-libs/STLport-5.2.1 does not compile on ppc with altivec CFLAGS due to vector clashing
Summary: dev-libs/STLport-5.2.1 does not compile on ppc with altivec CFLAGS due to vec...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: C++ Team [disbanded]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-17 07:07 UTC by Thomas Juerges
Modified: 2017-05-07 07:49 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,3.69 KB, text/plain)
2011-03-17 07:07 UTC, Thomas Juerges
Details
emerge --info output redacted for privacy (emerge.info,5.11 KB, text/plain)
2011-03-17 07:08 UTC, Thomas Juerges
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Juerges 2011-03-17 07:07:43 UTC
Created attachment 266227 [details]
build.log

Hi folks,

the package mentioned in the ebuild does not compile on my Mac Mini G4.  emerge --info and the build log will be attached.

Failure:

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


Cheers,
T.
Comment 1 Thomas Juerges 2011-03-17 07:08:36 UTC
Created attachment 266229 [details]
emerge --info output redacted for privacy
Comment 2 SpanKY gentoo-dev 2011-03-17 09:49:50 UTC
i imagine if you drop the altivec stuff from your CFLAGS it'll build
Comment 3 Thomas Juerges 2011-03-17 15:03:53 UTC
(In reply to comment #2)
> i imagine if you drop the altivec stuff from your CFLAGS it'll build

Quite possible but certainly not an option since the older versions obviously built fine with Altivec support enabled.  Therefore this is a regression and should be addressed.
Comment 4 Adam Stylinski 2011-09-25 20:21:50 UTC
Does the code even benefit from the altivec flags?  Why not make the ebuild just strip those flags if they're present?  I highly doubt they're making much use of the SIMD intrinsics here.
Comment 5 Thomas Juerges 2011-09-25 20:56:46 UTC
Do you have any proof for your statement? Assembler code perhaps that supports your claim?

The point is that it does not matter if the code benefits from the option that enables Altivec optimisation or any other.  -O2 comes to mind. The point is that this optimisation had been previously enabled and now it - the package - failed to compile.

Cheers,
    T.
Comment 6 David Seifert gentoo-dev 2017-05-07 07:49:39 UTC
commit 967d0ecf3f118dae84b7d100d3464f26cc3d33f7
Author: David Seifert <soap@gentoo.org>
Date:   Sun May 7 09:47:53 2017 +0200

    dev-libs/STLport: Remove from tree