* [Buildroot] [PATCH] gdb: fix target gdb building from git
@ 2015-02-24 9:03 Alexey Brodkin
2015-03-09 17:55 ` Thomas Petazzoni
2015-03-16 21:10 ` Thomas Petazzoni
0 siblings, 2 replies; 5+ messages in thread
From: Alexey Brodkin @ 2015-02-24 9:03 UTC (permalink / raw)
To: buildroot
Currently we only add "host-texinfo" dependency for host GDB built
from git sources. But in case of target gdb texinfo won't be built
and so gdb building will fail on attempt to build documentation.
Fix is trivial - add "host-texinfo" as a dependency for target gdb
in the sme way as we disable documentation building via both
GDB_CONF_ENV (for target) and HOST_GDB_CONF_ENV (host) GDB flavors.
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Anton Kolesov <akolesov@synopsys.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Peter Korsgaard <peter@korsgaard.com>
---
package/gdb/gdb.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/gdb/gdb.mk b/package/gdb/gdb.mk
index 24084b8..579d9ca 100644
--- a/package/gdb/gdb.mk
+++ b/package/gdb/gdb.mk
@@ -158,6 +158,7 @@ else
endif
ifeq ($(GDB_FROM_GIT),y)
+GDB_DEPENDENCIES += host-texinfo
HOST_GDB_DEPENDENCIES += host-texinfo
else
# don't generate documentation
--
2.1.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] gdb: fix target gdb building from git
2015-02-24 9:03 [Buildroot] [PATCH] gdb: fix target gdb building from git Alexey Brodkin
@ 2015-03-09 17:55 ` Thomas Petazzoni
2015-03-09 21:55 ` Alexey Brodkin
2015-03-16 21:10 ` Thomas Petazzoni
1 sibling, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2015-03-09 17:55 UTC (permalink / raw)
To: buildroot
Dear Alexey Brodkin,
On Tue, 24 Feb 2015 12:03:20 +0300, Alexey Brodkin wrote:
> Currently we only add "host-texinfo" dependency for host GDB built
> from git sources. But in case of target gdb texinfo won't be built
> and so gdb building will fail on attempt to build documentation.
>
> Fix is trivial - add "host-texinfo" as a dependency for target gdb
> in the sme way as we disable documentation building via both
> GDB_CONF_ENV (for target) and HOST_GDB_CONF_ENV (host) GDB flavors.
>
> Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
> Cc: Anton Kolesov <akolesov@synopsys.com>
> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> Cc: Peter Korsgaard <peter@korsgaard.com>
Do you have a failing configuration for this one? I've tried to build
the ARC target gdb today, without selecting cross-gdb (so that the
host-texinfo dependency is not pulled in), and I couldn't get a failure.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] gdb: fix target gdb building from git
2015-03-09 17:55 ` Thomas Petazzoni
@ 2015-03-09 21:55 ` Alexey Brodkin
2015-03-09 22:20 ` Thomas Petazzoni
0 siblings, 1 reply; 5+ messages in thread
From: Alexey Brodkin @ 2015-03-09 21:55 UTC (permalink / raw)
To: buildroot
Hi Thomas,
On Mon, 2015-03-09 at 18:55 +0100, Thomas Petazzoni wrote:
> Dear Alexey Brodkin,
>
> On Tue, 24 Feb 2015 12:03:20 +0300, Alexey Brodkin wrote:
> > Currently we only add "host-texinfo" dependency for host GDB built
> > from git sources. But in case of target gdb texinfo won't be built
> > and so gdb building will fail on attempt to build documentation.
> >
> > Fix is trivial - add "host-texinfo" as a dependency for target gdb
> > in the sme way as we disable documentation building via both
> > GDB_CONF_ENV (for target) and HOST_GDB_CONF_ENV (host) GDB flavors.
> >
> > Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
> > Cc: Anton Kolesov <akolesov@synopsys.com>
> > Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> > Cc: Peter Korsgaard <peter@korsgaard.com>
>
> Do you have a failing configuration for this one? I've tried to build
> the ARC target gdb today, without selecting cross-gdb (so that the
> host-texinfo dependency is not pulled in), and I couldn't get a failure.
Actually I discovered this issue when I tried to build target gdb with
external tools.
So to reproduce this issue please apply
http://patchwork.ozlabs.org/patch/448242/ to your local git tree, then
select external tools for ARC and try to build target gdb.
And this is my defconfig to reproduce the issue:
--->8---
BR2_arcle=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_PACKAGE_GDB=y
BR2_PACKAGE_GDB_DEBUGGER=y
--->8---
Indeed if you build toolchain yourself this issue won't happen because
"host-texinfo" gets built during toolchain building.
-Alexey
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] gdb: fix target gdb building from git
2015-03-09 21:55 ` Alexey Brodkin
@ 2015-03-09 22:20 ` Thomas Petazzoni
0 siblings, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2015-03-09 22:20 UTC (permalink / raw)
To: buildroot
Dear Alexey Brodkin,
On Mon, 9 Mar 2015 21:55:55 +0000, Alexey Brodkin wrote:
> Actually I discovered this issue when I tried to build target gdb with
> external tools.
>
> So to reproduce this issue please apply
> http://patchwork.ozlabs.org/patch/448242/ to your local git tree, then
> select external tools for ARC and try to build target gdb.
>
> And this is my defconfig to reproduce the issue:
> --->8---
> BR2_arcle=y
> BR2_TOOLCHAIN_EXTERNAL=y
> BR2_PACKAGE_GDB=y
> BR2_PACKAGE_GDB_DEBUGGER=y
> --->8---
>
> Indeed if you build toolchain yourself this issue won't happen because
> "host-texinfo" gets built during toolchain building.
Ah, ok, indeed makes sense. Then I'll wait for your external toolchain
patch to be ready (I've just sent a bunch of comments), and I'll apply
this one as well.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] gdb: fix target gdb building from git
2015-02-24 9:03 [Buildroot] [PATCH] gdb: fix target gdb building from git Alexey Brodkin
2015-03-09 17:55 ` Thomas Petazzoni
@ 2015-03-16 21:10 ` Thomas Petazzoni
1 sibling, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2015-03-16 21:10 UTC (permalink / raw)
To: buildroot
Dear Alexey Brodkin,
On Tue, 24 Feb 2015 12:03:20 +0300, Alexey Brodkin wrote:
> Currently we only add "host-texinfo" dependency for host GDB built
> from git sources. But in case of target gdb texinfo won't be built
> and so gdb building will fail on attempt to build documentation.
>
> Fix is trivial - add "host-texinfo" as a dependency for target gdb
> in the sme way as we disable documentation building via both
> GDB_CONF_ENV (for target) and HOST_GDB_CONF_ENV (host) GDB flavors.
>
> Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
> Cc: Anton Kolesov <akolesov@synopsys.com>
> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> Cc: Peter Korsgaard <peter@korsgaard.com>
I was indeed able to reproduce the problem, so patch applied. Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-03-16 21:10 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-24 9:03 [Buildroot] [PATCH] gdb: fix target gdb building from git Alexey Brodkin
2015-03-09 17:55 ` Thomas Petazzoni
2015-03-09 21:55 ` Alexey Brodkin
2015-03-09 22:20 ` Thomas Petazzoni
2015-03-16 21:10 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox