Skip to contentSkip to conversation

mingw patches to build meta-toolchain

PATCH Applied Juro Bystricky 2 participants 8 messages Aug 5, 2015 – Aug 9, 2015

lore
Share & tools
lore
#0 lore raw

cover mingw patches to build meta-toolchain

Several recipes have been updated, so the corresponding .bbappend files became stale. The attached patches correspond to various updated recipes.

I tested the patches with meta-mingw layer and:

SDKMACHINE="i686-mingw32"
bitbake meta-toolchain

Juro Bystricky (6):
binutils-cross-canadian: upgrade to version 2.25 gdb-cross-canadian_7.8.1: updated to gdb-cross-canadian_7.9.1 nativesdk-libtool_2.4.2: updated nativesdk-libtool_2.4.6 libmpc_1.0.2: updated to libmpc_1.0.3
mpfr_3.1.2: updated to mpfr_3.1.3 gettext_0.19.4.bbappend: support for mingw

 recipes-core/gettext/gettext_0.19.4.bbappend                    | 2 ++
 recipes-devtools/binutils/binutils-cross-canadian_2.24.bbappend | 5 -----
 recipes-devtools/binutils/binutils-cross-canadian_2.25.bbappend | 5 +++++
 recipes-devtools/gdb/gdb-cross-canadian_7.8.1.bbappend          | 5 -----
 recipes-devtools/gdb/gdb-cross-canadian_7.9.1.bbappend          | 5 +++++
 recipes-devtools/libtool/nativesdk-libtool_2.4.2.bbappend       | 1 -
 recipes-devtools/libtool/nativesdk-libtool_2.4.6.bbappend       | 1 +
 recipes-support/libmpc/libmpc_1.0.3.bbappend                    | 1 +
 recipes-support/mpc/libmpc_1.0.2.bbappend                       | 1 -
 recipes-support/mpfr/mpfr_3.1.2.bbappend                        | 1 -
 recipes-support/mpfr/mpfr_3.1.3.bbappend                        | 1 +
 11 files changed, 15 insertions(+), 13 deletions(-)
 create mode 100644 recipes-core/gettext/gettext_0.19.4.bbappend
 delete mode 100644 recipes-devtools/binutils/binutils-cross-canadian_2.24.bbappend
 create mode 100644 recipes-devtools/binutils/binutils-cross-canadian_2.25.bbappend
 delete mode 100644 recipes-devtools/gdb/gdb-cross-canadian_7.8.1.bbappend
 create mode 100644 recipes-devtools/gdb/gdb-cross-canadian_7.9.1.bbappend
 delete mode 100644 recipes-devtools/libtool/nativesdk-libtool_2.4.2.bbappend
 create mode 100644 recipes-devtools/libtool/nativesdk-libtool_2.4.6.bbappend
 create mode 100644 recipes-support/libmpc/libmpc_1.0.3.bbappend
 delete mode 100644 recipes-support/mpc/libmpc_1.0.2.bbappend
 delete mode 100644 recipes-support/mpfr/mpfr_3.1.2.bbappend
 create mode 100644 recipes-support/mpfr/mpfr_3.1.3.bbappend
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/6 binutils-cross-canadian: upgrade to version 2.25

Renamed the file binutils-cross-canadian_2.24.bbappend to binutils-cross-canadian_2.25.bbappend.

---
 recipes-devtools/binutils/binutils-cross-canadian_2.24.bbappend | 5 -----
 recipes-devtools/binutils/binutils-cross-canadian_2.25.bbappend | 5 +++++
 2 files changed, 5 insertions(+), 5 deletions(-)
 delete mode 100644 recipes-devtools/binutils/binutils-cross-canadian_2.24.bbappend
 create mode 100644 recipes-devtools/binutils/binutils-cross-canadian_2.25.bbappend
recipes-devtools/binutils/binutils-cross-canadian_2.24.bbappend deleted +0 -5
deleted file mode 100644
index 026c932..0000000
@@ -1,5 +0,0 @@
-EXTRA_OECONF_append_sdkmingw32 = " --disable-plugins --disable-nls"
-LDFLAGS_append_sdkmingw32 = " -Wl,-static"
-
-DEPENDS_remove_sdkmingw32 = "nativesdk-gettext"
-DEPENDS_remove_sdkmingw32 = "nativesdk-flex"
recipes-devtools/binutils/binutils-cross-canadian_2.25.bbappend new file +5 -0
new file mode 100644
index 0000000..026c932
@@ -0,0 +1,5 @@
+EXTRA_OECONF_append_sdkmingw32 = " --disable-plugins --disable-nls"
+LDFLAGS_append_sdkmingw32 = " -Wl,-static"
+
+DEPENDS_remove_sdkmingw32 = "nativesdk-gettext"
+DEPENDS_remove_sdkmingw32 = "nativesdk-flex"
Signature · 1 line
1.9.1
#2 lore raw

PATCH 2/6 gdb-cross-canadian_7.8.1: updated to gdb-cross-canadian_7.9.1

In reply to Juro Bystricky

Renamed gdb-cross-canadian_7.8.1.bbappend to gdb-cross-canadian_7.9.1.bbappend, to match the updated recipe gdb-cross-canadian_7.9.1.bb.

---
 recipes-devtools/gdb/gdb-cross-canadian_7.8.1.bbappend | 5 -----
 recipes-devtools/gdb/gdb-cross-canadian_7.9.1.bbappend | 5 +++++
 2 files changed, 5 insertions(+), 5 deletions(-)
 delete mode 100644 recipes-devtools/gdb/gdb-cross-canadian_7.8.1.bbappend
 create mode 100644 recipes-devtools/gdb/gdb-cross-canadian_7.9.1.bbappend
recipes-devtools/gdb/gdb-cross-canadian_7.8.1.bbappend deleted +0 -5
deleted file mode 100644
index bf4bd75..0000000
@@ -1,5 +0,0 @@
-LDFLAGS_append_sdkmingw32 = " -Wl,-static"
-EXEEXT_sdkmingw32 = ".exe"
-DEPENDS_remove_sdkmingw32 = "nativesdk-ncurses nativesdk-readline nativesdk-python"
-RDEPENDS_${PN}_remove_sdkmingw32 = "nativesdk-python-core nativesdk-python-lang nativesdk-python-re nativesdk-python-codecs nativesdk-python-netclient"
-EXTRA_OECONF_append_sdkmingw32 = "--without-curses --without-system-readline --with-python=no"
recipes-devtools/gdb/gdb-cross-canadian_7.9.1.bbappend new file +5 -0
new file mode 100644
index 0000000..bf4bd75
@@ -0,0 +1,5 @@
+LDFLAGS_append_sdkmingw32 = " -Wl,-static"
+EXEEXT_sdkmingw32 = ".exe"
+DEPENDS_remove_sdkmingw32 = "nativesdk-ncurses nativesdk-readline nativesdk-python"
+RDEPENDS_${PN}_remove_sdkmingw32 = "nativesdk-python-core nativesdk-python-lang nativesdk-python-re nativesdk-python-codecs nativesdk-python-netclient"
+EXTRA_OECONF_append_sdkmingw32 = "--without-curses --without-system-readline --with-python=no"
Signature · 1 line
1.9.1
#3 lore raw

PATCH 3/6 nativesdk-libtool_2.4.2: updated nativesdk-libtool_2.4.6

In reply to Juro Bystricky

Renamed nativesdk-libtool_2.4.2.bbappend to nativesdk-libtool_2.4.6.bbappend in order to match the new recipe nativesdk-libtool_2.4.6.bb.

---
 recipes-devtools/libtool/nativesdk-libtool_2.4.2.bbappend | 1 -
 recipes-devtools/libtool/nativesdk-libtool_2.4.6.bbappend | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)
 delete mode 100644 recipes-devtools/libtool/nativesdk-libtool_2.4.2.bbappend
 create mode 100644 recipes-devtools/libtool/nativesdk-libtool_2.4.6.bbappend
recipes-devtools/libtool/nativesdk-libtool_2.4.2.bbappend deleted +0 -1
deleted file mode 100644
index 4252e8d..0000000
@@ -1 +0,0 @@
-EXTRA_OECONF_append_mingw32 = " --disable-shared"
\ No newline at end of file
recipes-devtools/libtool/nativesdk-libtool_2.4.6.bbappend new file +1 -0
new file mode 100644
index 0000000..4252e8d
@@ -0,0 +1 @@
+EXTRA_OECONF_append_mingw32 = " --disable-shared"
\ No newline at end of file
Signature · 1 line
1.9.1
#4 lore raw

PATCH 4/6 libmpc_1.0.2: updated to libmpc_1.0.3

In reply to Juro Bystricky

Renamed recipes-support/mpc/libmpc_1.0.2.bbappend to recipes-support/libmpc/libmpc_1.0.3.bbappend to reflect the changed location and version of the recipe libmpc_1.0.3.bb.

---
 recipes-support/libmpc/libmpc_1.0.3.bbappend | 1 +
 recipes-support/mpc/libmpc_1.0.2.bbappend    | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)
 create mode 100644 recipes-support/libmpc/libmpc_1.0.3.bbappend
 delete mode 100644 recipes-support/mpc/libmpc_1.0.2.bbappend
recipes-support/libmpc/libmpc_1.0.3.bbappend new file +1 -0
new file mode 100644
index 0000000..0d289df
@@ -0,0 +1 @@
+EXTRA_OECONF_append_mingw32 = "--enable-static --disable-shared"
\ No newline at end of file
recipes-support/mpc/libmpc_1.0.2.bbappend deleted +0 -1
deleted file mode 100644
index 0d289df..0000000
@@ -1 +0,0 @@
-EXTRA_OECONF_append_mingw32 = "--enable-static --disable-shared"
\ No newline at end of file
Signature · 1 line
1.9.1
#5 lore raw

PATCH 5/6 mpfr_3.1.2: updated to mpfr_3.1.3

In reply to Juro Bystricky

Renamed mpfr_3.1.2.bbappend to mpfr_3.1.3.bbappend to match the new recipe mpfr_3.1.3.bb.

---
 recipes-support/mpfr/mpfr_3.1.2.bbappend | 1 -
 recipes-support/mpfr/mpfr_3.1.3.bbappend | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)
 delete mode 100644 recipes-support/mpfr/mpfr_3.1.2.bbappend
 create mode 100644 recipes-support/mpfr/mpfr_3.1.3.bbappend
recipes-support/mpfr/mpfr_3.1.2.bbappend deleted +0 -1
deleted file mode 100644
index 4252e8d..0000000
@@ -1 +0,0 @@
-EXTRA_OECONF_append_mingw32 = " --disable-shared"
\ No newline at end of file
recipes-support/mpfr/mpfr_3.1.3.bbappend new file +1 -0
new file mode 100644
index 0000000..4252e8d
@@ -0,0 +1 @@
+EXTRA_OECONF_append_mingw32 = " --disable-shared"
\ No newline at end of file
Signature · 1 line
1.9.1
#6 lore raw

PATCH 6/6 gettext_0.19.4.bbappend: support for mingw

In reply to Juro Bystricky

This patch solves various unresolved references:

.libs/fstrcmp.o:fstrcmp.c:(.text+0x4b6): undefined reference to _imp__pthread_key_create' .libs/fstrcmp.o:fstrcmp.c:(.text+0x5b2): undefined reference to _imp__pthread_once' .libs/fstrcmp.o:fstrcmp.c:(.text+0x5c4): undefined reference to _imp__pthread_getspecific' .libs/fstrcmp.o:fstrcmp.c:(.text+0x617): undefined reference to _imp__pthread_setspecific' .libs/localename.o:localename.c:(.text+0x14f6): undefined reference to _imp__pthread_mutex_lock' .libs/localename.o:localename.c:(.text+0x1576): undefined reference to _imp__pthread_mutex_unlock' .libs/localename.o:localename.c:(.text+0x15c9): undefined reference to _imp__pthread_mutex_unlock' glthread/.libs/lock.o:lock.c:(.text+0xe): undefined reference to _imp__pthread_mutexattr_init' glthread/.libs/lock.o:lock.c:(.text+0x2d): undefined reference to _imp__pthread_mutexattr_settype' glthread/.libs/lock.o:lock.c:(.text+0x44): undefined reference to _imp__pthread_mutex_init' glthread/.libs/lock.o:lock.c:(.text+0x53): undefined reference to _imp__pthread_mutexattr_destroy' glthread/.libs/lock.o:lock.c:(.text+0x62): undefined reference to _imp__pthread_mutexattr_destroy' glthread/.libs/lock.o:lock.c:(.text+0x75): undefined reference to `_imp__pthread_mutexattr_dest

---
 recipes-core/gettext/gettext_0.19.4.bbappend | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 recipes-core/gettext/gettext_0.19.4.bbappend
recipes-core/gettext/gettext_0.19.4.bbappend new file +2 -0
new file mode 100644
index 0000000..ac76feb
@@ -0,0 +1,2 @@
+DEPENDS_append_mingw32 = " pthreads-win32"
+LDFLAGS_prepend_mingw32 = " -lpthread "
Signature · 1 line
1.9.1
#7 lore raw
In reply to Juro Bystricky
Quoted 7 lines · Juro Bystricky

Several recipes have been updated, so the corresponding .bbappend files became stale. The attached patches correspond to various updated recipes.

I tested the patches with meta-mingw layer and:

SDKMACHINE="i686-mingw32"
bitbake meta-toolchain

Merged, thanks!

Richard