emulators/dolphin-emu fails to build on 10.0-RC4

Henry Hu henry.hu.sh at gmail.com
Wed Jan 8 05:16:08 UTC 2014


On Tue, Jan 7, 2014 at 11:28 PM, Suchipi Izumi <me at suchipi.com> wrote:

> On FreeBSD 10.0-RC4 using GENERIC kernel on amd64, I run into this:
>
>           [ 89%] Built target core
> --- Source/Core/DolphinWX/CMakeFiles/dolphin-emu.dir/all ---
> /usr/bin/make -f
> Source/Core/DolphinWX/CMakeFiles/dolphin-emu.dir/build.make
> Source/Core/DolphinWX/CMakeFiles/dolphin-emu.dir/depend
> --- Source/Core/DolphinWX/CMakeFiles/dolphin-emu.dir/depend ---
> cd /usr/ports/emulators/dolphin-emu/work/dolphin-emu-4.0.0 &&
> /usr/local/bin/cmake -E cmake_depends "Unix Makefiles"
> /usr/ports/emulators/dolphin-emu/work/dolphin-emu-4.0.0
> /usr/ports/emulators/dolphin-emu/work/dolphin-emu-4.0.0/Source/Core/DolphinWX
> /usr/ports/emulators/dolphin-emu/work/dolphin-emu-4.0.0
> /usr/ports/emulators/dolphin-emu/work/dolphin-emu-4.0.0/Source/Core/DolphinWX
> /usr/ports/emulators/dolphin-emu/work/dolphin-emu-4.0.0/Source/Core/DolphinWX/CMakeFiles/dolphin-emu.dir/DependInfo.cmake
> /usr/bin/make -f
> Source/Core/DolphinWX/CMakeFiles/dolphin-emu.dir/build.make
> Source/Core/DolphinWX/CMakeFiles/dolphin-emu.dir/build
> --- Binaries/dolphin-emu ---
> Linking CXX executable ../../../Binaries/dolphin-emu
> cd
> /usr/ports/emulators/dolphin-emu/work/dolphin-emu-4.0.0/Source/Core/DolphinWX
> && /usr/local/bin/cmake -E cmake_link_script
> CMakeFiles/dolphin-emu.dir/link.txt --verbose=1
> /usr/local/bin/g++46   -O2 -pipe -Wl,-rpath=/usr/local/lib/gcc46
> -fno-strict-aliasing -Wl,-rpath=/usr/local/lib/gcc46 -Wtype-limits
> -Wsign-compare -Wignored-qualifiers -Wuninitialized -Wlogical-op -Wshadow
> -Winit-self -fvisibility-inlines-hidden -fvisibility=hidden -pthread -O2
> -pipe -Wl,-rpath=/usr/local/lib/gcc46 -fno-strict-aliasing
> -Wl,-rpath=/usr/local/lib/gcc46   -Wl,-rpath=/usr/local/lib/gcc46
> -L/usr/local/lib/gcc46 CMakeFiles/dolphin-emu.dir/Src/ARCodeAddEdit.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/AboutDolphin.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/CheatsWindow.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/ConfigMain.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/Debugger/BreakpointDlg.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/Debugger/BreakpointView.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/Debugger/BreakpointWindow.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/Debugger/CodeView.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/Debugger/CodeWindow.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/Debugger/CodeWindowFunctions.cpp.o CMakeFiles
>  /dolphin-emu.dir/Src/Debugger/DSPDebugWindow.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/Debugger/DSPRegisterView.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/Debugger/DebuggerPanel.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/Debugger/DebuggerUIUtil.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/Debugger/JitWindow.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/Debugger/MemoryCheckDlg.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/Debugger/MemoryView.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/Debugger/MemoryWindow.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/Debugger/RegisterView.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/Debugger/RegisterWindow.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/FifoPlayerDlg.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/Frame.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/FrameAui.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/FrameTools.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/GameListCtrl.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/GeckoCodeDiag.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/HotkeyDlg.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/ISOFile.cpp.o CMakeFiles/dolphin-emu.dir/Sr
>  c/ISOProperties.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/InputConfigDiag.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/InputConfigDiagBitmaps.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/LogConfigWindow.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/LogWindow.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/Main.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/MemcardManager.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/MemoryCards/WiiSaveCrypted.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/NetWindow.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/PHackSettings.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/PatchAddEdit.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/TASInputDlg.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/UDPConfigDiag.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/VideoConfigDiag.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/WXInputBase.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/WiimoteConfigDiag.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/WxUtils.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/GLInterface/GLX.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/GLInterface/X11_Util.cpp.o
> CMakeFiles/dolphin-emu.dir/Src/X11Utils.cpp
>  .o  -o ../../../Binaries/dolphin-emu  -L/usr/local/lib/portaudio2
>  -L/usr/local/lib  ../Core/libcore.a -lexecinfo /usr/local/lib/liblzo2.so
> ../DiscIO/libdiscio.a ../../../Externals/Bochs_disasm/libbdisasm.a
> ../InputCommon/libinputcommon.a ../Common/libcommon.a
> ../AudioCommon/libaudiocommon.a -lz -lsfml-network
> /usr/local/lib/libfreetype.so /usr/local/lib/libgtk-x11-2.0.so/usr/local/lib/
> libgdk-x11-2.0.so /usr/local/lib/libcairo.so /usr/local/lib/
> libpango-1.0.so /usr/local/lib/libpangocairo-1.0.so /usr/local/lib/
> libpangoft2-1.0.so /usr/local/lib/libpangoxft-1.0.so /usr/local/lib/
> libgdk_pixbuf-2.0.so /usr/local/lib/libgthread-2.0.so /usr/local/lib/
> libgmodule-2.0.so /usr/local/lib/libgio-2.0.so /usr/local/lib/
> libatk-1.0.so /usr/local/lib/libgobject-2.0.so /usr/local/lib/
> libglib-2.0.so /usr/local/lib/libSM.so /usr/local/lib/libICE.so
> /usr/local/lib/libX11.so /usr/local/lib/libXext.so -lXi -lXrandr
> /usr/local/lib/libSDLmain.a /usr/local/lib/libSDL.so -pthread -lavcodec
> -lavformat -lswsca
>  le -lavutil -lusbhid -lminiupnpc -L/usr/local/lib -pthread
> -lwx_gtk2u_core-2.9 -lwx_gtk2u_aui-2.9 -lwx_gtk2u_adv-2.9 -lwx_baseu-2.9
> ../../Plugins/Plugin_VideoSoftware/libvideosoftware.a
> ../../Plugins/Plugin_VideoOGL/libvideoogl.a ../VideoCommon/libvideocommon.a
> ../Core/libcore.a ../../Plugins/Plugin_VideoSoftware/libvideosoftware.a
> ../../Plugins/Plugin_VideoOGL/libvideoogl.a ../VideoCommon/libvideocommon.a
> ../../../Externals/Bochs_disasm/libbdisasm.a
> ../InputCommon/libinputcommon.a -lusb /usr/local/lib/libpolarssl.so
> -lportaudio -L/usr/local/lib ../../../Externals/SOIL/libSOIL.a -lGLEW
> /usr/local/lib/libGLU.so /usr/local/lib/libGL.so
> ../../../Externals/CLRun/libclrun.a -lsfml-network /usr/local/lib/libSM.so
> /usr/local/lib/libICE.so /usr/local/lib/libX11.so /usr/local/lib/libXext.so
> -lusbhid -lwx_gtk2u_core-2.9 -lwx_gtk2u_aui-2.9 -lwx_gtk2u_adv-2.9
> -lwx_baseu-2.9 ../Common/libcommon.a -pthread /usr/local/lib/libopenal.so
> -lSoundTouch -Wl,-rpath,/usr/local/lib/portaudio2:/usr/local/li
>  b:
> CMakeFiles/dolphin-emu.dir/Src/Debugger/BreakpointView.cpp.o:(.rodata._ZTV15CBreakPointView[vtable
> for CBreakPointView]+0x728): undefined reference to `non-virtual thunk to
> wxGenericListCtrl::GetSizeAvailableForScrollTarget(wxSize const&)'
> CMakeFiles/dolphin-emu.dir/Src/Debugger/RegisterView.cpp.o:(.rodata._ZTV13CRegisterView[vtable
> for CRegisterView]+0x6e0): undefined reference to `non-virtual thunk to
> wxGrid::GetSizeAvailableForScrollTarget(wxSize const&)'
> CMakeFiles/dolphin-emu.dir/Src/GeckoCodeDiag.cpp.o: In function
> `Gecko::CodeConfigPanel::DownloadCodes(wxCommandEvent&) [clone .part.159]':
> GeckoCodeDiag.cpp:(.text+0x2433): undefined reference to
> `sf::Http::Request::Request(sf::Http::Request::Method,
> std::basic_string<char, std::char_traits<char>, std::allocator<char> >
> const&, std::basic_string<char, std::char_traits<char>,
> std::allocator<char> > const&)'
> GeckoCodeDiag.cpp:(.text+0x24cf): undefined reference to
> `sf::Http::Request::SetURI(std::basic_string<char, std::char_traits<char>,
> std::allocator<char> > const&)'
> GeckoCodeDiag.cpp:(.text+0x2526): undefined reference to
> `sf::Http::SetHost(std::basic_string<char, std::char_traits<char>,
> std::allocator<char> > const&, unsigned short)'
> CMakeFiles/dolphin-emu.dir/Src/MemcardManager.cpp.o:(.rodata._ZTVN15CMemcardManager16CMemcardListCtrlE[vtable
> for CMemcardManager::CMemcardListCtrl]+0x728): undefined reference to
> `non-virtual thunk to
> wxGenericListCtrl::GetSizeAvailableForScrollTarget(wxSize const&)'
> CMakeFiles/dolphin-emu.dir/Src/Debugger/DSPRegisterView.cpp.o:(.rodata._ZTV15DSPRegisterView[vtable
> for DSPRegisterView]+0x6e0): undefined reference to `non-virtual thunk to
> wxGrid::GetSizeAvailableForScrollTarget(wxSize const&)'
> CMakeFiles/dolphin-emu.dir/Src/Debugger/JitWindow.cpp.o:(.rodata._ZTV12JitBlockList[vtable
> for JitBlockList]+0x728): undefined reference to `non-virtual thunk to
> wxGenericListCtrl::GetSizeAvailableForScrollTarget(wxSize const&)'
> CMakeFiles/dolphin-emu.dir/Src/GameListCtrl.cpp.o:(.rodata._ZTV13CGameListCtrl[vtable
> for CGameListCtrl]+0x728): undefined reference to `non-virtual thunk to
> wxGenericListCtrl::GetSizeAvailableForScrollTarget(wxSize const&)'
> CMakeFiles/dolphin-emu.dir/Src/VideoConfigDiag.cpp.o:(.rodata._ZTV13SettingChoice[vtable
> for SettingChoice]+0x6d0): undefined reference to `non-virtual thunk to
> wxChoice::GetCount() const'
> CMakeFiles/dolphin-emu.dir/Src/VideoConfigDiag.cpp.o:(.rodata._ZTV13SettingChoice[vtable
> for SettingChoice]+0x6d8): undefined reference to `non-virtual thunk to
> wxChoice::GetString(unsigned int) const'
> CMakeFiles/dolphin-emu.dir/Src/VideoConfigDiag.cpp.o:(.rodata._ZTV13SettingChoice[vtable
> for SettingChoice]+0x6e0): undefined reference to `non-virtual thunk to
> wxChoice::SetString(unsigned int, wxString const&)'
> CMakeFiles/dolphin-emu.dir/Src/VideoConfigDiag.cpp.o:(.rodata._ZTV13SettingChoice[vtable
> for SettingChoice]+0x6e8): undefined reference to `non-virtual thunk to
> wxChoice::FindString(wxString const&, bool) const'
> CMakeFiles/dolphin-emu.dir/Src/VideoConfigDiag.cpp.o:(.rodata._ZTV13SettingChoice[vtable
> for SettingChoice]+0x6f0): undefined reference to `non-virtual thunk to
> wxChoice::SetSelection(int)'
> CMakeFiles/dolphin-emu.dir/Src/VideoConfigDiag.cpp.o:(.rodata._ZTV13SettingChoice[vtable
> for SettingChoice]+0x6f8): undefined reference to `non-virtual thunk to
> wxChoice::GetSelection() const'
> CMakeFiles/dolphin-emu.dir/Src/VideoConfigDiag.cpp.o:(.rodata._ZTV13SettingChoice[vtable
> for SettingChoice]+0x720): undefined reference to `non-virtual thunk to
> wxChoice::DoInsertItems(wxArrayStringsAdapter const&, unsigned int, void**,
> wxClientDataType)'
> CMakeFiles/dolphin-emu.dir/Src/VideoConfigDiag.cpp.o:(.rodata._ZTV13SettingChoice[vtable
> for SettingChoice]+0x730): undefined reference to `non-virtual thunk to
> wxChoice::DoSetItemClientData(unsigned int, void*)'
> CMakeFiles/dolphin-emu.dir/Src/VideoConfigDiag.cpp.o:(.rodata._ZTV13SettingChoice[vtable
> for SettingChoice]+0x738): undefined reference to `non-virtual thunk to
> wxChoice::DoGetItemClientData(unsigned int) const'
> CMakeFiles/dolphin-emu.dir/Src/VideoConfigDiag.cpp.o:(.rodata._ZTV13SettingChoice[vtable
> for SettingChoice]+0x740): undefined reference to `non-virtual thunk to
> wxChoice::DoClear()'
> CMakeFiles/dolphin-emu.dir/Src/VideoConfigDiag.cpp.o:(.rodata._ZTV13SettingChoice[vtable
> for SettingChoice]+0x748): undefined reference to `non-virtual thunk to
> wxChoice::DoDeleteOneItem(unsigned int)'
> ../Core/libcore.a(NetPlayServer.cpp.o): In function
> `NetPlayServer::ChangeGame(std::basic_string<char, std::char_traits<char>,
> std::allocator<char> > const&)':
> NetPlayServer.cpp:(.text+0x12bc): undefined reference to
> `sf::Packet::operator<<(std::basic_string<char, std::char_traits<char>,
> std::allocator<char> > const&)'
> ../Core/libcore.a(NetPlayServer.cpp.o): In function
> `NetPlayServer::SendChatMessage(std::basic_string<char,
> std::char_traits<char>, std::allocator<char> > const&)':
> NetPlayServer.cpp:(.text+0x15db): undefined reference to
> `sf::Packet::operator<<(std::basic_string<char, std::char_traits<char>,
> std::allocator<char> > const&)'
> ../Core/libcore.a(NetPlayServer.cpp.o): In function
> `NetPlayServer::OnData(sf::Packet&, sf::SocketTCP&)':
> NetPlayServer.cpp:(.text+0x1d20): undefined reference to
> `sf::Packet::operator>>(std::basic_string<char, std::char_traits<char>,
> std::allocator<char> >&)'
> NetPlayServer.cpp:(.text+0x1d65): undefined reference to
> `sf::Packet::operator<<(std::basic_string<char, std::char_traits<char>,
> std::allocator<char> > const&)'
> ../Core/libcore.a(NetPlayServer.cpp.o): In function
> `NetPlayServer::OnConnect(sf::SocketTCP&)':
> NetPlayServer.cpp:(.text+0x346b): undefined reference to
> `sf::Packet::operator>>(std::basic_string<char, std::char_traits<char>,
> std::allocator<char> >&)'
> NetPlayServer.cpp:(.text+0x3584): undefined reference to
> `sf::Packet::operator>>(std::basic_string<char, std::char_traits<char>,
> std::allocator<char> >&)'
> NetPlayServer.cpp:(.text+0x3599): undefined reference to
> `sf::Packet::operator>>(std::basic_string<char, std::char_traits<char>,
> std::allocator<char> >&)'
> NetPlayServer.cpp:(.text+0x3628): undefined reference to
> `sf::Packet::operator<<(std::basic_string<char, std::char_traits<char>,
> std::allocator<char> > const&)'
> NetPlayServer.cpp:(.text+0x3638): undefined reference to
> `sf::Packet::operator<<(std::basic_string<char, std::char_traits<char>,
> std::allocator<char> > const&)'
> NetPlayServer.cpp:(.text+0x3730): undefined reference to
> `sf::Packet::operator<<(std::basic_string<char, std::char_traits<char>,
> std::allocator<char> > const&)'
> NetPlayServer.cpp:(.text+0x373d): undefined reference to
> `sf::Packet::operator<<(std::basic_string<char, std::char_traits<char>,
> std::allocator<char> > const&)'
> NetPlayServer.cpp:(.text+0x3cbb): undefined reference to
> `sf::Packet::operator<<(std::basic_string<char, std::char_traits<char>,
> std::allocator<char> > const&)'
> ../Core/libcore.a(NetPlayClient.cpp.o):NetPlayClient.cpp:(.text+0x1f6c):
> more undefined references to
> `sf::Packet::operator<<(std::basic_string<char, std::char_traits<char>,
> std::allocator<char> > const&)' follow
> ../Core/libcore.a(NetPlayClient.cpp.o): In function
> `NetPlayClient::OnData(sf::Packet&)':
> NetPlayClient.cpp:(.text+0x2408): undefined reference to
> `sf::Packet::operator>>(std::basic_string<char, std::char_traits<char>,
> std::allocator<char> >&)'
> NetPlayClient.cpp:(.text+0x2415): undefined reference to
> `sf::Packet::operator>>(std::basic_string<char, std::char_traits<char>,
> std::allocator<char> >&)'
> NetPlayClient.cpp:(.text+0x2498): undefined reference to
> `sf::Packet::operator>>(std::basic_string<char, std::char_traits<char>,
> std::allocator<char> >&)'
> NetPlayClient.cpp:(.text+0x25b8): undefined reference to
> `sf::Packet::operator>>(std::basic_string<char, std::char_traits<char>,
> std::allocator<char> >&)'
> ../Core/libcore.a(NetPlayClient.cpp.o): In function
> `NetPlayClient::NetPlayClient(std::basic_string<char,
> std::char_traits<char>, std::allocator<char> > const&, unsigned short,
> NetPlayUI*, std::basic_string<char, std::char_traits<char>,
> std::allocator<char> > const&)':
> NetPlayClient.cpp:(.text+0x36a8): undefined reference to
> `sf::IPAddress::IPAddress(std::basic_string<char, std::char_traits<char>,
> std::allocator<char> > const&)'
> NetPlayClient.cpp:(.text+0x3706): undefined reference to
> `sf::Packet::operator<<(std::basic_string<char, std::char_traits<char>,
> std::allocator<char> > const&)'
> collect2: ld returned 1 exit status
> *** [Binaries/dolphin-emu] Error code 1
>
> make[3]: stopped in /usr/ports/emulators/dolphin-emu/work/dolphin-emu-4.0.0
> 1 error
>
> make[3]: stopped in /usr/ports/emulators/dolphin-emu/work/dolphin-emu-4.0.0
> *** [Source/Core/DolphinWX/CMakeFiles/dolphin-emu.dir/all] Error code 2
>
> make[2]: stopped in /usr/ports/emulators/dolphin-emu/work/dolphin-emu-4.0.0
> 1 error
>
> make[2]: stopped in /usr/ports/emulators/dolphin-emu/work/dolphin-emu-4.0.0
> *** [all] Error code 2
>
> make[1]: stopped in /usr/ports/emulators/dolphin-emu/work/dolphin-emu-4.0.0
> 1 error
>
> make[1]: stopped in /usr/ports/emulators/dolphin-emu/work/dolphin-emu-4.0.0
> ===> Compilation failed unexpectedly.
> Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
> the maintainer.
> *** Error code 1
>
> Stop.
> make: stopped in /usr/ports/emulators/dolphin-emu
>

It seems to be caused by incompatibilities between gcc and clang. If you
remove USE_GCC=yes from Makefile, it builds fine.  You may try if this
works.


> I tried to compile with MAKE_JOBS_UNSAFE=yes, but the output is the same.
>
> _______________________________________________
> freebsd-ports at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"
>



-- 
Cheers,
Henry


More information about the freebsd-ports mailing list