Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 786393 - dev-db/percona-server fails to build against gcc-11: my_alloc.h:161:40: error: ‘uintptr_t’ in namespace ‘std’ does not name a type
Summary: dev-db/percona-server fails to build against gcc-11: my_alloc.h:161:40: error...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-11
  Show dependency tree
 
Reported: 2021-04-28 10:08 UTC by Thomas Deutschmann
Modified: 2021-04-28 15:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Deutschmann gentoo-dev Security 2021-04-28 10:08:56 UTC
> [  1%] Building CXX object mysys/CMakeFiles/mysys_objlib.dir/array.cc.o
> cd /var/tmp/portage/dev-db/percona-server-8.0.22.13/work/percona-server-8.0.22.13_build/mysys && /usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -DHAVE_TLSv13 -DLZ4_DISABLE_DEPRECATE_WARNINGS -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 -D__STDC_WANT_LIB_EXT1__=1 -I/var/tmp/portage/dev-db/percona-server-8.0.22.13/work/percona-server-8.0.22.13_build -I/var/tmp/portage/dev-db/percona-server-8.0.22.13/work/percona-server-8.0.22.13_build/include -I/var/tmp/portage/dev-db/percona-server-8.0.22.13/work/mysql -I/var/tmp/portage/dev-db/percona-server-8.0.22.13/work/mysql/include -I/var/tmp/portage/dev-db/percona-server-8.0.22.13/work/mysql/extra/coredumper/include -isystem /var/tmp/portage/dev-db/percona-server-8.0.22.13/work/mysql/extra/rapidjson/include -isystem /var/tmp/portage/dev-db/percona-server-8.0.22.13/work/mysql/extra/libedit/libedit-20190324-3.1/src/editline -isystem /var/tmp/portage/dev-db/percona-server-8.0.22.13/work/mysql/include/boost_1_73_0/patches -isystem /var/tmp/portage/dev-db/percona-server-8.0.22.13/work/boost_1_73_0  -O2 -pipe -march=znver2 -mno-clzero -mno-mwaitx -mno-wbnoinvd -frecord-gcc-switches -felide-constructors -fno-strict-aliasing -Wall -Wextra -Wformat-security -Wvla -Wundef -Wmissing-format-attribute -Woverloaded-virtual -Wcast-qual -Wimplicit-fallthrough=2 -Wstringop-truncation -Wsuggest-override -Wlogical-op -DDBUG_OFF -DNDEBUG -D_FORTIFY_SOURCE=2 -DNDEBUG -fPIC -Wshadow=local -MD -MT mysys/CMakeFiles/mysys_objlib.dir/array.cc.o -MF CMakeFiles/mysys_objlib.dir/array.cc.o.d -o CMakeFiles/mysys_objlib.dir/array.cc.o -c /var/tmp/portage/dev-db/percona-server-8.0.22.13/work/mysql/mysys/array.cc
> In file included from /var/tmp/portage/dev-db/percona-server-8.0.22.13/work/mysql/include/my_alloc.h:43,
>                  from /var/tmp/portage/dev-db/percona-server-8.0.22.13/work/mysql/mysys/array.cc:38:
> /var/tmp/portage/dev-db/percona-server-8.0.22.13/work/mysql/include/my_alloc.h: In member function ‘void* MEM_ROOT::Alloc_aligned(size_t, size_t)’:
> /var/tmp/portage/dev-db/percona-server-8.0.22.13/work/mysql/include/my_alloc.h:161:40: error: ‘uintptr_t’ in namespace ‘std’ does not name a type
>   161 |         MY_ALIGN(reinterpret_cast<std::uintptr_t>(ptr), alignment));
>       |                                        ^~~~~~~~~
> /var/tmp/portage/dev-db/percona-server-8.0.22.13/work/mysql/include/my_pointer_arithmetic.h:34:27: note: in definition of macro ‘MY_ALIGN’
>    34 | #define MY_ALIGN(A, L) (((A) + (L)-1) & ~((L)-1))
>       |                           ^
> make[2]: *** [mysys/CMakeFiles/mysys_objlib.dir/build.make:76: mysys/CMakeFiles/mysys_objlib.dir/array.cc.o] Error 1
> make[2]: Leaving directory '/var/tmp/portage/dev-db/percona-server-8.0.22.13/work/percona-server-8.0.22.13_build'
> make[1]: *** [CMakeFiles/Makefile2:2754: mysys/CMakeFiles/mysys_objlib.dir/all] Error 2
> make[1]: Leaving directory '/var/tmp/portage/dev-db/percona-server-8.0.22.13/work/percona-server-8.0.22.13_build'
> make: *** [Makefile:156: all] Error 2
>  * ERROR: dev-db/percona-server-8.0.22.13::gentoo failed (compile phase):
>  *   emake failed
Comment 1 Larry the Git Cow gentoo-dev 2021-04-28 13:20:17 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21ff1654826c8c7e07404d92276d970946511766

commit 21ff1654826c8c7e07404d92276d970946511766
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2021-04-28 12:21:35 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2021-04-28 13:19:20 +0000

    dev-db/percona-server: force C++14
    
    Closes: https://bugs.gentoo.org/786393
    Package-Manager: Portage-3.0.18, Repoman-3.0.3
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 dev-db/percona-server/percona-server-8.0.22.13.ebuild | 3 +++
 1 file changed, 3 insertions(+)
Comment 2 Thomas Deutschmann gentoo-dev Security 2021-04-28 15:21:35 UTC
*** Bug 786462 has been marked as a duplicate of this bug. ***
Comment 3 Thomas Deutschmann gentoo-dev Security 2021-04-28 15:36:36 UTC
*** Bug 786462 has been marked as a duplicate of this bug. ***