From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa2.hgst.iphmx.com (esa2.hgst.iphmx.com [68.232.143.124]) by sourceware.org (Postfix) with ESMTPS id 815BC385DC00 for ; Fri, 3 Apr 2020 23:00:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 815BC385DC00 IronPort-SDR: uVCJrw1epmIB4ZEMPnIbNHLkZrmz/iqG12hMKqfSiaZuoTA/bknpQWRFAQ6GqqZKRb5kr7xqgL +kIZx7oOLE9H2jsohO03Vkbr5KYViH5YFip8rtlKh6XX3YhOJCFRbSo5nqhvaPA/RsMlb6QWq0 pY4ebRM1MnlrOs8X4C37ImE7ZhQ3EmeTnJJbzV6y8by/rbzNnnsmaNgV2VYkCKFhEryZ3ePiuo JHUoHiasM8rYD4f4JFGCWnYEi2y/qihd1NkRmT7+cXOBHQdXGf5QtkekIRW3+uUcLW8ZXhtn6t S3Y= X-IronPort-AV: E=Sophos;i="5.72,341,1580745600"; d="scan'208";a="236847127" 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; 04 Apr 2020 07:00:27 +0800 IronPort-SDR: yRKewJdUO1sprVujkff5jzv2t1p3eBgmzQ1D2+xnZPxNhjPGXhVQfFvbQ7OU4Pz5O/QlHwlDhI W1s9VoWtgBDqeuf2LO5/ZHirPcvIm6xb5lOie2uBnOpDX8dLx4TIgNOf3WeCrZJlrF94/Wil1+ tlAdI92S6iXxyR00PZh76l/Qh7e5t9KznCid8QhoKX+x+7qtRCljndOerMOZcxFM5eyHTCe+O0 MJ/GPOS68Bcv0PF863ygzsbTt9KlvI0VZmQekP0gLBNp6vGeJVndV0NwI237jOMEoi5r6DXnxV uuxPZXR1+RgyLr3NSg99sFpX Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2020 15:51:12 -0700 IronPort-SDR: +bkdqcq6JFAaSwCaQ6K3lZk1c1zNcpXI2/OIiwWFVpp3RfVT4Y8kzekEgZpxGszm9CFIXhedhm gpzWXXG8E4Yo/VjeLXGOVmwQGdTdBb1Fuu4HyB9JLA6vpjEiCCdn1ZxNf+p5Crds1+hYKBEs7O fYKVBA0LUX+Dkx56o2m/UDafusud3n9WpbR/fsBNs1zUb8h2f7/6swLmzw5xLxEWRp2hVFlU5e Mww1bD6Qb344mdPIafi4j5lA7H/n4DFYvDe/CMpuTQc7ahYexxUNyFdD5vw/qCqiHSc0y2Dt0b aBs= WDCIronportException: Internal Received: from unknown (HELO redsun52) ([10.149.66.28]) by uls-op-cesaip02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2020 16:00:22 -0700 Date: Sat, 4 Apr 2020 00:00:20 +0100 (BST) From: "Maciej W. Rozycki" To: gcc-patches@gcc.gnu.org cc: Jeff Law , Mike Stump , Chung-Lin Tang , Ian Lance Taylor Subject: [PATCH v4 0/5] Fix library testsuite compilation for build sysroot Message-ID: User-Agent: Alpine 2.21 (LFD 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_SHORT, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Apr 2020 23:00:28 -0000 Hi, This is v4 of patch series, originally posted here: v2 posted here: and v3 posted here: meant to address 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. In the course of discussion it has been determined it might be the best if we sync with libffi rather than providing our replacement solution, as the upstream version has it addressed, although in a slightly messy way. I have therefore decided to clean it up with upstream libffi and propose a corresponding backport of the change to be included with our version. This has resulted in two patches actually, replacing 2/4 from the original series. The remaining changes are the same as in v3, however Chung-Lin has since confirmed the libgomp change proposed here has addressed issues with testing in his environment (thank you, Chung-Lin!). 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. I'm assuming Ian will take care of the 4/5 libgo change (Ian, it's up to you if you want to have it or not). Any objections about 1/5 previously approved by Jeff, and OK to apply 2/5 and 3/5 (if the corresponding changes have been accepted into upstream libffi), as well as 5/5 to the GCC repo? Maciej