From patchwork Mon Nov 11 18:11:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Maciej W. Rozycki" X-Patchwork-Id: 1193049 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-512974-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=wdc.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="NTpa1Xkp"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=wdc.com header.i=@wdc.com header.b="YBgFP1xT"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47Bf9C0z0Fz9sP4 for ; Tue, 12 Nov 2019 05:12:12 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:mime-version:content-type; q=dns; s=default; b=bzSNGhTdSJu+O71GPw4HWOvniW0/s5LyE4Hmm6iRr+ZcO9EU4z LafAX4L0+WS1O3i8NuLkK1bo3uPjtG3bzAJ2KYhcWueaDN4V/wxl4Lt/R0fSe6NU OMpcZ7OeeH4W65M47t3I0Z69S8sYj75ci89BIbexqwkTSwD08e0NHHyH8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:mime-version:content-type; s= default; bh=gBJnErCGv/POtk9nYOpxKn7FMaY=; b=NTpa1XkpjXikuNGdOJPk DWGbaLBNavjbO6LjYszwXp12bfaIog6SmMfxEEuefzJqpJCt9WR4/gDIHwFlDoDr MUTwaV6Ayt7cT5BV2V3QgIhAh4zR+gCf/4KdmUizWIXEfrCjykfbpFrNx3D4qZkM aBSKbkAtJ7OWVaKJ3MGz1Co= Received: (qmail 74155 invoked by alias); 11 Nov 2019 18:12:03 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 74088 invoked by uid 89); 11 Nov 2019 18:12:03 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-4.0 required=5.0 tests=AWL, BAYES_00 autolearn=unavailable version=3.3.1 spammy=whatsoever, inability, riscv-linux-gnu, riscvlinuxgnu X-HELO: esa2.hgst.iphmx.com Received: from esa2.hgst.iphmx.com (HELO esa2.hgst.iphmx.com) (68.232.143.124) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 11 Nov 2019 18:12:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1573495932; x=1605031932; h=date:from:to:cc:subject:message-id:mime-version; bh=fv6nasnBP+lJ0tBb9h3isjf2P5a5qzWNyV08y9CZ7CE=; b=YBgFP1xTBpnyr3+Bd6gwk14qI28FiYWuFHgVmPO2sZ0OOyzmUQ2hlxwn 9pJNVBd5MQ29dbikqK4spm0byQJYSiH/Hhv9LT3jTRAwJJOff/OYmnKNI 4SyNg7Vz2OBYU/OfJ84Oh7eYFnOpZzNM17OzvFK/JKAWG9oL337w3srcj Y1hcc7N3RaWhAXliP1zszPzydeQQReSJYKUsHUe2YzBJYb0N0zQw6nmGc 1L0Lp0zQsZBSf/uA4Hb6TN4PWzn6rFSHHem4W7mf44G1pdFh9p6M84CIX zYnutxj5nPhGMVtLLKhi3jxtdgTKs/hxfP2KaZzT8HBNiiDIA7SiU3kSM w==; IronPort-SDR: d1AY3AVsJbtTrVGvYibFVZQRbSbcMFNshpfif55GRAAJvQW56zjrTx2jp6zJ+n603M6BmQIq9Y /s3HnzGCW/7UO4PVHfGJCpfJgQgpfAFaWkLk57e63FIWoLfOlNqIrcxa4X8t+5EbYKEQipAzxI f78yRq/P0BzzyCcGKTp9zjsuY2IkYTJ9FjmCNBonXyr8d8I0cjOAhyWVeCcQmNcnxKFjYauveO e1ioQMzedbvyc4BeKvaoUtX0Bx2bOpYUFzP0cPI82Uu3i2DfhTsU+0kttFGYsxzQB/p3iuYiIo StE= Received: from h199-255-45-15.hgst.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 12 Nov 2019 02:12:07 +0800 IronPort-SDR: VP1qZsff5/a1qK044HaYo9YqhiAQOGCZPLDSEczHzWZRVZrSXPqFEsjVx4ZvueifcgR/IWjNA+ v2C/ywO3xGEyms/3pKpQfzA5qiM+0QJVTv+8sOpvw02OZd/S4YeBuPppztl7LOqge6ehDB4yZQ jxum8BIYZB2UlqLrc4pKE3rPIMBtxHBKaPzk3i2xtOpcbqQHA3gjx+nNqhn40Pi9R80vvMuYK9 B3q04MNVf1bTDxj4FcVGemkVBDbhggFMfeuJDCVBjUruVE2A6Fk+ThbZ0kOpZjw2ptaKnGFQjq rp30EzROCAWp2ZSmsAV3ZPn5 Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Nov 2019 10:07:02 -0800 IronPort-SDR: FA7lehUBsgyAKs/U41bZ7iieLGEWSmRGtF9ktRgRp2M0UT1CtkdFyuE4ntAyss1Uk/+KHh2Q4a wLIQsG6yqQat8Xz0wq/ydhQ1KxbmlN7hxvtXBXJJ7ATVfXI3nXGkffCKVlBGLbnTyFWgdwuYAJ zpVvWUfLsmGzWnxqr5NRiMuodacSpWAp4+i8FJgzOgKvVLnLvFVAkz3MDFX4kVgEC+hwFopHYP njgsZhwgWDz9Dqw4RaXWOnvnsdzFT/OAmaG7U5KO4aQngMHSBywZHleYs6dqG8/Y1GASHFnrBA BSo= WDCIronportException: Internal Received: from unknown (HELO redsun52) ([10.149.66.28]) by uls-op-cesaip01.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Nov 2019 10:11:59 -0800 Date: Mon, 11 Nov 2019 18:11:54 +0000 (GMT) From: "Maciej W. Rozycki" To: gcc-patches@gcc.gnu.org cc: libffi-discuss@sourceware.org, golang-dev@googlegroups.com Subject: [PATCH 0/4] Fix library testsuite compilation for build sysroot Message-ID: User-Agent: Alpine 2.21 (LFD 202 2017-01-01) MIME-Version: 1.0 Hi, This patch series addresses a problem with the testsuite compiler being set up across libatomic, libffi, libgo, libgomp with no correlation whatsoever to the target compiler being used in GCC compilation. Consequently there in no arrangement made to set up the compilation sysroot according to the build sysroot specified for GCC compilation, causing a catastrophic failure across the testsuites affected from the inability to link executables. The fix is based on a similar arrangement already made for passing autoconf output variables in libgomp, and uses the GCC_UNDER_TEST (or GOC_UNDER_TEST, as applicable) TCL variable already used across several GCC library testsuites. Verified with a cross-compiler configured for the `riscv-linux-gnu' target and the `x86_64-linux-gnu' host and using RISC-V/Linux QEMU in the user emulation mode as the target board. Also no change in results with `x86_64-linux-gnu' native regression testing. See individual change descriptions for details. OK to apply to the GCC repo (for libraries maintained externally I'll be happy to assist with any merging required, although given that these changes are confined to autoconf/automake scriptery they should be straightforward to apply, barring any conflicts in generated files)? Maciej