From: Maciej Rozycki <macro@wdc.com>
To: Ian Lance Taylor <iant@golang.org>
Cc: Jim Wilson <jimw@sifive.com>,
Andreas Schwab <schwab@linux-m68k.org>,
gcc-patches <gcc-patches@gcc.gnu.org>,
gofrontend-dev <gofrontend-dev@googlegroups.com>
Subject: Re: Go patch committed: Intrinsify runtime/internal/atomic functions
Date: Mon, 03 Jun 2019 20:11:00 -0000 [thread overview]
Message-ID: <alpine.DEB.2.20.1906032045530.26643@tpp.hgst.com> (raw)
In-Reply-To: <CAKOQZ8yO-DySoNPkZNToT47kjrKd0P-XW9mSaUgXHZanPnXYTQ@mail.gmail.com>
On Mon, 3 Jun 2019, Ian Lance Taylor wrote:
> > I have results as at r270765, taken with QEMU run in the user emulation
> > mode (I have patches outstanding for configury/Makefiles to correctly
> > support libgo and other library testing with a build sysroot in such a
> > setup, pending the completion of my WDC copyright assignment paperwork
> > with FSF):
> >
> > FAIL: go.test/test/args.go execution, -O2 -g
>
> That is a fairly trivial test so if that one fails then something is
> pretty fundamentally wrong somewhere.
>
> You can run just that test by running
>
> make RUNTESTFLAGS=go-test.exp=args.go check-gcc-go
>
> If it fails you should have an executable gcc/testsuite/go/args.x.
The .log file reports (leading paths edited throughout):
spawn qemu-riscv64 -E LD_LIBRARY_PATH=.:.../riscv64-linux-gnu/lib64/lp64d/libgo/.libs:.../gcc:.../gcc/lib64/lp64:.../gcc/lib64/lp64d .../gcc/testsuite/go/args.x
panic: argc
goroutine 1 [running]:
main.main
.../gcc/testsuite/go.test/test/args.go:18
FAIL: go.test/test/args.go execution, -O2 -g
The same happens when this is invoked manually.
> Run that executable as `args.x arg1 arg2`.
That works however. I've modified `sim_spawn', which is declared as:
proc sim_spawn { dest cmdline args }
by adding this line:
clone_output "sim_spawn $dest $cmdline $args"
and it reports no command-line arguments being passed to the test case
from the test harness:
sim_spawn qemu-user-lp64d .../gcc/testsuite/go/args.x
so I gather there is something wrong at an upper level. I'll see if I can
investigate it at one point, but given that it is probably the only test
case that expects arguments I consider it a very low priority issue.
Also not all simulators may support arguments in the first place,
especially for bare metal.
NB I had to make a local copy of `sim_spawn' in the qemu-user-lp64d.exp
board description file used, to get `-E ...' passed to QEMU with the
LD_LIBRARY_PATH setting for uninstalled shared libraries to work. That
does not affect received `args' being empty however.
Maciej
next prev parent reply other threads:[~2019-06-03 20:11 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-17 0:21 Ian Lance Taylor
2019-05-19 12:22 ` Andreas Schwab
2019-05-22 1:17 ` Jim Wilson
2019-05-23 1:37 ` [gofrontend-dev] " Cherry Zhang via gcc-patches
2019-05-23 1:41 ` Ian Lance Taylor
2019-05-30 20:50 ` Jim Wilson
2019-05-30 20:51 ` Jim Wilson
2019-05-30 18:37 ` Andreas Schwab
2019-05-30 20:56 ` Jim Wilson
2019-06-03 14:12 ` Maciej Rozycki
2019-06-03 17:03 ` Ian Lance Taylor
2019-06-03 20:11 ` Maciej Rozycki [this message]
2019-06-03 17:21 ` Andreas Schwab
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=alpine.DEB.2.20.1906032045530.26643@tpp.hgst.com \
--to=macro@wdc.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=gofrontend-dev@googlegroups.com \
--cc=iant@golang.org \
--cc=jimw@sifive.com \
--cc=schwab@linux-m68k.org \
/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).