Skip to contentSkip to conversation

gdb-cross-sdk: don't reconfigure after making changes in gdb/Makefile

PATCH In review Eric Bénard 3 participants 9 messages Nov 1, 2010 – Nov 2, 2010

lore
Share & tools
lore
#0 lore raw

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
index 6a708ca..d32111f 100644
@@ -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
#1 lore raw
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 directory

when 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

---
 recipes/gdb/gdb-cross-sdk.inc |    1 -

 1 files changed, 0 insertions(+), 1 deletions(-)
recipes/gdb/gdb-cross-sdk.inc +0 -0
index 6a708ca..d32111f 100644
@@ -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

#2 lore raw
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_runconf and then do the Makefile editing ? that way it will work as expected.
we sort of need oe_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_runconf
oe_runmake
then sed

Eric

Quoted 30 lines
Quoted 20 lines
---
  recipes/gdb/gdb-cross-sdk.inc |    1 -
  1 files changed, 0 insertions(+), 1 deletions(-)
recipes/gdb/gdb-cross-sdk.inc +0 -2
index 6a708ca..d32111f 100644
@@ -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

#3 lore raw

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
index 6a708ca..e1d4895 100644
@@ -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
Acked-by on v1 1/1
#4 lore raw

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 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

Quoted 3 lines

when trying to use the toolchain.

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
index 6a708ca..e1d4895 100644
@@ -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

recipes/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

Acked-by
#5 lore raw

Re: [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 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

Quoted 5 lines
Quoted 3 lines

when trying to use the toolchain.

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
index 6a708ca..e1d4895 100644
@@ -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
#6 lore raw
In reply to Eric Bénard
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 directory

Quoted 6 lines
Quoted 1 line

when 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 5 lines

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_runconf
oe_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
#7 lore raw
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

#8 lore raw
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