[Fwd: gdb5.1 cross compilation Error]
Michael Snyder
msnyder@redhat.com
Thu Apr 11 14:36:00 GMT 2002
nagaraja wrote:
>
> ------------------------------------------------------------------------
>
> Subject: gdb5.1 cross compilation Error
> Date: Tue, 09 Apr 2002 12:36:57 +0530
> From: nagaraja <nagaraja@ncoretech.com>
> Organization: Encore
> To: bug-gdb@gnu.org
>
> Hi,
>
> I am triying to cross compile gdb5.1 for arm-linux ,so configured it
> like:
> /configure --targer=arm-linux --host=arm-linux
> --build=i586-pc-linux-gnu
>
> configaration went through successfully. When I tried to run make I am
> getting the following error:
>
> gcc -c -g -O2 -I. -I. -I./config -DHAVE_CONFIG_H
> -I./../include/opcode -I./..
> /readline/.. -I../bfd -I./../bfd -I./../include -I../intl -I./../intl
> -DMI_OUT
> =1 -DUI_OUT=1 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat
> -Wparenthe
> ses -Wpointer-arith -Wuninitialized arm-linux-nat.c
> arm-linux-nat.c: In function `fetch_register':
> arm-linux-nat.c:413: structure has no member named `uregs'
> arm-linux-nat.c:418: structure has no member named `uregs'
> arm-linux-nat.c:420: structure has no member named `uregs'
> arm-linux-nat.c:425: structure has no member named `uregs'
> arm-linux-nat.c:425: structure has no member named `uregs'
> arm-linux-nat.c:426: structure has no member named `uregs'
> arm-linux-nat.c: In function `fetch_regs':
> arm-linux-nat.c:450: structure has no member named `uregs'
> arm-linux-nat.c:453: structure has no member named `uregs'
> arm-linux-nat.c:455: structure has no member named `uregs'
> arm-linux-nat.c:457: structure has no member named `uregs'
> arm-linux-nat.c:457: structure has no member named `uregs'
> arm-linux-nat.c:458: structure has no member named `uregs'
> arm-linux-nat.c: In function `store_register':
> arm-linux-nat.c:485: structure has no member named `uregs'
> arm-linux-nat.c: In function `store_regs':
> arm-linux-nat.c:515: structure has no member named `uregs'
> make[1]: *** [arm-linux-nat.o] Error 1
> make[1]: Leaving directory `/home/nags/projects/gdb-5.1/gdb'
> make: *** [all-gdb] Error 2
>
> I am using RedHat7.1 and have toolchain built.
>
> Can I have some help to crosscompile gdb-5.1
Oh, I understand. It's getting the native (i586) version of
a system header file, when it needs the Arm version.
I'm not actually sure if it's possible to do what you want.
More information about the Gdb
mailing list