From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 53188385040B; Wed, 17 Feb 2021 16:30:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 53188385040B From: "danglin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/77691] [8/9/10/11 regression] experimental/memory_resource/resource_adaptor.cc FAILs Date: Wed, 17 Feb 2021 16:30:10 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: danglin at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: ro at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Feb 2021 16:30:11 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D77691 --- Comment #45 from John David Anglin --- We see this fail on hppa-linux: https://buildd.debian.org/status/fetch.php?pkg=3Dmysql-8.0&arch=3Dhppa&ver= =3D8.0.23-3&stamp=3D1613526368&raw=3D0 [ 49%] Building CXX object storage/innobase/CMakeFiles/innobase.dir/api/api0api.cc.o cd /<>/builddir/storage/innobase && /usr/bin/hppa-linux-gnu-g++ -DBOOST_GEOMETRY_SQRT_CHECK_FINITENESS -DCOMPILER_HINTS -DHAVE_CONFIG_H -DHAVE_FALLOC_FL_ZERO_RANGE=3D1 -DHAVE_FALLOC_PUNCH_HOLE_AND_KEEP_SIZE=3D1 -DHAVE_IB_GCC_ATOMIC_THREAD_FENCE=3D1 -DHAVE_IB_GCC_SYNC_SYNCHRONISE=3D1 -DHAVE_IB_LINUX_FUTEX=3D1 -DHAVE_LZ4=3D1 -DHAVE_NANOSLEEP=3D1 -DHAVE_SCHED_= GETCPU=3D1 -DHAVE_TLSv13 -DLINUX_NATIVE_AIO=3D1 -DLOG_SUBSYSTEM_TAG=3D\"InnoDB\" -DLZ4_DISABLE_DEPRECATE_WARNINGS -DMUTEX_EVENT -DMYSQL_SERVER -DPFS_DIRECT_= CALL -DRAPIDJSON_NO_SIZETYPEDEFINE -DRAPIDJSON_SCHEMA_USE_INTERNALREGEX=3D0 -DRAPIDJSON_SCHEMA_USE_STDREGEX=3D1 -DUNIV_LINUX -D_FILE_OFFSET_BITS=3D64 -D_GNU_SOURCE -D_USE_MATH_DEFINES -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MAC= ROS -I/<>/builddir -I/<>/builddir/include -I/<> -I/<>/include -I/<>/storage/innobase -I/<>/storage/innobase/inc= lude -I/<>/storage/innobase/handler -I/<>/sql -I/<>/sql/auth -isystem /<>/extra/rapidjson/inclu= de -isystem /usr/include/editline -std=3Dc++14 -fno-omit-frame-pointer -g -O2 -ffile-prefix-map=3D/<>=3D. -Wformat -Werror=3Dformat-security= -Wall -Wextra -Wformat-security -Wvla -Wundef -Woverloaded-virtual -Wcast-qual -Wimplicit-fallthrough=3D2 -Wstringop-truncation -Wsuggest-override -Wlogic= al-op -Wno-unused-parameter -Wno-cast-qual -DDBUG_OFF -ffunction-sections -fdata-sections -O2 -g -DNDEBUG -fPIC -Wdate-time -D_FORTIFY_SOURCE=3D2 -o CMakeFiles/innobase.dir/api/api0api.cc.o -c /<>/storage/innobase/api/api0api.cc In file included from /<>/storage/innobase/include/sync0types.h:42, from /<>/storage/innobase/include/univ.i:588, from /<>/storage/innobase/os/file.h:47, from /<>/storage/innobase/include/os0file.h:4= 7, from /<>/storage/innobase/include/api0misc.h:= 40, from /<>/storage/innobase/api/api0api.cc:41: /<>/storage/innobase/include/ut0new.h: In instantiation of =E2= =80=98class ut_allocator > >=E2=80=99: /<>/storage/innobase/include/ut0new.h:1033:19: required from =E2=80=98void ut_delete(T*) [with T =3D PolicyMutex >]=E2=80=99 /<>/storage/innobase/include/dict0mem.h:2568:5: required from here /<>/storage/innobase/include/ut0new.h:583:28: error: static assertion failed: ut_allocator does not support over-aligned types. Use aligned_memory or another similar allocator for this type. 583 | static_assert(alignof(T) <=3D alignof(std::max_align_t), | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[4]: *** [storage/innobase/CMakeFiles/innobase.dir/build.make:85: storage/innobase/CMakeFiles/innobase.dir/api/api0api.cc.o] Error 1 It seems we have 8-byte alignment specified using std::max_align_t and 16-b= yte alignment for pthread mutexes and malloc.=