Jump to content
TrinityCore

Recommended Posts

  • 3 weeks later...

I've just ran some updates on my Ubuntu Install and when updating the 3.3.5 core i get the below error right at the end. Prior to doing this i needed to upgrade gcc to 6.3 and i also tried clang but same result. Although its showing a boost error, it is at v 1.58 and has been for some time AFAIK.

Is it something i've done during the updates to Ubuntu or something in the PR?

 

../game/libgame.a(DBCStores.cpp.o): In function `boost::cpp_regex_traits<wchar_t>::transform_primary[abi:cxx11](wchar_t const*, wchar_t const*) const':
/usr/include/boost/regex/v4/cpp_regex_traits.hpp:965: undefined reference to `boost::re_detail::cpp_regex_traits_implementation<wchar_t>::transform_primary[abi:cxx11](wchar_t const*, wchar_t const*) const'
../game/libgame.a(DBCStores.cpp.o): In function `boost::cpp_regex_traits<wchar_t>::transform[abi:cxx11](wchar_t const*, wchar_t const*) const':
/usr/include/boost/regex/v4/cpp_regex_traits.hpp:961: undefined reference to `boost::re_detail::cpp_regex_traits_implementation<wchar_t>::transform[abi:cxx11](wchar_t const*, wchar_t const*) const'
collect2: error: ld returned 1 exit status
src/server/worldserver/CMakeFiles/worldserver.dir/build.make:211: recipe for target 'src/server/worldserver/worldserver' failed
make[2]: *** [src/server/worldserver/worldserver] Error 1
CMakeFiles/Makefile2:1596: recipe for target 'src/server/worldserver/CMakeFiles/worldserver.dir/all' failed
make[1]: *** [src/server/worldserver/CMakeFiles/worldserver.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

 

  • Upvote 1
Link to comment
Share on other sites

27 minutes ago, Spec said:

Continuation from IRC

So after moving to VS2017 ive had issues compiling a fresh 3.3.5 build (#7cc074f)

Compile output: https://pastebin.com/fpdt2pJe

 

I have tried Cmake 3.8.3 - 3.9.6 - 3.10.1 in both x86 and x64, i have tried overwritting the the Zmfactor and i have tried reinstalling every requirement including VS2017.

Probably this is related to 697b4dbef20b5c , I will take a look into this .

Link to comment
Share on other sites

9 hours ago, Spec said:

might be a redundant question, but where should this be placed?

Just download it to the source root folder, open git bash to source location do git apply patch.diff, use cmake and compile.

Or just add this command : 

set(COTIRE_PCH_MEMORY_SCALING_FACTOR 500)

to the first row in /[source folder]/cmake/macros/FindPCHSupport.cmake b/cmake/macros/FindPCHSupport.cmake

But the problem not resolved yet on my new system :/

Link to comment
Share on other sites

16 minutes ago, polszki said:

Just download it to the source root folder, open git bash to source location do git apply patch.diff, use cmake and compile.

Or just add this command : 

set(COTIRE_PCH_MEMORY_SCALING_FACTOR 500)

to the first row in /[source folder]/cmake/macros/FindPCHSupport.cmake b/cmake/macros/FindPCHSupport.cmake

But the problem not resolved yet on my new system :/

 

10 hours ago, Naios said:

Spec could you try whether applying this patch fixes your issue?

https://gist.github.com/Naios/b1a44d9448fee3fb6031f21a7df94829

using polszki's instructions i tried also applying this patch.

i was however able to compile the core 5 times without the error i was experiencing before

Link to comment
Share on other sites

My problem is (after the patch :D)(3.3.5 branch, new installed ubuntu 16lts x64, i already try with 2core cpu 4, 8, 13gb ram,  gcc 6.3, and copy-pastetm  other system environment ^^)


../../common/libcommon.a(AppenderFile.cpp.o): In function `std::__atomic_base<unsigned long long>::store(unsigned long long, std::memory_order)':
/usr/bin/../lib/gcc/i686-linux-gnu/6.3.0/../../../../include/c++/6.3.0/bits/atomic_base.h:374: undefined reference to `__atomic_store_8'
../../common/libcommon.a(AppenderFile.cpp.o): In function `std::__atomic_base<unsigned long long>::load(std::memory_order) const':
/usr/bin/../lib/gcc/i686-linux-gnu/6.3.0/../../../../include/c++/6.3.0/bits/atomic_base.h:396: undefined reference to `__atomic_load_8'
../../common/libcommon.a(AppenderFile.cpp.o): In function `std::__atomic_base<unsigned long long>::operator+=(unsigned long long)':
/usr/bin/../lib/gcc/i686-linux-gnu/6.3.0/../../../../include/c++/6.3.0/bits/atomic_base.h:312: undefined reference to `__atomic_fetch_add_8'
/usr/bin/../lib/gcc/i686-linux-gnu/6.3.0/../../../../include/c++/6.3.0/bits/atomic_base.h:312: undefined reference to `__atomic_fetch_add_8'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
src/server/authserver/CMakeFiles/authserver.dir/build.make:207: recipe for target 'src/server/authserver/authserver' failed
make[2]: *** [src/server/authserver/authserver] Error 1
CMakeFiles/Makefile2:1323: recipe for target 'src/server/authserver/CMakeFiles/authserver.dir/all' failed
make[1]: *** [src/server/authserver/CMakeFiles/authserver.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 97%] Built target scripts
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

I think when compile the master branch, the problem is same (or almost same)

I think something missing from the environment, or just outdated :D

Edited by polszki
Link to comment
Share on other sites

Problem after patch,

-- The C compiler identification is GNU 7.2.1
-- The CXX compiler identification is GNU 7.2.1
-- Check for working C compiler: /opt/rh/devtoolset-7/root/usr/bin/cc
-- Check for working C compiler: /opt/rh/devtoolset-7/root/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /opt/rh/devtoolset-7/root/usr/bin/c++
-- Check for working CXX compiler: /opt/rh/devtoolset-7/root/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- 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: /opt/rh/devtoolset-7/root/usr/bin/cc
-- GCC: SFMT enabled, SSE2 flags forced
-- cotire 1.7.10 loaded.
-- Using mysql-config: /usr/bin/mysql_config
-- Found MySQL library: /usr/lib64/libmysqlclient.so
-- Found MySQL headers: /usr/include/mysql
-- Found MySQL executable: /usr/bin/mysql
-- Found git binary : /usr/local/bin/git
--
    Could not find a proper repository signature (hash) - you may need to pull tags with git fetch -t
    Continuing anyway - note that the versionstring will be set to "unknown 1970-01-01 00:00:00 (Archived)"

* TrinityCore revision   : unknown 1970-01-01 00:00:00 +0000 (Archived branch)
* TrinityCore buildtype  : RelWithDebInfo

* Install core to        : /home/trinity/server
* Install libraries to   : /home/trinity/server/lib
* Install configs to     : /home/trinity/server/etc

* Build world/auth       : Yes (default)
* Build with scripts     : Yes (static)
* Build Eluna LuaEngine  : Yes (default)
* Build map/vmap tools   : Yes (default)
* Build core w/PCH       : Yes (default)
* Build scripts w/PCH    : Yes (default)
* Show compile-warnings  : No  (default)
* Use coreside debug     : No  (default)
* Show source tree       : Yes (hierarchical)
* Use GIT revision hash  : Yes (default)

-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Boost version: 1.65.1
-- Found the following Boost libraries:
--   system
--   filesystem
--   thread
--   program_options
--   iostreams
--   regex
-- Performing Test boost_filesystem_copy_links_without_NO_SCOPED_ENUM
-- Performing Test boost_filesystem_copy_links_without_NO_SCOPED_ENUM - Success
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.3")
-- Looking for open
-- Looking for open - found
-- Found OpenSSL library: /usr/lib64/libssl.so;/usr/lib64/libcrypto.so
-- Found OpenSSL headers: /usr/include
-- Looking for MADV_FREE
-- Looking for MADV_FREE - not found
-- Found Readline library: /usr/lib64/libreadline.so
-- Include dir is: /usr/include
-- Found BZip2: /usr/lib64/libbz2.so (found version "1.0.5")
-- Looking for BZ2_bzCompressInit
-- Looking for BZ2_bzCompressInit - found
-- CXX target common cotired without unity build.
-- CXX target database cotired without unity build.
-- CXX target shared cotired without unity build.
-- CXX target game cotired without unity build.
-- CXX target authserver cotired without unity build.

* Script configuration (static):
    |
    +- worldserver
    |   +- Commands
    |   +- Custom
    |   +- EasternKingdoms
    |   +- Events
    |   +- Kalimdor
    |   +- Northrend
    |   +- OutdoorPvP
    |   +- Outland
    |   +- Pet
    |   +- Spells
    |   +- World
    |
-- CXX target scripts cotired without unity build.

-- CXX target worldserver cotired without unity build.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/trinity/TrinityCore_Source/build

 

OS : CentOS 6.9

ERROR :

Scanning dependencies of target jemalloc
[  5%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/arena.c.o
[  5%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/background_thread.c.o
[  5%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/base.c.o
[  5%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/bitmap.c.o
[  5%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/ckh.c.o
[  5%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/ctl.c.o
[  5%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/extent.c.o
[  5%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/extent_dss.c.o
[  5%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/extent_mmap.c.o
[  6%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/hash.c.o
[  6%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/hooks.c.o
[  6%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/jemalloc.c.o
In file included from /home/trinity/TrinityCore_Source/dep/jemalloc/include/jemalloc/internal/jemalloc_preamble.h:48:0,
                 from /home/trinity/TrinityCore_Source/dep/jemalloc/src/jemalloc.c:2:
/home/trinity/TrinityCore_Source/dep/jemalloc/src/jemalloc.c: In function ‘jemalloc_secure_getenv’:
/home/trinity/TrinityCore_Source/dep/jemalloc/include/jemalloc/internal/hooks.h:15:37: error: ‘secure_getenv’ undeclared (first use in this function); did you mean ‘__secure_getenv’?
 #define secure_getenv JEMALLOC_HOOK(secure_getenv, hooks_libc_hook)
                                     ^
/home/trinity/TrinityCore_Source/dep/jemalloc/include/jemalloc/internal/hooks.h:7:71: note: in definition of macro ‘JEMALLOC_HOOK’
 #define JEMALLOC_HOOK(fn, hook) ((void)(hook != NULL && (hook(), 0)), fn)
                                                                       ^~
/home/trinity/TrinityCore_Source/dep/jemalloc/src/jemalloc.c:699:9: note: in expansion of macro ‘secure_getenv’
  return secure_getenv(name);
         ^~~~~~~~~~~~~
/home/trinity/TrinityCore_Source/dep/jemalloc/include/jemalloc/internal/hooks.h:15:37: note: each undeclared identifier is reported only once for each function it appears in
 #define secure_getenv JEMALLOC_HOOK(secure_getenv, hooks_libc_hook)
                                     ^
/home/trinity/TrinityCore_Source/dep/jemalloc/include/jemalloc/internal/hooks.h:7:71: note: in definition of macro ‘JEMALLOC_HOOK’
 #define JEMALLOC_HOOK(fn, hook) ((void)(hook != NULL && (hook(), 0)), fn)
                                                                       ^~
/home/trinity/TrinityCore_Source/dep/jemalloc/src/jemalloc.c:699:9: note: in expansion of macro ‘secure_getenv’
  return secure_getenv(name);
         ^~~~~~~~~~~~~
make[2]: *** [dep/jemalloc/CMakeFiles/jemalloc.dir/build.make:327: dep/jemalloc/CMakeFiles/jemalloc.dir/src/jemalloc.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:575: dep/jemalloc/CMakeFiles/jemalloc.dir/all] Error 2
make: *** [Makefile:128: all] Error 2

 

 

 

 

Edited by Lost PMR
Link to comment
Share on other sites

19 hours ago, Lost PMR said:

Problem after patch,

-- The C compiler identification is GNU 7.2.1
-- The CXX compiler identification is GNU 7.2.1
-- Check for working C compiler: /opt/rh/devtoolset-7/root/usr/bin/cc
-- Check for working C compiler: /opt/rh/devtoolset-7/root/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done

[  6%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/jemalloc.c.o
In file included from /home/trinity/TrinityCore_Source/dep/jemalloc/include/jemalloc/internal/jemalloc_preamble.h:48:0,
                 from /home/trinity/TrinityCore_Source/dep/jemalloc/src/jemalloc.c:2:
/home/trinity/TrinityCore_Source/dep/jemalloc/src/jemalloc.c: In function ‘jemalloc_secure_getenv’:
/home/trinity/TrinityCore_Source/dep/jemalloc/include/jemalloc/internal/hooks.h:15:37: error: ‘secure_getenv’ undeclared (first use in this function); did you mean ‘__secure_getenv’?
 #define secure_getenv JEMALLOC_HOOK(secure_getenv, hooks_libc_hook)
                                     ^
/home/trinity/TrinityCore_Source/dep/jemalloc/include/jemalloc/internal/hooks.h:7:71: note: in definition of macro ‘JEMALLOC_HOOK’
 #define JEMALLOC_HOOK(fn, hook) ((void)(hook != NULL && (hook(), 0)), fn)
                                                                       ^~
/home/trinity/TrinityCore_Source/dep/jemalloc/src/jemalloc.c:699:9: note: in expansion of macro ‘secure_getenv’
  return secure_getenv(name);
         ^~~~~~~~~~~~~
/home/trinity/TrinityCore_Source/dep/jemalloc/include/jemalloc/internal/hooks.h:15:37: note: each undeclared identifier is reported only once for each function it appears in
 #define secure_getenv JEMALLOC_HOOK(secure_getenv, hooks_libc_hook)
                                     ^
/home/trinity/TrinityCore_Source/dep/jemalloc/include/jemalloc/internal/hooks.h:7:71: note: in definition of macro ‘JEMALLOC_HOOK’
 #define JEMALLOC_HOOK(fn, hook) ((void)(hook != NULL && (hook(), 0)), fn)
                                                                       ^~
/home/trinity/TrinityCore_Source/dep/jemalloc/src/jemalloc.c:699:9: note: in expansion of macro ‘secure_getenv’
  return secure_getenv(name);
         ^~~~~~~~~~~~~
make[2]: *** [dep/jemalloc/CMakeFiles/jemalloc.dir/build.make:327: dep/jemalloc/CMakeFiles/jemalloc.dir/src/jemalloc.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:575: dep/jemalloc/CMakeFiles/jemalloc.dir/all] Error 2
make: *** [Makefile:128: all] Error 2

Typical CentOS, i sugest you to try clang (i known it works on debian 9 up to clang 6.0.0) instead gcc 7.2.1.

Link to comment
Share on other sites

1 hour ago, Aokromes said:

Typical CentOS, i sugest you to try clang (i known it works on debian 9 up to clang 6.0.0) instead gcc 7.2.1.

So, I need to install LLVM 5.0.1 ? bcz , I have same error on CentoS with gcc6, & def install clang on centos 6.9 is : clang  3.4.2 & have same error, 5.0.1 work fine?

 

 

This is Error in Ubuntu 16.04 with GCC7

../../../dep/lualib/liblualib.a(loslib.c.o): In function `os_tmpname':
/mnt/e/Game/TrinityCoreF/dep/lualib/loslib.c:108: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
../game/libgame.a(DBCStores.cpp.o): In function `boost::cpp_regex_traits<wchar_t>::transform_primary[abi:cxx11](wchar_t const*, wchar_t const*) const':
/usr/include/boost/regex/v4/cpp_regex_traits.hpp:965: undefined reference to `boost::re_detail::cpp_regex_traits_implementation<wchar_t>::transform_primary[abi:cxx11](wchar_t const*, wchar_t const*) const'
../game/libgame.a(DBCStores.cpp.o): In function `boost::cpp_regex_traits<wchar_t>::transform[abi:cxx11](wchar_t const*, wchar_t const*) const':
/usr/include/boost/regex/v4/cpp_regex_traits.hpp:961: undefined reference to `boost::re_detail::cpp_regex_traits_implementation<wchar_t>::transform[abi:cxx11](wchar_t const*, wchar_t const*) const'
collect2: error: ld returned 1 exit status
src/server/worldserver/CMakeFiles/worldserver.dir/build.make:212: recipe for target 'src/server/worldserver/worldserver' failed
make[2]: *** [src/server/worldserver/worldserver] Error 1
CMakeFiles/Makefile2:1661: recipe for target 'src/server/worldserver/CMakeFiles/worldserver.dir/all' failed
make[1]: *** [src/server/worldserver/CMakeFiles/worldserver.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

 

 

------------------------------------------------------------------------------------------------------

 


CENTOS 6.9

    -- The C compiler identification is Clang 3.4.2
    -- Boost version: 1.66.0
    [  6%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/hooks.c.o
    [  6%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/jemalloc.c.o
    /home/trinity/trinity_Source/dep/jemalloc/src/jemalloc.c:699:9: error: use of undeclared identifier 'secure_getenv'; did you mean '__secure_getenv'?
            return secure_getenv(name);
                   ^
    /home/trinity/trinity_Source/dep/jemalloc/include/jemalloc/internal/hooks.h:15:37: note: expanded from macro 'secure_getenv'
    #define secure_getenv JEMALLOC_HOOK(secure_getenv, hooks_libc_hook)
                                        ^
    /home/trinity/trinity_Source/dep/jemalloc/include/jemalloc/internal/hooks.h:7:71: note: expanded from macro 'JEMALLOC_HOOK'
    #define JEMALLOC_HOOK(fn, hook) ((void)(hook != NULL && (hook(), 0)), fn)
                                                                          ^
    /usr/include/stdlib.h:572:14: note: '__secure_getenv' declared here
    extern char *__secure_getenv (__const char *__name)

 

 

------------------------------------------------------------------------------------------------------

 

 

Ubuntu 16.04

-- The C compiler identification is Clang 3.8.0
-- The CXX compiler identification is Clang 3.8.0
-- Boost version: 1.66.0

 

[  0%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/AABox.cpp.o
In file included from /mnt/e/Game/TrinityCoreF/dep/g3dlite/source/AABox.cpp:13:
In file included from /mnt/e/Game/TrinityCoreF/dep/g3dlite/include/G3D/platform.h:366:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/tr1/memory:39:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/memory:80:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/bits/unique_ptr.h:37:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/tuple:39:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/array:39:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/stdexcept:39:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/string:52:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/bits/basic_string.h:6159:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/ext/string_conversions.h:41:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/cstdlib:77:
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/bits/std_abs.h:102:3: error: support for type
      '__float128' is not yet implemented
  abs(__float128 __x)
  ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/bits/std_abs.h:102:18: error: support for type
      '__float128' is not yet implemented
  abs(__float128 __x)
                 ^
2 errors generated.
dep/g3dlite/CMakeFiles/g3dlib.dir/build.make:62: recipe for target 'dep/g3dlite/CMakeFiles/g3dlib.dir/source/AABox.cpp.o' failed
make[2]: *** [dep/g3dlite/CMakeFiles/g3dlib.dir/source/AABox.cpp.o] Error 1
CMakeFiles/Makefile2:261: recipe for target 'dep/g3dlite/CMakeFiles/g3dlib.dir/all' failed
make[1]: *** [dep/g3dlite/CMakeFiles/g3dlib.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

Edited by Lost PMR
Link to comment
Share on other sites

+1 for not compiling

5 hours ago, Lost PMR said:

So, I need to install LLVM 5.0.1 ? bcz , I have same error on CentoS with gcc6, & def install clang on centos 6.9 is : clang  3.4.2 & have same error, 5.0.1 work fine?

 

 

This is Error in Ubuntu 16.04 with GCC7

../../../dep/lualib/liblualib.a(loslib.c.o): In function `os_tmpname':
/mnt/e/Game/TrinityCoreF/dep/lualib/loslib.c:108: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
../game/libgame.a(DBCStores.cpp.o): In function `boost::cpp_regex_traits<wchar_t>::transform_primary[abi:cxx11](wchar_t const*, wchar_t const*) const':
/usr/include/boost/regex/v4/cpp_regex_traits.hpp:965: undefined reference to `boost::re_detail::cpp_regex_traits_implementation<wchar_t>::transform_primary[abi:cxx11](wchar_t const*, wchar_t const*) const'
../game/libgame.a(DBCStores.cpp.o): In function `boost::cpp_regex_traits<wchar_t>::transform[abi:cxx11](wchar_t const*, wchar_t const*) const':
/usr/include/boost/regex/v4/cpp_regex_traits.hpp:961: undefined reference to `boost::re_detail::cpp_regex_traits_implementation<wchar_t>::transform[abi:cxx11](wchar_t const*, wchar_t const*) const'
collect2: error: ld returned 1 exit status
src/server/worldserver/CMakeFiles/worldserver.dir/build.make:212: recipe for target 'src/server/worldserver/worldserver' failed
make[2]: *** [src/server/worldserver/worldserver] Error 1
CMakeFiles/Makefile2:1661: recipe for target 'src/server/worldserver/CMakeFiles/worldserver.dir/all' failed
make[1]: *** [src/server/worldserver/CMakeFiles/worldserver.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

Yep + 1 for this. Happens to me as well although console output says that I'm using clang (using ubuntu 16.04.3)

Link to comment
Share on other sites

9 minutes ago, MrRobot said:

+1 for not compiling

Yep + 1 for this. Happens to me as well although console output says that I'm using clang (using ubuntu 16.04.3)

So, Clang work for you fine???? which version of clang?

 

Ubuntu 16.04

-- The C compiler identification is Clang 3.8.0
-- The CXX compiler identification is Clang 3.8.0
-- Boost version: 1.66.0

 

[  0%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/AABox.cpp.o
In file included from /mnt/e/Game/TrinityCoreF/dep/g3dlite/source/AABox.cpp:13:
In file included from /mnt/e/Game/TrinityCoreF/dep/g3dlite/include/G3D/platform.h:366:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/tr1/memory:39:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/memory:80:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/bits/unique_ptr.h:37:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/tuple:39:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/array:39:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/stdexcept:39:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/string:52:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/bits/basic_string.h:6159:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/ext/string_conversions.h:41:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/cstdlib:77:
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/bits/std_abs.h:102:3: error: support for type
      '__float128' is not yet implemented
  abs(__float128 __x)
  ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/bits/std_abs.h:102:18: error: support for type
      '__float128' is not yet implemented
  abs(__float128 __x)
                 ^
2 errors generated.
dep/g3dlite/CMakeFiles/g3dlib.dir/build.make:62: recipe for target 'dep/g3dlite/CMakeFiles/g3dlib.dir/source/AABox.cpp.o' failed
make[2]: *** [dep/g3dlite/CMakeFiles/g3dlib.dir/source/AABox.cpp.o] Error 1
CMakeFiles/Makefile2:261: recipe for target 'dep/g3dlite/CMakeFiles/g3dlib.dir/all' failed
make[1]: *** [dep/g3dlite/CMakeFiles/g3dlib.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

Edited by Lost PMR
Link to comment
Share on other sites

3 minutes ago, MrRobot said:

It doesn't. What I tried to say is that this error occurs on my ubuntu 16.04.3 machine while I'm using clang (and not gcc like you).

I try to compile with gcc5,gcc6,clang 3.8 on Ubuntu 16.04

also tested in centos with gcc4,gcc5,gcc6,gcc7, clang, All have error. but thats for new version patch. oldest version's work fine !

Idk, I wanna back to last version, new version need work more, now, have problem!

Edited by Lost PMR
Link to comment
Share on other sites

Just now, Lost PMR said:

I try to compile with gcc5,gcc6,clang 3.8 on Ubuntu 16.04

also tested in centos with gcc4,gcc5,gcc6,gcc7, clang, All have error. but thats for new version patch. oldest version's work fine !

Idk, I wanna back to last version!

I tryed the prevoious version also, with gcc4.x, 5.x, 6.x, clang 3.8 on ubuntu16.04lts, but its does'nt work for me,  and later try on ubuntu 17, maybe something changed somewhere :)

Link to comment
Share on other sites

1 hour ago, polszki said:

I tryed the prevoious version also, with gcc4.x, 5.x, 6.x, clang 3.8 on ubuntu16.04lts, but its does'nt work for me,  and later try on ubuntu 17, maybe something changed somewhere :)

Use commit : afa891d04d90189c9eeef49b4fd00f95936c540d

Edited by Lost PMR
Link to comment
Share on other sites

So, need to fix it to boost 1.66 too .

 

/mnt/e/Game/TrinityCoreF/src/common/Utilities/AsioHacksImpl.h:26:5: error: expected class-name before ‘{’ token
     {
     ^
/mnt/e/Game/TrinityCoreF/src/common/Utilities/AsioHacksImpl.h: In constructor ‘Trinity::AsioStrand::AsioStrand(boost::asio::io_service&)’:
/mnt/e/Game/TrinityCoreF/src/common/Utilities/AsioHacksImpl.h:28:90: error: expected class-name before ‘(’ token
         AsioStrand(boost::asio::io_service& io_service) : boost::asio::io_service::strand(io_service) { }
                                                                                          ^
/mnt/e/Game/TrinityCoreF/src/common/Utilities/AsioHacksImpl.h:28:90: error: expected ‘{’ before ‘(’ token
/mnt/e/Game/TrinityCoreF/src/common/Logging/Log.cpp: In member function ‘void Log::write(std::unique_ptr<LogMessage>&&) const’:
/mnt/e/Game/TrinityCoreF/src/common/Logging/Log.cpp:235:19: error: invalid use of incomplete type ‘class boost::asio::io_service’
         _ioService->post(_strand->wrap([logOperation](){ logOperation->call(); }));
                   ^
In file included from PrecompiledHeaders/commonPCH.h:24:0:
/mnt/e/Game/TrinityCoreF/src/common/Logging/Log.h:39:15: note: forward declaration of ‘class boost::asio::io_service’
         class io_service;
               ^
/mnt/e/Game/TrinityCoreF/src/common/Logging/Log.cpp:235:35: error: ‘class Trinity::AsioStrand’ has no member named ‘wra

         _ioService->post(_strand->wrap([logOperation](){ logOperation->call(); }));
                                   ^

Link to comment
Share on other sites

After clean install, i followed this instructions on:

ubuntu 17.10: (from default repository)
--cmake 3.9.1
--gcc 7.2.0
--clang 4.0.1-6
--boost 1.62.0.1

master and 3.3.5 branch: success...
cmake ../ -DCMAKE_INSTALL_PREFIX=/home/<username>/server
cmake ../ -DCMAKE_INSTALL_PREFIX=/home/$USER/server -DTOOLS=1 -DWITH_WARNINGS=1

on ubuntu 16.04: (from default repository)
--cmake 3.5.1
--gcc 5.4.0
--clang 3.8.0
--boost 1.58

master: not tested, 3.3.5: failed
cmake ../ -DCMAKE_INSTALL_PREFIX=/home/<username>/server

[ 97%] Linking CXX executable worldserver
../game/libgame.a(DBCStores.cpp.o): In function `boost::cpp_regex_traits<wchar_t>::transform[abi:cxx11](wchar_t const*, wchar_t const*) const':
/usr/include/boost/regex/v4/cpp_regex_traits.hpp:961: undefined reference to `boost::re_detail::cpp_regex_traits_implementation<wchar_t>::transform[abi:cxx11](wchar_t const*, wchar_t const*) const'
../game/libgame.a(DBCStores.cpp.o): In function `boost::cpp_regex_traits<wchar_t>::transform_primary[abi:cxx11](wchar_t const*, wchar_t const*) const':
/usr/include/boost/regex/v4/cpp_regex_traits.hpp:965: undefined reference to `boost::re_detail::cpp_regex_traits_implementation<wchar_t>::transform_primary[abi:cxx11](wchar_t const*, wchar_t const*) const'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
src/server/worldserver/CMakeFiles/worldserver.dir/build.make:211: recipe for target 'src/server/worldserver/worldserver' failed
make[2]: *** [src/server/worldserver/worldserver] Error 1
CMakeFiles/Makefile2:1564: recipe for target 'src/server/worldserver/CMakeFiles/worldserver.dir/all' failed
make[1]: *** [src/server/worldserver/CMakeFiles/worldserver.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2e ../ -DCMAKETALL_PREFIX=/home/<username>/server

Edited by polszki
Link to comment
Share on other sites

6 hours ago, polszki said:

After clean install, i followed this instructions on:

ubuntu 17.10: (from default repository)
--cmake 3.9.1
--gcc 7.2.0
--clang 4.0.1-6
--boost 1.62.0.1

master and 3.3.5 branch: success...
cmake ../ -DCMAKE_INSTALL_PREFIX=/home/<username>/server
cmake ../ -DCMAKE_INSTALL_PREFIX=/home/$USER/server -DTOOLS=1 -DWITH_WARNINGS=1

on ubuntu 16.04: (from default repository)
--cmake 3.5.1
--gcc 5.4.0
--clang 3.8.0
--boost 1.58

master: not tested, 3.3.5: failed
cmake ../ -DCMAKE_INSTALL_PREFIX=/home/<username>/server

[ 97%] Linking CXX executable worldserver
../game/libgame.a(DBCStores.cpp.o): In function `boost::cpp_regex_traits<wchar_t>::transform[abi:cxx11](wchar_t const*, wchar_t const*) const':
/usr/include/boost/regex/v4/cpp_regex_traits.hpp:961: undefined reference to `boost::re_detail::cpp_regex_traits_implementation<wchar_t>::transform[abi:cxx11](wchar_t const*, wchar_t const*) const'
../game/libgame.a(DBCStores.cpp.o): In function `boost::cpp_regex_traits<wchar_t>::transform_primary[abi:cxx11](wchar_t const*, wchar_t const*) const':
/usr/include/boost/regex/v4/cpp_regex_traits.hpp:965: undefined reference to `boost::re_detail::cpp_regex_traits_implementation<wchar_t>::transform_primary[abi:cxx11](wchar_t const*, wchar_t const*) const'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
src/server/worldserver/CMakeFiles/worldserver.dir/build.make:211: recipe for target 'src/server/worldserver/worldserver' failed
make[2]: *** [src/server/worldserver/worldserver] Error 1
CMakeFiles/Makefile2:1564: recipe for target 'src/server/worldserver/CMakeFiles/worldserver.dir/all' failed
make[1]: *** [src/server/worldserver/CMakeFiles/worldserver.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2e ../ -DCMAKETALL_PREFIX=/home/<username>/server

They, just increase, requirement software's, without test!.

So clone from old commits. ( I have TrinityCore revision   : 3ba518f5a996+ 2017-11-14 20:41:01 +0330 (3.3.5 branch) )

-- The C compiler identification is GNU 5.4.1

-- The CXX compiler identification is GNU 5.4.1

-- Boost version: 1.65.1 - Work with 1.58 too

- Ubuntu 16.04

[ 99%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/World/world_script_loader.cpp.o
[ 99%] Linking CXX static library libscripts.a
[ 99%] Built target scripts
Scanning dependencies of target worldserver
[ 99%] Building CXX object src/server/worldserver/CMakeFiles/worldserver.dir/RemoteAccess/RASession.cpp.o
[ 99%] Building CXX object src/server/worldserver/CMakeFiles/worldserver.dir/Main.cpp.o
[ 99%] Building CXX object src/server/worldserver/CMakeFiles/worldserver.dir/CommandLine/CliRunnable.cpp.o
[ 99%] Building CXX object src/server/worldserver/CMakeFiles/worldserver.dir/TCSoap/TCSoap.cpp.o
[100%] Linking CXX executable worldserver
[100%] Built target worldserver

Done. :)

 

 

 

Edited by masterking32
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.


  • Similar Content

    • By xgamerninjax
      Hello all, first time posting here and it's really got me scratching my head.
      I've compiled everything on my own computer, and then transferred everything to a host computer so the server can stay live. The server was running fine for a month or so and then suddenly it just crashes when it hits "Loading C++ scripts", exiting saying "caught signal 22"
      I tried setting up the host computer from scratch and transferred everything over fresh and it's still happening for some reason. (Note, I can run the server perfectly on my personal pc where I compiled it.)
      Any help would be greatly appreciated, thanks!
      3d7e3a40e2b3+_worldserver.exe_[1-4_15-19-45].dmp 3d7e3a40e2b3+_worldserver.exe_[1-4_15-19-45].txt
    • By Deer_Hunter
      Hello all,
      I just updated from the latest Git 
      Trinity Core REV. ac6baa547376 + 2020-02-21  3.3.5 Branch.
      I'm getting this error after crash.
      Problem signature:
        Problem Event Name:    APPCRASH
        Application Name:    worldserver.exe
        Application Version:    0.0.0.0
        Application Timestamp:    5e50a462
        Fault Module Name:    StackHash_f12f
        Fault Module Version:    6.3.9600.19629
        Fault Module Timestamp:    5e2fdc0d
        Exception Code:    c0000374
        Exception Offset:    PCH_9E_FROM_ntdll+0x0000000000090D0A
        OS Version:    6.3.9600.2.0.0.272.7
        Locale ID:    1033
        Additional Information 1:    f12f
        Additional Information 2:    f12f0934d3e965f73c68e60f20f2cd40
        Additional Information 3:    7595
        Additional Information 4:    7595e4d8d703db9dcd3d2f6ea540e357
      the exception code says its a Heap error,  I'm not sure how to troubleshoot this.
      Thanks
    • By 939h
      Hi,

      The chat channel Lookup for group is not available when a player isn't in a city. I tried to modify the worldserver.conf file with:
      #
      #    Channel.RestrictedLfg
      #        Description: Restrict LookupForGroup channel to characters registered in the LFG tool.
      #        Default:     1 - (Enabled, Allow join to channel only if registered in LFG)
      #                     0 - (Disabled, Allow join to channel in any time)
      Channel.RestrictedLfg = 0

      I restarted the server but it didn't help.

      Thanks
    • By meeek
      Hey, I've been trying to compile from github the core from 6.2.3/6.2.4, I'm well aware its stopped developing. I cannot get it to configure properly in CMake, nor can I obviously build it.
       
      I'd be willing to pay for help and get this working and running. I want to develop my own server on my freetime as a learning project and for entertainment. I can't find any core for WoD, sadly.. Very hard, would appreciate any quick help
       
    • By Probie_Wan_Kenobi
      I believe everything I have done up to this point has been correct. When I go to launch worldserver.exe a console window opens up for a second and closes right away and nothing else seems to have happened. I skipped a head a little in the instructions to see what is left and step 5 seems skippable since I am running this only for this computer and step 6 has me launch to a log in screen which I can not get to. I tried going to the faq but the page was not loading properly so I am forced to post here.
×
×
  • Create New...