Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile errors after Azerothcore update #419

Open
wazgilbert opened this issue Nov 13, 2024 · 5 comments
Open

compile errors after Azerothcore update #419

wazgilbert opened this issue Nov 13, 2024 · 5 comments

Comments

@wazgilbert
Copy link

after updating the core, the cmake results of trying to recompile with this module installed leads to errors in the make, and make install subsequently fails.
by removing the module from the azerothcore build folders, it can go back to normal, and by returning them, it fails in the same way each time.
becuase this was working fine previously, without the module, it leads to errors in the game because of missing parts. (on that basis an uninstall instruction is needed to roll back to unmodified AZcore)
downloaded newest code to check. same errors.


[ 19%] Building CXX object modules/CMakeFiles/modules.dir/mod-individual-progression/src/naxx40Scripts/boss_gothik_40.cpp.o
[ 19%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/cmake_pch.hxx.pch
In file included from /Users/waz/azerothcore/modules/mod-individual-progression/src/naxx40Scripts/boss_gothik_40.cpp:18:
In file included from /Users/waz/azerothcore/src/server/game/AI/CoreAI/CombatAI.h:22:
In file included from /Users/waz/azerothcore/src/server/game/AI/CreatureAI.h:21:
In file included from /Users/waz/azerothcore/src/server/game/Maps/AreaBoundary.h:21:
/Users/waz/azerothcore/src/server/game/Entities/Object/Position.h:165:90: error: no member named 'sqrt' in namespace 'std'
    [[nodiscard]] float GetExactDist2d(const float x, const float y) const { return std::sqrt(GetExactDist2dSq(x, y)); }
                                                                                    ~~~~~^
/Users/waz/azerothcore/src/server/game/Entities/Object/Position.h:177:85: error: no member named 'sqrt' in namespace 'std'
    [[nodiscard]] float GetExactDist(float x, float y, float z) const { return std::sqrt(GetExactDistSq(x, y, z)); }
                                                                               ~~~~~^
/Users/waz/azerothcore/src/server/game/Entities/Object/Position.h:188:37: error: no member named 'atan2' in namespace 'std'; did you mean simply 'atan2'?
        return NormalizeOrientation(std::atan2(
                                    ^~~~~~~~~~
                                    atan2
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/math.h:840:1: note: 'atan2' declared here
atan2(_A1 __lcpp_y, _A2 __lcpp_x) _NOEXCEPT
^
In file included from /Users/waz/azerothcore/modules/mod-individual-progression/src/naxx40Scripts/boss_gothik_40.cpp:18:
In file included from /Users/waz/azerothcore/src/server/game/AI/CoreAI/CombatAI.h:22:
In file included from /Users/waz/azerothcore/src/server/game/AI/CreatureAI.h:21:
In file included from /Users/waz/azerothcore/src/server/game/Maps/AreaBoundary.h:21:
/Users/waz/azerothcore/src/server/game/Entities/Object/Position.h:239:19: error: no member named 'fmod' in namespace 'std'; did you mean simply 'fmod'?
            mod = std::fmod(mod, 2.0f * static_cast<float>(M_PI));
                  ^~~~~~~~~
                  fmod
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/math.h:935:1: note: 'fmod' declared here
fmod(_A1 __lcpp_x, _A2 __lcpp_y) _NOEXCEPT
^
[ 19%] Building CXX object modules/CMakeFiles/modules.dir/mod-individual-progression/src/naxx40Scripts/boss_grobbulus_40.cpp.o
In file included from /Users/waz/azerothcore/modules/mod-individual-progression/src/naxx40Scripts/boss_gothik_40.cpp:18:
In file included from /Users/waz/azerothcore/src/server/game/AI/CoreAI/CombatAI.h:22:
In file included from /Users/waz/azerothcore/src/server/game/AI/CreatureAI.h:21:
In file included from /Users/waz/azerothcore/src/server/game/Maps/AreaBoundary.h:21:
/Users/waz/azerothcore/src/server/game/Entities/Object/Position.h:243:16: error: no member named 'fmod' in namespace 'std'; did you mean simply 'fmod'?
        return std::fmod(o, 2.0f * static_cast<float>(M_PI));
               ^~~~~~~~~
               fmod
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/math.h:935:1: note: 'fmod' declared here
fmod(_A1 __lcpp_x, _A2 __lcpp_y) _NOEXCEPT
^
[ 20%] Building CXX object modules/CMakeFiles/modules.dir/mod-individual-progression/src/naxx40Scripts/boss_heigan_40.cpp.o
[ 20%] Building CXX object modules/CMakeFiles/modules.dir/mod-individual-progression/src/naxx40Scripts/boss_kelthuzad_40.cpp.o
[ 20%] Building CXX object modules/CMakeFiles/modules.dir/mod-individual-progression/src/naxx40Scripts/boss_loatheb_40.cpp.o
[ 20%] Building CXX object modules/CMakeFiles/modules.dir/mod-individual-progression/src/naxx40Scripts/boss_maexxna_40.cpp.o
[ 20%] Building CXX object modules/CMakeFiles/modules.dir/mod-individual-progression/src/naxx40Scripts/boss_patchwerk_40.cpp.o
[ 20%] Building CXX object modules/CMakeFiles/modules.dir/mod-individual-progression/src/naxx40Scripts/boss_noth_40.cpp.o
In file included from /Users/waz/azerothcore/modules/mod-individual-progression/src/naxx40Scripts/boss_grobbulus_40.cpp:18:
In file included from /Users/waz/azerothcore/src/server/game/AI/CoreAI/PassiveAI.h:21:
In file included from /Users/waz/azerothcore/src/server/game/AI/CreatureAI.h:21:
In file included from /Users/waz/azerothcore/src/server/game/Maps/AreaBoundary.h:21:
/Users/waz/azerothcore/src/server/game/Entities/Object/Position.h:165:90: error: no member named 'sqrt' in namespace 'std'
    [[nodiscard]] float GetExactDist2d(const float x, const float y) const { return std::sqrt(GetExactDist2dSq(x, y)); }
                                                                                    ~~~~~^
/Users/waz/azerothcore/src/server/game/Entities/Object/Position.h:177:85: error: no member named 'sqrt' in namespace 'std'
    [[nodiscard]] float GetExactDist(float x, float y, float z) const { return std::sqrt(GetExactDistSq(x, y, z)); }
                                                                               ~~~~~^
/Users/waz/azerothcore/src/server/game/Entities/Object/Position.h:188:37: error: no member named 'atan2' in namespace 'std'; did you mean simply 'atan2'?
        return NormalizeOrientation(std::atan2(
                                    ^~~~~~~~~~
                                    atan2
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/math.h:840:1: note: 'atan2' declared here
atan2(_A1 __lcpp_y, _A2 __lcpp_x) _NOEXCEPT
^
In file included from /Users/waz/azerothcore/modules/mod-individual-progression/src/naxx40Scripts/boss_grobbulus_40.cpp:18:
In file included from /Users/waz/azerothcore/src/server/game/AI/CoreAI/PassiveAI.h:21:
In file included from /Users/waz/azerothcore/src/server/game/AI/CreatureAI.h:21:
In file included from /Users/waz/azerothcore/src/server/game/Maps/AreaBoundary.h:21:
/Users/waz/azerothcore/src/server/game/Entities/Object/Position.h:239:19: error: no member named 'fmod' in namespace 'std'; did you mean simply 'fmod'?
            mod = std::fmod(mod, 2.0f * static_cast<float>(M_PI));
                  ^~~~~~~~~
                  fmod
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/math.h:935:1: note: 'fmod' declared here
fmod(_A1 __lcpp_x, _A2 __lcpp_y) _NOEXCEPT
^
In file included from /Users/waz/azerothcore/modules/mod-individual-progression/src/naxx40Scripts/boss_grobbulus_40.cpp:18:
In file included from /Users/waz/azerothcore/src/server/game/AI/CoreAI/PassiveAI.h:21:
In file included from /Users/waz/azerothcore/src/server/game/AI/CreatureAI.h:21:
In file included from /Users/waz/azerothcore/src/server/game/Maps/AreaBoundary.h:21:
/Users/waz/azerothcore/src/server/game/Entities/Object/Position.h:243:16: error: no member named 'fmod' in namespace 'std'; did you mean simply 'fmod'?
        return std::fmod(o, 2.0f * static_cast<float>(M_PI));
               ^~~~~~~~~
               fmod
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/math.h:935:1: note: 'fmod' declared here
fmod(_A1 __lcpp_x, _A2 __lcpp_y) _NOEXCEPT
^
[ 20%] Building CXX object modules/CMakeFiles/modules.dir/mod-individual-progression/src/naxx40Scripts/boss_razuvious_40.cpp.o
[ 20%] Building CXX object modules/CMakeFiles/modules.dir/mod-individual-progression/src/naxx40Scripts/boss_sapphiron_40.cpp.o
[ 20%] Building CXX object modules/CMakeFiles/modules.dir/mod-individual-progression/src/naxx40Scripts/boss_thaddius_40.cpp.o
[ 20%] Building CXX object modules/CMakeFiles/modules.dir/mod-individual-progression/src/naxx40Scripts/custom_creatures_40.cpp.o
[ 20%] Building CXX object modules/CMakeFiles/modules.dir/mod-individual-progression/src/naxx40Scripts/custom_gameobjects_40.cpp.o
[ 21%] Building CXX object modules/CMakeFiles/modules.dir/mod-individual-progression/src/naxx40Scripts/custom_spells_40.cpp.o
[ 21%] Building CXX object modules/CMakeFiles/modules.dir/mod-individual-progression/src/naxx40Scripts/instance_naxxramas.cpp.o
[ 21%] Building CXX object modules/CMakeFiles/modules.dir/mod-individual-progression/src/naxx40Scripts/omarion.cpp.o
[ 21%] Building CXX object modules/CMakeFiles/modules.dir/mod-individual-progression/src/spellScripts/spellScripts.cpp.o
[ 21%] Building CXX object modules/CMakeFiles/modules.dir/mod-individual-progression/src/tbcScripts/instance_karazhan.cpp.o
[ 21%] Linking CXX executable authserver
[ 21%] Built target authserver
[ 21%] Building CXX object modules/CMakeFiles/modules.dir/mod-individual-progression/src/tbcScripts/serpentshrine_cavern.cpp.o
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/math.h:843:5: error: static_assert failed due to requirement '!(std::integral_constant<bool, true>::value && std::integral_constant<bool, true>::value)' ""
    static_assert((!(std::_IsSame<_A1, __result_type>::value &&
    ^              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/waz/azerothcore/src/server/game/Entities/Object/Position.h:188:42: note: in instantiation of function template specialization 'atan2<float, float>' requested here
        return NormalizeOrientation(std::atan2(
                                         ^
In file included from /Users/waz/azerothcore/modules/mod-individual-progression/src/naxx40Scripts/boss_gothik_40.cpp:18:
In file included from /Users/waz/azerothcore/src/server/game/AI/CoreAI/CombatAI.h:22:
In file included from /Users/waz/azerothcore/src/server/game/AI/CreatureAI.h:21:
In file included from /Users/waz/azerothcore/src/server/game/Maps/AreaBoundary.h:21:
In file included from /Users/waz/azerothcore/src/server/game/Entities/Object/Position.h:22:
In file included from /Users/waz/azerothcore/deps/g3dlite/include/G3D/Vector3.h:19:
In file included from /Users/waz/azerothcore/deps/g3dlite/include/G3D/g3dmath.h:55:
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/math.h:938:5: error: static_assert failed due to requirement '!(std::integral_constant<bool, true>::value && std::integral_constant<bool, true>::value)' ""
    static_assert((!(std::_IsSame<_A1, __result_type>::value &&
    ^              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/waz/azerothcore/src/server/game/Entities/Object/Position.h:239:24: note: in instantiation of function template specialization 'fmod<float, float>' requested here
            mod = std::fmod(mod, 2.0f * static_cast<float>(M_PI));
                       ^
[ 21%] Building CXX object modules/CMakeFiles/modules.dir/mod-individual-progression/src/tbcScripts/the_eye.cpp.o
[ 21%] Building CXX object modules/CMakeFiles/modules.dir/mod-individual-progression/src/vanillaScripts/aq_scripts.cpp.o
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/math.h:843:5: error: static_assert failed due to requirement '!(std::integral_constant<bool, true>::value && std::integral_constant<bool, true>::value)' ""
    static_assert((!(std::_IsSame<_A1, __result_type>::value &&
    ^              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/waz/azerothcore/src/server/game/Entities/Object/Position.h:188:42: note: in instantiation of function template specialization 'atan2<float, float>' requested here
        return NormalizeOrientation(std::atan2(
                                         ^
In file included from /Users/waz/azerothcore/modules/mod-individual-progression/src/naxx40Scripts/boss_grobbulus_40.cpp:18:
In file included from /Users/waz/azerothcore/src/server/game/AI/CoreAI/PassiveAI.h:21:
In file included from /Users/waz/azerothcore/src/server/game/AI/CreatureAI.h:21:
In file included from /Users/waz/azerothcore/src/server/game/Maps/AreaBoundary.h:21:
In file included from /Users/waz/azerothcore/src/server/game/Entities/Object/Position.h:22:
In file included from /Users/waz/azerothcore/deps/g3dlite/include/G3D/Vector3.h:19:
In file included from /Users/waz/azerothcore/deps/g3dlite/include/G3D/g3dmath.h:55:
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/math.h:938:5: error: static_assert failed due to requirement '!(std::integral_constant<bool, true>::value && std::integral_constant<bool, true>::value)' ""
    static_assert((!(std::_IsSame<_A1, __result_type>::value &&
    ^              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/waz/azerothcore/src/server/game/Entities/Object/Position.h:239:24: note: in instantiation of function template specialization 'fmod<float, float>' requested here
            mod = std::fmod(mod, 2.0f * static_cast<float>(M_PI));
                       ^
7 errors generated.
make[2]: *** [modules/CMakeFiles/modules.dir/mod-individual-progression/src/naxx40Scripts/boss_gothik_40.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 21%] Building CXX object src/server/game/CMakeFiles/game.dir/AI/CreatureAIRegistry.cpp.o
[ 21%] Building CXX object src/server/game/CMakeFiles/game.dir/AI/CreatureAI.cpp.o
[ 21%] Building CXX object src/server/game/CMakeFiles/game.dir/AI/CreatureAISelector.cpp.o
7 errors generated.
make[2]: *** [modules/CMakeFiles/modules.dir/mod-individual-progression/src/naxx40Scripts/boss_grobbulus_40.cpp.o] Error 1
[ 22%] Building CXX object src/server/game/CMakeFiles/game.dir/AI/enuminfo_CreatureAI.cpp.o
[ 22%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/gen_scriptloader/static/ScriptLoader.cpp.o
[ 22%] Building CXX object src/server/game/CMakeFiles/game.dir/AI/CoreAI/CombatAI.cpp.o
@Grimfeather
Copy link
Contributor

Grimfeather commented Nov 14, 2024

Base AzerothCore right? no playerbots, no npcbots.
I'll test this.

00c352d05b3f1a1a61fed4c07752823b

I can't reproduce this. Compiling worked just fine.
Make sure you remove all content of your previous build. clear the build folder.
re-run cmake.

@wazgilbert
Copy link
Author

Ok, I have already removed everything I can find, dropped the world db and remade clean. The only mod I have running now is auto balance.
I'll try it from this state and update in comments.

@wazgilbert
Copy link
Author

I gave myself time to go through it today and I get the same results as I posted initially.
I'm running my server on a classic mac pro running macos 12.2, and following these processes that were successful a few months ago adding autobalance and individual progression, but has been a problem since I updated the core earlier this week.
https://www.azerothcore.org/wiki/macos-requirements
https://www.azerothcore.org/wiki/macos-core-installation (intel)

@Grimfeather
Copy link
Contributor

I don't know anything about the mac installation. I may not be able to help you with this.
A few days ago I made an updated preview build for this module. you can find it here:
https://github.com/Grimfeather/mod-individual-progression/releases/tag/2024-11-15

This was compiled on windows though, I don't know if it will work for you.
I did not include auto balance in this preview build.

@wazgilbert
Copy link
Author

Thanks, I’ll have a look at it, the bat file of course won’t work, but all the terminal stuff is like working in Linux, the commands are basically the same between Linux and Mac.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants