public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug sim/12385] New: cr16 sim tests fail to link
@ 2011-01-11  0:03 vapier at gentoo dot org
  2011-06-09  4:35 ` [Bug sim/12385] " vapier at gentoo dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: vapier at gentoo dot org @ 2011-01-11  0:03 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=12385

           Summary: cr16 sim tests fail to link
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: sim
        AssignedTo: unassigned@sourceware.org
        ReportedBy: vapier@gentoo.org
              Host: x86_64-linux-gnu
            Target: cr16-elf


with current CVS, `make check-sim` fails for cr16 targets due to linker errors.
 an example from the log:

Testing addb.cgs on machine cr16.
Executing on host: .../gas/as-new .../sim/testsuite/sim/cr16/addb.cgs 
-I.../sim/testsuite/sim/cr16  -o addb.cgs.o    (timeout = 300)
spawn .../gas/as-new .../sim/testsuite/sim/cr16/addb.cgs
-I.../sim/testsuite/sim/cr16 -o addb.cgs.o
Executing on host: .../ld/ld-new addb.cgs.o   -o addb.cgs.x    (timeout = 300)
.../ld/ld-new addb.cgs.o -o addb.cgs.x
.../ld/ld-new: warning: cannot find entry symbol _start; defaulting to
0000000000000002
linker output is:
.../ld/ld-new: warning: cannot find entry symbol _start; defaulting to
0000000000000002
.../ld/ld-new: warning: cannot find entry symbol _start; defaulting to
0000000000000002
FAIL: cr16 addb.cgs (linking)

all i did was checkout cvs and run:
./configure --target=cr16-elf
make all-sim
make check-sim

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug sim/12385] cr16 sim tests fail to link
  2011-01-11  0:03 [Bug sim/12385] New: cr16 sim tests fail to link vapier at gentoo dot org
@ 2011-06-09  4:35 ` vapier at gentoo dot org
  2012-03-24 21:07 ` hp at sourceware dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: vapier at gentoo dot org @ 2011-06-09  4:35 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=12385

Mike Frysinger <vapier at gentoo dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at sourceware    |MR.Swami.Reddy at nsc dot
                   |dot org                     |com

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug sim/12385] cr16 sim tests fail to link
  2011-01-11  0:03 [Bug sim/12385] New: cr16 sim tests fail to link vapier at gentoo dot org
  2011-06-09  4:35 ` [Bug sim/12385] " vapier at gentoo dot org
@ 2012-03-24 21:07 ` hp at sourceware dot org
  2014-03-14  0:46 ` vapier at gentoo dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: hp at sourceware dot org @ 2012-03-24 21:07 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=12385

Hans-Peter Nilsson <hp at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hp at sourceware dot org

--- Comment #1 from Hans-Peter Nilsson <hp at sourceware dot org> 2012-03-24 21:06:32 UTC ---
It *could* be that the test-suite assumes a specific dejagnu board-file is
used, e.g. "make check-sim RUNTESTFLAGS=--target_board=cr16-sim", one which
would add some necessary linker option.  But, there's no dejagnu board-file
generally accessible; none even at the master branch of the savannah dejagnu
git, so the cr16 sim testsuite should cope without it.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug sim/12385] cr16 sim tests fail to link
  2011-01-11  0:03 [Bug sim/12385] New: cr16 sim tests fail to link vapier at gentoo dot org
  2011-06-09  4:35 ` [Bug sim/12385] " vapier at gentoo dot org
  2012-03-24 21:07 ` hp at sourceware dot org
@ 2014-03-14  0:46 ` vapier at gentoo dot org
  2015-03-30  1:06 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: vapier at gentoo dot org @ 2014-03-14  0:46 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=12385

Mike Frysinger <vapier at gentoo dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vapier at gentoo dot org

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug sim/12385] cr16 sim tests fail to link
  2011-01-11  0:03 [Bug sim/12385] New: cr16 sim tests fail to link vapier at gentoo dot org
                   ` (2 preceding siblings ...)
  2014-03-14  0:46 ` vapier at gentoo dot org
@ 2015-03-30  1:06 ` cvs-commit at gcc dot gnu.org
  2015-03-30  1:12 ` [Bug sim/12385] cr16 sim tests can't print out "pass" message vapier at gentoo dot org
  2015-03-30 10:43 ` vapier at gentoo dot org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2015-03-30  1:06 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=12385

--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Michael Frysinger
<vapier@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4daf7a7c3a8404d8be973702ffe00541f71606a4

commit 4daf7a7c3a8404d8be973702ffe00541f71606a4
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Sun Mar 29 21:00:20 2015 -0400

    sim: cr16: add _start symbol to tests [BZ #12385]

    The current cr16 testsuite sets up _START, but the linker looks for the
    _start symbol.  Add the latter as an alias to the former.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug sim/12385] cr16 sim tests can't print out "pass" message
  2011-01-11  0:03 [Bug sim/12385] New: cr16 sim tests fail to link vapier at gentoo dot org
                   ` (3 preceding siblings ...)
  2015-03-30  1:06 ` cvs-commit at gcc dot gnu.org
@ 2015-03-30  1:12 ` vapier at gentoo dot org
  2015-03-30 10:43 ` vapier at gentoo dot org
  5 siblings, 0 replies; 7+ messages in thread
From: vapier at gentoo dot org @ 2015-03-30  1:12 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=12385

Mike Frysinger <vapier at gentoo dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|cr16 sim tests fail to link |cr16 sim tests can't print
                   |                            |out "pass" message

--- Comment #3 from Mike Frysinger <vapier at gentoo dot org> ---
i've fixed the linking error, but the tests all fail during execution now:
spawn /usr/local/src/gnu/gdb/build/build-cr16/sim/testsuite/../cr16/run
addb.cgs.x
^@^@^@^@^@output:  
pattern: pass

FAIL: cr16 addb.cgs (execution)

this is because the sim is writing out \0\0\0\0\0.  looking at the objdump and
the runtime shows the data addresses *look* correct, but the cr16 sim doesn't
seem to have its memory in sync with the ELF.  the sim_cr16_translate_addr and
similar funcs do weird things to the address and i can't figure out why it's
all broken.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug sim/12385] cr16 sim tests can't print out "pass" message
  2011-01-11  0:03 [Bug sim/12385] New: cr16 sim tests fail to link vapier at gentoo dot org
                   ` (4 preceding siblings ...)
  2015-03-30  1:12 ` [Bug sim/12385] cr16 sim tests can't print out "pass" message vapier at gentoo dot org
@ 2015-03-30 10:43 ` vapier at gentoo dot org
  5 siblings, 0 replies; 7+ messages in thread
From: vapier at gentoo dot org @ 2015-03-30 10:43 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=12385

Mike Frysinger <vapier at gentoo dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Mike Frysinger <vapier at gentoo dot org> ---
oddly, my conversion of the cr16 sim to the nrun framework also fixed the
output.  this makes me think the memory handling is really wonky in this sim.

but the tests pass now, and i'm not doing anymore immediate work on it, so i
guess that's good enough ...

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-03-30  4:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-11  0:03 [Bug sim/12385] New: cr16 sim tests fail to link vapier at gentoo dot org
2011-06-09  4:35 ` [Bug sim/12385] " vapier at gentoo dot org
2012-03-24 21:07 ` hp at sourceware dot org
2014-03-14  0:46 ` vapier at gentoo dot org
2015-03-30  1:06 ` cvs-commit at gcc dot gnu.org
2015-03-30  1:12 ` [Bug sim/12385] cr16 sim tests can't print out "pass" message vapier at gentoo dot org
2015-03-30 10:43 ` vapier at gentoo dot org

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).