From: Jeff Law <law@redhat.com>
To: "Maciej W. Rozycki" <macro@wdc.com>, gcc-patches@gcc.gnu.org
Cc: Mike Stump <mikestump@comcast.net>,
Chung-Lin Tang <cltang@codesourcery.com>,
Ian Lance Taylor <iant@golang.org>,
libffi-discuss@sourceware.org
Subject: Re: [PATCH v5 GCC] libffi/test: Fix compilation for build sysroot
Date: Wed, 22 Apr 2020 12:04:19 -0600 [thread overview]
Message-ID: <7d67eb66e65632ab1fce66ba07a8aa3e6090953d.camel@redhat.com> (raw)
In-Reply-To: <alpine.LFD.2.21.2004201336060.461@redsun52.ssa.fujisawa.hgst.com>
On Mon, 2020-04-20 at 14:18 +0100, Maciej W. Rozycki wrote:
> Fix a problem with the libffi 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
> inability to actually choose any compiler at all in a cross-compilation
> configuration.
>
> Address this problem by providing a DejaGNU configuration file defining
> the compiler to use, via the CC_FOR_TARGET 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:
>
> FAIL: libffi.call/closure_fn0.c -W -Wall -Wno-psabi -O0 (test for excess
> errors)
> Excess errors:
> default_target_compile: No compiler to compile with
> UNRESOLVED: libffi.call/closure_fn0.c -W -Wall -Wno-psabi -O0 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:
>
> === libffi Summary ===
>
> # of unexpected failures 708
> # of unresolved testcases 708
> # of unsupported tests 30
>
> to:
>
> === libffi Summary ===
>
> # of expected passes 1934
> # of unsupported tests 28
>
> This is a combined backport of the relevant parts of upstream libffi
> changes as follows:
>
> - commit 8308984e479e ("[PATCH] Make sure we're running dejagnu tests
> with the right compiler."),
>
> - commit 2d9b3939751b ("[PATCH] Fix for closures with sunpro compiler"),
>
> - commit 0c3824702d3d ("[PATCH] Always set CC_FOR_TARGET for dejagnu, to
> make the testsuite respect $CC"),
>
> - commit 7d698125b1f0 ("[PATCH] Use the proper C++ compiler to run C++
> tests"),
>
> - commit 6b6df1a7bb37 ("[PATCH] Adds `local.exp` to CLEANFILES"),
>
> - commit 6cf0dea78a5a ("[PATCH] Change CLEANFILES to DISTCLEANFILES")
>
> libffi/
> * Makefile.am (DISTCLEANFILES): New variable.
> * configure.ac: Produce `local.exp'.
> * Makefile.in: Regenerate.
> * configure: Regenerate.
> * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
> variable.
> * testsuite/Makefile.in: Regenerate.
OK
jeff
>
next prev parent reply other threads:[~2020-04-22 18:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-20 13:18 Maciej W. Rozycki
2020-04-22 18:04 ` Jeff Law [this message]
2020-04-25 20:33 ` Maciej W. Rozycki
2020-04-29 17:14 ` Jeff Law
2020-04-29 20:48 ` Florian Weimer
2023-09-12 10:58 ` libffi: Consider '--with-build-sysroot=[...]' for target libraries' build-tree testing (instead of build-time 'CC' etc.) [PR109951] (was: [PATCH v5 GCC] libffi/test: Fix compilation for build sysroot) Thomas Schwinge
2023-10-25 8:30 ` [PING] " Thomas Schwinge
2023-10-26 13:32 ` [PING] libffi: Consider '--with-build-sysroot=[...]' for target libraries' build-tree testing (instead of build-time 'CC' etc.) [PR109951] Jeff Law
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7d67eb66e65632ab1fce66ba07a8aa3e6090953d.camel@redhat.com \
--to=law@redhat.com \
--cc=cltang@codesourcery.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=iant@golang.org \
--cc=libffi-discuss@sourceware.org \
--cc=macro@wdc.com \
--cc=mikestump@comcast.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).