[8.60] The Forgotten Server 1.2

Status
Not open for further replies.

Ranyo13

ManCausingMayhem
Joined
Aug 22, 2009
Messages
983
Reaction score
38
Location
Egypt
How do I deal with this error when compiling (other than downgrading vs)
Code:
You've instantiated std::atomic<T> with sizeof(T) equal to 2/4/8 and alignof(T) <theforgottenserveratomicsizeof(T). Before VS 2015 Update 2, this would have misbehaved at runtime. VS 2015 Update 2 was fixed to handle this correctly, but the fix inherently changes layout and breaks binary compatibility. Please define _ENABLE_ATOMIC_ALIGNMENT_FIX to acknowledge that you understand this, and that everything you're linking has been compiled with VS 2015 Update 2 (or later).
 

Stigma

Veteran OT User
Joined
Feb 14, 2015
Messages
4,557
Reaction score
2,108
How do I deal with this error when compiling (other than downgrading vs)
Code:
You've instantiated std::atomic<T> with sizeof(T) equal to 2/4/8 and alignof(T) <theforgottenserveratomicsizeof(T). Before VS 2015 Update 2, this would have misbehaved at runtime. VS 2015 Update 2 was fixed to handle this correctly, but the fix inherently changes layout and breaks binary compatibility. Please define _ENABLE_ATOMIC_ALIGNMENT_FIX to acknowledge that you understand this, and that everything you're linking has been compiled with VS 2015 Update 2 (or later).
Fix compilation with VS2015 Update 2 (#1754) · otland/[email protected] · GitHub
 

Stigma

Veteran OT User
Joined
Feb 14, 2015
Messages
4,557
Reaction score
2,108
inside of lockfree.h?
if you're 1000000000000000000000000000000000000000% sure i don't know what else to tell you because that's how you fix it
i did the exact same thing whenever i compiled this months ago
 

Stigma

Veteran OT User
Joined
Feb 14, 2015
Messages
4,557
Reaction score
2,108
@Static_

is it possible to use this source and add some functions tfs 0.4? or 0.3.6
not exactly since the code is updated but it would be possible to convert something from 0.4/0.3.6 to 1.2
not an issue for this thread though, create a new one
 

Edroniasty

Member
Joined
Oct 2, 2015
Messages
89
Reaction score
1
Hello! Trying to compile..

using:
boost 1.62.0 (because my boost 1.59.0 don't have lib64-msvc-14.0 folder)
tfs-sdk 3.2
vc 2015 proffesional

my full error:
Code:
1>------ Rebuild All started: Project: theforgottenserver, Configuration: Release x64 ------
1>  otpch.cpp
1>  actions.cpp
1>  ban.cpp
1>  baseevents.cpp
1>  bed.cpp
1>  chat.cpp
1>  combat.cpp
1>  commands.cpp
1>  condition.cpp
1>c:\users\damianek\desktop\roxor\roxor ots\forgottenserver-8.6\src\house.h(214): fatal error C1090: PDB API call failed, error code '23': '( (compiling source file ..\src\commands.cpp)
1>c:\users\damianek\desktop\roxor\roxor ots\forgottenserver-8.6\src\container.h(82): fatal error C1090: PDB API call failed, error code '23': '( (compiling source file ..\src\bed.cpp)
1>  configmanager.cpp
1>c:\users\damianek\desktop\roxor\roxor ots\forgottenserver-8.6\src\house.h(218): fatal error C1090: PDB API call failed, error code '23': '( (compiling source file ..\src\condition.cpp)
1>c:\users\damianek\desktop\roxor\roxor ots\forgottenserver-8.6\src\house.h(218): fatal error C1090: PDB API call failed, error code '23': '( (compiling source file ..\src\combat.cpp)
1>  connection.cpp
1>  container.cpp
1>  creature.cpp
1>C:\Users\Damianek\Desktop\roxor\kompilowanie\boost_1_62_0\boost/lexical_cast/bad_lexical_cast.hpp(52): fatal error C1090: PDB API call failed, error code '23': '( (compiling source file ..\src\chat.cpp)
1>C:\Users\Damianek\Desktop\roxor\kompilowanie\boost_1_62_0\boost/lexical_cast/bad_lexical_cast.hpp(52): fatal error C1090: PDB API call failed, error code '23': '( (compiling source file ..\src\baseevents.cpp)
1>  creatureevent.cpp
1>C:\Users\Damianek\Desktop\roxor\kompilowanie\boost_1_62_0\boost/lexical_cast/bad_lexical_cast.hpp(52): fatal error C1090: PDB API call failed, error code '23': '( (compiling source file ..\src\actions.cpp)
1>  cylinder.cpp
1>  database.cpp
1>C:\Users\Damianek\Desktop\roxor\kompilowanie\boost_1_62_0\boost/lexical_cast/bad_lexical_cast.hpp(52): fatal error C1090: PDB API call failed, error code '23': '( (compiling source file ..\src\ban.cpp)
1>  databasemanager.cpp
1>  databasetasks.cpp
1>  depotchest.cpp
1>  depotlocker.cpp
1>  events.cpp
1>  fileloader.cpp
1>  game.cpp
1>  globalevent.cpp
1>  groups.cpp
1>  guild.cpp
1>  house.cpp
1>  housetile.cpp
1>  ioguild.cpp
1>  iologindata.cpp
1>  iomap.cpp
1>  iomapserialize.cpp
1>  item.cpp
1>  items.cpp
1>  luascript.cpp
1>  mailbox.cpp
1>  map.cpp
1>  monster.cpp
1>  monsters.cpp
1>  movement.cpp
1>  networkmessage.cpp
1>  npc.cpp
1>  otserv.cpp
1>  outfit.cpp
1>  outputmessage.cpp
1>  party.cpp
1>  player.cpp
1>  position.cpp
1>  protocol.cpp
1>  protocolgame.cpp
1>  protocollogin.cpp
1>  protocolold.cpp
1>  protocolstatus.cpp
1>  quests.cpp
1>C:\Users\Damianek\Desktop\msvc\VC\include\complex(213): fatal error C1090: PDB API call failed, error code '23': '( (compiling source file ..\src\protocolold.cpp)
1>C:\Users\Damianek\Desktop\msvc\VC\include\forward_list(885): fatal error C1090: PDB API call failed, error code '23': '( (compiling source file ..\src\otserv.cpp)
1>  c:\users\damianek\desktop\roxor\roxor ots\forgottenserver-8.6\src\combat.h(317): note: see reference to function template instantiation 'void std::forward_list<std::unique_ptr<const Condition,std::default_delete<_Ty>>,std::allocator<std::unique_ptr<_Ty,std::default_delete<_Ty>>>>::emplace_front<const Condition*&>(const Condition *&)' being compiled
1>          with
1>          [
1>              _Ty=const Condition
1>          ] (compiling source file ..\src\otserv.cpp)
1>C:\Users\Damianek\Desktop\msvc\VC\include\xxatomic(187): fatal error C1090: PDB API call failed, error code '23': '( (compiling source file ..\src\protocolgame.cpp)
1>  c:\users\damianek\desktop\roxor\roxor ots\forgottenserver-8.6\src\combat.h(317): note: see reference to function template instantiation 'void std::forward_list<std::unique_ptr<const Condition,std::default_delete<_Ty>>,std::allocator<std::unique_ptr<_Ty,std::default_delete<_Ty>>>>::emplace_front<const Condition*&>(const Condition *&)' being compiled
1>          with
1>          [
1>              _Ty=const Condition
1>          ] (compiling source file ..\src\otserv.cpp)
1>..\src\player.cpp(2258): fatal error C1090: PDB API call failed, error code '23': '(
1>C:\Users\Damianek\Desktop\msvc\VC\include\xtree(910): fatal error C1090: PDB API call failed, error code '23': '( (compiling source file ..\src\party.cpp)
1>  C:\Users\Damianek\Desktop\msvc\VC\include\xtree(909): note: while compiling class template member function 'std::_Wrap_alloc<std::allocator<_Other>> &std::_Tree_comp_alloc<_Traits>::_Getal(void) noexcept'
1>          with
1>          [
1>              _Other=std::_Tree_node<std::pair<const char,WildcardTreeNode>,void *>,
1>              _Traits=std::_Tmap_traits<char,WildcardTreeNode,std::less<char>,std::allocator<std::pair<const char,WildcardTreeNode>>,false>
1>          ] (compiling source file ..\src\party.cpp)
1>  C:\Users\Damianek\Desktop\msvc\VC\include\xtree(1026): note: see reference to function template instantiation 'std::_Wrap_alloc<std::allocator<_Other>> &std::_Tree_comp_alloc<_Traits>::_Getal(void) noexcept' being compiled
1>          with
1>          [
1>              _Other=std::_Tree_node<std::pair<const char,WildcardTreeNode>,void *>,
1>              _Traits=std::_Tmap_traits<char,WildcardTreeNode,std::less<char>,std::allocator<std::pair<const char,WildcardTreeNode>>,false>
1>          ] (compiling source file ..\src\party.cpp)
1>  C:\Users\Damianek\Desktop\msvc\VC\include\xtree(957): note: see reference to class template instantiation 'std::_Tree_comp_alloc<_Traits>' being compiled
1>          with
1>          [
1>              _Traits=std::_Tmap_traits<char,WildcardTreeNode,std::less<char>,std::allocator<std::pair<const char,WildcardTreeNode>>,false>
1>          ] (compiling source file ..\src\party.cpp)
1>  C:\Users\Damianek\Desktop\msvc\VC\include\map(73): note: see reference to class template instantiation 'std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>>' being compiled
1>          with
1>          [
1>              _Kty=char,
1>              _Ty=WildcardTreeNode,
1>              _Pr=std::less<char>,
1>              _Alloc=std::allocator<std::pair<const char,WildcardTreeNode>>
1>          ] (compiling source file ..\src\party.cpp)
1>  c:\users\damianek\desktop\roxor\roxor ots\forgottenserver-8.6\src\wildcardtree.h(45): note: see reference to class template instantiation 'std::map<char,WildcardTreeNode,std::less<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>' being compiled
1>          with
1>          [
1>              _Kty=char,
1>              _Ty=WildcardTreeNode
1>          ] (compiling source file ..\src\party.cpp)
1>  C:\Users\Damianek\Desktop\msvc\VC\include\chrono(1075): note: see reference to class template instantiation 'std::chrono::duration<__int64,std::milli>' being compiled (compiling source file ..\src\party.cpp)
1>  raids.cpp
1>  rsa.cpp
1>C:\Users\Damianek\Desktop\roxor\kompilowanie\boost_1_62_0\boost/math/policies/policy.hpp(648): fatal error C1090: PDB API call failed, error code '23': '( (compiling source file ..\src\protocolstatus.cpp)
1>  scheduler.cpp
1>  scriptmanager.cpp
1>  server.cpp
1>  spawn.cpp
1>C:\Users\Damianek\Desktop\roxor\kompilowanie\boost_1_62_0\boost/iterator/detail/facade_iterator_category.hpp(51): fatal error C1090: PDB API call failed, error code '23': '( (compiling source file ..\src\quests.cpp)
1>  spells.cpp
1>c:\users\damianek\desktop\roxor\roxor ots\forgottenserver-8.6\src\baseevents.h(36): fatal error C1090: PDB API call failed, error code '23': '( (compiling source file ..\src\protocollogin.cpp)
1>  talkaction.cpp
1>  tasks.cpp
1>  teleport.cpp
1>  thing.cpp
1>  tile.cpp
1>  tools.cpp
1>  trashholder.cpp
1>  vocation.cpp
1>  waitlist.cpp
1>  weapons.cpp
1>  wildcardtree.cpp
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
 

Edroniasty

Member
Joined
Oct 2, 2015
Messages
89
Reaction score
1
update Now working on 1.59.0 error:
Code:
------ Rebuild All started: Project: theforgottenserver, Configuration: Release x64 ------
1>  otpch.cpp
1>C:\Users\Damianek\Desktop\roxor\kompilowanie\boost_1_59_0\boost/asio/detail/config.hpp(227): warning C4005: 'BOOST_ASIO_ERROR_CATEGORY_NOEXCEPT': macro redefinition
1>  C:\Users\Damianek\Desktop\roxor\kompilowanie\boost_1_59_0\boost/asio/detail/config.hpp(213): note: see previous definition of 'BOOST_ASIO_ERROR_CATEGORY_NOEXCEPT'
1>  actions.cpp
1>  ban.cpp
1>  baseevents.cpp
1>  bed.cpp
1>  chat.cpp
1>  combat.cpp
1>  commands.cpp
1>  condition.cpp
1>  configmanager.cpp
1>  connection.cpp
1>  container.cpp
1>  creature.cpp
1>  creatureevent.cpp
1>  cylinder.cpp
1>  database.cpp
1>  databasemanager.cpp
1>  databasetasks.cpp
1>  depotchest.cpp
1>  depotlocker.cpp
1>  events.cpp
1>  fileloader.cpp
1>  game.cpp
1>  globalevent.cpp
1>  groups.cpp
1>  guild.cpp
1>  house.cpp
1>  housetile.cpp
1>  ioguild.cpp
1>  iologindata.cpp
1>..\src\events.cpp(723): fatal error C1090: PDB API call failed, error code '23': '(
1>..\src\creature.cpp(1636): fatal error C1090: PDB API call failed, error code '23': '(
1>C:\Users\Damianek\Desktop\msvc\VC\include\complex(1030): fatal error C1090: PDB API call failed, error code '23': '( (compiling source file ..\src\housetile.cpp)
1>c:\users\damianek\desktop\roxor\roxor ots\forgottenserver-8.6\src\map.h(83): fatal error C1090: PDB API call failed, error code '23': '( (compiling source file ..\src\iologindata.cpp)
1>..\src\game.cpp(2665): fatal error C1090: PDB API call failed, error code '23': '(
1>c:\users\damianek\desktop\roxor\roxor ots\forgottenserver-8.6\src\connection.h(81): fatal error C1090: PDB API call failed, error code '23': '( (compiling source file ..\src\house.cpp)
1>C:\Users\Damianek\Desktop\msvc\VC\include\xtree(1121): fatal error C1090: PDB API call failed, error code '23': '( (compiling source file ..\src\guild.cpp)
1>  C:\Users\Damianek\Desktop\msvc\VC\include\xtree(1120): note: while compiling class template member function 'std::_Tree_iterator<std::_Tree_val<std::_Tree_simple_types<std::pair<const _Kty,_Ty>>>> std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>>::end(void) noexcept'
1>          with
1>          [
1>              _Kty=uint32_t,
1>              _Ty=House *,
1>              _Pr=std::less<uint32_t>,
1>              _Alloc=std::allocator<std::pair<const uint32_t,House *>>
1>          ] (compiling source file ..\src\guild.cpp)
1>C:\Users\Damianek\Desktop\roxor\kompilowanie\boost_1_59_0\boost/lexical_cast/detail/converter_lexical.hpp(473): fatal error C1090: PDB API call failed, error code '23': '( (compiling source file ..\src\ioguild.cpp)
1>  C:\Users\Damianek\Desktop\roxor\kompilowanie\boost_1_59_0\boost/lexical_cast/detail/converter_lexical.hpp(472): note: while compiling class template member function 'bool boost::detail::lexical_converter_impl<Target,src>::try_convert(const Source &,Target &)'
1>          with
1>          [
1>              Target=uint32_t,
1>              Source=src
1>          ] (compiling source file ..\src\ioguild.cpp)
1>  c:\users\damianek\desktop\roxor\roxor ots\forgottenserver-8.6\src\house.h(276): note: see reference to function template instantiation 'std::_Tree_iterator<std::_Tree_val<std::_Tree_simple_types<std::pair<const _Kty,_Ty>>>> std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>>::end(void) noexcept' being compiled
1>          with
1>          [
1>              _Kty=uint32_t,
1>              _Ty=House *,
1>              _Pr=std::less<uint32_t>,
1>              _Alloc=std::allocator<std::pair<const uint32_t,House *>>
1>          ] (compiling source file ..\src\guild.cpp)
1>  C:\Users\Damianek\Desktop\roxor\kompilowanie\boost_1_59_0\boost/lexical_cast/try_lexical_convert.hpp(174): note: see reference to function template instantiation 'bool boost::detail::lexical_converter_impl<Target,src>::try_convert(const Source &,Target &)' being compiled
1>          with
1>          [
1>              Target=uint32_t,
1>              Source=src
1>          ] (compiling source file ..\src\ioguild.cpp)
1>  C:\Users\Damianek\Desktop\msvc\VC\include\map(73): note: see reference to class template instantiation 'std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>>' being compiled
1>          with
1>          [
1>              _Kty=uint32_t,
1>              _Ty=House *,
1>              _Pr=std::less<uint32_t>,
1>              _Alloc=std::allocator<std::pair<const uint32_t,House *>>
1>          ] (compiling source file ..\src\guild.cpp)
1>  C:\Users\Damianek\Desktop\roxor\kompilowanie\boost_1_59_0\boost/lexical_cast/try_lexical_convert.hpp(174): note: see reference to class template instantiation 'boost::detail::lexical_converter_impl<Target,src>' being compiled
1>          with
1>          [
1>              Target=uint32_t
1>          ] (compiling source file ..\src\ioguild.cpp)
1>  c:\users\damianek\desktop\roxor\roxor ots\forgottenserver-8.6\src\house.h(315): note: see reference to class template instantiation 'std::map<uint32_t,House *,std::less<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>' being compiled
1>          with
1>          [
1>              _Kty=uint32_t,
1>              _Ty=House *
1>          ] (compiling source file ..\src\guild.cpp)
1>  C:\Users\Damianek\Desktop\roxor\kompilowanie\boost_1_59_0\boost/lexical_cast.hpp(42): note: see reference to function template instantiation 'bool boost::conversion::detail::try_lexical_convert<T,Source>(const Source &,Target &)' being compiled
1>          with
1>          [
1>              T=uint32_t,
1>              Source=char *,
1>              Target=uint32_t
1>          ] (compiling source file ..\src\ioguild.cpp)
1>  c:\users\damianek\desktop\roxor\roxor ots\forgottenserver-8.6\src\database.h(165): note: see reference to function template instantiation 'Target boost::lexical_cast<T,char*>(const Source &)' being compiled
1>          with
1>          [
1>              Target=uint32_t,
1>              T=uint32_t,
1>              Source=char *
1>          ] (compiling source file ..\src\ioguild.cpp)
1>  ..\src\ioguild.cpp(36): note: see reference to function template instantiation 'T DBResult::getNumber<uint32_t>(const std::string &) const' being compiled
1>          with
1>          [
1>              T=uint32_t
1>          ]
1>  iomap.cpp
1>  iomapserialize.cpp
1>  item.cpp
1>  items.cpp
1>  luascript.cpp
1>  mailbox.cpp
1>  map.cpp
1>  monster.cpp
1>  monsters.cpp
1>  movement.cpp
1>  networkmessage.cpp
1>  npc.cpp
1>  otserv.cpp
1>  outfit.cpp
1>  outputmessage.cpp
1>  party.cpp
1>C:\Users\Damianek\Desktop\msvc\VC\include\atomic(659): error C2338: You've instantiated std::atomic<T> with sizeof(T) equal to 2/4/8 and alignof(T) < sizeof(T). Before VS 2015 Update 2, this would have misbehaved at runtime. VS 2015 Update 2 was fixed to handle this correctly, but the fix inherently changes layout and breaks binary compatibility. Please define _ENABLE_ATOMIC_ALIGNMENT_FIX to acknowledge that you understand this, and that everything you're linking has been compiled with VS 2015 Update 2 (or later). (compiling source file ..\src\outputmessage.cpp)
1>  C:\Users\Damianek\Desktop\msvc\VC\include\atomic(669): note: see reference to class template instantiation 'std::_Atomic_base<_Ty,4>' being compiled
1>          with
1>          [
1>              _Ty=boost::lockfree::detail::tagged_index
1>          ] (compiling source file ..\src\outputmessage.cpp)
1>  C:\Users\Damianek\Desktop\roxor\kompilowanie\boost_1_59_0\boost/lockfree/detail/freelist.hpp(603): note: see reference to class template instantiation 'std::atomic<boost::lockfree::detail::tagged_index>' being compiled (compiling source file ..\src\outputmessage.cpp)
1>  C:\Users\Damianek\Desktop\roxor\kompilowanie\boost_1_59_0\boost/lockfree/detail/freelist.hpp(604): note: see reference to class template instantiation 'boost::lockfree::detail::fixed_size_freelist<T,NodeStorage>' being compiled (compiling source file ..\src\outputmessage.cpp)
1>  player.cpp
1>  position.cpp
1>  protocol.cpp
1>  protocolgame.cpp
1>  protocollogin.cpp
1>  protocolold.cpp
1>  protocolstatus.cpp
1>  quests.cpp
1>  raids.cpp
1>  rsa.cpp
1>  scheduler.cpp
1>  scriptmanager.cpp
1>  server.cpp
1>  spawn.cpp
1>  spells.cpp
1>  talkaction.cpp
1>  tasks.cpp
1>  teleport.cpp
1>  thing.cpp
1>  tile.cpp
1>  tools.cpp
1>  trashholder.cpp
1>  vocation.cpp
1>c:\users\damianek\desktop\roxor\roxor ots\forgottenserver-8.6\src\quests.h(66): fatal error C1090: PDB API call failed, error code '23': '( (compiling source file ..\src\tasks.cpp)
1>..\src\talkaction.cpp(162): fatal error C1090: PDB API call failed, error code '23': '(
1>..\src\spawn.cpp(335): fatal error C1090: PDB API call failed, error code '23': '(
1>..\src\spells.cpp(1910): fatal error C1090: PDB API call failed, error code '23': '(
1>C:\Users\Damianek\Desktop\msvc\VC\include\xatomic.h(227): fatal error C1090: PDB API call failed, error code '23': '( (compiling source file ..\src\teleport.cpp)
1>c:\users\damianek\desktop\roxor\roxor ots\forgottenserver-8.6\src\house.h(316): fatal error C1090: PDB API call failed, error code '23': '( (compiling source file ..\src\trashholder.cpp)
1>  c:\users\damianek\desktop\roxor\roxor ots\forgottenserver-8.6\src\house.h(316): note: This diagnostic occurred in the compiler generated function 'AccessList::~AccessList(void)' (compiling source file ..\src\trashholder.cpp)
1>  waitlist.cpp
1>  weapons.cpp
1>  wildcardtree.cpp
1>C:\Users\Damianek\Desktop\roxor\kompilowanie\boost_1_59_0\boost/math/policies/policy.hpp(626): fatal error C1090: PDB API call failed, error code '23': '( (compiling source file ..\src\tile.cpp)
1>C:\Users\Damianek\Desktop\roxor\kompilowanie\boost_1_59_0\boost/lexical_cast/bad_lexical_cast.hpp(52): fatal error C1090: PDB API call failed, error code '23': '( (compiling source file ..\src\vocation.cpp)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
 

5lave Ots

Member
Joined
Oct 2, 2017
Messages
150
Reaction score
5
how to update my old server to this tfs
it was 0.3.6 tfs win 32bit.. how we can update the lib files and lua functions :D
 

5lave Ots

Member
Joined
Oct 2, 2017
Messages
150
Reaction score
5
how to update my old server to this tfs
it was 0.3.6 tfs win 32bit.. how we can update the lib files and lua functions :D
 

Okke

Voidcore 7.4
Joined
Jul 19, 2015
Messages
906
Reaction score
411
Location
germany
compat.lua is there to take care of the lua scripts, you just will have a hard time to parse your map and the rest of the datapack to work with this distro, keep 0.3.6, maybe go up to 0.4, there is actually no need to move upwards with your datapack.
 
Status
Not open for further replies.
Top