Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 150963 - GDB-6.5 for SH targets broken (+ fix)
Summary: GDB-6.5 for SH targets broken (+ fix)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Other
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://sourceware.org/ml/gdb-patches/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-11 22:41 UTC by Manuel Lauss
Modified: 2007-03-04 23:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
fix sh detection in gdb's sim/ directory (gdb-6.5-sh-buildfix.patch,324 bytes, patch)
2006-10-11 22:45 UTC, Manuel Lauss
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Manuel Lauss 2006-10-11 22:41:09 UTC
GDB-6.5 (beginning with 6.3 IIRC) does not build for SuperH targets unless
--target=sh-linux (or sh-linux-elf, ..) is passed to the configure script.
A 'crossdev -t sh4 --ex-only --ex-gdb'  build fails wtith the following error:

i686-pc-linux-gnu-ar: creating libgdb.a
i686-pc-linux-gnu-ranlib libgdb.a
make[2]: *** No rule to make target `../sim/sh/libsim.a', needed by `gdb'.  Stop.
make[2]: Leaving directory `/var/tmp/portage/gdb-6.5-r2/work/gdb-6.5/gdb'
make[1]: *** [all-gdb] Error 2
make[1]: Leaving directory `/var/tmp/portage/gdb-6.5-r2/work/gdb-6.5'
make: *** [all] Error 2

A simple fix is to edit sim/configure.ac and replace sh-*-*) with sh*-*), rerun
autoconf and start the top configure script.
Comment 1 Manuel Lauss 2006-10-11 22:45:21 UTC
Created attachment 99406 [details, diff]
fix sh detection in gdb's sim/ directory

The patch to fix shX detection. Works with sh-linux-elf, sh-linux 
sh4-unknown-linux-gnu variants.
Comment 2 SpanKY gentoo-dev 2007-03-04 23:25:53 UTC
added to gdb-6.6-r1, thanks for the fix