From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 82B7A389F4EA; Wed, 11 Mar 2020 10:26:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 82B7A389F4EA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1583922362; bh=g7anc48TdUG8LEOdUHduvBf2PlKKbUBujnzX/lYhbfM=; h=From:To:Subject:Date:From; b=M546U0BK0f62yOpsPkaikloRq/+3Wu/zmNevMi9FG756PNbnkrRPrU3kp5+cexkDN 1/CQ25Y3RIowk/tAC3MKaYQNQIGeosNcVhRvWDI0D1H/oaQKJ2Ql0KLzuYf5/O83aD 2INWVINdg/UAP0QU/ISIVFQSm6VKmnSQDfliX/Xk= From: "kangshan0910 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/94139] New: GCC9.2.0 build GCC8.2.0 break Date: Wed, 11 Mar 2020 10:26:02 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 9.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kangshan0910 at hotmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: 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, 11 Mar 2020 10:26:02 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94139 Bug ID: 94139 Summary: GCC9.2.0 build GCC8.2.0 break Product: gcc Version: 9.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: kangshan0910 at hotmail dot com CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxi= n at gcc dot gnu.org Target Milestone: --- Gcc8.2.0 will fail to be built after glibc is updated from 2.30 to 2.31. Here is the reproduce steps: 1. Download gcc-8.2.0 source code from ftp://ftp.fu-berlin.de/unix/languages/gcc/releases/gcc-8.2.0/gcc-8.2.0.tar.= gz or ftp://ftp.gwdg.de/pub/misc/gcc/releases/gcc-8.2.0/gcc-8.2.0.tar.gz or https://ftp.gnu.org/gnu/gcc/gcc-8.2.0/gcc-8.2.0.tar.gz 2. Unzip the package #cd gcc-8.2.0 #./contrib/download_prerequisites #./configure --disable-multilib --enable-checking=3Drelease #make defconfig #make clean #make -j4 After a while, the following error will occur. /home/pnp/.phoronix-test-suite/installed-tests/pts/build-gcc-1.1.2/gcc-8.2.= 0/host-x86_64-pc-linux-gnu/gcc/xgcc -shared-libgcc -B/home/pnp/.phoronix-test-suite/installed-tests/pts/build-gcc-1.1.2/gcc-8.= 2.0/host-x86_64-pc-linux-gnu/gcc -nostdinc++ -L/home/pnp/.phoronix-test-suite/installed-tests/pts/build-gcc-1.1.2/gcc-8.= 2.0/x86_64-pc-linux-gnu/libstdc++-v3/src -L/home/pnp/.phoronix-test-suite/installed-tests/pts/build-gcc-1.1.2/gcc-8.= 2.0/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -L/home/pnp/.phoronix-test-suite/installed-tests/pts/build-gcc-1.1.2/gcc-8.= 2.0/x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -B/usr/local/x86_64-pc-linux-gnu/bin/ -B/usr/local/x86_64-pc-linux-gnu/lib/ -isystem /usr/local/x86_64-pc-linux-gnu/include -isystem /usr/local/x86_64-pc-linux-gnu/sys-include -D_GNU_SOURCE -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DHAVE_RPC_XDR_H=3D1 -DHAVE_TIRPC_RPC_XDR_H=3D1 -I. -I../../.././libsanitizer/sanitizer_common -I.. -I ../../.././libsanitizer/include -isystem ../../.././libsanitizer/include/sy= stem -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long-long -fP= IC -fno-builtin -fno-exceptions -fno-rtti -fomit-frame-pointer -funwind-tables -fvisibility=3Dhidden -Wno-variadic-macros -I../../libstdc++-v3/include -I../../libstdc++-v3/include/x86_64-pc-linux-gnu -I../../.././libsanitizer/../libstdc++-v3/libsupc++ -std=3Dgnu++11 -DSANITIZER_LIBBACKTRACE -DSANITIZER_CP_DEMANGLE -I ../../.././libsanitizer/../libbacktrace -I ../libbacktrace -I ../../.././libsanitizer/../include -include ../../.././libsanitizer/libbacktrace/backtrace-rename.h -O2 -g -O3 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=3D2 -fexce= ptions -fstack-protector --param=3Dssp-buffer-size=3D32 -Wformat -Wformat-security= -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patter= ns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objec= ts -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=3Dskylake -Wa,-mbranches-within-32B-boundaries -fvisibility-inlines-hidden -Wl,--enable-new-dtags -D_GNU_SOURCE -MT sanitizer_platform_limits_posix.lo= -MD -MP -MF .deps/sanitizer_platform_limits_posix.Tpo -c ../../.././libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc= =20 -fPIC -DPIC -o .libs/sanitizer_platform_limits_posix.o In file included from ../../.././libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc= :193: ../../.././libsanitizer/sanitizer_common/sanitizer_internal_defs.h:317:72: error: size of array =E2=80=98assertion_failed__1152=E2=80=99 is negative typedef char IMPL_PASTE(assertion_failed_##_, line)[2*(int)(pred)-1] ^ ../../.././libsanitizer/sanitizer_common/sanitizer_internal_defs.h:311:30: note: in expansion of macro =E2=80=98IMPL_COMPILER_ASSERT=E2=80=99 #define COMPILER_CHECK(pred) IMPL_COMPILER_ASSERT(pred, __LINE__) ^~~~~~~~~~~~~~~~~~~~ ../../.././libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h:= 1475:3: note: in expansion of macro =E2=80=98COMPILER_CHECK=E2=80=99 COMPILER_CHECK(sizeof(((__sanitizer_##CLASS *) NULL)->MEMBER) =3D=3D \ ^~~~~~~~~~~~~~ ../../.././libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc= :1152:1: note: in expansion of macro =E2=80=98CHECK_SIZE_AND_OFFSET=E2=80=99 CHECK_SIZE_AND_OFFSET(ipc_perm, mode); ^~~~~~~~~~~~~~~~~~~~~ My debug environment is Clear Linux 32530, its default glibc is 2.31.=