Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 538572 - games-emulation/dolphin-4.0.2-r2 - In file included from .../work/dolphin-4.0.2/Source/Core/Common/Src/BreakPoints.cpp:11: /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/include/tmmintrin.h:136:1: error: redefinition of ‘__m128i _mm_shuffle_epi8(__m128i, __m128i)
Summary: games-emulation/dolphin-4.0.2-r2 - In file included from .../work/dolphin-4.0...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Devan Franchini (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-02 18:55 UTC by Adam Jones
Modified: 2015-03-12 21:18 UTC (History)
0 users

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


Attachments
emerge --info output (emerge-info.txt,7.12 KB, text/plain)
2015-02-02 18:55 UTC, Adam Jones
Details
build.log output (build.log,202.87 KB, text/plain)
2015-02-02 18:56 UTC, Adam Jones
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Jones 2015-02-02 18:55:30 UTC
Created attachment 395400 [details]
emerge --info output

games-emulation/dolphin-4.0.2-r2 fails to compile, reporting:

In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/include/x86intrin.h:37:0,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/include/g++-v4/x86_64-pc-linux-gnu/bits/opt_random.h:33,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/include/g++-v4/random:50,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/include/g++-v4/bits/stl_algo.h:66,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/include/g++-v4/algorithm:62,
                 from /var/tmp/portage/games-emulation/dolphin-4.0.2-r2/work/dolphin-4.0.2/Source/Core/Common/Src/BreakPoints.cpp:11:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/include/tmmintrin.h: In function ‘__m128i _mm_shuffle_epi8(__m128i, __m128i)’:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/include/tmmintrin.h:136:1: error: redefinition of ‘__m128i _mm_shuffle_epi8(__m128i, __m128i)’
 _mm_shuffle_epi8 (__m128i __X, __m128i __Y)
 ^
In file included from /var/tmp/portage/games-emulation/dolphin-4.0.2-r2/work/dolphin-4.0.2/Source/Core/Common/Src/Common.h:49:0,
                 from /var/tmp/portage/games-emulation/dolphin-4.0.2-r2/work/dolphin-4.0.2/Source/Core/Common/Src/BreakPoints.cpp:5:
/var/tmp/portage/games-emulation/dolphin-4.0.2-r2/work/dolphin-4.0.2/Source/Core/Common/Src/CommonFuncs.h:36:1: note: ‘__m128i _mm_shuffle_epi8(__m128i, __m128i)’ previously defined here
 _mm_shuffle_epi8(__m128i a, __m128i mask)
 ^
Source/Core/Common/CMakeFiles/common.dir/build.make:54: recipe for target 'Source/Core/Common/CMakeFiles/common.dir/Src/BreakPoints.cpp.o' failed
make[2]: *** [Source/Core/Common/CMakeFiles/common.dir/Src/BreakPoints.cpp.o] Error 1
Comment 1 Adam Jones 2015-02-02 18:56:14 UTC
Created attachment 395402 [details]
build.log output
Comment 2 Arve Barsnes 2015-02-11 18:52:44 UTC
This error occurs when building with gcc 4.9. It has been fixed in dolphin git.

It builds fine for me with gcc 4.8 (although I get a linking error that I haven't figured out).
Comment 4 Devan Franchini (RETIRED) gentoo-dev 2015-03-12 21:18:51 UTC
The best solution I can provide is to not compile dolphin-4.0.2 with GCC 4.9+ as stated previously. Or compile the dolphin-9999 version instead but please remember that this version is always up to date with the latest git HEAD of their repo.