From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 81577 invoked by alias); 11 Nov 2019 18:13:13 -0000 Mailing-List: contact libffi-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libffi-discuss-owner@sourceware.org Received: (qmail 81547 invoked by uid 89); 11 Nov 2019 18:13:13 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-9.3 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3 autolearn=ham version=3.3.1 spammy=sk:cuda_d, 6834, latomic, sk:cuda_dr 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:13:12 +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=1573496011; x=1605032011; h=date:from:to:cc:subject:message-id:mime-version; bh=18Ow5rSkUL2bTh6r0d6VXctOm6hFkW4eLavIq0Ntab4=; b=GXsnG1mupzzqeHybB7fvaB3lcAy+cA348R/RLMbsYMpigwGoCOUIBocE 7zcLCdB5AIQjGtPs/xYO6IvKNdN3szwamUFvYqWtPY8Xy8IZVhi5P+d+U 9jTbSZUfRX4X/p0qF0XHweShnla2qpb3JNQEgQg2oifnKL/yRk8fcnOHa ywEL42oTrqaZldxIUIcG9NicFON/OD6F54mejB4k6+Rl8Awf/G47LeYgQ DPCOCogxpFaM9L42BYaYtySt7JEeixgjQsce5B9024ia9i/E/+eCSAseF yHDqwGnTNi2HLDMExW4VCT+F6AwriZzJUlGSkduU8VoYtG21RpHQuP1jn A==; IronPort-SDR: Hcrr7Ndi6aJ5hyNJApteNuyepXnB8/EoY7K0lOSA63vxmbIUht2eRNAogUC/YlXQLwDX7zpfwU ShpyQi+40h37o1wwTeuHl/qnylu4woy6LLVI8vb7plxuPEeLuceansXpVqfAGiQn6gtfPW+nhj ocBnYmjbnyGgFcChamsAFlNjKw7fm/G7ddufZM4qObQOpXc9dxoEUWLEsRw8DyQZxQzMsgkans VEimZrUMkK1NAwTy3SMqXa1I7ukAUX162cCx9zkB8ggVtFU+fn+L//6+Q7VCbzQtDD6TPHVF5l 4Xw= 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:13:29 +0800 IronPort-SDR: X3LS0Eoj2dWNahpjiN7RCV1oTL3nzVmhikF8D4ns9cwTKtzSYB9toybWkpNmNbRz5jPz2EaUcc y++jnQrz9Ae9Ys7b3SCh848VvaDiAM5GVPaNAcXziQ1RVmBQV0tvQXlaWTG2jZJkwuK24DxbUA CJKSoOtGuF/VPcc1WuG1lGSWlstrJ0SOZbj6jiHCJAcIWL4hHMt+47KUnjYXoyEBg9o06W9mtT nmOSWIOELAqV8ls2FoTSpOwBgUzMaaPfzzdXEKA/4uNKac9/Aa2fDn2jswaMlOoHosJ7b6JWAO zDh1Qq467SWW4t8CKJkRLvit 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:08:14 -0800 IronPort-SDR: n0Cho0GX44ggLHTxtgq+hfgTJleK4kwUTQSdtJQqVdC3uL5B1uWj2C2PKuVGhshIWvlnk83b2f sGpO9ttxU8fvTcNM4Tynd8E1Zy+DHUHcQVbv+gxf4PKyg6oSSwzlH3zATydC+Voovt2JSb4oKX fmXxOwiVpwl9Ucyt5N8msVHKfXlhD5Gq2QDrd/IZK0LJP82BI29NR9YrY6nVt37gan3ilgspcD dvtii0iDNX9CNBFdI71frL8hRe5ZdjJATeoqSinhRr5QRLC4j8VrpL3RRvAniTxz174/DPNfKs OE8= 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:13:10 -0800 Date: Mon, 11 Nov 2019 18:13:00 -0000 From: "Maciej W. Rozycki" To: gcc-patches@gcc.gnu.org cc: libffi-discuss@sourceware.org, golang-dev@googlegroups.com Subject: [PATCH 4/4] libgomp/test: Fix 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-SW-Source: 2019/txt/msg00069.txt.bz2 Fix a problem with the libgomp testsuite using a method to determine the compiler to use resulting in the tool being different from one the library has been built with, and causing a catastrophic failure from the lack of a suitable `--sysroot=' option where the `--with-build-sysroot=' configuration option has been used to build the compiler resulting in the inability to link executables. Address this problem by defining the compiler to use, via the GCC_UNDER_TEST TCL variable, set in the DejaGNU configuration file from $CC by autoconf, which will have all the required options set for the target compiler to build executables in the environment configured, removing failures like: .../bin/riscv64-linux-gnu-ld: cannot find crt1.o: No such file or directory .../bin/riscv64-linux-gnu-ld: cannot find -lm .../bin/riscv64-linux-gnu-ld: cannot find -lpthread .../bin/riscv64-linux-gnu-ld: cannot find -lc .../bin/riscv64-linux-gnu-ld: cannot find -latomic collect2: error: ld returned 1 exit status compiler exited with status 1 FAIL: libgomp.c/../libgomp.c-c++-common/atomic-18.c (test for excess errors) Excess errors: .../bin/riscv64-linux-gnu-ld: cannot find crt1.o: No such file or directory .../bin/riscv64-linux-gnu-ld: cannot find -lm .../bin/riscv64-linux-gnu-ld: cannot find -lpthread .../bin/riscv64-linux-gnu-ld: cannot find -lc .../bin/riscv64-linux-gnu-ld: cannot find -latomic UNRESOLVED: libgomp.c/../libgomp.c-c++-common/atomic-18.c compilation failed to produce executable and bringing overall test results for the `riscv64-linux-gnu' target (here with the `x86_64-linux-gnu' host and RISC-V QEMU in the Linux user emulation mode as the target board) from: === libgomp Summary === # of expected passes 44 # of unexpected failures 3274 # of unresolved testcases 3241 # of unsupported tests 548 to: === libgomp Summary === # of expected passes 6834 # of unexpected failures 4 # of expected failures 4 # of unsupported tests 518 libgomp/ * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New variable. --- libgomp/testsuite/libgomp-test-support.exp.in | 2 ++ 1 file changed, 2 insertions(+) gcc-test-libgomp-gcc-under-test.diff Index: gcc/libgomp/testsuite/libgomp-test-support.exp.in =================================================================== --- gcc.orig/libgomp/testsuite/libgomp-test-support.exp.in +++ gcc/libgomp/testsuite/libgomp-test-support.exp.in @@ -1,3 +1,5 @@ +set GCC_UNDER_TEST {@CC@} + set cuda_driver_include "@CUDA_DRIVER_INCLUDE@" set cuda_driver_lib "@CUDA_DRIVER_LIB@" set hsa_runtime_lib "@HSA_RUNTIME_LIB@"