• 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 ... 283 284 285 286 287 ... 1177 Next »

Build error when using clang
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Build error when using clang
09-09-2017, 05:37 AM
#1
okamiterasu Offline
Junior Member
**
Posts: 17
Threads: 3
Joined: Mar 2015
Not sure if this is supposed to go under support or development

OS: Arch Linux, Kernel 4.12.10-1-ARCH
Clang 4.0.1 (5.0.0 and 6.0.0-svn also tested)
Libc++ 4.0.1
Cmake settings:
Code:
cmake -D CMAKE_CXX_FLAGS="-stdlib=libc++" -D CMAKE_C_COMPILER="clang" -D CMAKE_CXX_COMPILER="clang++" -D CMAKE_BUILD_TYPE="Release"


When building dolphin-master using clang and libc++, it will fail at


Code:
[ 20%] Building CXX object Source/Core/Common/CMakeFiles/common.dir/Analytics.cpp.o
[ 20%] Building CXX object Source/Core/Common/CMakeFiles/common.dir/CDUtils.cpp.o
[ 20%] Building CXX object Source/Core/Common/CMakeFiles/common.dir/ColorUtil.cpp.o
[ 20%] Building CXX object Source/Core/Common/CMakeFiles/common.dir/CommonFuncs.cpp.o
In file included from /home/brian/git/dolphin/Source/Core/Common/CommonFuncs.cpp:21:
In file included from /home/brian/git/dolphin/Source/Core/Common/CommonFuncs.h:8:
In file included from /usr/bin/../include/c++/v1/string:470:
In file included from /usr/bin/../include/c++/v1/string_view:171:
In file included from /usr/bin/../include/c++/v1/__string:56:
In file included from /usr/bin/../include/c++/v1/algorithm:640:
In file included from /usr/bin/../include/c++/v1/memory:629:
In file included from /usr/bin/../include/c++/v1/typeinfo:61:
In file included from /usr/bin/../include/c++/v1/exception:82:
/usr/bin/../include/c++/v1/cstdlib:157:9: error: no member named 'aligned_alloc' in the global namespace
using ::aligned_alloc;
     ~~^
1 error generated.
make[3]: *** [Source/Core/Common/CMakeFiles/common.dir/build.make:135: Source/Core/Common/CMakeFiles/common.dir/CommonFuncs.cpp.o] Error 1
make[2]: *** [CMakeFiles/Makefile2:859: Source/Core/Common/CMakeFiles/common.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:871: Source/Core/Common/CMakeFiles/common.dir/rule] Error 2
make: *** [Makefile:368: common] Error 2
Find
Reply
09-09-2017, 02:05 PM
#2
KHg8m3r Offline
Doesn't sleep, just Dolphin and Robots
*******
Posts: 5,842
Threads: 4
Joined: Sep 2013
Pretty sure dolphin requires you to be on clang version 3.8
Find
Reply
09-10-2017, 01:01 AM
#3
okamiterasu Offline
Junior Member
**
Posts: 17
Threads: 3
Joined: Mar 2015
If that's true, then it isn't documented anywhere obvious.
Find
Reply
09-10-2017, 04:39 AM (This post was last modified: 09-10-2017, 04:40 AM by JonnyH.)
#4
JonnyH Offline
Shameless AMD shill
**********
Developers (Some Administrators and Super Moderators)
Posts: 701
Threads: 0
Joined: May 2017
This appears to be a bug in libc++ or the clang compiler bits/ headers. It's using a function that wasn't defined in the library headers without defining it, nothing to do with dolphin.

I don't think dolphin "required" clang 3.8 - so much as that's the only one it's been tested on.
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