gdb-cross-sdk: don't reconfigure after making changes in gdb/Makefile
PATCH 1/1 gdb-cross-sdk: don't reconfigure after making changes in gdb/Makefile
else we don't statically link libncurses, libtinfo and libz which leads to :/usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-gdb:
error while loading shared libraries: libtinfo.so.5:
cannot open shared object file: No such file or directory
when trying to use the toolchain.
--- recipes/gdb/gdb-cross-sdk.inc | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
recipes/gdb/gdb-cross-sdk.inc +0 -1
@@ -16,5 +16,4 @@ do_configure_append () { for SIM in ${B}/sim/*/Makefile; do [ -f $SIM ] && sed -e 's,-lz, ${STAGING_LIBDIR_NATIVE}/libz.a ,g' -i $SIM done - oe_runconf }
Signature · 1 line
1.6.3.3
Quoted 7 lines · Eric Bénard
else we don't statically link libncurses, libtinfo and libz which leads to :
/usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-gdb:
error while loading shared libraries: libtinfo.so.5:
cannot open shared object file: No such file or directorywhen trying to use the toolchain.
could you run oe_runconf and then do the Makefile editing ? that way it will work as expected.
we sort of need oe_runconf
Quoted 25 lines
Signed-off-by Eric Bénard <[email protected]>---
recipes/gdb/gdb-cross-sdk.inc | 1 -1 files changed, 0 insertions(+), 1 deletions(-)recipes/gdb/gdb-cross-sdk.inc +0
-0@@ -16,5 +16,4 @@ do_configure_append () {for SIM in ${B}/sim/*/Makefile; do
[ -f $SIM ] && sed -e 's,-lz, ${STAGING_LIBDIR_NATIVE}/libz.a ,g' -i $SIM done
-oe_runconf
}
--
1.6.3.3_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Quoted 7 lines · Khem Raj
Quoted 6 lines · Eric Bénard
else we don't statically link libncurses, libtinfo and libz which leads to :
/usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-gdb:
error while loading shared libraries: libtinfo.so.5:
cannot open shared object file: No such file or directory
Quoted 6 lines
Quoted 1 line
when trying to use the toolchain.
could you run
oe_runconfand then do theMakefileediting ? that way it will work as expected.
we sort of needoe_runconf
the makefile we hack with sed is not created after oe_runconf, it's generated by oe_runmake configure-host So what should work is :oe_runconfoe_runmake
then sed
Eric
Quoted 30 lines
Quoted 20 lines
Signed-off-by Eric Bénard<[email protected]>--- recipes/gdb/gdb-cross-sdk.inc | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)recipes/gdb/gdb-cross-sdk.inc +0
-2@@ -16,5 +16,4 @@ do_configure_append () { for SIM in ${B}/sim/*/Makefile; do [ -f $SIM ]&& sed -e 's,-lz, ${STAGING_LIBDIR_NATIVE}/libz.a ,g' -i $SIM done - oe_runconf } --1.6.3.3
Quoted 5 lines
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
PATCH 1/1 gdb-cross-sdk: reconfigure before running oe_runmake configure-host
so we have : configure then make configure-host which generates the Makefile that we modify using sed to statically link the libs
Without this patch, we don't statically link libncurses, libtinfo and libz which leads to :/usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-gdb:
error while loading shared libraries: libtinfo.so.5:
cannot open shared object file: No such file or directory
when trying to use the toolchain.
--- recipes/gdb/gdb-cross-sdk.inc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
recipes/gdb/gdb-cross-sdk.inc +1 -1
@@ -8,6 +8,7 @@ EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils' L # add a depenency on the -sdk versions of them. do_configure_append () { cd ${B} + oe_runconf oe_runmake configure-host sed -e 's,-lncurses,${STAGING_LIBDIR_NATIVE}/libncurses.a ${STAGING_LIBDIR_NATIVE}/libtinfo.a ,g' -i ${B}/gdb/Makefile sed -e 's,-lz, ${STAGING_LIBDIR_NATIVE}/libz.a ,g' -i ${B}/gdb/Makefile
@@ -16,5 +17,4 @@ do_configure_append () { for SIM in ${B}/sim/*/Makefile; do [ -f $SIM ] && sed -e 's,-lz, ${STAGING_LIBDIR_NATIVE}/libz.a ,g' -i $SIM done - oe_runconf }
Signature · 1 line
1.6.3.3
Re: [PATCH] gdb-cross-sdk: reconfigure before running oe_runmake configure-host
Quoted 9 lines · Eric Bénard
so we have : configure then make configure-host which generates the
Makefilethat we modify using sed to statically link the libsWithout this patch, we don't statically link libncurses, libtinfo and libz which leads to :
/usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-gdb:
error while loading shared libraries: libtinfo.so.5:
cannot open shared object file: No such file or directory
Quoted 3 lines
when trying to use the toolchain.
Signed-off-by Eric Bénard <[email protected]>
Quoted 31 lines
---
recipes/gdb/gdb-cross-sdk.inc | 2 +-1 files changed, 1 insertions(+), 1 deletions(-)recipes/gdb/gdb-cross-sdk.inc +1
-0@@ -8,6 +8,7 @@ EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils' L # add a depenency on the -sdk versions of them. do_configure_append () { cd ${B} + oe_runconfoe_runmake configure-host
sed -e 's,-lncurses,${STAGING_LIBDIR_NATIVE}/libncurses.a ${STAGING_LIBDIR_NATIVE}/libtinfo.a ,g' -i ${B}/gdb/Makefile sed -e 's,-lz, ${STAGING_LIBDIR_NATIVE}/libz.a ,g' -i ${B}/gdb/Makefilerecipes/gdb/gdb-cross-sdk.inc +0
-0@@ -16,5 +17,4 @@ do_configure_append () {for SIM in ${B}/sim/*/Makefile; do
[ -f $SIM ] && sed -e 's,-lz, ${STAGING_LIBDIR_NATIVE}/libz.a ,g' -i $SIM done
-oe_runconf
}
--
1.6.3.3_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Tom Rini
Acked-byRe: [PATCH] gdb-cross-sdk: reconfigure before running oe_runmake configure-host
Quoted 10 lines · Khem Raj
Quoted 9 lines · Eric Bénard
so we have : configure then make configure-host which generates the
Makefilethat we modify using sed to statically link the libsWithout this patch, we don't statically link libncurses, libtinfo and libz which leads to :
/usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-gdb:
error while loading shared libraries: libtinfo.so.5:
cannot open shared object file: No such file or directory
Quoted 5 lines
Quoted 3 lines
when trying to use the toolchain.
Signed-off-by Eric Bénard <[email protected]>Acked-by Khem Raj <[email protected]>
Quoted 37 lines
Quoted 27 lines
--- recipes/gdb/gdb-cross-sdk.inc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)recipes/gdb/gdb-cross-sdk.inc +1
-2@@ -8,6 +8,7 @@ EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils' L # add a depenency on the -sdk versions of them. do_configure_append () { cd ${B} + oe_runconf oe_runmake configure-host sed -e 's,-lncurses,${STAGING_LIBDIR_NATIVE}/libncurses.a ${STAGING_LIBDIR_NATIVE}/libtinfo.a ,g' -i ${B}/gdb/Makefile sed -e 's,-lz, ${STAGING_LIBDIR_NATIVE}/libz.a ,g' -i ${B}/gdb/Makefile@@ -16,5 +17,4 @@ do_configure_append () { for SIM in ${B}/sim/*/Makefile; do [ -f $SIM ] && sed -e 's,-lz, ${STAGING_LIBDIR_NATIVE}/libz.a ,g' -i $SIM done - oe_runconf } --1.6.3.3
Quoted 5 lines
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 2 lines
Tom Rini Mentor Graphics Corporation
Quoted 14 lines · Eric Bénard
Quoted 7 lines · Khem Raj
Quoted 6 lines · Eric Bénard
else we don't statically link libncurses, libtinfo and libz which leads to :
/usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-gdb:
error while loading shared libraries: libtinfo.so.5:
cannot open shared object file: No such file or directoryQuoted 6 lines
Quoted 1 line
when trying to use the toolchain.
could you run
oe_runconfand then do theMakefileediting ? that way it will work as expected.
we sort of needoe_runconf
Quoted 5 lines
the makefile we hack with sed is not created after
oe_runconf, it's generated byoe_runmakeconfigure-host So what should work is :oe_runconfoe_runmake
then sed
Can we look at NOT doing the dance we're doing here and instead try the normal autotools stuff? The "we need to not do ..." stuff looks to be an ancient artifact.
Signature · 2 lines
Tom Rini Mentor Graphics Corporation
Quoted 4 lines · Tom Rini
Can we look at NOT doing the dance we're doing here and instead try the normal autotools stuff? The "we need to not do ..." stuff looks to be an ancient artifact.
following the recent changes in this file we have a regression : some libs are no more statically linked in gdb and this patch fix this regression.
Can we apply it and then we can think on a better way to rewrite these recipes. After a few tries, switching to autotools doesn't work out of the box because gdb is waiting for autoconf 2.64 when we have 2.65.
Eric
Quoted 7 lines · Eric Bénard
Quoted 4 lines · Tom Rini
Can we look at NOT doing the dance we're doing here and instead try the normal autotools stuff? The "we need to not do ..." stuff looks to be an ancient artifact.
following the recent changes in this file we have a regression : some libs are no more statically linked in gdb and this patch fix this regression.
Can we apply it and then we can think on a better way to rewrite these recipes. After a few tries, switching to autotools doesn't work out of the box because gdb is waiting for autoconf 2.64 when we have 2.65.
OK, yes, since you've found it to be non-trivial, it can be done a little bit later. Thanks!
Signature · 2 lines
Tom Rini Mentor Graphics Corporation