OpenCores
Issue List
gdb-6.8 bug on ubuntu9.10 #69
Closed liunx opened this issue over 14 years ago
liunx commented over 14 years ago

cc1: warnings being treated as errors or1k-jtag.c: In function ‘jp1_ll_read_jp1’: or1k-jtag.c:372: error: ‘data’ may be used uninitialized in this function make2: or1k-jtag.o ?? 1 make2:?????? `/home/liunx/Work/OpenRisc1K/or32-build/gdb-6.8/gdb' make1: all-gdb ?? 2 make1:?????? `/home/liunx/Work/OpenRisc1K/or32-build/gdb-6.8' make: *** all ?? 2

liunx commented over 14 years ago

I use the build script on ubuntu9.10,above is the output...

jeremybennett commented over 14 years ago
<p> I thought we'd fixed this. It's Ubuntu being particularly picky about C syntax. </p> <p> This is an obsolete part of the code, which is scheduled for removal in the next release. As a workaround find the declaration of the variable "data" just before line 372 in or1k-jtag.c and assign a value of zero to it there. </p> <p> Hope this allows you to work around the problem. It is not functionality that you will be needing. </p> <p> Jeremy </p> <p> -- <br /> Tel: +44 (1590) 610184<br /> Cell: +44 (7970) 676050<br /> SkypeID: jeremybennett<br /> Email: <a href="mailto:jeremy.bennett@embecosm.com">jeremy.bennett@embecosm.com</a><br /> Web: <a href="http://www.embecosm.com">www.embecosm.com</a> </p>
jeremybennett was assigned over 14 years ago
julius commented over 14 years ago

Now fixed with --disable-werror during configure in toolchain script.

julius closed this over 14 years ago
jeremybennett commented over 14 years ago
<p> This shouldn't be marked as closed. It's a workaround until the problem is properly fixed in GDB 7.0. </p> <p> Jeremy </p>
julius commented over 14 years ago

Ok, unfortunately it doesn't look like I'm able to re-open this bug. I'll see if we can manually do it somehow. Sorry for that, I should have asked first if you wanted this one closed too.

I was thinking of patching it, but if you fix the one in the or1k dependent code there's others in the distribution gdb code, so the --disable-werror was the most convenient way.

But will see what we can do in regard to re-opening the bug.

Julius


Assignee
jeremybennett
Labels
Bug