AzerothCore

AzerothCore forum

Compiling under Mac OS fails (build from April works fine)

Installation Help & Support (CLOSED, USE STACK OVERFLOW INSTEAD)
chakuze
Posts: 2

31/12/2017, 17:21  

Hello,

I tried to build the latest azeroth core master branch

commit b669d24a1f6c622737d68be3069a2cfbca5bbfc2
Author: Francesco Borzì <[email protected]>
Date: Sat Dec 30 22:35:17 2017 +0100

Restore C++ as the main repository language. Happy new year!


but get the following compiling error under Mac OS 10.12.6:

Hennings-MBP:build henning_mbpr$ make -j 4
[ 0%] Building CXX object deps/gsoap/CMakeFiles/gsoap.dir/soapC.cpp.o
[ 0%] Building CXX object deps/recastnavigation/Detour/CMakeFiles/Detour.dir/Source/DetourAlloc.cpp.o
[ 0%] Building CXX object deps/recastnavigation/Recast/CMakeFiles/Recast.dir/Source/Recast.cpp.o
[ 0%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/AABox.cpp.o
[ 0%] Building CXX object deps/recastnavigation/Detour/CMakeFiles/Detour.dir/Source/DetourCommon.cpp.o
[ 0%] Building CXX object deps/recastnavigation/Recast/CMakeFiles/Recast.dir/Source/RecastAlloc.cpp.o
[ 0%] Building CXX object deps/recastnavigation/Detour/CMakeFiles/Detour.dir/Source/DetourNavMesh.cpp.o
[ 1%] Building CXX object deps/recastnavigation/Recast/CMakeFiles/Recast.dir/Source/RecastArea.cpp.o
[ 2%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/Any.cpp.o
[ 2%] Building CXX object deps/recastnavigation/Recast/CMakeFiles/Recast.dir/Source/RecastContour.cpp.o
[ 2%] Building CXX object deps/recastnavigation/Detour/CMakeFiles/Detour.dir/Source/DetourNavMeshBuilder.cpp.o
[ 2%] Building CXX object deps/gsoap/CMakeFiles/gsoap.dir/soapServer.cpp.o
[ 2%] Building CXX object deps/recastnavigation/Detour/CMakeFiles/Detour.dir/Source/DetourNavMeshQuery.cpp.o
[ 2%] Building CXX object deps/recastnavigation/Recast/CMakeFiles/Recast.dir/Source/RecastFilter.cpp.o
[ 2%] Building CXX object deps/gsoap/CMakeFiles/gsoap.dir/stdsoap2.cpp.o
[ 2%] Building CXX object deps/recastnavigation/Recast/CMakeFiles/Recast.dir/Source/RecastLayers.cpp.o
[ 2%] Building CXX object deps/recastnavigation/Recast/CMakeFiles/Recast.dir/Source/RecastMesh.cpp.o
[ 2%] Building CXX object deps/recastnavigation/Detour/CMakeFiles/Detour.dir/Source/DetourNode.cpp.o
[ 2%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/BinaryFormat.cpp.o
[ 2%] Linking CXX static library libDetour.a
[ 2%] Built target Detour
[ 2%] Building CXX object deps/recastnavigation/Recast/CMakeFiles/Recast.dir/Source/RecastMeshDetail.cpp.o
[ 2%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/BinaryInput.cpp.o
[ 2%] Building C object deps/libmpq/CMakeFiles/mpq.dir/libmpq/common.c.o
[ 2%] Building C object deps/libmpq/CMakeFiles/mpq.dir/libmpq/explode.c.o
[ 2%] Building C object deps/libmpq/CMakeFiles/mpq.dir/libmpq/extract.c.o
[ 2%] Building C object deps/libmpq/CMakeFiles/mpq.dir/libmpq/huffman.c.o
[ 2%] Building CXX object deps/recastnavigation/Recast/CMakeFiles/Recast.dir/Source/RecastRasterization.cpp.o
[ 2%] Building C object deps/libmpq/CMakeFiles/mpq.dir/libmpq/mpq.c.o
[ 2%] Building CXX object deps/recastnavigation/Recast/CMakeFiles/Recast.dir/Source/RecastRegion.cpp.o
[ 3%] Building C object deps/libmpq/CMakeFiles/mpq.dir/libmpq/wave.c.o
[ 3%] Linking CXX static library libmpq.a
[ 3%] Built target mpq
[ 3%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/BinaryOutput.cpp.o
[ 3%] Building CXX object src/common/CMakeFiles/sharedPCH.cpp_dephelp.dir/PrecompiledHeaders/sharedPCH.cpp.o
[ 3%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/Box.cpp.o
[ 3%] Linking CXX static library libRecast.a
[ 3%] Built target Recast
[ 3%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/Capsule.cpp.o
[ 3%] Linking CXX shared module libsharedPCH.cpp_dephelp.so
[ 4%] Linking CXX static library libgsoap.a
[ 4%] Built target sharedPCH.cpp_dephelp
[ 4%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/CollisionDetection.cpp.o
[ 4%] Built target gsoap
[ 4%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/CoordinateFrame.cpp.o
[ 4%] Building CXX object src/common/Collision/CMakeFiles/collisionPCH.cpp_dephelp.dir/PrecompiledHeaders/collisionPCH.cpp.o
[ 4%] Building CXX object src/tools/map_extractor/CMakeFiles/mapextractor.dir/System.cpp.o
[ 4%] Linking CXX shared module libcollisionPCH.cpp_dephelp.so
[ 4%] Built target collisionPCH.cpp_dephelp
[ 4%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/Crypto.cpp.o
[ 4%] Building CXX object src/tools/vmap4_extractor/CMakeFiles/vmap4extractor.dir/adtfile.cpp.o
[ 5%] Building CXX object src/tools/vmap4_extractor/CMakeFiles/vmap4extractor.dir/dbcfile.cpp.o
[ 6%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/Cylinder.cpp.o
[ 6%] Building CXX object src/tools/vmap4_extractor/CMakeFiles/vmap4extractor.dir/gameobject_extract.cpp.o
[ 6%] Built target revision.h
[ 6%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/debugAssert.cpp.o
[ 6%] Building CXX object src/tools/vmap4_extractor/CMakeFiles/vmap4extractor.dir/model.cpp.o
[ 6%] Building CXX object src/tools/map_extractor/CMakeFiles/mapextractor.dir/adt.cpp.o
[ 6%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/FileSystem.cpp.o
[ 6%] Building CXX object src/tools/map_extractor/CMakeFiles/mapextractor.dir/dbcfile.cpp.o
[ 6%] Building CXX object src/server/game/CMakeFiles/gamePCH.cpp_dephelp.dir/PrecompiledHeaders/gamePCH.cpp.o
[ 6%] Building CXX object src/tools/vmap4_extractor/CMakeFiles/vmap4extractor.dir/mpq_libmpq.cpp.o
[ 6%] Building CXX object src/tools/map_extractor/CMakeFiles/mapextractor.dir/loadlib.cpp.o
[ 6%] Building CXX object src/tools/vmap4_extractor/CMakeFiles/vmap4extractor.dir/vmapexport.cpp.o
[ 6%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/fileutils.cpp.o
[ 6%] Building CXX object src/tools/map_extractor/CMakeFiles/mapextractor.dir/mpq_libmpq.cpp.o
[ 6%] Building CXX object src/tools/map_extractor/CMakeFiles/mapextractor.dir/wdt.cpp.o
[ 6%] Building CXX object src/tools/vmap4_extractor/CMakeFiles/vmap4extractor.dir/wdtfile.cpp.o
[ 6%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/format.cpp.o
[ 6%] Linking CXX executable mapextractor
[ 6%] Built target mapextractor
[ 6%] Building CXX object src/tools/vmap4_extractor/CMakeFiles/vmap4extractor.dir/wmo.cpp.o
[ 6%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/g3dfnmatch.cpp.o
[ 6%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/g3dmath.cpp.o
[ 6%] Building CXX object src/server/authserver/CMakeFiles/authPCH.cpp_dephelp.dir/PrecompiledHeaders/authPCH.cpp.o
[ 6%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/Line.cpp.o
[ 6%] Linking CXX executable vmap4extractor
[ 6%] Built target vmap4extractor
[ 6%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/LineSegment.cpp.o
[ 7%] Building CXX object src/server/scripts/CMakeFiles/ScriptPCH.cpp_dephelp.dir/PrecompiledHeaders/ScriptPCH.cpp.o
[ 8%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/Log.cpp.o
[ 8%] Linking CXX shared module libauthPCH.cpp_dephelp.so
[ 8%] Built target authPCH.cpp_dephelp
[ 8%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/Matrix3.cpp.o
Scanning dependencies of target worldPCH.cpp_dephelp
[ 8%] Linking CXX shared module libgamePCH.cpp_dephelp.so
Undefined symbols for architecture x86_64:
"ACE_RW_Mutex::~ACE_RW_Mutex()", referenced from:
ACE_RW_Thread_Mutex::~ACE_RW_Thread_Mutex() in gamePCH.cpp.o
"ACE_RW_Thread_Mutex::ACE_RW_Thread_Mutex(char const*, void*)", referenced from:
___cxx_global_var_init in gamePCH.cpp.o
___cxx_global_var_init.2 in gamePCH.cpp.o
___cxx_global_var_init.4 in gamePCH.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [src/server/game/libgamePCH.cpp_dephelp.so] Error 1
make[1]: *** [src/server/game/CMakeFiles/gamePCH.cpp_dephelp.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 8%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/Matrix4.cpp.o
[ 8%] Building CXX object src/server/worldserver/CMakeFiles/worldPCH.cpp_dephelp.dir/PrecompiledHeaders/worldPCH.cpp.o
[ 8%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/MemoryManager.cpp.o
[ 8%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/PhysicsFrame.cpp.o
[ 8%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/Plane.cpp.o
[ 9%] Linking CXX shared module libworldPCH.cpp_dephelp.so
[ 9%] Built target worldPCH.cpp_dephelp
[ 9%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/prompt.cpp.o
[ 9%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/Quat.cpp.o
[ 9%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/Random.cpp.o
[ 10%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/Ray.cpp.o
[ 10%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/ReferenceCount.cpp.o
[ 10%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/RegistryUtil.cpp.o
[ 10%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/Sphere.cpp.o
[ 10%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/stringutils.cpp.o
[ 10%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/System.cpp.o
[ 10%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/TextInput.cpp.o
[ 10%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/TextOutput.cpp.o
[ 10%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/Triangle.cpp.o
[ 11%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/uint128.cpp.o
[ 11%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/UprightFrame.cpp.o
[ 11%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/Vector2.cpp.o
[ 11%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/Vector3.cpp.o
[ 11%] Building CXX object deps/g3dlite/CMakeFiles/g3dlib.dir/source/Vector4.cpp.o
[ 11%] Linking CXX shared module libScriptPCH.cpp_dephelp.so
Undefined symbols for architecture x86_64:
"ACE_RW_Mutex::~ACE_RW_Mutex()", referenced from:
ACE_RW_Thread_Mutex::~ACE_RW_Thread_Mutex() in ScriptPCH.cpp.o
"ACE_RW_Thread_Mutex::ACE_RW_Thread_Mutex(char const*, void*)", referenced from:
___cxx_global_var_init in ScriptPCH.cpp.o
___cxx_global_var_init.2 in ScriptPCH.cpp.o
___cxx_global_var_init.4 in ScriptPCH.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [src/server/scripts/libScriptPCH.cpp_dephelp.so] Error 1
make[1]: *** [src/server/scripts/CMakeFiles/ScriptPCH.cpp_dephelp.dir/all] Error 2
[ 11%] Linking CXX static library libg3dlib.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libg3dlib.a(RegistryUtil.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libg3dlib.a(RegistryUtil.cpp.o) has no symbols
[ 11%] Built target g3dlib
make: *** [all] Error 2

Does anyone have an idea what may cause this error? An older build from April this year compiles just fine:

commit 496536baadfa3950ab3be61fc94269c4ddf83f15
Author: Кирилл <[email protected]>
Date: Wed Apr 5 18:28:54 2017 +0300

Core/Text: Locales for npc_text.

Closes https://github.com/azerothcore/azerothc ... -291891686


And here is what I configured with CMake:

Hennings-MBP:build henning_mbpr$ cmake .. -DTOOLS=1 -DSCRIPTS=1
CMake Deprecation Warning at CMakeLists.txt:16 (cmake_policy):
The OLD behavior for policy CMP0005 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.


Running cmake hook: AFTER_LOAD_CONF
No hooks registered for AFTER_LOAD_CONF
-- Detected 64-bit platform
-- UNIX: Using default configuration directory
-- UNIX: Using default library directory
-- UNIX: Configuring uninstall target
-- UNIX: Created uninstall target
-- UNIX: Detected compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Found ACE library: /usr/local/lib/libACE.dylib
-- Found ACE headers: /usr/local/include
-- Using mysql-config: /usr/local/bin/mysql_config
-- Found MySQL library: /usr/local/lib/libmysqlclient.dylib
-- Found MySQL headers: /usr/local/Cellar/mysql/5.7.20/include/mysql
-- Found Readline library: /usr/lib/libreadline.dylib
-- Include dir is: /usr/include
-- Found git binary : /usr/bin/git

* AzerothCore revision : b669d24a1f6c 2017-12-30 22:35:17 +0100 (master branch)
* AzerothCore buildtype : Release

* Install core to : /Users/henning_mbpr/Desktop/az-installed
* Install libraries to : /Users/henning_mbpr/Desktop/az-installed/lib
* Install configs to : /Users/henning_mbpr/Desktop/az-installed/etc

* Build world/auth : Yes (default)
* Build with scripts : Yes (default)
* Build map/vmap tools : Yes
* Build core w/PCH : Yes (default)
* Build scripts w/PCH : Yes (default)
* Show compile-warnings : No (default)
* Use coreside debug : No (default)
* Use unix gperftools : No (default)
* Use GIT revision hash : Yes
* Enable extra features : Yes (default)
* Enable vmap DisableMgr checks : Yes (default)
* Enable extra logging functions : No (default)

Running cmake hook: BEFORE_SRC_LOAD
No hooks registered for BEFORE_SRC_LOAD
Running cmake hook: BEFORE_GAME_LIBRARY
No hooks registered for BEFORE_GAME_LIBRARY
Running cmake hook: AFTER_GAME_LIBRARY
No hooks registered for AFTER_GAME_LIBRARY
Running cmake hook: AFTER_AUTHSERVER_CMAKE
No hooks registered for AFTER_AUTHSERVER_CMAKE
Running cmake hook: BEFORE_SCRIPTS_LIBRARY
No hooks registered for BEFORE_SCRIPTS_LIBRARY
-- SCRIPT PREPARATIONS
-> Prepared: Spells
-> Prepared: Commands
-> Prepared: World
-> Prepared: Outdoor PVP Zones
-> Prepared: Eastern Kingdoms
-> Prepared: Kalimdor
-> Prepared: Outland
-> Prepared: Northrend
-> Prepared: Events
-> Prepared: Pet
-- SCRIPT PREPARATION COMPLETE

Running cmake hook: AFTER_WORLDSERVER_CMAKE
No hooks registered for AFTER_WORLDSERVER_CMAKE
Running cmake hook: AFTER_SRC_LOAD
No hooks registered for AFTER_SRC_LOAD
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/henning_mbpr/Desktop/azcore-dec-17/azerothcore-wotlk/build

chakuze
Posts: 2

02/01/2018, 12:48  

Anyone? I set up a fresh virtual Ubuntu Desktop installation yesterday and run into similar errors. Is it confirmed that the core can be built with the latest commit?

  •   Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest