Skip to contentSkip to conversation

Pull request for branch for-2011.11/build-fixes

GIT PULL New Thomas Petazzoni 2 participants 5 messages Nov 13, 2011

lore
Share & tools
lore
#0 lore raw

Hello,

Here are three fixes for build failures detected when doing randpackageconfig builds.

Thomas

The following changes since commit 296eb11299d1240b3570aba5abb8374a0911bf44:

pulseaudio: needs host-intltool (2011-10-29 16:35:47 +0200)

are available in the git repository at:
http://free-electrons.com/~thomas/buildroot.git for-2011.11/build-fixes

Thomas Petazzoni (3):
gdb: do not allow native gdb on SuperH architecture
crosstool-ng: add patch to use wget instead of curl target gdb: depend on thread support

 .../crosstool-ng-001-wget-instead-of-curl.patch    |   52 ++++++++++++++++++++
 toolchain/gdb/Config.in                            |    2 +
 2 files changed, 54 insertions(+), 0 deletions(-)
 create mode 100644 package/crosstool-ng/crosstool-ng-001-wget-instead-of-curl.patch

Thanks,

Signature · 1 line
Thomas Petazzoni
#1 lore raw

PATCH 1/3 gdb: do not allow native gdb on SuperH architecture

The gdb debugger does not have support for running as the native debugger on the SuperH architecture:

configure: error: "*** Gdb does not support native target sh4-unknown-linux-gnu"

See also http://lists.debian.org/debian-superh/2010/04/msg00000.html.

---
 toolchain/gdb/Config.in |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
toolchain/gdb/Config.in +1 -0
index e593698..af6e56a 100644
@@ -4,6 +4,7 @@ config BR2_PACKAGE_GDB
 	bool "Build gdb debugger for the Target"
 	select BR2_PACKAGE_NCURSES
 	depends on BR2_USE_WCHAR
+	depends on !BR2_sh && !BR2_sh64
 	help
 	    Build the full gdb debugger to run on the target.
 
Signature · 1 line
1.7.4.1
#2 lore raw

PATCH 2/3 crosstool-ng: add patch to use wget instead of curl

In reply to Thomas Petazzoni
---
 .../crosstool-ng-001-wget-instead-of-curl.patch    |   52 ++++++++++++++++++++
 1 files changed, 52 insertions(+), 0 deletions(-)
 create mode 100644 package/crosstool-ng/crosstool-ng-001-wget-instead-of-curl.patch
package/crosstool-ng/crosstool-ng-001-wget-instead-of-curl.patch new file +52 -0
new file mode 100644
index 0000000..d40f178
@@ -0,0 +1,52 @@
+Use wget instead of curl
+
+While crosstool-NG did support either curl or wget in the past, it now
+only supports curl. Unfortunately, Buildroot uses wget for all its
+downloads, so wget is a hard dependency of Buildroot, while curl
+isn't.
+
+Instead of adding curl as a new Buildroot dependency, or building curl
+for the host, we simply tweak crosstool-NG to use wget instead of
+curl.
+
+The script/functions change has been provided by Yann E. Morin.
+
+Signed-off-by: Thomas Petazzoni <[email protected]>
+
+Index: crosstool-ng-1.13.0/configure
+===================================================================
+--- crosstool-ng-1.13.0.orig/configure
++++ crosstool-ng-1.13.0/configure
+@@ -496,7 +496,7 @@
+              ver='\(GNU libtool.*\) (2[[:digit:]]*\.|1\.6[[:digit:]]*\.|1\.5\.[2-9][[:digit:]]+)'   \
+              err="'libtoolize' 1.5.26 or above was not found"
+ has_or_abort prog=stat
+-has_or_abort prog="curl"
++has_or_abort prog="wget"
+ has_or_abort prog=patch
+ has_or_abort prog=tar
+ has_or_abort prog=gzip
+Index: crosstool-ng-1.13.0/scripts/functions
+===================================================================
+--- crosstool-ng-1.13.0.orig/scripts/functions
++++ crosstool-ng-1.13.0/scripts/functions
+@@ -456,13 +456,12 @@
+     # Some company networks have firewalls to connect to the internet, but it's
+     # not easy to detect them, so force a global ${CT_CONNECT_TIMEOUT}-second
+     # timeout.
+-    # For curl, no good progress indicator is available. So, be silent.
+-    if CT_DoExecLog ALL curl --ftp-pasv                                 \
+-                             --retry 3                                  \
+-                             --connect-timeout ${CT_CONNECT_TIMEOUT}    \
+-                             --location --fail --silent                 \
+-                             --output "${tmp}"                          \
+-                             "${url}"
++    if CT_DoExecLog ALL wget --passive-ftp --tries=3 -nc    \
++                             -T ${CT_CONNECT_TIMEOUT}       \
++                             -O "${tmp}"                    \
++                              "${url}"
++
++
+     then
+         # Success, we got it, good!
+         mv "${tmp}" "${dest}"
Signature · 1 line
1.7.4.1
#3 lore raw

PATCH 3/3 target gdb: depend on thread support

In reply to Thomas Petazzoni

Compiling gdb for the target requires thread support in the C library, otherwise:

/home/test/outputs/test-888/toolchain/gdb-7.3.1/gdb/gdb_thread_db.h:37:21: fatal error: pthread.h: No such file or directory

---
 toolchain/gdb/Config.in |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
toolchain/gdb/Config.in +1 -0
index af6e56a..8a02255 100644
@@ -4,6 +4,7 @@ config BR2_PACKAGE_GDB
 	bool "Build gdb debugger for the Target"
 	select BR2_PACKAGE_NCURSES
 	depends on BR2_USE_WCHAR
+	depends on BR2_TOOLCHAIN_HAS_THREADS
 	depends on !BR2_sh && !BR2_sh64
 	help
 	    Build the full gdb debugger to run on the target.
Signature · 1 line
1.7.4.1
#4 lore raw
In reply to Thomas Petazzoni
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

Thomas> Hello,
Thomas> Here are three fixes for build failures detected when doing Thomas> randpackageconfig builds.

Committed all 3, thanks.

Signature · 1 line
Bye, Peter Korsgaard