From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) by sourceware.org (Postfix) with ESMTP id A69CF385BF83 for ; Mon, 6 Apr 2020 18:10:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org A69CF385BF83 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-437-FIYSWCNLOiShsDykLgXx4Q-1; Mon, 06 Apr 2020 14:10:16 -0400 X-MC-Unique: FIYSWCNLOiShsDykLgXx4Q-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id BBB7318C43C0; Mon, 6 Apr 2020 18:10:14 +0000 (UTC) Received: from ovpn-114-204.phx2.redhat.com (ovpn-114-204.phx2.redhat.com [10.3.114.204]) by smtp.corp.redhat.com (Postfix) with ESMTP id 32417BEA64; Mon, 6 Apr 2020 18:10:14 +0000 (UTC) Message-ID: <78cb5a2429cf8b6eb043d86e26a9896214eb6765.camel@redhat.com> Subject: Re: [PATCH v4 1/5] libatomic/test: Fix compilation for build sysroot From: Jeff Law Reply-To: law@redhat.com To: "Maciej W. Rozycki" , gcc-patches@gcc.gnu.org Cc: Mike Stump , Chung-Lin Tang , Ian Lance Taylor Date: Mon, 06 Apr 2020 12:10:13 -0600 In-Reply-To: References: Organization: Red Hat User-Agent: Evolution 3.34.4 (3.34.4-1.fc31) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, 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: Mon, 06 Apr 2020 18:10:19 -0000 On Sat, 2020-04-04 at 00:00 +0100, Maciej W. Rozycki wrote: > Fix a problem with the libatomic 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 providing a DejaGNU configuration file defining > the compiler to use, via the GCC_UNDER_TEST TCL variable, set 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 > collect2: error: ld returned 1 exit status > compiler exited with status 1 > FAIL: libatomic.c/atomic-compare-exchange-1.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 > > UNRESOLVED: libatomic.c/atomic-compare-exchange-1.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: > > === libatomic Summary === > > # of unexpected failures 27 > # of unresolved testcases 27 > > to: > > === libatomic Summary === > > # of expected passes 54 > > libatomic/ > * configure.ac: Add testsuite/libatomic-site-extra.exp to output > files. > * configure: Regenerate. > * libatomic/testsuite/libatomic-site-extra.exp.in: New file. > * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New > variable. > * testsuite/Makefile.in: Regenerate. OK jeff >