no-static-libs.inc: add gdb
PATCH 1/1 no-static-libs.inc: add gdb
* gdb has own bundled version of readline and do_compile fails with:
| config.status: creating config.h | make[2]: *** No rule to make target '../readline/libreadline.a', needed by 'gdb'. Stop. | make[2]: *** Waiting for unfinished jobs....
--- meta/conf/distro/include/no-static-libs.inc | 2 ++ 1 file changed, 2 insertions(+)
meta/conf/distro/include/no-static-libs.inc +2 -0
@@ -13,6 +13,8 @@ DISABLE_STATIC_pn-libcap-native = "" DISABLE_STATIC_pn-libpcap = "" # needed by gdb DISABLE_STATIC_pn-readline = "" +# builds it's own static readline +DISABLE_STATIC_pn-gdb = "" # needed by pseudo DISABLE_STATIC_pn-sqlite3 = "" DISABLE_STATIC_pn-sqlite3-native = ""
Signature · 1 line
2.7.2
Quoted 7 lines · Martin Jansa
* gdb has own bundled version of readline and
do_compilefails with:
| config.status: creatingconfig.h
| make[2]: *** No rule to make target '../readline/libreadline.a',
needed by 'gdb'. Stop.
| make[2]: *** Waiting for unfinished jobs....Signed-off-by Martin Jansa <[email protected]>
I'm a bit puzzled as our autobuilders build this all the time and we don't see failures. Any idea what the configuration difference might be?
Cheers,
Richard
Quoted 4 lines · Richard Purdie
I'm a bit puzzled as our autobuilders build this all the time and we don't see failures. Any idea what the configuration difference might be?
Since oe-core 94e1b917078bedf73830e54278af77f742c93581 gdb has a packageconfig for system readline, which is enabled by default (and has been enabled explicitly for a long time). Do you have some local patches adding more PACKAGECONFIG options but not enabling readline?
Ross
Quoted 4 lines · Ross
Quoted 1 line · Richard Purdie
Quoted 8 lines
Quoted 3 lines
I'm a bit puzzled as our autobuilders build this all the time and we don't see failures. Any idea what the configuration difference might be?
Since oe-core
94e1b917078bedf73830e54278af77f742c93581gdb has a packageconfig for system readline, which is enabled by default (and has been enabled explicitly for a long time). Do you have some local patches adding more PACKAGECONFIG options but not enabling readline?
gdb 7.10.1 depends on readline features which are not present in readline 5.2 (ie the GPLv2 version). Using the gdb internal readline is a workaround for people who don't want to switch to the GPLv3 version of readline.
(Although gdb is itself GPLv3, it's self contained and easy to exclude from release builds).
Quoted 8 lines
Ross
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
No special configuration IIRC (will check tomorrow and send whole config.log).
But it failed the same in my minimal chroot env with just oe-core and on Ubuntu jenkins slave doing bitbake world with many layers, here is full log:
http://errors.yoctoproject.org/Errors/Details/38149/
and it shows --without-system-readline parameter.
Quoted 34 lines · Andre McCurdy
Quoted 10 lines · Ross
Quoted 4 lines · Richard Purdie
I'm a bit puzzled as our autobuilders build this all the time and we don't see failures. Any idea what the configuration difference might be?
Since oe-core
94e1b917078bedf73830e54278af77f742c93581gdb has a packageconfig for system readline, which is enabled by default (and hasbeen
Quoted 1 line
enabled explicitly for a long time). Do you have some local patches
adding
Quoted 1 line
more PACKAGECONFIG options but not enabling readline?
gdb 7.10.1 depends on readline features which are not present in readline 5.2 (ie the GPLv2 version). Using the gdb internal readline is a workaround for people who don't want to switch to the GPLv3 version of readline.
(Although gdb is itself GPLv3, it's self contained and easy to exclude from release builds).
Quoted 8 lines
Ross
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 8 lines · Martin Jansa
No special configuration IIRC (will check tomorrow and send whole config.log).
But it failed the same in my minimal chroot env with just oe-core and on Ubuntu jenkins slave doing bitbake world with many layers, here is full log:
http://errors.yoctoproject.org/Errors/Details/38149/and it shows --without-system-readline parameter.
It's caused by bbappend in meta-qt5
OE qemux86@ ~/build/oe-core $ cat meta-qt5/recipes-devtools/gdb/gdb_%.bbappend PACKAGECONFIG ??= "python"
But on the other hand does this change make more harm than confusing error for people who try to build without readline in PACKAGECONFIG?
Regards,
Quoted 37 lines · Andre McCurdy
Quoted 35 lines
Quoted 10 lines · Ross
Quoted 4 lines · Richard Purdie
I'm a bit puzzled as our autobuilders build this all the time and we don't see failures. Any idea what the configuration difference might be?
Since oe-core
94e1b917078bedf73830e54278af77f742c93581gdb has a packageconfig for system readline, which is enabled by default (and hasbeen
Quoted 1 line
enabled explicitly for a long time). Do you have some local patches
adding
Quoted 1 line
more PACKAGECONFIG options but not enabling readline?
gdb 7.10.1 depends on readline features which are not present in readline 5.2 (ie the GPLv2 version). Using the gdb internal readline is a workaround for people who don't want to switch to the GPLv3 version of readline.
(Although gdb is itself GPLv3, it's self contained and easy to exclude from release builds).
Quoted 8 lines
Ross
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 12 lines · Martin Jansa
Quoted 10 lines · Martin Jansa
No special configuration IIRC (will check tomorrow and send whole config.log).
But it failed the same in my minimal chroot env with just oe-core and on
Ubuntu jenkins slave doing bitbake world with many layers, here is full log:
http://errors.yoctoproject.org/Errors/Details/38149/and it shows --without-system-readline parameter.
Quoted 8 lines
It's caused by bbappend in meta-qt5
OE qemux86@ ~/build/oe-core $ cat meta-qt5/recipes -devtools/gdb/gdb_%.bbappend
PACKAGECONFIG ??= "python"But on the other hand does this change make more harm than confusing error for people who try to build without readline in PACKAGECONFIG?
I mainly wanted to understand what configuration caused this, which we now understand/ I agree we should probably do something about the error.
I do wonder what a gdb bbappend is doing in meta-qt5 though. I'd say that is really "distro" configuration.
Cheers,
Richard
Quoted 22 lines · Richard Purdie
Quoted 12 lines · Martin Jansa
Quoted 10 lines · Martin Jansa
No special configuration IIRC (will check tomorrow and send whole config.log).
But it failed the same in my minimal chroot env with just oe-core and on
Ubuntu jenkins slave doing bitbake world with many layers, here is full log:
http://errors.yoctoproject.org/Errors/Details/38149/and it shows --without-system-readline parameter.
Quoted 8 lines
It's caused by bbappend in meta-qt5
OE qemux86@ ~/build/oe-core $ cat meta-qt5/recipes -devtools/gdb/gdb_%.bbappend
PACKAGECONFIG ??= "python"But on the other hand does this change make more harm than confusing error for people who try to build without readline in PACKAGECONFIG?
Quoted 6 lines
I mainly wanted to understand what configuration caused this, which we now understand/ I agree we should probably do something about the error.
I do wonder what a gdb bbappend is doing in meta-qt5 though. I'd say that is really "distro" configuration.
python support is needed for qt-creator:
http://patchwork.openembedded.org/patch/87523/
I've changed it to use _append to respect default value from oe-core:
http://patchwork.openembedded.org/patch/116889/
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 4 lines · Martin Jansa
OE qemux86@ ~/build/oe-core $ cat
meta-qt5/recipes-devtools/gdb/gdb_%.bbappend
PACKAGECONFIG ??= "python"
Having fixed number of these myself it's definitely best practise to use PACKAGECONFIG_append and _remove in a bbappend.
Ross
Quoted 9 lines · Ross
Quoted 4 lines · Martin Jansa
OE qemux86@ ~/build/oe-core $ cat
meta-qt5/recipes-devtools/gdb/gdb_%.bbappend
PACKAGECONFIG ??= "python"Having fixed number of these myself it's definitely best practise to use
PACKAGECONFIG_appendand_removein a bbappend.
That's what I did, but on other hand it's harder for DISTRO to remove python if meta-qt5 bbappend uses _append.
So I'm thinking about changing it to
PACKAGECONFIG ??= "readline python"
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 14 lines · Andre McCurdy
Quoted 4 lines · Ross
Quoted 1 line · Richard Purdie
Quoted 8 lines
Quoted 3 lines
I'm a bit puzzled as our autobuilders build this all the time and we don't see failures. Any idea what the configuration difference might be?
Since oe-core
94e1b917078bedf73830e54278af77f742c93581gdb has a packageconfig for system readline, which is enabled by default (and has been enabled explicitly for a long time). Do you have some local patches adding more PACKAGECONFIG options but not enabling readline?
Quoted 4 lines
gdb 7.10.1 depends on readline features which are not present in readline 5.2 (ie the GPLv2 version). Using the gdb internal readline is a workaround for people who don't want to switch to the GPLv3 version of readline.
Thanks!
After fixing the default in meta-qt5 I've started to see this issue in other builds which were indeed built with PREFERRED_VERSION_readline ?= "5.2"
to prevent GPLv3 readline being used by other components.
For gdb which isn't part of our release builds we can use bundled readline, so I had to apply this no-static-libs.inc change and explicitly remove readline from gdb's PACKAGECONFIG.
So to recap, meta-qt5 change fixed my jenkins "bitbake world" builds by enabling system readline.
For internal builds (without GPLv3 where possible) on the other hand I need to remove readline from PACKAGECONFIG and apply this fix to build static readline inside gdb's build.
Quoted 11 lines
(Although gdb is itself GPLv3, it's self contained and easy to exclude from release builds).
Quoted 8 lines
Ross
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 5 lines · Andre McCurdy
gdb 7.10.1 depends on readline features which are not present in readline 5.2 (ie the GPLv2 version). Using the gdb internal readline is a workaround for people who don't want to switch to the GPLv3 version of readline.
Would it be possible to force a -static argument into the link of the internal readline to ensure that a static library is built?
Ross
Quoted 3 lines · Ross
Would it be possible to force a -static argument into the link of the internal readline to ensure that a static library is built?
Answer: yes. And it's upstreamable as it's obviously right. Patch incoming.
Ross