Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 266133 - sys-devel/gdb-6.8-r2: please add ~sh keyword
Summary: sys-devel/gdb-6.8-r2: please add ~sh keyword
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: sh Linux
: High enhancement (vote)
Assignee: Gentoo SuperH Porters
URL:
Whiteboard:
Keywords: KEYWORDREQ
Depends on:
Blocks:
 
Reported: 2009-04-14 17:57 UTC by Manuel Lauss
Modified: 2009-05-09 21:00 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Manuel Lauss 2009-04-14 17:57:14 UTC
Please add a ~sh keyword to sys-devel/gdb-6.8-r2; it seems to work fine for me (both cross-gdb on x86 and native on sh4).

Reproducible: Always
Comment 1 Raúl Porcel (RETIRED) gentoo-dev 2009-04-28 18:19:57 UTC
Really? Fails to configure here, says sh4 isn't supported(and its not)
Comment 2 Manuel Lauss 2009-04-28 18:29:39 UTC
scarran ~ # sh4-unknown-linux-gnu-gdb

warning: A handler for the OS ABI "GNU/Linux" is not built into this configuration
of GDB.  Attempting to continue with the default sh settings.

GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=sh4-unknown-linux-gnu".
(gdb) 

scarran ~ # emerge -p =cross-sh4-unknown-linux-gnu/gdb-6.8-r2
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] cross-sh4-unknown-linux-gnu/gdb-6.8-r2 

(this is after manually adding the ~sh keyword to the ebuild. What am I doing wrong?)
Comment 3 Raúl Porcel (RETIRED) gentoo-dev 2009-04-28 18:34:22 UTC
(In reply to comment #2)
> Calculating dependencies... done!
> [ebuild   R   ] cross-sh4-unknown-linux-gnu/gdb-6.8-r2 
> 
> (this is after manually adding the ~sh keyword to the ebuild. What am I doing
> wrong?)
> 
You aren't running it natively. Keywords are added to ebuilds that work natively, not crosscompiled.
Comment 4 Manuel Lauss 2009-04-28 18:39:21 UTC
Hrm, without that keyword I can't emerge it (yes /etc/portage/package.keywords
has an entry for it but portage still won't merge it).

I don't have the sh4 hardware with me right now, but I'll recheck tomorrow morning. I'm pretty sure it runs.
Comment 5 Raúl Porcel (RETIRED) gentoo-dev 2009-05-01 12:17:45 UTC
(In reply to comment #4)
> Hrm, without that keyword I can't emerge it (yes /etc/portage/package.keywords
> has an entry for it but portage still won't merge it).
> 
> I don't have the sh4 hardware with me right now, but I'll recheck tomorrow
> morning. I'm pretty sure it runs.
> 

And?

Did you put 'sys-devel/gdb **' on package.keywords? Because if you don't add the **, it won't work.

Comment 6 Mark Loeser (RETIRED) gentoo-dev 2009-05-03 02:26:04 UTC
This is really for you sh people to work out :)  If you need support from toolchain please CC us.
Comment 7 Manuel Lauss 2009-05-04 07:12:28 UTC
I'm closing this one as "invalid":

The rebuild of gdb stopped midway because configure couldn't find a valid
termcap.  I've started to rebuild all dependecies but that may take a (long) while
(can't use distcc since the native and cross compilers have some inconsistencies wrt. fpscr handling which screws up a lot of builds, and the build system is sloooow).
Comment 8 SpanKY gentoo-dev 2009-05-09 21:00:31 UTC
i think Raúl Porcel had a link to a patchset which added native gdb sh support