From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw1-x1132.google.com (mail-yw1-x1132.google.com [IPv6:2607:f8b0:4864:20::1132]) by sourceware.org (Postfix) with ESMTPS id 0E32B3858CD9 for ; Sat, 25 May 2024 16:15:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0E32B3858CD9 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 0E32B3858CD9 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1132 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716653722; cv=none; b=O86gkVR36fvDaL/2uLoKWfc2+m2jCv+/Z+FyYtXIopb2dpX5K+ijYggDyCBJQjNGO/Hs9z4W7Av7SzoIw93bx2y8eadH/fbui4nERKTY8B3GyYoOLRCgxdpruAUi15XbCKgEFFRryrdTqGn0Vy5L0v3hN8D6b4756cwrZwD4yog= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716653722; c=relaxed/simple; bh=5U1DuPkVKWLfVfBQXL2g42/k5Akf8rZvrYBqMGoyF+E=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=q1mtoN7DDfaTbMQo0/EP1By2jfRsfipAAsBZQHxRPZ+BowsyW2Ft52Xn2NfGXLw3B9qW56+0J7EnEguKckBkCqwqPs/Dwz7PZ+ZapfZxNGOsdLMqmxDNS+hz2txPfe+TThdEaaTMeqgW72rLY8YLj57a+xXNGC20hDaTxXcyVrE= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-yw1-x1132.google.com with SMTP id 00721157ae682-62a2424ed00so1935907b3.1 for ; Sat, 25 May 2024 09:15:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716653719; x=1717258519; darn=sourceware.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ocgGJQLm0Vrqw2yEj8BOkvBmgFAQbha0IorWe0px+Bg=; b=b5IE4pmx6G9uvpS6MhCbw9Xl+iu/PYChMxp5U39Hv2cWT/h7eeGCDX9zmtvR5hGx/V VZjZbCRs12rQy7n0t8lpmYxHqRmPVJJZkGhrXm+KZEtzxh7vM/P0Z3E4cvSYanoLMgSb SYMvlaLqJEiRLJ+GnBySoEIlibLmQe5r2E19fGBHsN+e3HwaV0+GOUTsM2P+FZswGVqH g0oXFpVbi/P1ffjDC6UNqD5WJ79PknCSrXBQa44r+2ZO1nk0eKEoEsMHsxpkRxr43Waf o31WPqFKj8hHK+rn0Gdu4GsXMK52nUcHUL9WS+ibzIQynV0PkVzYb76b4+qpdMNbxlIS lPcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716653719; x=1717258519; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ocgGJQLm0Vrqw2yEj8BOkvBmgFAQbha0IorWe0px+Bg=; b=FW3GvvnPbM+cJK5HO6OUfYyZIAQM90AFevrhA44smHuU6baRQQO7He7yfmIBNQIJEh taMEA3xW0x+FV4SHU6yoFBivdDEuqTqMtQI0m/z+sMaVX8e6reQGyyzjiiWM9f4J2E7C Lmoq+PGT4LHKysanj28o3xLeFX+DX0AotuWpzmOULExjEaUGXa70H8+Paa4Ljc2Fi8ta 02it3TI7gVowsQS+QEMU6KKbllVWt7TZB9woiZxeWYVSYxvV1oFvgSKIf4L5Fu8W/Z2v aBTzv6Wo6yMyTwDbbj1GhCjHR33Oi12oB39lMhlxWDcrOQ3+Aaqiz6U1QhhE2upK5jFh iSaQ== X-Gm-Message-State: AOJu0YzWa1jypUFhl4HHTlRM6Z1xZF+boluJIRbc7SPhJPpuzuizdD1w PK1CFLJ/P+T6vOYIBUsh/2Mg5c/C0O9D5mvJegQVvkocHajfx1UWu/EaV2nTpuihw2EBjSrHOIB 3u8NgvzoNC2rBMr9xYdEBxuFovfM= X-Google-Smtp-Source: AGHT+IFlHoEVnxLLGusUmardGF5nrBG/2U7naVVqYQeY66dtzBvH6IAMrG9GPo2BG+Es0taRCbwbayJJxFixXVp/dVM= X-Received: by 2002:a0d:e214:0:b0:618:95a3:70b9 with SMTP id 00721157ae682-62a08ea5d7emr49279327b3.36.1716653719372; Sat, 25 May 2024 09:15:19 -0700 (PDT) MIME-Version: 1.0 References: <20240524215746.1212197-1-hjl.tools@gmail.com> <87fru6xllh.fsf@oldenburg.str.redhat.com> <87bk4tyiw0.fsf@oldenburg.str.redhat.com> In-Reply-To: <87bk4tyiw0.fsf@oldenburg.str.redhat.com> From: "H.J. Lu" Date: Sat, 25 May 2024 09:14:43 -0700 Message-ID: Subject: Re: [PATCH] Add --enable-static-c++-link-check option [BZ #31412] To: Florian Weimer Cc: libc-alpha@sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-3012.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Sat, May 25, 2024 at 9:08=E2=80=AFAM Florian Weimer = wrote: > > * H. J. Lu: > > > On Sat, May 25, 2024 at 2:54=E2=80=AFAM Florian Weimer wrote: > >> > >> * H. J. Lu: > >> > >> > The current minimum GCC version of glibc build is GCC 6.2 or newer. = When > >> > building i686 glibc on Fedora 40, GCC 6.4 failed the static C++ link= test > >> > since the 32-bit libc.a was built with GCC 14 and has references to > >> > __divmoddi4 which was added to GCC 7. Add --enable-static-c++-link-= check > >> > configure option which is on by default. --disable-static-c++-link-= check > >> > can be used to disable the static C++ link test. The newly built i6= 86 > >> > libc.a can be used by GCC 6.4 to create static C++ tests. This fixe= s > >> > BZ #31412. > >> > >> But won't there still be tons of test suite failures? > > > > I only saw > > > > FAIL: misc/tst-pidfd > > FAIL: misc/tst-pidfd_getpid It is a glibc bug. I submitted a patch: https://patchwork.sourceware.org/project/glibc/list/?series=3D34355 > > with GCC 6.4. I will check if it is a testcase issue. > > > >> Even CXX=3Dno will not work because in some configurations, it's actua= lly > >> libgcc_s.so.1 that can't be loaded, and that breaks pthread_cancel. > >> > > > > c++ still works. Only "c++ -static" doesn't work with the system libc.= a. > > I think you'll see the issue if you go back further, to the 2.34 branch. > I set up LD_LIBRARY_PATH to GCC 6.4 run-time libraries and only saw FAIL: nptl/tst-pthread-gdb-attach FAIL: nptl/tst-pthread-gdb-attach-static which is caused by gdb dependency on GCC 14 run-time libraries. --disable-static-c++-link-check together with --disable-static-c++-tests allow me to test ppc64le glibc on GCC compiler farm. --=20 H.J.