From patchwork Sat May 25 12:26:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 1939257 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=B9rL4Sw0; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Vmh4G1SqDz20QM for ; Sat, 25 May 2024 22:27:10 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8FAC53858D29 for ; Sat, 25 May 2024 12:27:05 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by sourceware.org (Postfix) with ESMTPS id 2D0F33858CD9 for ; Sat, 25 May 2024 12:26:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2D0F33858CD9 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 2D0F33858CD9 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::631 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716640007; cv=none; b=gz4A0IQUa35jsDXNX9+NroCbWYRz4paGnRBWEQ1rp8Q1+oj1bqaFYVnym12izGLJJE6SCg0cThIv9CDyXCznwhtx6egztMTrS8MHyCcOv34ntMbBXzFmI6F+vRLTsw04PtjuzSh897RKQzxJSqPVoPnBv75P0iHL/5I2OYivbn4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716640007; c=relaxed/simple; bh=v3aYYjakq/qHd8XnV/kybmOSM4s3o3fhkT4DAtIviic=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=RL7nBVasmd1aboK1poQMhpYsfzlVyboyKCa4ECRGCKdfiRe3OVgpz4F/sDB4uQti/OL7t2tOV3Ri3zsYsVu2/ZxMiafQddvtXoLVVnY/bB7KdoBzld9U8PIsRdPGLATc7VMi0CpwlIIAVnjTP3XE+Rg3dydoTwNXC/ud7qmmz/M= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-1f47eb21f0aso90195ad.1 for ; Sat, 25 May 2024 05:26:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716640004; x=1717244804; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=F7wChUx9+nJ6LueFbdHnxlrfeEPn1t2VQp9L0sSjTwg=; b=B9rL4Sw0cSTI9gxUjc03hGnFxyqYeYiTaL/YhXvojzb9hnCmLUkrbNjh4aGhrbwUPY INE+SVum8+UKK/Mk/NYLRpf3xEQWm0KCZruk9DXxXEMOT2lpEsXACSsOPhao2w6CKvXR BO/7FGrqnSI6kFvuioOFZnEJV5pX3DiJBpKjcZmPotcgVrzLZLNA619Y3uIFJJ8b8mI4 YE7UoGTlzJqPsWY4TC3JArQQ3M87sh3DCfPxdsRMIHdkGMqsWiCvVlQLaxmi+Iq3xxgp 6ZeIKjs4vEQUPiVHP0sTiIHka26KWSN5u/HZLp5DiCvhy+mzYVTz+T7t+BtIqPyQ04Gv RpiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716640004; x=1717244804; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=F7wChUx9+nJ6LueFbdHnxlrfeEPn1t2VQp9L0sSjTwg=; b=kvOkAkm32IhmBqtuXnMWeXZkuM7+iNAjfivdtFJIRCq2YElQ7hhrKBPwTMMqbngb25 kzgyF5whss7PB8s11JHIiuFmF3wDFCGLaNQcsdeQ+jBnrCCNcddTWB+YCtzsRuZ7zVyA OGiq1+OJpSnuudc+3vy+d78v9TBp/U5RNDtjC6QQZtW7DrTGAbVZmNO5mkgcVxJOJ39K go77r6Psu50xX4kecBNjCJYwA/YB9sMTMyWuy1eCVv/Bh9NGM4JSgGoIZ2RQZXkrwEo3 z7L37l0l3XJWyCVB8/E1nbqLFRgatV7HzxcPQNfCgZnc0tdKLKuMMiwDGzPof5xDnrV4 9sXw== X-Gm-Message-State: AOJu0YxSbuduxpC32hnNck/wH2VO45x80jSJ9uN3MduFqgorN0J5w50u 14Zgn/7KWTiyayJdp9lVpiJ0Vqmmr6rVTKVBJvQlk5Rk+aBNt8hBIryfHw== X-Google-Smtp-Source: AGHT+IFWtKUEyFMT/YXb4zxQ81SZoiCSQ13bA5yQI5SGjTzNO3pAcoV8Dm5bNOT8/agiROPDnB+j1A== X-Received: by 2002:a17:902:f545:b0:1f4:7a5c:65bf with SMTP id d9443c01a7336-1f47a5c725amr3534605ad.38.1716640004054; Sat, 25 May 2024 05:26:44 -0700 (PDT) Received: from gnu-cfl-3.localdomain ([172.59.129.178]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f450b4a52esm28272045ad.213.2024.05.25.05.26.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 May 2024 05:26:43 -0700 (PDT) Received: from gnu-cfl-3.. (localhost [IPv6:::1]) by gnu-cfl-3.localdomain (Postfix) with ESMTP id C4491740330; Sat, 25 May 2024 05:26:41 -0700 (PDT) From: "H.J. Lu" To: libc-alpha@sourceware.org Cc: fweimer@redhat.com Subject: [PATCH v2 0/2] Opt-out static C++ link check and tests Date: Sat, 25 May 2024 05:26:39 -0700 Message-ID: <20240525122641.3154365-1-hjl.tools@gmail.com> X-Mailer: git-send-email 2.45.1 MIME-Version: 1.0 X-Spam-Status: No, score=-3015.8 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 X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org The current glibc build and test will fail if static C++ link doesn't work. There are cases where static C++ link is hard to supported: 1. Building i686 glibc with GCC 6.4 on Fedora 40 failed since the C++ header files couldn't be found which was caused by the static C++ link check failure due to missing __divmoddi4 which was referenced in i686 libc.a and added to GCC 7. 2. Glibc test won't finish because static C++ tests fail when the C++ toolchain doesn't have necessary static C++ libraries which may not be easily installed. Add --disable-static-c++-link-check configure option to disable the static C++ link check. Add --disable-static-c++-tests option to skip the static C++ tests which also implies --disable-static-c++-link-check. H.J. Lu (2): Add --disable-static-c++-link-check option [BZ #31412] Add --disable-static-c++-tests option [BZ #31797] INSTALL | 17 +++++++++++++++++ configure | 44 ++++++++++++++++++++++++++++++++++++-------- configure.ac | 35 +++++++++++++++++++++++++---------- manual/install.texi | 16 ++++++++++++++++ nptl/Makefile | 3 +++ 5 files changed, 97 insertions(+), 18 deletions(-)