community-mysql failed to build from source in Fedora rawhide/f36 https://koji.fedoraproject.org/koji/taskinfo?taskID=81770261 For details on the mass rebuild see: https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Please fix community-mysql at your earliest convenience and set the bug's status to ASSIGNED when you start fixing it. If the bug remains in NEW state for 8 weeks, community-mysql will be orphaned. Before branching of Fedora 37, community-mysql will be retired, if it still fails to build. For more details on the FTBFS policy, please visit: https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/
Created attachment 1853846 [details] build.log file build.log too big, will only attach last 32768 bytes
Created attachment 1853847 [details] root.log file root.log too big, will only attach last 32768 bytes
Created attachment 1853848 [details] state.log
Currently I'm stuck with: ------------------------- [ 79%] Building CXX object sql/CMakeFiles/sql_main.dir/auth/sql_security_ctx.cc.o cd /builddir/build/BUILD/mysql-8.0.28/redhat-linux-build/sql && /usr/bin/g++ -DHAVE_CONFIG_H -DLZ4_DISABLE_DEPRECATE_WARNINGS -DMYSQL_SERVER -DRAPIDJSON_NO_SIZETYPEDEFINE -DRAPIDJSON_SCHEMA_USE_INTERNALREGEX=0 -DRAPIDJSON_SCHEMA_USE_STDREGEX=1 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_USE_MATH_DEFINES -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/mysql-8.0.28/redhat-linux-build -I/builddir/build/BUILD/mysql-8.0.28/redhat-linux-build/include -I/builddir/build/BUILD/mysql-8.0.28 -I/builddir/build/BUILD/mysql-8.0.28/include -isystem /builddir/build/BUILD/mysql-8.0.28/extra/rapidjson/include -isystem /usr/include/editline -isystem /builddir/build/BUILD/mysql-8.0.28/include/boost_1_73_0/patches -isystem /builddir/build/BUILD/mysql-8.0.28/boost/boost_1_73_0 -std=c++17 -fno-omit-frame-pointer -ftls-model=initial-exec -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wall -Wextra -Wformat-security -Wvla -Wundef -Wmissing-format-attribute -Woverloaded-virtual -Wcast-qual -Wimplicit-fallthrough=5 -Wstringop-truncation -Wsuggest-override -Wmissing-include-dirs -Wextra-semi -Wlogical-op -ffunction-sections -fdata-sections -O2 -g -DNDEBUG -fPIC -Wshadow=local -MD -MT sql/CMakeFiles/sql_main.dir/auth/sql_security_ctx.cc.o -MF CMakeFiles/sql_main.dir/auth/sql_security_ctx.cc.o.d -o CMakeFiles/sql_main.dir/auth/sql_security_ctx.cc.o -c /builddir/build/BUILD/mysql-8.0.28/sql/auth/sql_security_ctx.cc In file included from /usr/include/c++/12/unordered_map:47, from /usr/include/c++/12/functional:61, from /builddir/build/BUILD/mysql-8.0.28/boost/boost_1_73_0/boost/container_hash/hash.hpp:20, from /builddir/build/BUILD/mysql-8.0.28/boost/boost_1_73_0/boost/functional/hash.hpp:6, from /builddir/build/BUILD/mysql-8.0.28/boost/boost_1_73_0/boost/unordered/unordered_set.hpp:18, from /builddir/build/BUILD/mysql-8.0.28/boost/boost_1_73_0/boost/unordered_set.hpp:17, from /builddir/build/BUILD/mysql-8.0.28/boost/boost_1_73_0/boost/graph/adjacency_list.hpp:20: /usr/include/c++/12/bits/unordered_map.h: In instantiation of 'class std::unordered_multimap<const Auth_id, const Auth_id, role_id_hash>': /builddir/build/BUILD/mysql-8.0.28/sql/auth/sql_auth_cache.cc:2181:12: required from here /usr/include/c++/12/bits/unordered_map.h:1256:49: error: no type named 'mapped_type' in 'class std::_Hashtable<const Auth_id, std::pair<const Auth_id, const Auth_id>, std::allocator<std::pair<const Auth_id, const Auth_id> >, std::__detail::_Select1st, std::equal_to<const Auth_id>, role_id_hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, false, false> >' 1256 | typedef typename _Hashtable::mapped_type mapped_type; | ^~~~~~~~~~~
I've pushed my current work-in-progress to my fork: https://src.fedoraproject.org/fork/mschorm/rpms/community-mysql/commits/GCC-12 "fedpkg mockbuild" will bring you to the error in the previous comment.
This is fixed now in the new GCC release (libgcc-12.0.1-0.3) When using your new branch with GCC-12 commits it's building. Scratch-build: https://koji.fedoraproject.org/koji/taskinfo?taskID=82058340
Rebase prepared in PR: https://src.fedoraproject.org/rpms/community-mysql/pull-request/7
Fixed. Successful build: https://koji.fedoraproject.org/koji/taskinfo?taskID=82204372