OpenCores
Issue List
Error installing gdb-6.8 #70
Closed LoFelip opened this issue over 14 years ago
LoFelip commented over 14 years ago

Hi,

I have a problem with installing the GNU toolchain with the following error:

Decompressing source

Patching gdb-6.8 with or32-gdb-6.8-patch-2.4.bz2

Configuring gdb-6.8: --target=or32-elf --prefix=/home/user/Downloads/or32-elf

Making and installing gdb-6.8

############################ERROR#############################

Error during toolchain installation.

I need help, thanks!

jeremybennett commented over 14 years ago
<p> This looks to be a problem with the toolchain script. Could you give us precise details (machine type, operating system, GCC versions etc). A full transcript would also help. </p> <p> The script with Julius Baxter's baby, so I've assigned this bug to him. </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>
julius was assigned over 14 years ago
LoFelip commented over 14 years ago

Hi Jeremy,

Thanks for your response. I've a Sony Vaio Laptop, Running Ubuntu 9.10 in Windows XP using VMware Player and gcc version is 4.4.1.

LoFelip commented over 14 years ago

Hi Jeremy,

Thanks for your response. I've a Sony Vaio Laptop, Running Ubuntu 9.10 in Windows XP using VMware Player and gcc version is 4.4.1.

julius commented over 14 years ago

On a plain Ubuntu 9.10 install I got the following error during the make all install step of gdb-6.8, which has been posted before:

gcc -c -g -O2 -I. -I.././gdb -I.././gdb/config -DLOCALEDIR="\"/opt/or32-elf/share/locale\"" -DHAVE_CONFIG_H -I.././gdb/../include/opcode -I.././gdb/../readline/.. -I../bfd -I.././gdb/../bfd -I.././gdb/../include -I../libdecnumber -I.././gdb/../libdecnumber -DMI_OUT=1 -DTUI=1 -Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral -Wno-pointer-sign -Wno-unused -Wno-switch -Wno-char-subscripts -Werror or1k-jtag.c 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 Error 1 make2: Leaving directory `/home/orsoc1/Documents/or32-toolchain/or32-build/gdb-6.8/gdb' make1: all-gdb Error 2 make1: Leaving directory `/home/orsoc1/Documents/or32-toolchain/or32-build/gdb-6.8' make: *** all Error 2

Filipe, can you confirm this is the error you have by checking the end of file or32-build/gdb-6.8/gdb-6.8-make.log which should be under where you ran the script.

Jeremy, I'll do up a new patch and put it up on the server to stop this problem.

julius commented over 14 years ago

On a plain Ubuntu 9.10 install I got the following error during the make all install step of gdb-6.8, which has been posted before:

gcc -c -g -O2 -I. -I.././gdb -I.././gdb/config -DLOCALEDIR="\"/opt/or32-elf/share/locale\"" -DHAVE_CONFIG_H -I.././gdb/../include/opcode -I.././gdb/../readline/.. -I../bfd -I.././gdb/../bfd -I.././gdb/../include -I../libdecnumber -I.././gdb/../libdecnumber -DMI_OUT=1 -DTUI=1 -Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral -Wno-pointer-sign -Wno-unused -Wno-switch -Wno-char-subscripts -Werror or1k-jtag.c 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 Error 1 make2: Leaving directory `/home/orsoc1/Documents/or32-toolchain/or32-build/gdb-6.8/gdb' make1: all-gdb Error 2 make1: Leaving directory `/home/orsoc1/Documents/or32-toolchain/or32-build/gdb-6.8' make: *** all Error 2

Filipe, can you confirm this is the error you have by checking the end of file or32-build/gdb-6.8/gdb-6.8-make.log which should be under where you ran the script.

Jeremy, I'll do up a new patch and put it up on the server to stop this problem.

jeremybennett commented over 14 years ago
<p> Hi Julius, </p> <p> Thanks for spotting the bug. It's a known problem - looks like the latest Ubuntu is fussy enough to spot it. </p> <p> Solution is to initialize data to zero where it is declared in the function jp1_ll_read_jp1. </p> <p> It is code associated with the legacy JTAG remote protocol, which I believe is now no longer used by anyone and will be dropped with the GDB 7.0 release. </p> <p> Jeremy </p>
julius commented over 14 years ago

Great, thanks Jeremy.

But for now I've added the --disable-werror flag to gdb-6.8's configure. Toolchain script. Will mark this as closed.

julius closed this over 14 years ago

Assignee
julius
Labels
Bug