With gcc version 4.4.1 at least, the gdb-6.8 downloaded by the opencore script won't compile, with the error :
or1k-jtag.c: In function ‘jp1_ll_read_jp1’: or1k-jtag.c:372: erreur: ‘data’ may be used uninitialized in this function
This is not true since the IOCTL changes the data value, but this is a warning that seems to be treated as an error. Yet, to succesfully compile this file is very simple. Just initialize data (declared a few lines before, int data) to int data = 0
Done ;-)