Skip to contentSkip to conversation

missing dependency on expat-native in gdb-cross-sdk-7.1-r7.0

DISCUSSION Jonathan Cameron 3 participants 4 messages Sep 29, 2010

lore
Share & tools
lore
#0 lore raw

Hi all,

Got the following error from log.do_compile when building meta-toolchain with angstrom-2010.x using latest testing-next.

gcc: /mnt/disk2/buildroot/oe/oe-stable/tmp/sysroots/x86_64-linux/usr/lib/libexpat.a: No such file or directory
make[2]: *** [gdb] Error 1
make[2]: Leaving directory `/mnt/disk2/buildroot/oe/oe-stable/tmp/work/x86_64-armv5te-sdk-angstrom-linux-gnueabi/gdb-cross-sdk-7.1-r7.0/build-arm-angstrom-linux-gnueabi/gdb' make[1]: *** [all-gdb] Error 2
make[1]: Leaving directory `/mnt/disk2/buildroot/oe/oe-stable/tmp/work/x86_64-armv5te-sdk-angstrom-linux-gnueabi/gdb-cross-sdk-7.1-r7.0/build-arm-angstrom-linux-gnueabi'
make: *** [all] Error 2
FATAL: oe_runmake failed

I'd suggest adding expat-native to gdb-cross-sdk.inc DEPENDS (which seems to fix the problem) No idea if it is needed for all versions though.

Thanks,

Jonathan

#1 lore raw
Quoted 5 lines · Jonathan Cameron

Hi all,

I'd suggest adding expat-native to gdb-cross-sdk.inc DEPENDS (which seems to fix the problem) No idea if it is needed for all versions though.

At least GDB 7.x needs expat to parse the register definitions for the CPU. E.g. this is important when using the gdb remote protocol.

You should also pass --with-expat to it, right now I have a build issue with the target gdb and this argument.

#2 lore raw
Quoted 4 lines · Holger Freyther
Quoted 3 lines · Jonathan Cameron

Hi all,

Quoted 9 lines
Quoted 2 lines

I'd suggest adding expat-native to gdb-cross-sdk.inc DEPENDS (which seems to fix the problem) No idea if it is needed for all versions though.

At least GDB 7.x needs expat to parse the register definitions for the CPU. E.g. this is important when using the gdb remote protocol.

You should also pass --with-expat to it, right now I have a build issue with the target gdb and this argument.

Ah, thanks for the heads up. I'll try that and see how I get on.

As an aside there is also an issue with both binutils-cross-sdk and gdb-cross-sdk wanting to install libiberty.a

#3 lore raw
Quoted 11 lines · Jonathan Cameron
Quoted 10 lines · Holger Freyther
Quoted 5 lines · Jonathan Cameron

Hi all,

I'd suggest adding expat-native to gdb-cross-sdk.inc DEPENDS (which seems to fix the problem) No idea if it is needed for all versions though.

At least GDB 7.x needs expat to parse the register definitions for the CPU. E.g. this is important when using the gdb remote protocol.

Quoted 8 lines
Quoted 3 lines

You should also pass --with-expat to it, right now I have a build issue with the target gdb and this argument.

Ah, thanks for the heads up. I'll try that and see how I get on.

As an aside there is also an issue with both binutils-cross-sdk and gdb-cross-sdk wanting to install libiberty.a

Yeah, I've run into this.
http://patchwork.openembedded.org/patch/2874/

But more is needed, as other gdb variants clobber other binutils libs too.