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

Error compiling in the last version of Manjaro Linux #439

Open
orderorder opened this issue Jan 13, 2022 · 9 comments
Open

Error compiling in the last version of Manjaro Linux #439

orderorder opened this issue Jan 13, 2022 · 9 comments

Comments

@orderorder
Copy link

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
Copy link
Member

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

@orderorder
Copy link
Author

gcc versión 11.1.0
GNU Make 4.3

@Antidote
Copy link
Member

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
Copy link
Author

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
Copy link
Member

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

@orderorder
Copy link
Author

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
Copy link

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
Copy link
Member

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

@coreybruce
Copy link

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?

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

3 participants