• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Support v
« Previous 1 ... 500 501 502 503 504 ... 1190 Next »

CMake errors compiling 4.0.2 on linux
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
CMake errors compiling 4.0.2 on linux
01-23-2015, 04:27 PM
#1
Xerxes Offline
Wiki Editor
**
Posts: 47
Threads: 2
Joined: Dec 2014
I'm trying to build 4.0.2 on linux after checking out from git. I've been able to build from about 4.0-4200 onwards using cmake, make, sudo make install just fine but in order to do some testing I wanted to compile older revisions and I'm getting all kinds of errors in cmake and then the build fails. It goes through some -Wshadow warnings which are no big deal and then it gets to "target common" and spits out this nonsense:

Code:
[ 20%] Building CXX object Source/Core/Common/CMakeFiles/common.dir/Src/BreakPoints.cpp.o

In file included from /usr/lib/gcc/x86_64-linux-gnu/4.9/include/x86intrin.h:37:0,
                 from /usr/include/x86_64-linux-gnu/c++/4.9/bits/opt_random.h:33,
                 from /usr/include/c++/4.9/random:50,
                 from /usr/include/c++/4.9/bits/stl_algo.h:66,
                 from /usr/include/c++/4.9/algorithm:62,
                 from /home/dolphin-emu-test/Source/Core/Common/Src/BreakPoints.cpp:11:
/usr/lib/gcc/x86_64-linux-gnu/4.9/include/tmmintrin.h: In function ‘__m128i _mm_shuffle_epi8(__m128i, __m128i)’:
/usr/lib/gcc/x86_64-linux-gnu/4.9/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 /home/dolphin-emu-test/Source/Core/Common/Src/Common.h:49:0,
                 from /home/dolphin-emu-test/Source/Core/Common/Src/BreakPoints.cpp:5:
/home/dolphin-emu-test/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
CMakeFiles/Makefile2:641: recipe for target 'Source/Core/Common/CMakeFiles/common.dir/all' failed
make[1]: *** [Source/Core/Common/CMakeFiles/common.dir/all] Error 2
Makefile:133: recipe for target 'all' failed
make: *** [all] Error 2

I'm not completely new to compiler errors but this just makes no sense at all to me, maybe my version of g++/gcc is too new and causing problems? Ultimately it's not a huge deal but I wanted to do some testing of revisions around 4.0-1000 and it's kinda depressing that I can't get them to build properly when the newer revisions build perfectly fine. Anyone know what's going on, or know how to get it to compile properly?
Find
Reply
01-24-2015, 01:28 AM (This post was last modified: 01-24-2015, 01:29 AM by Shonumi.)
#2
Shonumi Offline
Linux User/Tester
**********
Administrators
Posts: 6,503
Threads: 55
Joined: Dec 2011
Did you try to do this from a fresh
Code:
git clone https://github.com/dolphin-emu/dolphin.git
and then?
Code:
git checkout 4.0.2

That's kinda the nuclear option, so before doing it, try to delete your build folder and make a new one.
Website Find
Reply
01-24-2015, 02:26 AM
#3
Nfaug Offline
Noitcere
**
Posts: 42
Threads: 11
Joined: Jan 2015
i just intalled it using https://launchpad.net/~glennric/+archive/ubuntu/dolphin-emu and it installed fine for me, its about a couple dev versions behind, but not much. works very well.
Find
Reply
01-24-2015, 09:15 AM
#4
Xerxes Offline
Wiki Editor
**
Posts: 47
Threads: 2
Joined: Dec 2014
(01-24-2015, 02:26 AM)Nfaug Wrote: i just intalled it using https://launchpad.net/~glennric/+archive/ubuntu/dolphin-emu and it installed fine for me, its about a couple dev versions behind, but not much. works very well.

This is fine if you just want an older version to play around with and I used to use glennric ppa myself but I'm trying to bisect when a particular bug was introduced which means I have to be able to build a lot of arbitrary earlier revisions.

(01-24-2015, 01:28 AM)Shonumi Wrote: Did you try to do this from a fresh
Code:
git clone https://github.com/dolphin-emu/dolphin.git
and then?
Code:
git checkout 4.0.2

That's kinda the nuclear option, so before doing it, try to delete your build folder and make a new one.

Tried deleting my build folder and rebuilding, same error. Then I tried cloning again, running git checkout 4.0.2, and building, same error. At this point I'm considering just bisecting down to what revision fixed compile (because it works around 4.0-2200) and just manually keeping those changes when I checkout different revisions, but that's not really a solution to the underlying problem. I'm up for any suggestions really, I have this in a separate dolphin directory for testing so I'm not concerned if trying something blows up in my face as long as I can still build latest.
Find
Reply
01-24-2015, 11:08 AM
#5
Sonicadvance1 Offline
Professional Hand Holder
**********
Developers (Some Administrators and Super Moderators)
Posts: 716
Threads: 15
Joined: Jan 2013
The GCC version is too new for 4.0.2, you need to backport a change from a newer source to get it building.
Find
Reply
01-24-2015, 11:30 AM (This post was last modified: 01-24-2015, 12:25 PM by Xerxes.)
#6
Xerxes Offline
Wiki Editor
**
Posts: 47
Threads: 2
Joined: Dec 2014
(01-24-2015, 11:08 AM)Sonicadvance1 Wrote: The GCC version is too new for 4.0.2, you need to backport a change from a newer source to get it building.

That's what I was afraid of. Oh well, I'm already halfway through bisecting what change fixed it anyways so I'll know pretty soon what change to backport. Thanks for the reply.

EDIT: for anyone curious, the commit that fixed building was this according to my bisect. Weird, but at least I know what works, and it was something not really that important (for me anyways) that was breaking it.
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode