metaforce icon indicating copy to clipboard operation
metaforce copied to clipboard

Error compiling in the last version of Manjaro Linux

Open orderorder opened this issue 3 years ago • 9 comments

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

orderorder avatar Jan 13 '22 18:01 orderorder

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

Antidote avatar Jan 13 '22 19:01 Antidote

gcc versión 11.1.0 GNU Make 4.3

orderorder avatar Jan 13 '22 22:01 orderorder

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.

Antidote avatar Jan 13 '22 23:01 Antidote

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.

orderorder avatar Jan 14 '22 05:01 orderorder

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

Antidote avatar Jan 14 '22 05:01 Antidote

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.

orderorder avatar Jan 14 '22 15:01 orderorder

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?

coreybruce avatar Jan 23 '22 17:01 coreybruce

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

Antidote avatar Jan 23 '22 17:01 Antidote

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?

coreybruce avatar Jan 24 '22 05:01 coreybruce