Bug 2045271

Summary: community-mysql: FTBFS in Fedora rawhide/f36
Product: [Fedora] Fedora Reporter: Fedora Release Engineering <releng>
Component: community-mysqlAssignee: Michal Schorm <mschorm>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: hhorak, ljavorsk, mmuzila, mschorm
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-02-01 01:45:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1992484, 2041896    
Attachments:
Description Flags
build.log
none
root.log
none
state.log none

Description Fedora Release Engineering 2022-01-25 16:18:05 UTC
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/

Comment 1 Fedora Release Engineering 2022-01-25 16:18:10 UTC
Created attachment 1853846 [details]
build.log

file build.log too big, will only attach last 32768 bytes

Comment 2 Fedora Release Engineering 2022-01-25 16:18:12 UTC
Created attachment 1853847 [details]
root.log

file root.log too big, will only attach last 32768 bytes

Comment 3 Fedora Release Engineering 2022-01-25 16:18:14 UTC
Created attachment 1853848 [details]
state.log

Comment 4 Michal Schorm 2022-01-25 17:25:38 UTC
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;
      |                                                 ^~~~~~~~~~~

Comment 5 Michal Schorm 2022-01-25 17:36:08 UTC
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.

Comment 6 Lukas Javorsky 2022-01-28 11:04:45 UTC
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

Comment 7 Michal Schorm 2022-01-31 05:48:15 UTC
Rebase prepared in PR:
  https://src.fedoraproject.org/rpms/community-mysql/pull-request/7

Comment 8 Michal Schorm 2022-02-01 01:45:51 UTC
Fixed.
Successful build:
  https://koji.fedoraproject.org/koji/taskinfo?taskID=82204372