Skip to content

Instantly share code, notes, and snippets.

@dilworks
Created April 29, 2019 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dilworks/639d616eb221bef0568e56482e12a1a9 to your computer and use it in GitHub Desktop.
Save dilworks/639d616eb221bef0568e56482e12a1a9 to your computer and use it in GitHub Desktop.
Dolphin build errors with Clang on Debian stable
--clang-3.8
[ 15%] Building CXX object Source/Core/Common/CMakeFiles/common.dir/GL/GLInterface/EGL.cpp.o
/home/tomman/workbench/dolphin-emu/Source/Core/Common/GL/GLInterface/EGL.cpp:292:10: error: no viable conversion from returned value of type
'unique_ptr<GLContextEGL>' to function return type 'unique_ptr<GLContext>'
return new_context;
^~~~~~~~~~~
/usr/include/c++/v1/memory:2459:29: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from
'std::unique_ptr<GLContextEGL>' to 'const std::__1::unique_ptr<GLContext, std::__1::default_delete<GLContext> > &' for 1st argument
class _LIBCPP_TYPE_VIS_ONLY unique_ptr
^
/usr/include/c++/v1/memory:2488:49: note: candidate constructor not viable: no known conversion from 'std::unique_ptr<GLContextEGL>' to
'nullptr_t' for 1st argument
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR unique_ptr(nullptr_t) _NOEXCEPT
^
/usr/include/c++/v1/memory:2515:31: note: candidate constructor not viable: no known conversion from 'std::unique_ptr<GLContextEGL>' to
'std::__1::unique_ptr<GLContext, std::__1::default_delete<GLContext> > &&' for 1st argument
_LIBCPP_INLINE_VISIBILITY unique_ptr(unique_ptr&& __u) _NOEXCEPT
^
/usr/include/c++/v1/memory:2519:9: note: candidate constructor [with _Up = GLContextEGL, _Ep = std::__1::default_delete<GLContextEGL>] not
viable: no known conversion from 'std::unique_ptr<GLContextEGL>' to 'unique_ptr<GLContextEGL, std::__1::default_delete<GLContextEGL> > &&'
for 1st argument
unique_ptr(unique_ptr<_Up, _Ep>&& __u,
^
/usr/include/c++/v1/memory:2534:35: note: candidate template ignored: could not match 'auto_ptr' against 'unique_ptr'
_LIBCPP_INLINE_VISIBILITY unique_ptr(auto_ptr<_Up>&& __p,
^
1 error generated.
Source/Core/Common/CMakeFiles/common.dir/build.make:777: fallo en las instrucciones para el objetivo 'Source/Core/Common/CMakeFiles/common.dir/GL/GLInterface/EGL.cpp.o'
make[2]: *** [Source/Core/Common/CMakeFiles/common.dir/GL/GLInterface/EGL.cpp.o] Error 1
CMakeFiles/Makefile2:1006: fallo en las instrucciones para el objetivo 'Source/Core/Common/CMakeFiles/common.dir/all'
make[1]: *** [Source/Core/Common/CMakeFiles/common.dir/all] Error 2
Makefile:151: fallo en las instrucciones para el objetivo 'all'
make: *** [all] Error 2
---clang-6.0
[ 12%] Building CXX object Source/Core/AudioCommon/CMakeFiles/audiocommon.dir/AudioCommon.cpp.o
In file included from /home/tomman/workbench/dolphin-emu/Source/Core/AudioCommon/AudioCommon.cpp:19:
In file included from /home/tomman/workbench/dolphin-emu/Source/Core/Core/ConfigManager.h:17:
In file included from /home/tomman/workbench/dolphin-emu/Source/Core/Core/TitleDatabase.h:8:
In file included from /usr/include/c++/v1/unordered_map:350:
/usr/include/c++/v1/__hash_table:1169:43: error: conflicting types for '__hash_table<_Tp, _Hash, _Equal, _Alloc>'
__hash_table<_Tp, _Hash, _Equal, _Alloc>::__hash_table()
^
/usr/include/c++/v1/__hash_table:856:5: note: previous declaration is here
__hash_table()
^
/usr/include/c++/v1/__hash_table:1237:43: error: conflicting types for '__hash_table<_Tp, _Hash, _Equal, _Alloc>'
__hash_table<_Tp, _Hash, _Equal, _Alloc>::__hash_table(__hash_table&& __u)
^
/usr/include/c++/v1/__hash_table:870:5: note: previous declaration is here
__hash_table(__hash_table&& __u)
^
2 errors generated.
Source/Core/AudioCommon/CMakeFiles/audiocommon.dir/build.make:62: fallo en las instrucciones para el objetivo 'Source/Core/AudioCommon/CMakeFiles/audiocommon.dir/AudioCommon.cpp.o'
make[2]: *** [Source/Core/AudioCommon/CMakeFiles/audiocommon.dir/AudioCommon.cpp.o] Error 1
CMakeFiles/Makefile2:949: fallo en las instrucciones para el objetivo 'Source/Core/AudioCommon/CMakeFiles/audiocommon.dir/all'
make[1]: *** [Source/Core/AudioCommon/CMakeFiles/audiocommon.dir/all] Error 2
Makefile:151: fallo en las instrucciones para el objetivo 'all'
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment