From patchwork Wed Nov 13 00:43:19 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: 1193902 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-513185-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="lB1tmn5S"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=wdc.com header.i=@wdc.com header.b="kXR1rXVA"; 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 47CQpH5l7Mz9sPh for ; Wed, 13 Nov 2019 11:43:33 +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=l5J2ZBhN0VLd+R12uiczLLWW0/dVcfJa3hd8PhvXOkdBzcxohf WNF4GPifw9A+/5cvhwuIcrXf6Kaamm5OheQezkj02Acr+HQ70Ic2keFJUmJG+Ipw fZteoBm6cnZ0NxgEt5kNFqJDmq1MMkZOjNmAGBbKzTmuToVvezGQNJ5oI= 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=u4fwaKvnXoZnbd+UiRa5P4yD2tA=; b=lB1tmn5SrIDn16VCQEoD y0FHFbhB8r6nFGbbsbeHqXuLITt+ey0U2UI6rvE7goRVVu4aEDR1mTLICmEB5NDd Q26tctZk/hhVho011HKqhJYUyYAWDMpxK08lLppTVWxXe6anSOGQCwjvjBITJTVS zo1YUpFtkKhIgerRCkbmLbU= Received: (qmail 45637 invoked by alias); 13 Nov 2019 00:43:25 -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 45627 invoked by uid 89); 13 Nov 2019 00:43:25 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-9.2 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3 autolearn=ham version=3.3.1 spammy=HTo:D*googlegroups.com X-HELO: esa3.hgst.iphmx.com Received: from esa3.hgst.iphmx.com (HELO esa3.hgst.iphmx.com) (216.71.153.141) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 13 Nov 2019 00:43:24 +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=1573605804; x=1605141804; h=date:from:to:cc:subject:message-id:mime-version; bh=l52ZaCmTB6DCX++ztK8rLmCoUYV087hW1bjAFj3nuRE=; b=kXR1rXVA0oeYO82KA8UMQiiSCTCYvrVMgsDyHUhqiAgYHx0NvakqKEgo tGlAVPVWNT/ut/h/G2hUwjEcO/yLw7cBsWLzVsSbeQy/ssPl3sCySoUPJ 256g7NtwLqbykLu1eJKDOVxfp1u1ncSdaj0N0lrgQukK/JfcD2J4+YgJm /QaqWsw/JmLSJyRPYuQvwNTWeMm9quvPMEPGLs9A81S6kvzmZPTJ/Z7mu LlPJzQoZpsnuDt6cbVPHgcH0Ufq3q+XCxokXSE3ne6z/TJ2LcqJ8XS8jS 5sB4BeuMZXOIx8H92xQkNLZbM7dsnEmsFVWa3YofSG1vcc/6wDJ4QGbWA Q==; IronPort-SDR: TkR3JxBz0Iq4AHBnDwlYpAF38lVrPwLQy/rZosyNbp0SHCgVdLrTgvo8SvRwnPJG5jZ+Cf9vdp kf9+fjQzK1j+MZ8BkctK6de/yfXYik4fSp+ygLyKSK1fv5eIOpOZ8Z3mZ/T6BaKXZuTlL38lO0 stSDWFA++PdfFI/JaOi0fpLTIFKNA3H1wMvgW7d0TBP0QKynrbyZ/Hv4Ea2AOnfRA2xqnJ4Fl1 TpIE44wDtRDKE4Uwj3c1whmXLq8LJYwstfl96O5Gb7GqN9HgPMwkHZu8DRdlzCU4lH+CPqaEli RNc= 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; 13 Nov 2019 08:43:22 +0800 IronPort-SDR: QZ4xE5h8VgNxu3XBMLVQRnOyv4jR7eh5SlMMwkCtWYHCNfB6EDtUv4xFQdlT3h+p8GMqHtZcxd moH4IqOhy775lqcJJwD0MBhfpIU/o49UVbxA3OdgP3uVWZSk5Qq20btTRSZnCNCQjQXFoH5tOG JT0Q21VWnL8fz5n2g+SzQ2Jj3hfuuvm0hcgNqiScqfXVnIHkqmLlYMki8+qPrz55ki2QsqqWCy fWNK0R54agtRZTfI8/qnyY41JCNk5+OhxtNxMG9vfeDuBV6gBhHUHKbh1derGinpaErAJbV4D+ fV9dvWKZXziiJya41fhnsHW/ 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; 12 Nov 2019 16:38:23 -0800 IronPort-SDR: 5bD/VufweW2a7A3wRHters+uo44qilhZoMw1Elk5qrsX2decuS6xYJ/se9iVnA6W2A4monjtbh sQ59PS1YIOK/NHuscwbt0wFk2pkhnFE5dKAhskK0jTcJVYG9rEPZQTMhqfW0cgdcONNUJu/CIW 89JTdjHxYF5k5/FHvfX+dEUodhyvrLRnUjXgVyHcOPYoXiwr/30LGNYgcSf++Zw2DZdJVGNz1e OQUvndh7mvZx5lrYy6Z5Tv5z1f2AzsYgrDutZJ4kHJMQEnw/38mH9nvcBDMZg6HTA4ufuKeu88 S3k= 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; 12 Nov 2019 16:43:21 -0800 Date: Wed, 13 Nov 2019 00:43:19 +0000 (GMT) From: "Maciej W. Rozycki" To: gofrontend-dev@googlegroups.com, gcc-patches@gcc.gnu.org cc: Ian Lance Taylor Subject: [PATCH] libgo/test: Pass $GOLIBS to compilation in DejaGNU testing Message-ID: User-Agent: Alpine 2.21 (LFD 202 2017-01-01) MIME-Version: 1.0 Pass $GOLIBS to compilation in DejaGNU testing like with direct compiler invocation from `libgo/testsuite/gotest', removing link problems in cross-toolchain testing like: .../bin/riscv64-linux-gnu-ld: _gotest_.o: in function `cmd..z2fgo..z2finternal..z2fcache.Cache.get': .../riscv64-linux-gnu/libgo/gotest24771/test/cache.go:182: undefined reference to `cmd..z2fgo..z2finternal..z2frenameio.ReadFile' due to `libgotool.a' missing from the linker invocation command and improving 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 133 PASSes and 26 FAILs to 145 PASSes and 29 FAILs. --- libgo/testsuite/libgo.testmain/testmain.exp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) gcc-test-libgo-dejagnu-golibs.diff Index: gcc/libgo/testsuite/libgo.testmain/testmain.exp =================================================================== --- gcc.orig/libgo/testsuite/libgo.testmain/testmain.exp +++ gcc/libgo/testsuite/libgo.testmain/testmain.exp @@ -47,7 +47,11 @@ if [info exists gluefile] { regsub $gluefile $object_files "" object_files } -set comp_output [go_target_compile "$object_files _testmain.go" \ +set golibs "" +if [info exists env(GOLIBS)] { + set golibs "$env(GOLIBS)" +} +set comp_output [go_target_compile "$object_files _testmain.go $golibs" \ "./a.exe" "executable" $options] if ![ string match "" $comp_output ] { verbose -log $comp_output