AxioDL / metaforce

A native reimplementation of the Metroid Prime engine
https://axiodl.com
Other
596 stars 41 forks source link

Error compiling in the last version of Manjaro Linux #439

Open orderorder opened 2 years ago

orderorder commented 2 years ago

metaforce/extern/athena/extern/fmt/include/fmt/ostream.h:123:8: error: partial specialization of ‘struct fmt::v7::detail::fallback_formatter<T, Char, typename std::enable_if<fmt::v7::detail::is_streamable<T, Char>::value, void>::type>’ after instantiation of ‘struct fmt::v7::detail::fallback_formatter<std::basic_string_view, char, void>’ [-fpermissive] 123 | struct fallback_formatter<T, Char, enable_if_t<is_streamable<T, Char>::value>> | ^~~~~~~~~~~~~~~ make[2]: [Runtime/CMakeFiles/RuntimeCommonB.dir/build.make:2295: Runtime/CMakeFiles/RuntimeCommonB.dir/World/CScriptStreamedMusic.cpp.o] Error 1 make[1]: [CMakeFiles/Makefile2:4138: Runtime/CMakeFiles/RuntimeCommonB.dir/all] Error 2 make: *** [Makefile:156: all] Error 2

Antidote commented 2 years ago

Which compiler are you using and what version? We primarily develop on Arch and have no such error.

orderorder commented 2 years ago

gcc versión 11.1.0 GNU Make 4.3

Antidote commented 2 years ago

Alright, I'll look into it when I get the chance, for now can you try clang? That has the most testing as that's what we use to compile Metaforce.

orderorder commented 2 years ago

cmake -B out -G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ cmake --build out --target metaforce hecl visigen

it works with this options.

Antidote commented 2 years ago

I just tried GCC on Arch, but unfortunately I can't replicate the issue, I'm also using gcc 11.1.0 :/

orderorder commented 2 years ago

From now on I will use clang and ninja to avoid problems. I would like to take this opportunity to show you my admiration for this project that I discovered by chance.

coreybruce commented 2 years ago

I just tried GCC on Arch, but unfortunately I can't replicate the issue, I'm also using gcc 11.1.0 :/

I also have gcc 11.1.0 on Manjaro but ran into this issues so what instructions do we use instead with clang or ninja?

Antidote commented 2 years ago

cmake -GNinja -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang

coreybruce commented 2 years ago

Thanks that worked for me, now that I have done that is it built and where does it go or what do I do next?