minecraft-linux / mcpelauncher-manifest

The main repository for the Linux and Mac OS Bedrock edition Minecraft launcher.
https://minecraft-linux.github.io
GNU General Public License v3.0
928 stars 100 forks source link

error: no matching member function for call to insert #1028

Open xiota opened 1 month ago

xiota commented 1 month ago

Describe the bug Fails to build. Using branch-sync-mcpelauncher-qt6. Probably missing some header?

src/mcpelauncher-manifest/libc-shim/src/cstdio.cpp:140:10: error: no matching member function for call to 'insert'

Clang 18.1.8:

-- The C compiler identification is Clang 18.1.8
-- The CXX compiler identification is Clang 18.1.8

To Reproduce Clone, checkout branch, git submodules, configure/build with cmake, etc.

Expected behavior Build should succeed.

Desktop (please complete the following information):

ChristopherHX commented 1 month ago

Using GCC 14.1.1

That compiler is probably not used, gcc support has been dropped in 2020 and never restored. AUR and all other builds use clang.

This could be indeed a libstdc++ change, but usually missing includes caused better error messages that could be resolved without me installing bleeding edge toolchains to a ubuntu lts system where this compiles like before

xiota commented 1 month ago

Sorry for the mistake. Editing original description to correct. Compiler is clang 18.

-- The C compiler identification is Clang 18.1.8
-- The CXX compiler identification is Clang 18.1.8

Another package had similar error with different function, fixed by adding missing header, on GCC 14. So I assumed it was the same compiler. Apparently, GCC 14 and Clang 18 are both more strict about headers with less helpful error messages.