Skip to contentSkip to conversation

Fixes to get oe-core building

PATCH Superseded Khem Raj 5 participants 28 messages Mar 3, 2011 – Mar 16, 2011

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

v2 cover Fixes to get oe-core building

Hi

The attached patches are needed to get the OE core to build Please provide feedback I have already incorporated the changes requested thus far.

V2: Fix the sanity test case to check for new limit
Add patch to link gcc cross statically with prerequisite libs Remove do_compile_prepend from sqlite3 upgrade

v3: Drop spurious dependency on ncurses-native for sqlite3 recipe
Check if /proc/sys/vm/mmap_min_addr is readable
Fix rpm-native build issue encountered on ubuntu natty LINUXLIBCVERSION bump to 2.6.37.2

Thanks

-Khem

author
#1 lore raw

PATCH v3 1/6 sqlite3: Update version 3.7.3 -> 3.7.5

* Imported from OE commit a2c3af2d608b1b713018d688b00e03873a538993
* native version of 3.7.3 does not build

---
 meta/recipes-support/sqlite/sqlite3_3.7.3.bb |    8 --------
 meta/recipes-support/sqlite/sqlite3_3.7.5.bb |   10 ++++++++++
 2 files changed, 10 insertions(+), 8 deletions(-)
 delete mode 100644 meta/recipes-support/sqlite/sqlite3_3.7.3.bb
 create mode 100644 meta/recipes-support/sqlite/sqlite3_3.7.5.bb
meta/recipes-support/sqlite/sqlite3_3.7.3.bb deleted +0 -8
deleted file mode 100644
index 7296aba..0000000
@@ -1,8 +0,0 @@
-require sqlite3.inc
-
-LIC_FILES_CHKSUM = "file://src/main.c;endline=16;md5=86c9b824e9d68f8a26343a4b57f6d85a"
-
-PR = "r1"
-
-SRC_URI[md5sum] = "5437978aae90350cf984993091e0d695"
-SRC_URI[sha256sum] = "dbf352e8fbb74829f5e7a88f9f6ceeb80a709537f668c36e4b6cdfb271309ef6"
meta/recipes-support/sqlite/sqlite3_3.7.5.bb new file +10 -0
new file mode 100644
index 0000000..212d9e2
@@ -0,0 +1,10 @@
+require sqlite3.inc
+
+LIC_FILES_CHKSUM = "file://sqlite3.c;endline=19;md5=c1b8048b783961c3ba387c43fd955dc6"
+
+SRC_URI = "http://www.sqlite.org/sqlite-autoconf-3070500.tar.gz"
+S = "${WORKDIR}/sqlite-autoconf-3070500"
+PR = "r0"
+
+SRC_URI[md5sum] = "a9604a82613ade2e7f4c303f233e477f"                                                 
+SRC_URI[sha256sum] = "cb5b86926ec9f65882b2dddd244f2d620337d911ec73411863f77e48cf6a2f94"              
Signature · 1 line
1.7.4.1
author
#2 lore raw

PATCH v3 2/6 distro_tracking_fields.inc: Use 2.6.37.2 instead of 2.6.36 for linux-libc-headers

In reply to Khem Raj
---
 .../conf/distro/include/distro_tracking_fields.inc |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
meta/conf/distro/include/distro_tracking_fields.inc +3 -3
index 1dab90a..beb18e2 100644
@@ -2884,9 +2884,9 @@ RECIPE_LAST_UPDATE_pn-libtool = "Nov 8, 2010"
 RECIPE_MAINTAINER_pn-libtool = "Nitin A Kamble <[email protected]>"
 
 RECIPE_STATUS_pn-linux-libc-headers="green" 
-RECIPE_LATEST_VERSION_pn-linux-libc-headers="2.6.36"
-RECIPE_LAST_UPDATE_pn-linux-libc-headers = "Nov 8, 2010"
-RECIPE_MAINTAINER_pn-linux-libc-headers = "Nitin A Kamble <[email protected]>"
+RECIPE_LATEST_VERSION_pn-linux-libc-headers="2.6.37.2"
+RECIPE_LAST_UPDATE_pn-linux-libc-headers = "Mar 1, 2011"
+RECIPE_MAINTAINER_pn-linux-libc-headers = "Khem Raj <[email protected]>"
 
 RECIPE_STATUS_pn-lsof="green" 
 RECIPE_LATEST_VERSION_pn-lsof="4.84"
Signature · 1 line
1.7.4.1
author
#18 lore raw

PATCH v3 4/6 sanity.bbclass: Check for /proc/sys/vm/mmap_min_addr to be >= 65536

In reply to Khem Raj

* Now qemu can handle lower values we can chnage this sanity test to check of values if less than 65536

---
 meta/classes/sanity.bbclass |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
meta/classes/sanity.bbclass +6 -4
index 13940f8..aae5028 100644
@@ -170,10 +170,12 @@ def check_sanity(e):
         # This path is no longer user-readable in modern (very recent) Linux
         try:
             if os.path.exists("/proc/sys/vm/mmap_min_addr"):
-                f = file("/proc/sys/vm/mmap_min_addr", "r")
-                if (f.read().strip() != "0"):
-                        messages = messages + "/proc/sys/vm/mmap_min_addr is not 0. This will cause problems with qemu so please fix the value (as root).\n\nTo fix this in later reboots, set vm.mmap_min_addr = 0 in /etc/sysctl.conf.\n"
-                f.close()
+                f = open("/proc/sys/vm/mmap_min_addr", "r")
+                try:
+                    if (int(f.read().strip()) < 65536):
+                        messages = messages + "/proc/sys/vm/mmap_min_addr is not >= 65536. This will cause problems with qemu so please fix the value (as root).\n\nTo fix this in later reboots, set vm.mmap_min_addr = 65536 in /etc/sysctl.conf.\n"
+                finally:
+                    f.close()
         except:
             pass
 
Signature · 1 line
1.7.4.1
author
#5 lore raw

PATCH v3 3/6 gcc: Statically link in support libraries e.g. libmpfr libgmp etc.

In reply to Khem Raj

* This is helpful to get consistent behaviour with gcc on different hosts and linking the libraries in for cross gcc recipes should not be increasing the binary size alarmingly

---
 meta/recipes-devtools/gcc/gcc-configure-common.inc |    7 +++++++
 meta/recipes-devtools/gcc/gcc-configure-cross.inc  |   10 ++++++++++
 meta/recipes-devtools/gcc/gcc-configure-sdk.inc    |    8 ++++++++
 .../gcc/gcc-cross-canadian_4.3.3.bb                |    2 +-
 .../gcc/gcc-cross-canadian_4.5.1.bb                |    2 +-
 .../gcc/gcc-cross-initial_4.3.3.bb                 |    2 +-
 .../gcc/gcc-cross-initial_4.5.1.bb                 |    2 +-
 .../gcc/gcc-cross-intermediate_4.3.3.bb            |    2 +-
 .../gcc/gcc-cross-intermediate_4.5.1.bb            |    2 +-
 .../gcc/gcc-cross-kernel-3.4.4_csl-arm-2005q3.bb   |    2 +-
 meta/recipes-devtools/gcc/gcc-cross_4.3.3.bb       |    2 +-
 meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb       |    2 +-
 .../gcc/gcc-cross_csl-arm-2008q1.bb                |    2 +-
 .../gcc/gcc-crosssdk-initial_4.3.3.bb              |    2 +-
 .../gcc/gcc-crosssdk-initial_4.5.1.bb              |    2 +-
 .../gcc/gcc-crosssdk-intermediate_4.3.3.bb         |    2 +-
 .../gcc/gcc-crosssdk-intermediate_4.5.1.bb         |    2 +-
 meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb    |    2 +-
 meta/recipes-devtools/gcc/gcc-runtime_4.3.3.bb     |    2 +-
 meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb     |    2 +-
 meta/recipes-devtools/gcc/gcc_4.3.3.bb             |    2 +-
 meta/recipes-devtools/gcc/gcc_4.5.1.bb             |    2 +-
 meta/recipes-devtools/gcc/gcc_csl-arm-2008q1.bb    |    2 +-
 meta/recipes-devtools/gcc/libgcc_4.5.1.bb          |    2 +-
 24 files changed, 46 insertions(+), 21 deletions(-)
meta/recipes-devtools/gcc/gcc-configure-common.inc +7 -0
index 4393777..cdb69fb 100644
@@ -85,6 +85,11 @@ do_configure () {
 	export CXXFLAGS_FOR_BUILD="${BUILD_CXXFLAGS}"
 	export LDFLAGS_FOR_BUILD="${BUILD_LDFLAGS}"
 	export ARCH_FLAGS_FOR_TARGET="${ARCH_FLAGS_FOR_TARGET}"
+
+        # Make sure LDFLAGS are honored.
+        sed -i 's/^LDFLAGS = $/LDFLAGS = @LDFLAGS@/' ${S}/Makefile.in
+        sed -i 's/^LDFLAGS = $/LDFLAGS = @LDFLAGS@/' ${S}/Makefile.tpl
+
 	(cd ${S} && gnu-configize) || die "failure running gnu-configize"
 	
 	# teach gcc to find correct target includedir when checking libc ssp support
@@ -108,5 +113,7 @@ do_configure () {
 	echo "#endif /* ! GCC_DEFAULTS_H */" >> ${S}/gcc/defaults.h.new
 	mv ${S}/gcc/defaults.h.new ${S}/gcc/defaults.h
 	oe_runconf
+        # make sure that no @LDFLAG@ is left in the generated Makefile
+        sed -i "s/@LDFLAGS@//g" ${B}/Makefile
 }
 
meta/recipes-devtools/gcc/gcc-configure-cross.inc +10 -0
index 346d164..200cbe2 100644
@@ -16,6 +16,16 @@ do_compile_prepend () {
 	export LD_FOR_TARGET="${TARGET_SYS}-ld"
 	export NM_FOR_TARGET="${TARGET_SYS}-nm"
 	export CC_FOR_TARGET="${CCACHE} ${TARGET_SYS}-gcc ${TARGET_CC_ARCH}"
+	export OBJDUMP_FOR_TARGET="${TARGET_SYS}-objdump"
+	export OBJCOPY_FOR_TARGET="${TARGET_SYS}-objcopy"
+	export STRIP_FOR_TARGET="${TARGET_SYS}-strip"
+	# Make sure we use GMP/MPFR statically
+	sed -i 's/^\(HOST_GMPLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.tpl
+	sed -i 's/^\(HOST_GMPLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.in
+	sed -i 's/^\(HOST_PPLLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.tpl
+	sed -i 's/^\(HOST_PPLLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.in
+	sed -i 's/^\(HOST_LIBELFLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.tpl
+	sed -i 's/^\(HOST_LIBELFLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.in
 }
 
 LIBGCCS_VAR = "-lgcc_s"
meta/recipes-devtools/gcc/gcc-configure-sdk.inc +8 -0
index 756e74e..3eb8992 100644
@@ -39,6 +39,14 @@ do_configure () {
 	export CPPFLAGS_FOR_BUILD="${BUILD_CPPFLAGS}"
 	export CXXFLAGS_FOR_BUILD="${BUILD_CXXFLAGS}"
 	export LDFLAGS_FOR_BUILD="${BUILD_LDFLAGS}"
+	export CC_FOR_TARGET="${CCACHE} ${TARGET_SYS}-gcc ${TARGET_CC_ARCH}"
+	# Make sure we use GMP/MPFR statically 
+	sed -i 's/^\(HOST_GMPLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.tpl
+	sed -i 's/^\(HOST_GMPLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.in
+	sed -i 's/^\(HOST_PPLLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.tpl 
+	sed -i 's/^\(HOST_PPLLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.in
+	sed -i 's/^\(HOST_LIBELFLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.tpl
+	sed -i 's/^\(HOST_LIBELFLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.in
 	(cd ${S} && gnu-configize) || die "failure running gnu-configize"
 	oe_runconf
 }
meta/recipes-devtools/gcc/gcc-cross-canadian_4.3.3.bb +1 -1
index d420f80..8bf07d7 100644
@@ -5,7 +5,7 @@ require gcc-cross-canadian.inc
 require gcc-configure-sdk.inc
 require gcc-package-sdk.inc
 
-PR = "r20"
+PR = "r21"
 
 DEPENDS += "gmp-nativesdk mpfr-nativesdk"
 RDEPENDS_${PN} += "mpfr-nativesdk"
meta/recipes-devtools/gcc/gcc-cross-canadian_4.5.1.bb +1 -1
index 3eea4bc..92708d4 100644
@@ -5,7 +5,7 @@ require gcc-cross-canadian.inc
 require gcc-configure-sdk.inc
 require gcc-package-sdk.inc
 
-PR = "r3"
+PR = "r4"
 
 DEPENDS += "gmp-nativesdk mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk"
 RDEPENDS_${PN} += "mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk"
meta/recipes-devtools/gcc/gcc-cross-initial_4.3.3.bb +1 -1
index 28ac1ab..ef52845 100644
@@ -1,5 +1,5 @@
 require gcc-cross_${PV}.bb
 require gcc-cross-initial.inc
 
-PR = "r5"
+PR = "r6"
 
meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb +1 -1
index b2c257d..38e0964 100644
@@ -1,5 +1,5 @@
 require gcc-cross_${PV}.bb
 require gcc-cross-initial.inc
 
-PR = "r2"
+PR = "r3"
 
meta/recipes-devtools/gcc/gcc-cross-intermediate_4.3.3.bb +1 -1
index a8473b0..deeee37 100644
@@ -1,4 +1,4 @@
 require gcc-cross_${PV}.bb
 require gcc-cross-intermediate.inc
-PR = "r5"
+PR = "r6"
 
meta/recipes-devtools/gcc/gcc-cross-intermediate_4.5.1.bb +1 -1
index e65d5df..9a30cb5 100644
@@ -1,4 +1,4 @@
 require gcc-cross_${PV}.bb
 require gcc-cross-intermediate.inc
-PR = "r3"
+PR = "r4"
 
meta/recipes-devtools/gcc/gcc-cross-kernel-3.4.4_csl-arm-2005q3.bb +1 -1
index 88e3842..462104f 100644
@@ -9,7 +9,7 @@ require gcc-cross-kernel.inc
 
 DEFAULT_PREFERENCE = "-1"
 
-PR = "r4"
+PR = "r5"
 
 SRC_URI += "file://gcc-3.4.4-makefile-fix.patch;patch=1"
 
meta/recipes-devtools/gcc/gcc-cross_4.3.3.bb +1 -1
index 5eaac5f..1a982f5 100644
@@ -1,4 +1,4 @@
-PR = "r17"
+PR = "r18"
 
 require gcc-${PV}.inc
 require gcc-cross4.inc
meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb +1 -1
index 399cdf9..78bb05a 100644
@@ -1,4 +1,4 @@
-PR = "r2"
+PR = "r3"
 
 require gcc-${PV}.inc
 require gcc-cross4.inc
meta/recipes-devtools/gcc/gcc-cross_csl-arm-2008q1.bb +1 -1
index 89534f1..0e7a1ee 100644
@@ -1,4 +1,4 @@
-PR = "r5"
+PR = "r6"
 
 require gcc-csl-arm-2008q1.inc
 require gcc-cross4.inc
meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.3.3.bb +1 -1
index b42de47..d3ddcb1 100644
@@ -1,3 +1,3 @@
 require gcc-cross-initial_${PV}.bb
 require gcc-crosssdk-initial.inc
-PR = "r6"
+PR = "r7"
meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bb +1 -1
index 240caf5..fec53b9 100644
@@ -1,4 +1,4 @@
 require gcc-cross-initial_${PV}.bb
 require gcc-crosssdk-initial.inc
 
-PR = "r2"
+PR = "r3"
meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.3.3.bb +1 -1
index cd1f966..2be05f1 100644
@@ -1,3 +1,3 @@
 require gcc-cross-intermediate_${PV}.bb
 require gcc-crosssdk-intermediate.inc
-PR = "r8"
+PR = "r9"
meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.bb +1 -1
index a6653dd..161d870 100644
@@ -1,4 +1,4 @@
 require gcc-cross-intermediate_${PV}.bb
 require gcc-crosssdk-intermediate.inc
 
-PR = "r2"
+PR = "r3"
meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb +1 -1
index 129e8d3..7069088 100644
@@ -1,4 +1,4 @@
 require gcc-cross_${PV}.bb
 require gcc-crosssdk.inc
 
-PR = "r2"
+PR = "r3"
meta/recipes-devtools/gcc/gcc-runtime_4.3.3.bb +1 -1
index 99f927a..2f5cfb5 100644
@@ -1,4 +1,4 @@
-PR = "r18"
+PR = "r19"
 
 require gcc-${PV}.inc
 require gcc-configure-runtime.inc
meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb +1 -1
index 093f9bf..c1e680d 100644
@@ -1,4 +1,4 @@
-PR = "r2"
+PR = "r3"
 
 require gcc-${PV}.inc
 require gcc-configure-runtime.inc
meta/recipes-devtools/gcc/gcc_4.3.3.bb +1 -1
index f0471d4..ba6e7b2 100644
@@ -1,4 +1,4 @@
-PR = "r11"
+PR = "r12"
 
 require gcc-${PV}.inc
 require gcc-configure-target.inc
meta/recipes-devtools/gcc/gcc_4.5.1.bb +1 -1
index 919d4b0..25e455c 100644
@@ -1,4 +1,4 @@
-PR = "r2"
+PR = "r3"
 require gcc-${PV}.inc
 require gcc-configure-target.inc
 require gcc-package-target.inc
meta/recipes-devtools/gcc/gcc_csl-arm-2008q1.bb +1 -1
index cc7540a..2df12ef 100644
@@ -1,4 +1,4 @@
-PR = "r3"
+PR = "r4"
 
 require gcc-${PV}.inc
 require gcc-configure-target.inc
meta/recipes-devtools/gcc/libgcc_4.5.1.bb +1 -1
index b6cf268..3f7ce0a 100644
@@ -1,6 +1,6 @@
 require gcc-${PV}.inc
 
-PR = "r0"
+PR = "r1"
 
 INHIBIT_DEFAULT_DEPS = "1"
 DEPENDS = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++"
Signature · 1 line
1.7.4.1
author
#22 lore raw

PATCH v3 5/6 poky-default.inc: Change LINUXLIBCVERSION "2.6.36" -> "2.6.37.2"

In reply to Khem Raj
---
 meta/conf/distro/include/poky-default.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
meta/conf/distro/include/poky-default.inc +1 -1
index ef9f5cf..3ec5e1d 100644
@@ -19,7 +19,7 @@ GCCVERSION ?= "4.5.1"
 SDKGCCVERSION ?= "4.5.1"
 BINUVERSION ?= "2.21"
 GLIBCVERSION ?= "2.10.1"
-LINUXLIBCVERSION ?= "2.6.36"
+LINUXLIBCVERSION ?= "2.6.37.2"
 
 # Temporary preferred version overrides for PPC
 PREFERRED_VERSION_u-boot-mkimage-native_powerpc ?= "2009.08"
Signature · 1 line
1.7.4.1
author
#25 lore raw

PATCH v3 6/6 rpm: Fix linking error encountered in rpm-native

In reply to Khem Raj

* This patch passes the correct LDFLAGS to account for additional dependencies of librpmio on libbeecrypt and libsyck and hence fixes the build error.

---
 .../rpm/rpm/rpm-tools-mtree-LDFLAGS.patch          |   13 +++++++++++++
 meta/recipes-devtools/rpm/rpm_5.4.0.bb             |    3 ++-
 2 files changed, 15 insertions(+), 1 deletions(-)
 create mode 100644 meta/recipes-devtools/rpm/rpm/rpm-tools-mtree-LDFLAGS.patch
meta/recipes-devtools/rpm/rpm/rpm-tools-mtree-LDFLAGS.patch new file +13 -0
new file mode 100644
index 0000000..347d976
@@ -0,0 +1,13 @@
+Index: rpm-5.4.0/tools/Makefile.am
+===================================================================
+--- rpm-5.4.0.orig/tools/Makefile.am
++++ rpm-5.4.0/tools/Makefile.am
+@@ -169,7 +169,7 @@ grep_LDADD =		$(RPMIO_LDADD_COMMON)
+ 
+ mtree_SOURCES =		rpmmtree.c
+ mtree_LDFLAGS =		@LDFLAGS_STATIC@ $(LDFLAGS)
+-mtree_LDADD =		$(RPM_LDADD_COMMON)
++mtree_LDADD =		$(RPMIO_LDADD_COMMON)
+ 
+ rpmrepo_SOURCES =	rpmrepo.c
+ rpmrepo_CPPFLAGS =	$(AM_CPPFLAGS) -I$(top_srcdir)/scripts -I$(top_builddir)/scripts $(CPPFLAGS)
meta/recipes-devtools/rpm/rpm_5.4.0.bb +2 -1
index 0003f48..3704816 100644
@@ -43,7 +43,7 @@ LICENSE = "LGPL 2.1"
 LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1"
 
 DEPENDS = "bzip2 zlib python perl db openssl elfutils expat libpcre attr acl popt"
-PR = "r13"
+PR = "r14"
 
 # rpm2cpio is a shell script, which is part of the rpm src.rpm.  It is needed
 # in order to extract the distribution SRPM into a format we can extract...
@@ -56,6 +56,7 @@ SRC_URI = "http://www.rpm5.org/files/rpm/rpm-5.4/rpm-5.4.0-0.20101229.src.rpm;ex
 	   file://rpm-showrc.patch \
 	   file://rpm-nofsync.patch \
 	   file://rpm-solvedb.patch \
+	   file://rpm-tools-mtree-LDFLAGS.patch \
 	  "
 
 #           file://hdraddorappend.patch \
Signature · 1 line
1.7.4.1
#19 lore raw

Re: [PATCHv3 4/6] sanity.bbclass: Check for /proc/sys/vm/mmap_min_addr to be >= 65536

In reply to Khem Raj
Quoted 19 lines · Khem Raj

* Now qemu can handle lower values we can chnage this sanity test to check of values if less than 65536

---
 meta/classes/sanity.bbclass |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
meta/classes/sanity.bbclass +0 -3
index 13940f8..aae5028 100644
@@ -170,10 +170,12 @@ def check_sanity(e):
         # This path is no longer user-readable in modern (very recent) Linux
         try:
             if os.path.exists("/proc/sys/vm/mmap_min_addr"):
-                f = file("/proc/sys/vm/mmap_min_addr", "r")
-                if (f.read().strip() != "0"):
-                        messages = messages + "/proc/sys/vm/mmap_min_addr is not 0. This will cause problems with qemu so please fix the value (as root).\n\nTo fix this in later reboots, set vm.mmap_min_addr = 0 in /etc/sysctl.conf.\n"

meta/classes/sanity.bbclass def check_sanity(e): · line 181

Quoted 10 lines
meta/classes/sanity.bbclass +6 -1
-                f.close()
+                f = open("/proc/sys/vm/mmap_min_addr", "r")
+                try:
+                    if (int(f.read().strip()) < 65536):
+                        messages = messages + "/proc/sys/vm/mmap_min_addr is not >= 65536. This will cause problems with qemu so please fix the value (as root).\n\nTo fix this in later reboots, set vm.mmap_min_addr = 65536 in /etc/sysctl.conf.\n"
+                finally:
+                    f.close()
         except:
             pass
 

corner cases when it cannot be read are with kernel between

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=0e1a6ef2dea88101b056b6d9984f3325c5efced3
2.6.33-rc2-0e1a6ef2dea88101b056b6d9984f3325c5efced3

and

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=822cceec7248013821d655545ea45d1c6a9d15b3
2.6.34-rc3-822cceec7248013821d655545ea45d1c6a9d15b3

see:
http://www.mail-archive.com/[email protected]/msg02340.html

Don't know if any large distribution is using 2.6.34 without that 2nd patch backported.

Regards,

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#26 lore raw

Re: [PATCHv3 6/6] rpm: Fix linking error encountered in rpm-native

In reply to Khem Raj

Hi Khem,

Quoted 3 lines · Khem Raj

* This patch passes the correct LDFLAGS to account for additional dependencies of librpmio on libbeecrypt and libsyck and hence fixes the build error.

This change is fine in itself but I'm going to be a little critical here since we're just getting going and I want to start as we mean to go on.

Could you add a description of the problem and why the fix is needed to the patch header please, also adding your name and a date.

The reason why is so in six months time, someone looking at this can work out a) why the patch is needed, b) Who wrote it so they have some idea where it came from and who to talk to if they have a question and
c) How long the issue has been around for.

I appreciate some of this info can be got through the SCM but I've yet to see a good reason for not including it directly in the patch header.

Cheers,

Richard

Quoted 47 lines
---
 .../rpm/rpm/rpm-tools-mtree-LDFLAGS.patch          |   13 +++++++++++++
 meta/recipes-devtools/rpm/rpm_5.4.0.bb             |    3 ++-
 2 files changed, 15 insertions(+), 1 deletions(-)
 create mode 100644 meta/recipes-devtools/rpm/rpm/rpm-tools-mtree-LDFLAGS.patch
meta/recipes-devtools/rpm/rpm/rpm-tools-mtree-LDFLAGS.patch new file +13 -0
new file mode 100644
index 0000000..347d976
@@ -0,0 +1,13 @@
+Index: rpm-5.4.0/tools/Makefile.am
+===================================================================
+--- rpm-5.4.0.orig/tools/Makefile.am
++++ rpm-5.4.0/tools/Makefile.am
+@@ -169,7 +169,7 @@ grep_LDADD =		$(RPMIO_LDADD_COMMON)
+ 
+ mtree_SOURCES =		rpmmtree.c
+ mtree_LDFLAGS =		@LDFLAGS_STATIC@ $(LDFLAGS)
+-mtree_LDADD =		$(RPM_LDADD_COMMON)
++mtree_LDADD =		$(RPMIO_LDADD_COMMON)
+ 
+ rpmrepo_SOURCES =	rpmrepo.c
+ rpmrepo_CPPFLAGS =	$(AM_CPPFLAGS) -I$(top_srcdir)/scripts -I$(top_builddir)/scripts $(CPPFLAGS)
meta/recipes-devtools/rpm/rpm_5.4.0.bb +2 -1
index 0003f48..3704816 100644
@@ -43,7 +43,7 @@ LICENSE = "LGPL 2.1"
 LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1"
 
 DEPENDS = "bzip2 zlib python perl db openssl elfutils expat libpcre attr acl popt"
-PR = "r13"
+PR = "r14"
 
 # rpm2cpio is a shell script, which is part of the rpm src.rpm.  It is needed
 # in order to extract the distribution SRPM into a format we can extract...
@@ -56,6 +56,7 @@ SRC_URI = "http://www.rpm5.org/files/rpm/rpm-5.4/rpm-5.4.0-0.20101229.src.rpm;ex
 	   file://rpm-showrc.patch \
 	   file://rpm-nofsync.patch \
 	   file://rpm-solvedb.patch \
+	   file://rpm-tools-mtree-LDFLAGS.patch \
 	  "
 
 #           file://hdraddorappend.patch \
#20 lore raw

Re: [PATCHv3 4/6] sanity.bbclass: Check for /proc/sys/vm/mmap_min_addr to be >= 65536

In reply to Martin Jansa
Quoted 38 lines · Martin Jansa
Quoted 19 lines · Khem Raj

* Now qemu can handle lower values we can chnage this sanity test to check of values if less than 65536

---
 meta/classes/sanity.bbclass |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
meta/classes/sanity.bbclass +0 -3
index 13940f8..aae5028 100644
@@ -170,10 +170,12 @@ def check_sanity(e):
         # This path is no longer user-readable in modern (very recent) Linux
         try:
             if os.path.exists("/proc/sys/vm/mmap_min_addr"):
-                f = file("/proc/sys/vm/mmap_min_addr", "r")
-                if (f.read().strip() != "0"):
-                        messages = messages + "/proc/sys/vm/mmap_min_addr is not 0. This will cause problems with qemu so please fix the value (as root).\n\nTo fix this in later reboots, set vm.mmap_min_addr = 0 in /etc/sysctl.conf.\n"

meta/classes/sanity.bbclass def check_sanity(e): · line 181

Quoted 10 lines
meta/classes/sanity.bbclass +6 -1
-                f.close()
+                f = open("/proc/sys/vm/mmap_min_addr", "r")
+                try:
+                    if (int(f.read().strip()) < 65536):
+                        messages = messages + "/proc/sys/vm/mmap_min_addr is not >= 65536. This will cause problems with qemu so please fix the value (as root).\n\nTo fix this in later reboots, set vm.mmap_min_addr = 65536 in /etc/sysctl.conf.\n"
+                finally:
+                    f.close()
         except:
             pass
 

corner cases when it cannot be read are with kernel between

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=0e1a6ef2dea88101b056b6d9984f3325c5efced3
2.6.33-rc2-0e1a6ef2dea88101b056b6d9984f3325c5efced3

and

Quoted 8 lines

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=822cceec7248013821d655545ea45d1c6a9d15b3
2.6.34-rc3-822cceec7248013821d655545ea45d1c6a9d15b3

see:
http://www.mail-archive.com/[email protected]/msg02340.html

Don't know if any large distribution is using 2.6.34 without that 2nd patch backported.

My laptop at least is running a kernel where that file isn't readable :/. It isn't a standard distro one though.

Cheers,

Richard

#27 lore raw

Re: [PATCHv3 6/6] rpm: Fix linking error encountered in rpm-native

In reply to Richard Purdie

Op 3 mrt 2011, om 13:07 heeft Richard Purdie het volgende geschreven:

Quoted 13 lines

Hi Khem,

Quoted 3 lines · Khem Raj

* This patch passes the correct LDFLAGS to account for additional dependencies of librpmio on libbeecrypt and libsyck and hence fixes the build error.

This change is fine in itself but I'm going to be a little critical here since we're just getting going and I want to start as we mean to go on.

Could you add a description of the problem and why the fix is needed to the patch header please, also adding your name and a date.

Quoted 7 lines

The reason why is so in six months time, someone looking at this can work out a) why the patch is needed, b) Who wrote it so they have some idea where it came from and who to talk to if they have a question and
c) How long the issue has been around for.

I appreciate some of this info can be got through the SCM but I've yet to see a good reason for not including it directly in the patch header.

I have customers that make tarball snapshots of OE without the .git, so please put a lot of info in patch headers.

regards,

Koen

author
#21 lore raw

Re: [PATCHv3 4/6] sanity.bbclass: Check for /proc/sys/vm/mmap_min_addr to be >= 65536

In reply to Richard Purdie
Quoted 42 lines · Richard Purdie
Quoted 41 lines · Martin Jansa
Quoted 20 lines · Khem Raj

* Now qemu can handle lower values we can chnage this sanity test to check of values if less than 65536

---
 meta/classes/sanity.bbclass |   10 ++++++----

 1 files changed, 6 insertions(+), 4 deletions(-)
meta/classes/sanity.bbclass +0 -0
index 13940f8..aae5028 100644
@@ -170,10 +170,12 @@ def check_sanity(e):
          # This path is no longer user-readable in modern (very recent) Linux

         try:
             if os.path.exists("/proc/sys/vm/mmap_min_addr"):
-                f = file("/proc/sys/vm/mmap_min_addr", "r")
-                if (f.read().strip() != "0"):
-                        messages = messages + "/proc/sys/vm/mmap_min_addr is not 0. This will cause problems with qemu so please fix the value (as root).\n\nTo fix this in later reboots, set vm.mmap_min_addr = 0 in /etc/sysctl.conf.\n"
-                f.close()

Quoted 9 lines

+                f = open("/proc/sys/vm/mmap_min_addr", "r")
+                try:
+                    if (int(f.read().strip()) < 65536):
+                        messages = messages + "/proc/sys/vm/mmap_min_addr is not >= 65536. This will cause problems with qemu so please fix the value (as root).\n\nTo fix this in later reboots, set vm.mmap_min_addr = 65536 in /etc/sysctl.conf.\n"
+                finally:
+                    f.close()
         except:
             pass

corner cases when it cannot be read are with kernel between

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=0e1a6ef2dea88101b056b6d9984f3325c5efced3
2.6.33-rc2-0e1a6ef2dea88101b056b6d9984f3325c5efced3

and

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=822cceec7248013821d655545ea45d1c6a9d15b3
2.6.34-rc3-822cceec7248013821d655545ea45d1c6a9d15b3

Quoted 9 lines
Quoted 5 lines

see:
http://www.mail-archive.com/[email protected]/msg02340.html

Don't know if any large distribution is using 2.6.34 without that 2nd patch backported.

My laptop at least is running a kernel where that file isn't readable :/. It isn't a standard distro one though.

see v3

author
#6 lore raw

Re: [PATCHv3 3/6] gcc: Statically link in support libraries e.g. libmpfr libgmp etc.

In reply to Khem Raj

ping any opinion on this patch ?

Quoted 321 lines · Khem Raj

* This is helpful to get consistent behaviour with gcc on different hosts and linking the libraries in for cross gcc recipes should not be increasing the binary size alarmingly

---
 meta/recipes-devtools/gcc/gcc-configure-common.inc |    7 +++++++ meta/recipes-devtools/gcc/gcc-configure-cross.inc  |   10 ++++++++++ meta/recipes-devtools/gcc/gcc-configure-sdk.inc    |    8 ++++++++

 .../gcc/gcc-cross-canadian_4.3.3.bb                |    2 +-
 .../gcc/gcc-cross-canadian_4.5.1.bb                |    2 +-
 .../gcc/gcc-cross-initial_4.3.3.bb                 |    2 +-
 .../gcc/gcc-cross-initial_4.5.1.bb                 |    2 +-

 .../gcc/gcc-cross-intermediate_4.3.3.bb            |    2 +- .../gcc/gcc-cross-intermediate_4.5.1.bb            |    2 +- .../gcc/gcc-cross-kernel-3.4.4_csl-arm-2005q3.bb   |    2 +- meta/recipes-devtools/gcc/gcc-cross_4.3.3.bb       |    2 +- meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb       |    2 +- .../gcc/gcc-cross_csl-arm-2008q1.bb                |    2 +- .../gcc/gcc-crosssdk-initial_4.3.3.bb              |    2 +- .../gcc/gcc-crosssdk-initial_4.5.1.bb              |    2 +- .../gcc/gcc-crosssdk-intermediate_4.3.3.bb         |    2 +- .../gcc/gcc-crosssdk-intermediate_4.5.1.bb         |    2 +-

 meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb    |    2 +-
 meta/recipes-devtools/gcc/gcc-runtime_4.3.3.bb     |    2 +-
 meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb     |    2 +-

 meta/recipes-devtools/gcc/gcc_4.3.3.bb             |    2 +- meta/recipes-devtools/gcc/gcc_4.5.1.bb             |    2 +- meta/recipes-devtools/gcc/gcc_csl-arm-2008q1.bb    |    2 +- meta/recipes-devtools/gcc/libgcc_4.5.1.bb          |    2 +-

 24 files changed, 46 insertions(+), 21 deletions(-)
meta/recipes-devtools/gcc/gcc-configure-common.inc +0 -0
index 4393777..cdb69fb 100644
@@ -85,6 +85,11 @@ do_configure () {

       export CXXFLAGS_FOR_BUILD="${BUILD_CXXFLAGS}" export LDFLAGS_FOR_BUILD="${BUILD_LDFLAGS}" export ARCH_FLAGS_FOR_TARGET="${ARCH_FLAGS_FOR_TARGET}"

meta/recipes-devtools/gcc/gcc-configure-common.inc +5 -0
+
+        # Make sure LDFLAGS are honored.
+        sed -i 's/^LDFLAGS = $/LDFLAGS = @LDFLAGS@/' ${S}/Makefile.in
+        sed -i 's/^LDFLAGS = $/LDFLAGS = @LDFLAGS@/' ${S}/Makefile.tpl
+

       (cd ${S} && gnu-configize) || die "failure running gnu-configize"

       # teach gcc to find correct target includedir when checking libc ssp support
meta/recipes-devtools/gcc/gcc-configure-common.inc +0 -0
@@ -108,5 +113,7 @@ do_configure () {

       echo "#endif /* ! GCC_DEFAULTS_H */" >> ${S}/gcc/defaults.h.new mv ${S}/gcc/defaults.h.new ${S}/gcc/defaults.h oe_runconf
+        # make sure that no @LDFLAG@ is left in the generated Makefile
+        sed -i "s/@LDFLAGS@//g" ${B}/Makefile
 }

meta/recipes-devtools/gcc/gcc-configure-cross.inc +0 -0
index 346d164..200cbe2 100644
@@ -16,6 +16,16 @@ do_compile_prepend () {

       export LD_FOR_TARGET="${TARGET_SYS}-ld"
       export NM_FOR_TARGET="${TARGET_SYS}-nm"
       export CC_FOR_TARGET="${CCACHE} ${TARGET_SYS}-gcc ${TARGET_CC_ARCH}"
+       export OBJDUMP_FOR_TARGET="${TARGET_SYS}-objdump"
+       export OBJCOPY_FOR_TARGET="${TARGET_SYS}-objcopy"
+       export STRIP_FOR_TARGET="${TARGET_SYS}-strip"
+       # Make sure we use GMP/MPFR statically
+       sed -i 's/^\(HOST_GMPLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.tpl
+       sed -i 's/^\(HOST_GMPLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.in
+       sed -i 's/^\(HOST_PPLLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.tpl
+       sed -i 's/^\(HOST_PPLLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.in
+       sed -i 's/^\(HOST_LIBELFLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.tpl
+       sed -i 's/^\(HOST_LIBELFLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.in }

 LIBGCCS_VAR = "-lgcc_s"

meta/recipes-devtools/gcc/gcc-configure-sdk.inc +0 -0
index 756e74e..3eb8992 100644
@@ -39,6 +39,14 @@ do_configure () {

       export CPPFLAGS_FOR_BUILD="${BUILD_CPPFLAGS}"
       export CXXFLAGS_FOR_BUILD="${BUILD_CXXFLAGS}"
       export LDFLAGS_FOR_BUILD="${BUILD_LDFLAGS}"
+       export CC_FOR_TARGET="${CCACHE} ${TARGET_SYS}-gcc ${TARGET_CC_ARCH}"
+       # Make sure we use GMP/MPFR statically
+       sed -i 's/^\(HOST_GMPLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.tpl
+       sed -i 's/^\(HOST_GMPLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.in
+       sed -i 's/^\(HOST_PPLLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.tpl
+       sed -i 's/^\(HOST_PPLLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.in
+       sed -i 's/^\(HOST_LIBELFLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.tpl
+       sed -i 's/^\(HOST_LIBELFLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.in (cd ${S} && gnu-configize) || die "failure running gnu-configize"
       oe_runconf
 }

meta/recipes-devtools/gcc/gcc-cross-canadian_4.3.3.bb +0 -0
index d420f80..8bf07d7 100644
@@ -5,7 +5,7 @@ require gcc-cross-canadian.inc

 require gcc-configure-sdk.inc
 require gcc-package-sdk.inc

meta/recipes-devtools/gcc/gcc-cross-canadian_4.3.3.bb +1 -1
-PR = "r20"
+PR = "r21"

 DEPENDS += "gmp-nativesdk mpfr-nativesdk"
 RDEPENDS_${PN} += "mpfr-nativesdk"

meta/recipes-devtools/gcc/gcc-cross-canadian_4.5.1.bb +0 -0
index 3eea4bc..92708d4 100644
@@ -5,7 +5,7 @@ require gcc-cross-canadian.inc

 require gcc-configure-sdk.inc
 require gcc-package-sdk.inc

meta/recipes-devtools/gcc/gcc-cross-canadian_4.5.1.bb +1 -1
-PR = "r3"
+PR = "r4"

 DEPENDS += "gmp-nativesdk mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk" RDEPENDS_${PN} += "mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk"

meta/recipes-devtools/gcc/gcc-cross-initial_4.3.3.bb +0 -0
index 28ac1ab..ef52845 100644
@@ -1,5 +1,5 @@

 require gcc-cross_${PV}.bb
 require gcc-cross-initial.inc

meta/recipes-devtools/gcc/gcc-cross-initial_4.3.3.bb +1 -1
-PR = "r5"
+PR = "r6"
meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb +0 -0
index b2c257d..38e0964 100644
@@ -1,5 +1,5 @@

 require gcc-cross_${PV}.bb
 require gcc-cross-initial.inc

meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb +1 -1
-PR = "r2"
+PR = "r3"
meta/recipes-devtools/gcc/gcc-cross-intermediate_4.3.3.bb +0 -0
index a8473b0..deeee37 100644
@@ -1,4 +1,4 @@

 require gcc-cross_${PV}.bb
 require gcc-cross-intermediate.inc

meta/recipes-devtools/gcc/gcc-cross-intermediate_4.3.3.bb +1 -1
-PR = "r5"
+PR = "r6"
meta/recipes-devtools/gcc/gcc-cross-intermediate_4.5.1.bb +0 -0
index e65d5df..9a30cb5 100644
@@ -1,4 +1,4 @@

 require gcc-cross_${PV}.bb
 require gcc-cross-intermediate.inc

meta/recipes-devtools/gcc/gcc-cross-intermediate_4.5.1.bb +1 -1
-PR = "r3"
+PR = "r4"
meta/recipes-devtools/gcc/gcc-cross-kernel-3.4.4_csl-arm-2005q3.bb +0 -0
index 88e3842..462104f 100644
@@ -9,7 +9,7 @@ require gcc-cross-kernel.inc
 

 DEFAULT_PREFERENCE = "-1"

meta/recipes-devtools/gcc/gcc-cross-kernel-3.4.4_csl-arm-2005q3.bb +1 -1
-PR = "r4"
+PR = "r5"

 SRC_URI += "file://gcc-3.4.4-makefile-fix.patch;patch=1"

meta/recipes-devtools/gcc/gcc-cross_4.3.3.bb +1 -1
index 5eaac5f..1a982f5 100644
@@ -1,4 +1,4 @@
-PR = "r17"
+PR = "r18"
 

 require gcc-${PV}.inc
 require gcc-cross4.inc

meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb +1 -1
index 399cdf9..78bb05a 100644
@@ -1,4 +1,4 @@
-PR = "r2"
+PR = "r3"
 

 require gcc-${PV}.inc
 require gcc-cross4.inc

meta/recipes-devtools/gcc/gcc-cross_csl-arm-2008q1.bb +1 -1
index 89534f1..0e7a1ee 100644
@@ -1,4 +1,4 @@
-PR = "r5"
+PR = "r6"
 

 require gcc-csl-arm-2008q1.inc
 require gcc-cross4.inc

meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.3.3.bb +0 -0
index b42de47..d3ddcb1 100644
@@ -1,3 +1,3 @@

 require gcc-cross-initial_${PV}.bb
 require gcc-crosssdk-initial.inc

meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.3.3.bb +1 -1
-PR = "r6"
+PR = "r7"
meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bb +0 -0
index 240caf5..fec53b9 100644
@@ -1,4 +1,4 @@

 require gcc-cross-initial_${PV}.bb
 require gcc-crosssdk-initial.inc

meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bb +1 -1
-PR = "r2"
+PR = "r3"
meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.3.3.bb +0 -0
index cd1f966..2be05f1 100644
@@ -1,3 +1,3 @@

 require gcc-cross-intermediate_${PV}.bb
 require gcc-crosssdk-intermediate.inc

meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.3.3.bb +1 -1
-PR = "r8"
+PR = "r9"
meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.bb +0 -0
index a6653dd..161d870 100644
@@ -1,4 +1,4 @@

 require gcc-cross-intermediate_${PV}.bb
 require gcc-crosssdk-intermediate.inc

meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.bb +1 -1
-PR = "r2"
+PR = "r3"
meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb +0 -0
index 129e8d3..7069088 100644
@@ -1,4 +1,4 @@

 require gcc-cross_${PV}.bb
 require gcc-crosssdk.inc

meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb +1 -1
-PR = "r2"
+PR = "r3"
meta/recipes-devtools/gcc/gcc-runtime_4.3.3.bb +1 -1
index 99f927a..2f5cfb5 100644
@@ -1,4 +1,4 @@
-PR = "r18"
+PR = "r19"
 

 require gcc-${PV}.inc
 require gcc-configure-runtime.inc

meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb +1 -1
index 093f9bf..c1e680d 100644
@@ -1,4 +1,4 @@
-PR = "r2"
+PR = "r3"
 

 require gcc-${PV}.inc
 require gcc-configure-runtime.inc

meta/recipes-devtools/gcc/gcc_4.3.3.bb +1 -1
index f0471d4..ba6e7b2 100644
@@ -1,4 +1,4 @@
-PR = "r11"
+PR = "r12"
 

 require gcc-${PV}.inc
 require gcc-configure-target.inc

meta/recipes-devtools/gcc/gcc_4.5.1.bb +1 -1
index 919d4b0..25e455c 100644
@@ -1,4 +1,4 @@
-PR = "r2"
+PR = "r3"

 require gcc-${PV}.inc
 require gcc-configure-target.inc
 require gcc-package-target.inc

meta/recipes-devtools/gcc/gcc_csl-arm-2008q1.bb +1 -1
index cc7540a..2df12ef 100644
@@ -1,4 +1,4 @@
-PR = "r3"
+PR = "r4"
 

 require gcc-${PV}.inc
 require gcc-configure-target.inc

meta/recipes-devtools/gcc/libgcc_4.5.1.bb +0 -0
index b6cf268..3f7ce0a 100644
@@ -1,6 +1,6 @@

 require gcc-${PV}.inc

meta/recipes-devtools/gcc/libgcc_4.5.1.bb +1 -1
-PR = "r0"
+PR = "r1"

 INHIBIT_DEFAULT_DEPS = "1"
 DEPENDS = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++" --
1.7.4.1

author
#23 lore raw

Re: [PATCHv3 5/6] poky-default.inc: Change LINUXLIBCVERSION "2.6.36" -> "2.6.37.2"

In reply to Khem Raj

ping

Quoted 22 lines · Khem Raj

---
 meta/conf/distro/include/poky-default.inc |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
meta/conf/distro/include/poky-default.inc +0 -0
index ef9f5cf..3ec5e1d 100644
@@ -19,7 +19,7 @@ GCCVERSION ?= "4.5.1"

 SDKGCCVERSION ?= "4.5.1"
 BINUVERSION ?= "2.21"
 GLIBCVERSION ?= "2.10.1"

meta/conf/distro/include/poky-default.inc +1 -1
-LINUXLIBCVERSION ?= "2.6.36"
+LINUXLIBCVERSION ?= "2.6.37.2"

 # Temporary preferred version overrides for PPC PREFERRED_VERSION_u-boot-mkimage-native_powerpc ?= "2009.08" --
1.7.4.1

author
#3 lore raw

Re: [PATCHv3 2/6] distro_tracking_fields.inc: Use 2.6.37.2 instead of 2.6.36 for linux-libc-headers

In reply to Khem Raj

ping

Quoted 26 lines · Khem Raj

---
 .../conf/distro/include/distro_tracking_fields.inc |    6 +++---

 1 files changed, 3 insertions(+), 3 deletions(-)
meta/conf/distro/include/distro_tracking_fields.inc +0 -0
index 1dab90a..beb18e2 100644
@@ -2884,9 +2884,9 @@ RECIPE_LAST_UPDATE_pn-libtool = "Nov 8, 2010"

 RECIPE_MAINTAINER_pn-libtool = "Nitin A Kamble <[email protected]>"

 RECIPE_STATUS_pn-linux-libc-headers="green"

meta/conf/distro/include/distro_tracking_fields.inc +3 -3
-RECIPE_LATEST_VERSION_pn-linux-libc-headers="2.6.36"
-RECIPE_LAST_UPDATE_pn-linux-libc-headers = "Nov 8, 2010"
-RECIPE_MAINTAINER_pn-linux-libc-headers = "Nitin A Kamble <[email protected]>"
+RECIPE_LATEST_VERSION_pn-linux-libc-headers="2.6.37.2"
+RECIPE_LAST_UPDATE_pn-linux-libc-headers = "Mar 1, 2011"
+RECIPE_MAINTAINER_pn-linux-libc-headers = "Khem Raj <[email protected]>"

 RECIPE_STATUS_pn-lsof="green"
 RECIPE_LATEST_VERSION_pn-lsof="4.84"
--
1.7.4.1

#24 lore raw

Re: [PATCHv3 5/6] poky-default.inc: Change LINUXLIBCVERSION "2.6.36" -> "2.6.37.2"

In reply to Khem Raj
Quoted 10 lines · Khem Raj
---
 meta/conf/distro/include/poky-default.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
meta/conf/distro/include/poky-default.inc +0 -0
index ef9f5cf..3ec5e1d 100644

meta/conf/distro/include/poky-default.inc GCCVERSION ?= "4.5.1" · line 25

Quoted 8 lines
meta/conf/distro/include/poky-default.inc +1 -1
@@ -19,7 +19,7 @@ GCCVERSION ?= "4.5.1"
 SDKGCCVERSION ?= "4.5.1"
 BINUVERSION ?= "2.21"
 GLIBCVERSION ?= "2.10.1"
-LINUXLIBCVERSION ?= "2.6.36"
+LINUXLIBCVERSION ?= "2.6.37.2"
 
 # Temporary preferred version overrides for PPC
 PREFERRED_VERSION_u-boot-mkimage-native_powerpc ?= "2009.08"

Merged to master, thanks.

Richard

#4 lore raw

Re: [PATCHv3 2/6] distro_tracking_fields.inc: Use 2.6.37.2 instead of 2.6.36 for linux-libc-headers

In reply to Khem Raj
Quoted 21 lines · Khem Raj
Quoted 20 lines · Khem Raj
---
 .../conf/distro/include/distro_tracking_fields.inc |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
meta/conf/distro/include/distro_tracking_fields.inc +3 -3
index 1dab90a..beb18e2 100644
@@ -2884,9 +2884,9 @@ RECIPE_LAST_UPDATE_pn-libtool = "Nov 8, 2010"
 RECIPE_MAINTAINER_pn-libtool = "Nitin A Kamble <[email protected]>"
 
 RECIPE_STATUS_pn-linux-libc-headers="green"
-RECIPE_LATEST_VERSION_pn-linux-libc-headers="2.6.36"
-RECIPE_LAST_UPDATE_pn-linux-libc-headers = "Nov 8, 2010"
-RECIPE_MAINTAINER_pn-linux-libc-headers = "Nitin A Kamble <[email protected]>"
+RECIPE_LATEST_VERSION_pn-linux-libc-headers="2.6.37.2"
+RECIPE_LAST_UPDATE_pn-linux-libc-headers = "Mar 1, 2011"
+RECIPE_MAINTAINER_pn-linux-libc-headers = "Khem Raj <[email protected]>"
 
Quoted 4 lines
Quoted 4 lines
meta/conf/distro/include/distro_tracking_fields.inc +0 -1
 RECIPE_STATUS_pn-lsof="green"
 RECIPE_LATEST_VERSION_pn-lsof="4.84"
--

1.7.4.1

With this patch, I need to work out who "owns" these tracking fields going forwards and what the policy is regarding them. I'd like some input from Saul on this although it might not happen until next week as we're both travelling.

Cheers,

Richard

#7 lore raw

Re: [PATCHv3 3/6] gcc: Statically link in support libraries e.g. libmpfr libgmp etc.

In reply to Khem Raj
Quoted 1 line · Khem Raj

ping any opinion on this patch ?

This change looks rather hacky and I'd really like to understand more about why this is needed and whether there is a better way we could ensure the right flags get passed around. Can you provide more details about whats going on with this. Obviously this change as it stands isn't acceptable to upstream gcc and I'd like to see if we could find one that was.

Cheers,

Richard

Quoted 328 lines · Khem Raj
Quoted 318 lines

* This is helpful to get consistent behaviour with gcc on different hosts and linking the libraries in for cross gcc recipes should not be increasing the binary size alarmingly

---
 meta/recipes-devtools/gcc/gcc-configure-common.inc |    7 +++++++
 meta/recipes-devtools/gcc/gcc-configure-cross.inc  |   10 ++++++++++
 meta/recipes-devtools/gcc/gcc-configure-sdk.inc    |    8 ++++++++
 .../gcc/gcc-cross-canadian_4.3.3.bb                |    2 +-
 .../gcc/gcc-cross-canadian_4.5.1.bb                |    2 +-
 .../gcc/gcc-cross-initial_4.3.3.bb                 |    2 +-
 .../gcc/gcc-cross-initial_4.5.1.bb                 |    2 +-
 .../gcc/gcc-cross-intermediate_4.3.3.bb            |    2 +-
 .../gcc/gcc-cross-intermediate_4.5.1.bb            |    2 +-
 .../gcc/gcc-cross-kernel-3.4.4_csl-arm-2005q3.bb   |    2 +-
 meta/recipes-devtools/gcc/gcc-cross_4.3.3.bb       |    2 +-
 meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb       |    2 +-
 .../gcc/gcc-cross_csl-arm-2008q1.bb                |    2 +-
 .../gcc/gcc-crosssdk-initial_4.3.3.bb              |    2 +-
 .../gcc/gcc-crosssdk-initial_4.5.1.bb              |    2 +-
 .../gcc/gcc-crosssdk-intermediate_4.3.3.bb         |    2 +-
 .../gcc/gcc-crosssdk-intermediate_4.5.1.bb         |    2 +-
 meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb    |    2 +-
 meta/recipes-devtools/gcc/gcc-runtime_4.3.3.bb     |    2 +-
 meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb     |    2 +-
 meta/recipes-devtools/gcc/gcc_4.3.3.bb             |    2 +-
 meta/recipes-devtools/gcc/gcc_4.5.1.bb             |    2 +-
 meta/recipes-devtools/gcc/gcc_csl-arm-2008q1.bb    |    2 +-
 meta/recipes-devtools/gcc/libgcc_4.5.1.bb          |    2 +-
 24 files changed, 46 insertions(+), 21 deletions(-)
meta/recipes-devtools/gcc/gcc-configure-common.inc +7 -0
index 4393777..cdb69fb 100644
@@ -85,6 +85,11 @@ do_configure () {
       export CXXFLAGS_FOR_BUILD="${BUILD_CXXFLAGS}"
       export LDFLAGS_FOR_BUILD="${BUILD_LDFLAGS}"
       export ARCH_FLAGS_FOR_TARGET="${ARCH_FLAGS_FOR_TARGET}"
+
+        # Make sure LDFLAGS are honored.
+        sed -i 's/^LDFLAGS = $/LDFLAGS = @LDFLAGS@/' ${S}/Makefile.in
+        sed -i 's/^LDFLAGS = $/LDFLAGS = @LDFLAGS@/' ${S}/Makefile.tpl
+
       (cd ${S} && gnu-configize) || die "failure running gnu-configize"
 
       # teach gcc to find correct target includedir when checking libc ssp support
@@ -108,5 +113,7 @@ do_configure () {
       echo "#endif /* ! GCC_DEFAULTS_H */" >> ${S}/gcc/defaults.h.new
       mv ${S}/gcc/defaults.h.new ${S}/gcc/defaults.h
       oe_runconf
+        # make sure that no @LDFLAG@ is left in the generated Makefile
+        sed -i "s/@LDFLAGS@//g" ${B}/Makefile
 }
 
meta/recipes-devtools/gcc/gcc-configure-cross.inc +10 -0
index 346d164..200cbe2 100644
@@ -16,6 +16,16 @@ do_compile_prepend () {
       export LD_FOR_TARGET="${TARGET_SYS}-ld"
       export NM_FOR_TARGET="${TARGET_SYS}-nm"
       export CC_FOR_TARGET="${CCACHE} ${TARGET_SYS}-gcc ${TARGET_CC_ARCH}"
+       export OBJDUMP_FOR_TARGET="${TARGET_SYS}-objdump"
+       export OBJCOPY_FOR_TARGET="${TARGET_SYS}-objcopy"
+       export STRIP_FOR_TARGET="${TARGET_SYS}-strip"
+       # Make sure we use GMP/MPFR statically
+       sed -i 's/^\(HOST_GMPLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.tpl
+       sed -i 's/^\(HOST_GMPLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.in
+       sed -i 's/^\(HOST_PPLLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.tpl
+       sed -i 's/^\(HOST_PPLLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.in
+       sed -i 's/^\(HOST_LIBELFLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.tpl
+       sed -i 's/^\(HOST_LIBELFLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.in
 }
 
 LIBGCCS_VAR = "-lgcc_s"
meta/recipes-devtools/gcc/gcc-configure-sdk.inc +8 -0
index 756e74e..3eb8992 100644
@@ -39,6 +39,14 @@ do_configure () {
       export CPPFLAGS_FOR_BUILD="${BUILD_CPPFLAGS}"
       export CXXFLAGS_FOR_BUILD="${BUILD_CXXFLAGS}"
       export LDFLAGS_FOR_BUILD="${BUILD_LDFLAGS}"
+       export CC_FOR_TARGET="${CCACHE} ${TARGET_SYS}-gcc ${TARGET_CC_ARCH}"
+       # Make sure we use GMP/MPFR statically
+       sed -i 's/^\(HOST_GMPLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.tpl
+       sed -i 's/^\(HOST_GMPLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.in
+       sed -i 's/^\(HOST_PPLLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.tpl
+       sed -i 's/^\(HOST_PPLLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.in
+       sed -i 's/^\(HOST_LIBELFLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.tpl
+       sed -i 's/^\(HOST_LIBELFLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.in
       (cd ${S} && gnu-configize) || die "failure running gnu-configize"
       oe_runconf
 }
meta/recipes-devtools/gcc/gcc-cross-canadian_4.3.3.bb +1 -1
index d420f80..8bf07d7 100644
@@ -5,7 +5,7 @@ require gcc-cross-canadian.inc
 require gcc-configure-sdk.inc
 require gcc-package-sdk.inc
 
-PR = "r20"
+PR = "r21"
 
 DEPENDS += "gmp-nativesdk mpfr-nativesdk"
 RDEPENDS_${PN} += "mpfr-nativesdk"
meta/recipes-devtools/gcc/gcc-cross-canadian_4.5.1.bb +1 -1
index 3eea4bc..92708d4 100644
@@ -5,7 +5,7 @@ require gcc-cross-canadian.inc
 require gcc-configure-sdk.inc
 require gcc-package-sdk.inc
 
-PR = "r3"
+PR = "r4"
 
 DEPENDS += "gmp-nativesdk mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk"
 RDEPENDS_${PN} += "mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk"
meta/recipes-devtools/gcc/gcc-cross-initial_4.3.3.bb +1 -1
index 28ac1ab..ef52845 100644
@@ -1,5 +1,5 @@
 require gcc-cross_${PV}.bb
 require gcc-cross-initial.inc
 
-PR = "r5"
+PR = "r6"
 
meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb +1 -1
index b2c257d..38e0964 100644
@@ -1,5 +1,5 @@
 require gcc-cross_${PV}.bb
 require gcc-cross-initial.inc
 
-PR = "r2"
+PR = "r3"
 
meta/recipes-devtools/gcc/gcc-cross-intermediate_4.3.3.bb +1 -1
index a8473b0..deeee37 100644
@@ -1,4 +1,4 @@
 require gcc-cross_${PV}.bb
 require gcc-cross-intermediate.inc
-PR = "r5"
+PR = "r6"
 
meta/recipes-devtools/gcc/gcc-cross-intermediate_4.5.1.bb +1 -1
index e65d5df..9a30cb5 100644
@@ -1,4 +1,4 @@
 require gcc-cross_${PV}.bb
 require gcc-cross-intermediate.inc
-PR = "r3"
+PR = "r4"
 
meta/recipes-devtools/gcc/gcc-cross-kernel-3.4.4_csl-arm-2005q3.bb +1 -1
index 88e3842..462104f 100644
@@ -9,7 +9,7 @@ require gcc-cross-kernel.inc
 
 DEFAULT_PREFERENCE = "-1"
 
-PR = "r4"
+PR = "r5"
 
 SRC_URI += "file://gcc-3.4.4-makefile-fix.patch;patch=1"
 
meta/recipes-devtools/gcc/gcc-cross_4.3.3.bb +1 -1
index 5eaac5f..1a982f5 100644
@@ -1,4 +1,4 @@
-PR = "r17"
+PR = "r18"
 
 require gcc-${PV}.inc
 require gcc-cross4.inc
meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb +1 -1
index 399cdf9..78bb05a 100644
@@ -1,4 +1,4 @@
-PR = "r2"
+PR = "r3"
 
 require gcc-${PV}.inc
 require gcc-cross4.inc
meta/recipes-devtools/gcc/gcc-cross_csl-arm-2008q1.bb +1 -1
index 89534f1..0e7a1ee 100644
@@ -1,4 +1,4 @@
-PR = "r5"
+PR = "r6"
 
 require gcc-csl-arm-2008q1.inc
 require gcc-cross4.inc
meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.3.3.bb +1 -1
index b42de47..d3ddcb1 100644
@@ -1,3 +1,3 @@
 require gcc-cross-initial_${PV}.bb
 require gcc-crosssdk-initial.inc
-PR = "r6"
+PR = "r7"
meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bb +1 -1
index 240caf5..fec53b9 100644
@@ -1,4 +1,4 @@
 require gcc-cross-initial_${PV}.bb
 require gcc-crosssdk-initial.inc
 
-PR = "r2"
+PR = "r3"
meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.3.3.bb +1 -1
index cd1f966..2be05f1 100644
@@ -1,3 +1,3 @@
 require gcc-cross-intermediate_${PV}.bb
 require gcc-crosssdk-intermediate.inc
-PR = "r8"
+PR = "r9"
meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.bb +1 -1
index a6653dd..161d870 100644
@@ -1,4 +1,4 @@
 require gcc-cross-intermediate_${PV}.bb
 require gcc-crosssdk-intermediate.inc
 
-PR = "r2"
+PR = "r3"
meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb +1 -1
index 129e8d3..7069088 100644
@@ -1,4 +1,4 @@
 require gcc-cross_${PV}.bb
 require gcc-crosssdk.inc
 
-PR = "r2"
+PR = "r3"
meta/recipes-devtools/gcc/gcc-runtime_4.3.3.bb +1 -1
index 99f927a..2f5cfb5 100644
@@ -1,4 +1,4 @@
-PR = "r18"
+PR = "r19"
 
 require gcc-${PV}.inc
 require gcc-configure-runtime.inc
meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb +1 -1
index 093f9bf..c1e680d 100644
@@ -1,4 +1,4 @@
-PR = "r2"
+PR = "r3"
 
 require gcc-${PV}.inc
 require gcc-configure-runtime.inc
meta/recipes-devtools/gcc/gcc_4.3.3.bb +1 -1
index f0471d4..ba6e7b2 100644
@@ -1,4 +1,4 @@
-PR = "r11"
+PR = "r12"
 
 require gcc-${PV}.inc
 require gcc-configure-target.inc
meta/recipes-devtools/gcc/gcc_4.5.1.bb +1 -1
index 919d4b0..25e455c 100644
@@ -1,4 +1,4 @@
-PR = "r2"
+PR = "r3"
 require gcc-${PV}.inc
 require gcc-configure-target.inc
 require gcc-package-target.inc
meta/recipes-devtools/gcc/gcc_csl-arm-2008q1.bb +1 -1
index cc7540a..2df12ef 100644
@@ -1,4 +1,4 @@
-PR = "r3"
+PR = "r4"
 
 require gcc-${PV}.inc
 require gcc-configure-target.inc
meta/recipes-devtools/gcc/libgcc_4.5.1.bb +1 -2
index b6cf268..3f7ce0a 100644
@@ -1,6 +1,6 @@
 require gcc-${PV}.inc
 
-PR = "r0"
+PR = "r1"
 
 INHIBIT_DEFAULT_DEPS = "1"
 DEPENDS = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++"
--
Quoted 3 lines

1.7.4.1

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

author
#8 lore raw

Re: [PATCHv3 3/6] gcc: Statically link in support libraries e.g. libmpfr libgmp etc.

Quoted 9 lines · Richard Purdie
Quoted 1 line · Khem Raj

ping any opinion on this patch ?

This change looks rather hacky and I'd really like to understand more about why this is needed and whether there is a better way we could ensure the right flags get passed around. Can you provide more details about whats going on with this. Obviously this change as it stands isn't acceptable to upstream gcc and I'd like to see if we could find one that was.

this is because the supporting libraries like mpc mpfr that are needed by gcc itself to run
we might have different versions of these libraries. So depending upon shared objects
would mean we need to find same shared objects where say the SDK is installed so either we ship the whole baggage or we link it in statically. This patch makes those libs to
linked in statically and cross gcc wont have dependencies on these libs anymore so
it can run on all hosts pretty much.

Another different way to do it would be to build these libraries as part of gcc-cross build in unified tree
and then gcc would automatically link in the static versions of these libraries. As a downside
if the native versions of these libraries are needed elesewhere then we will build that lib twice.
But it should be cleaner IMO to just build them intree with gcc.

Quoted 341 lines

Cheers,

Richard

Quoted 316 lines · Khem Raj
Quoted 315 lines

* This is helpful to get consistent behaviour with gcc on different hosts and linking the libraries in for cross gcc recipes should not be increasing the binary size alarmingly

---
 meta/recipes-devtools/gcc/gcc-configure-common.inc |    7 +++++++ meta/recipes-devtools/gcc/gcc-configure-cross.inc  |   10 ++++++++++ meta/recipes-devtools/gcc/gcc-configure-sdk.inc    |    8 ++++++++

 .../gcc/gcc-cross-canadian_4.3.3.bb                |    2 +-
 .../gcc/gcc-cross-canadian_4.5.1.bb                |    2 +-
 .../gcc/gcc-cross-initial_4.3.3.bb                 |    2 +-
 .../gcc/gcc-cross-initial_4.5.1.bb                 |    2 +-

 .../gcc/gcc-cross-intermediate_4.3.3.bb            |    2 +- .../gcc/gcc-cross-intermediate_4.5.1.bb            |    2 +- .../gcc/gcc-cross-kernel-3.4.4_csl-arm-2005q3.bb   |    2 +- meta/recipes-devtools/gcc/gcc-cross_4.3.3.bb       |    2 +- meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb       |    2 +- .../gcc/gcc-cross_csl-arm-2008q1.bb                |    2 +- .../gcc/gcc-crosssdk-initial_4.3.3.bb              |    2 +- .../gcc/gcc-crosssdk-initial_4.5.1.bb              |    2 +- .../gcc/gcc-crosssdk-intermediate_4.3.3.bb         |    2 +- .../gcc/gcc-crosssdk-intermediate_4.5.1.bb         |    2 +-

 meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb    |    2 +-
 meta/recipes-devtools/gcc/gcc-runtime_4.3.3.bb     |    2 +-
 meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb     |    2 +-

 meta/recipes-devtools/gcc/gcc_4.3.3.bb             |    2 +- meta/recipes-devtools/gcc/gcc_4.5.1.bb             |    2 +- meta/recipes-devtools/gcc/gcc_csl-arm-2008q1.bb    |    2 +- meta/recipes-devtools/gcc/libgcc_4.5.1.bb          |    2 +-

 24 files changed, 46 insertions(+), 21 deletions(-)
meta/recipes-devtools/gcc/gcc-configure-common.inc +0 -0
index 4393777..cdb69fb 100644
@@ -85,6 +85,11 @@ do_configure () {

       export CXXFLAGS_FOR_BUILD="${BUILD_CXXFLAGS}" export LDFLAGS_FOR_BUILD="${BUILD_LDFLAGS}" export ARCH_FLAGS_FOR_TARGET="${ARCH_FLAGS_FOR_TARGET}"

meta/recipes-devtools/gcc/gcc-configure-common.inc +5 -0
+
+        # Make sure LDFLAGS are honored.
+        sed -i 's/^LDFLAGS = $/LDFLAGS = @LDFLAGS@/' ${S}/Makefile.in
+        sed -i 's/^LDFLAGS = $/LDFLAGS = @LDFLAGS@/' ${S}/Makefile.tpl
+

       (cd ${S} && gnu-configize) || die "failure running gnu-configize"

       # teach gcc to find correct target includedir when checking libc ssp support
meta/recipes-devtools/gcc/gcc-configure-common.inc +0 -0
@@ -108,5 +113,7 @@ do_configure () {

       echo "#endif /* ! GCC_DEFAULTS_H */" >> ${S}/gcc/defaults.h.new mv ${S}/gcc/defaults.h.new ${S}/gcc/defaults.h oe_runconf
+        # make sure that no @LDFLAG@ is left in the generated Makefile
+        sed -i "s/@LDFLAGS@//g" ${B}/Makefile
 }

meta/recipes-devtools/gcc/gcc-configure-cross.inc +0 -0
index 346d164..200cbe2 100644
@@ -16,6 +16,16 @@ do_compile_prepend () {

       export LD_FOR_TARGET="${TARGET_SYS}-ld"
       export NM_FOR_TARGET="${TARGET_SYS}-nm"
       export CC_FOR_TARGET="${CCACHE} ${TARGET_SYS}-gcc ${TARGET_CC_ARCH}"
+       export OBJDUMP_FOR_TARGET="${TARGET_SYS}-objdump"
+       export OBJCOPY_FOR_TARGET="${TARGET_SYS}-objcopy"
+       export STRIP_FOR_TARGET="${TARGET_SYS}-strip"
+       # Make sure we use GMP/MPFR statically
+       sed -i 's/^\(HOST_GMPLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.tpl
+       sed -i 's/^\(HOST_GMPLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.in
+       sed -i 's/^\(HOST_PPLLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.tpl
+       sed -i 's/^\(HOST_PPLLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.in
+       sed -i 's/^\(HOST_LIBELFLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.tpl
+       sed -i 's/^\(HOST_LIBELFLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.in }

 LIBGCCS_VAR = "-lgcc_s"

meta/recipes-devtools/gcc/gcc-configure-sdk.inc +0 -0
index 756e74e..3eb8992 100644
@@ -39,6 +39,14 @@ do_configure () {

       export CPPFLAGS_FOR_BUILD="${BUILD_CPPFLAGS}"
       export CXXFLAGS_FOR_BUILD="${BUILD_CXXFLAGS}"
       export LDFLAGS_FOR_BUILD="${BUILD_LDFLAGS}"
+       export CC_FOR_TARGET="${CCACHE} ${TARGET_SYS}-gcc ${TARGET_CC_ARCH}"
+       # Make sure we use GMP/MPFR statically
+       sed -i 's/^\(HOST_GMPLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.tpl
+       sed -i 's/^\(HOST_GMPLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.in
+       sed -i 's/^\(HOST_PPLLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.tpl
+       sed -i 's/^\(HOST_PPLLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.in
+       sed -i 's/^\(HOST_LIBELFLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.tpl
+       sed -i 's/^\(HOST_LIBELFLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.in (cd ${S} && gnu-configize) || die "failure running gnu-configize"
       oe_runconf
 }

meta/recipes-devtools/gcc/gcc-cross-canadian_4.3.3.bb +0 -0
index d420f80..8bf07d7 100644
@@ -5,7 +5,7 @@ require gcc-cross-canadian.inc

 require gcc-configure-sdk.inc
 require gcc-package-sdk.inc

meta/recipes-devtools/gcc/gcc-cross-canadian_4.3.3.bb +1 -1
-PR = "r20"
+PR = "r21"

 DEPENDS += "gmp-nativesdk mpfr-nativesdk"
 RDEPENDS_${PN} += "mpfr-nativesdk"

meta/recipes-devtools/gcc/gcc-cross-canadian_4.5.1.bb +0 -0
index 3eea4bc..92708d4 100644
@@ -5,7 +5,7 @@ require gcc-cross-canadian.inc

 require gcc-configure-sdk.inc
 require gcc-package-sdk.inc

meta/recipes-devtools/gcc/gcc-cross-canadian_4.5.1.bb +1 -1
-PR = "r3"
+PR = "r4"

 DEPENDS += "gmp-nativesdk mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk" RDEPENDS_${PN} += "mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk"

meta/recipes-devtools/gcc/gcc-cross-initial_4.3.3.bb +0 -0
index 28ac1ab..ef52845 100644
@@ -1,5 +1,5 @@

 require gcc-cross_${PV}.bb
 require gcc-cross-initial.inc

meta/recipes-devtools/gcc/gcc-cross-initial_4.3.3.bb +1 -1
-PR = "r5"
+PR = "r6"
meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb +0 -0
index b2c257d..38e0964 100644
@@ -1,5 +1,5 @@

 require gcc-cross_${PV}.bb
 require gcc-cross-initial.inc

meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb +1 -1
-PR = "r2"
+PR = "r3"
meta/recipes-devtools/gcc/gcc-cross-intermediate_4.3.3.bb +0 -0
index a8473b0..deeee37 100644
@@ -1,4 +1,4 @@

 require gcc-cross_${PV}.bb
 require gcc-cross-intermediate.inc

meta/recipes-devtools/gcc/gcc-cross-intermediate_4.3.3.bb +1 -1
-PR = "r5"
+PR = "r6"
meta/recipes-devtools/gcc/gcc-cross-intermediate_4.5.1.bb +0 -0
index e65d5df..9a30cb5 100644
@@ -1,4 +1,4 @@

 require gcc-cross_${PV}.bb
 require gcc-cross-intermediate.inc

meta/recipes-devtools/gcc/gcc-cross-intermediate_4.5.1.bb +1 -1
-PR = "r3"
+PR = "r4"
meta/recipes-devtools/gcc/gcc-cross-kernel-3.4.4_csl-arm-2005q3.bb +0 -0
index 88e3842..462104f 100644
@@ -9,7 +9,7 @@ require gcc-cross-kernel.inc
 

 DEFAULT_PREFERENCE = "-1"

meta/recipes-devtools/gcc/gcc-cross-kernel-3.4.4_csl-arm-2005q3.bb +1 -1
-PR = "r4"
+PR = "r5"

 SRC_URI += "file://gcc-3.4.4-makefile-fix.patch;patch=1"

meta/recipes-devtools/gcc/gcc-cross_4.3.3.bb +1 -1
index 5eaac5f..1a982f5 100644
@@ -1,4 +1,4 @@
-PR = "r17"
+PR = "r18"
 

 require gcc-${PV}.inc
 require gcc-cross4.inc

meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb +1 -1
index 399cdf9..78bb05a 100644
@@ -1,4 +1,4 @@
-PR = "r2"
+PR = "r3"
 

 require gcc-${PV}.inc
 require gcc-cross4.inc

meta/recipes-devtools/gcc/gcc-cross_csl-arm-2008q1.bb +1 -1
index 89534f1..0e7a1ee 100644
@@ -1,4 +1,4 @@
-PR = "r5"
+PR = "r6"
 

 require gcc-csl-arm-2008q1.inc
 require gcc-cross4.inc

meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.3.3.bb +0 -0
index b42de47..d3ddcb1 100644
@@ -1,3 +1,3 @@

 require gcc-cross-initial_${PV}.bb
 require gcc-crosssdk-initial.inc

meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.3.3.bb +1 -1
-PR = "r6"
+PR = "r7"
meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bb +0 -0
index 240caf5..fec53b9 100644
@@ -1,4 +1,4 @@

 require gcc-cross-initial_${PV}.bb
 require gcc-crosssdk-initial.inc

meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bb +1 -1
-PR = "r2"
+PR = "r3"
meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.3.3.bb +0 -0
index cd1f966..2be05f1 100644
@@ -1,3 +1,3 @@

 require gcc-cross-intermediate_${PV}.bb
 require gcc-crosssdk-intermediate.inc

meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.3.3.bb +1 -1
-PR = "r8"
+PR = "r9"
meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.bb +0 -0
index a6653dd..161d870 100644
@@ -1,4 +1,4 @@

 require gcc-cross-intermediate_${PV}.bb
 require gcc-crosssdk-intermediate.inc

meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.bb +1 -1
-PR = "r2"
+PR = "r3"
meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb +0 -0
index 129e8d3..7069088 100644
@@ -1,4 +1,4 @@

 require gcc-cross_${PV}.bb
 require gcc-crosssdk.inc

meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb +1 -1
-PR = "r2"
+PR = "r3"
meta/recipes-devtools/gcc/gcc-runtime_4.3.3.bb +1 -1
index 99f927a..2f5cfb5 100644
@@ -1,4 +1,4 @@
-PR = "r18"
+PR = "r19"
 

 require gcc-${PV}.inc
 require gcc-configure-runtime.inc

meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb +1 -1
index 093f9bf..c1e680d 100644
@@ -1,4 +1,4 @@
-PR = "r2"
+PR = "r3"
 

 require gcc-${PV}.inc
 require gcc-configure-runtime.inc

meta/recipes-devtools/gcc/gcc_4.3.3.bb +1 -1
index f0471d4..ba6e7b2 100644
@@ -1,4 +1,4 @@
-PR = "r11"
+PR = "r12"
 

 require gcc-${PV}.inc
 require gcc-configure-target.inc

meta/recipes-devtools/gcc/gcc_4.5.1.bb +1 -1
index 919d4b0..25e455c 100644
@@ -1,4 +1,4 @@
-PR = "r2"
+PR = "r3"

 require gcc-${PV}.inc
 require gcc-configure-target.inc
 require gcc-package-target.inc

meta/recipes-devtools/gcc/gcc_csl-arm-2008q1.bb +1 -1
index cc7540a..2df12ef 100644
@@ -1,4 +1,4 @@
-PR = "r3"
+PR = "r4"
 

 require gcc-${PV}.inc
 require gcc-configure-target.inc

meta/recipes-devtools/gcc/libgcc_4.5.1.bb +0 -0
index b6cf268..3f7ce0a 100644
@@ -1,6 +1,6 @@

 require gcc-${PV}.inc

meta/recipes-devtools/gcc/libgcc_4.5.1.bb +1 -1
-PR = "r0"
+PR = "r1"
Quoted 12 lines
Quoted 6 lines

 INHIBIT_DEFAULT_DEPS = "1"
 DEPENDS = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++" --
1.7.4.1

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

#9 lore raw

Re: [PATCHv3 3/6] gcc: Statically link in support libraries e.g. libmpfr libgmp etc.

Quoted 12 lines · Khem Raj
Quoted 9 lines · Richard Purdie
Quoted 1 line · Khem Raj

ping any opinion on this patch ?

This change looks rather hacky and I'd really like to understand more about why this is needed and whether there is a better way we could ensure the right flags get passed around. Can you provide more details about whats going on with this. Obviously this change as it stands isn't acceptable to upstream gcc and I'd like to see if we could find one that was.

Quoted 10 lines

this is because the supporting libraries like mpc mpfr that are needed by gcc itself to run
we might have different versions of these libraries. So depending upon shared objects
would mean we need to find same shared objects where say the SDK is installed so either we ship the whole baggage or we link it in statically. This patch makes those libs to
linked in statically and cross gcc wont have dependencies on these libs anymore so
it can run on all hosts pretty much.

If you look at the way the SDK toolchain works in Poky, it automatically ships the versions of these libraries that it needs so we don't actually have this problem.

Also, looking at the patch again, was the first LDFLAGS change meant to be in there, is that related or different to the shared/static mpfr/mpc/gmp issue?

Cheers,

Richard

#10 lore raw

Re: [PATCHv3 3/6] gcc: Statically link in support libraries e.g. libmpfr libgmp etc.

Quoted 24 lines · Richard Purdie
Quoted 12 lines · Khem Raj
Quoted 9 lines · Richard Purdie
Quoted 1 line · Khem Raj

ping any opinion on this patch ?

This change looks rather hacky and I'd really like to understand more about why this is needed and whether there is a better way we could ensure the right flags get passed around. Can you provide more details about whats going on with this. Obviously this change as it stands isn't acceptable to upstream gcc and I'd like to see if we could find one that was.

Quoted 10 lines

this is because the supporting libraries like mpc mpfr that are needed by gcc itself to run
we might have different versions of these libraries. So depending upon shared objects
would mean we need to find same shared objects where say the SDK is installed so either we ship the whole baggage or we link it in statically. This patch makes those libs to
linked in statically and cross gcc wont have dependencies on these libs anymore so
it can run on all hosts pretty much.

Quoted 7 lines

If you look at the way the SDK toolchain works in Poky, it automatically ships the versions of these libraries that it needs so we don't actually have this problem.

Also, looking at the patch again, was the first LDFLAGS change meant to be in there, is that related or different to the shared/static mpfr/mpc/gmp issue?

I think it's time for someone to build one at dig at it, but are you sure they're used and shipped and not just used? That was a problem before and unless the exported bits are using a relative $ORIGIN in the link path (or we've broken relocatability, which would be another problem) there's problems today.

Signature · 2 lines
Tom Rini
Mentor Graphics Corporation
#16 lore raw

Re: [PATCHv3 3/6] gcc: Statically link in support libraries e.g. libmpfr libgmp etc.

In reply to Khem Raj
Quoted 11 lines · Khem Raj
Quoted 4 lines · Richard Purdie

If you look at the way the SDK toolchain works in Poky, it automatically ships the versions of these libraries that it needs so we don't actually have this problem.

Yes thats one way of doing it and if you got it working this is fine but there were issues when referencing
due to ORIGIN mucking. So this was better and cleaner than we link in this libs into binary itself.

The $ORIGIN stuff should be working just fine, have you checked this?

Quoted 6 lines

From
my POV even this solution can be improved by adding the support libs to gcc build itself as sources
then we dont need to muck with gcc build configury at all. I have been doing that for non OE related
SDKs and has been best so far.

As I mention above, I do think we have a solution for this which is working...

Quoted 7 lines
Quoted 3 lines

Also, looking at the patch again, was the first LDFLAGS change meant to be in there, is that related or different to the shared/static mpfr/mpc/gmp issue?

LDFLAGS are modified to get the LDFLAGS into gcc itself otherwise it would not honour
the modified LDFLAGS to pass -static option.

Hmm, I'll look at the patch again as that didn't seem to be the only LDFLAGS change but I could be wrong.

Cheers,

Richard

author
#15 lore raw

Re: [PATCHv3 3/6] gcc: Statically link in support libraries e.g. libmpfr libgmp etc.

In reply to Richard Purdie
Quoted 24 lines · Richard Purdie
Quoted 12 lines · Khem Raj
Quoted 9 lines · Richard Purdie
Quoted 1 line · Khem Raj

ping any opinion on this patch ?

This change looks rather hacky and I'd really like to understand more about why this is needed and whether there is a better way we could ensure the right flags get passed around. Can you provide more details about whats going on with this. Obviously this change as it stands isn't acceptable to upstream gcc and I'd like to see if we could find one that was.

Quoted 10 lines

this is because the supporting libraries like mpc mpfr that are needed by gcc itself to run
we might have different versions of these libraries. So depending upon shared objects
would mean we need to find same shared objects where say the SDK is installed so either we ship the whole baggage or we link it in statically. This patch makes those libs to
linked in statically and cross gcc wont have dependencies on these libs anymore so
it can run on all hosts pretty much.

Quoted 4 lines

If you look at the way the SDK toolchain works in Poky, it automatically ships the versions of these libraries that it needs so we don't actually have this problem.

Yes thats one way of doing it and if you got it working this is fine but there were issues when referencing
due to ORIGIN mucking. So this was better and cleaner than we link in this libs into binary itself. From
my POV even this solution can be improved by adding the support libs to gcc build itself as sources
then we dont need to muck with gcc build configury at all. I have been doing that for non OE related
SDKs and has been best so far.

Quoted 3 lines

Also, looking at the patch again, was the first LDFLAGS change meant to be in there, is that related or different to the shared/static mpfr/mpc/gmp issue?

LDFLAGS are modified to get the LDFLAGS into gcc itself otherwise it would not honour
the modified LDFLAGS to pass -static option.

Quoted 6 lines

Cheers,

Richard

author
#17 lore raw

Re: [PATCHv3 3/6] gcc: Statically link in support libraries e.g. libmpfr libgmp etc.

In reply to Richard Purdie
Quoted 22 lines · Richard Purdie
Quoted 11 lines · Khem Raj
Quoted 4 lines · Richard Purdie

If you look at the way the SDK toolchain works in Poky, it automatically ships the versions of these libraries that it needs so we don't actually have this problem.

Yes thats one way of doing it and if you got it working this is fine but there were issues when referencing
due to ORIGIN mucking. So this was better and cleaner than we link in this libs into binary itself.

The $ORIGIN stuff should be working just fine, have you checked this?

Quoted 6 lines

  From
my POV even this solution can be improved by adding the support libs to gcc build itself as sources
then we dont need to muck with gcc build configury at all. I have been doing that for non OE related
SDKs and has been best so far.

Quoted 2 lines

As I mention above, I do think we have a solution for this which is working...

OK I think then I should withdraw this patch.

#11 lore raw

Re: [PATCHv3 3/6] gcc: Statically link in support libraries e.g. libmpfr libgmp etc.

In reply to Tom Rini
Quoted 33 lines · Tom Rini
Quoted 24 lines · Richard Purdie
Quoted 12 lines · Khem Raj
Quoted 9 lines · Richard Purdie
Quoted 1 line · Khem Raj

ping any opinion on this patch ?

This change looks rather hacky and I'd really like to understand more about why this is needed and whether there is a better way we could ensure the right flags get passed around. Can you provide more details about whats going on with this. Obviously this change as it stands isn't acceptable to upstream gcc and I'd like to see if we could find one that was.

Quoted 10 lines

this is because the supporting libraries like mpc mpfr that are needed by gcc itself to run
we might have different versions of these libraries. So depending upon shared objects
would mean we need to find same shared objects where say the SDK is installed so either we ship the whole baggage or we link it in statically. This patch makes those libs to
linked in statically and cross gcc wont have dependencies on these libs anymore so
it can run on all hosts pretty much.

Quoted 7 lines

If you look at the way the SDK toolchain works in Poky, it automatically ships the versions of these libraries that it needs so we don't actually have this problem.

Also, looking at the patch again, was the first LDFLAGS change meant to be in there, is that related or different to the shared/static mpfr/mpc/gmp issue?

Quoted 5 lines

I think it's time for someone to build one at dig at it, but are you sure they're used and shipped and not just used? That was a problem before and unless the exported bits are using a relative $ORIGIN in the link path (or we've broken relocatability, which would be another problem) there's problems today.

They are used and shipped. As evidence I submit:

http://autobuilder.yoctoproject.org/nightly/20110311-1/toolchain/x86_64/poky-lsb-eglibc-x86_64-i586-toolchain-gmae-0.9+snapshot-20110313.tar.bz2

which I just inspected and it contains libmpc, libgmp and libmpfr.

If it doesn't work, I'd like someone to demonstrate the bug :)

Jsut to be clear, there is *one* hardcoded assumption in the way nativesdk works which is to do with the dynamic loader location. If we can link things against some generic common denominator ld.so (likely from LSB?), it should be possible to remove that limitation. Its always been intended to add that, just nobody has done it yet.

Cheers,

Richard

#12 lore raw

Re: [PATCHv3 3/6] gcc: Statically link in support libraries e.g. libmpfr libgmp etc.

Quoted 40 lines · Richard Purdie
Quoted 33 lines · Tom Rini
Quoted 24 lines · Richard Purdie
Quoted 12 lines · Khem Raj
Quoted 9 lines · Richard Purdie
Quoted 1 line · Khem Raj

ping any opinion on this patch ?

This change looks rather hacky and I'd really like to understand more about why this is needed and whether there is a better way we could ensure the right flags get passed around. Can you provide more details about whats going on with this. Obviously this change as it stands isn't acceptable to upstream gcc and I'd like to see if we could find one that was.

Quoted 10 lines

this is because the supporting libraries like mpc mpfr that are needed by gcc itself to run
we might have different versions of these libraries. So depending upon shared objects
would mean we need to find same shared objects where say the SDK is installed so either we ship the whole baggage or we link it in statically. This patch makes those libs to
linked in statically and cross gcc wont have dependencies on these libs anymore so
it can run on all hosts pretty much.

Quoted 7 lines

If you look at the way the SDK toolchain works in Poky, it automatically ships the versions of these libraries that it needs so we don't actually have this problem.

Also, looking at the patch again, was the first LDFLAGS change meant to be in there, is that related or different to the shared/static mpfr/mpc/gmp issue?

Quoted 5 lines

I think it's time for someone to build one at dig at it, but are you sure they're used and shipped and not just used? That was a problem before and unless the exported bits are using a relative $ORIGIN in the link path (or we've broken relocatability, which would be another problem) there's problems today.

Quoted 3 lines

They are used and shipped. As evidence I submit:

http://autobuilder.yoctoproject.org/nightly/20110311-1/toolchain/x86_64/poky-lsb-eglibc-x86_64-i586-toolchain-gmae-0.9+snapshot-20110313.tar.bz2

Is /opt/poky-lsb/0.9+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/i586-poky-linux/i586-poky-linux-gcc the runs on host targets the target cross compiler the user should use now? If so, you don't have relocation as the RPATH is hard-coded not $ORIGIN based. If not, can I have a pointer to the right gcc to poke at? Thanks :)

Signature · 2 lines
Tom Rini
Mentor Graphics Corporation
#13 lore raw

Re: [PATCHv3 3/6] gcc: Statically link in support libraries e.g. libmpfr libgmp etc.

Quoted 43 lines · Tom Rini
Quoted 42 lines · Richard Purdie
Quoted 33 lines · Tom Rini
Quoted 24 lines · Richard Purdie
Quoted 12 lines · Khem Raj
Quoted 9 lines · Richard Purdie
Quoted 1 line · Khem Raj

ping any opinion on this patch ?

This change looks rather hacky and I'd really like to understand more about why this is needed and whether there is a better way we could ensure the right flags get passed around. Can you provide more details about whats going on with this. Obviously this change as it stands isn't acceptable to upstream gcc and I'd like to see if we could find one that was.

Quoted 10 lines

this is because the supporting libraries like mpc mpfr that are needed by gcc itself to run
we might have different versions of these libraries. So depending upon shared objects
would mean we need to find same shared objects where say the SDK is installed so either we ship the whole baggage or we link it in statically. This patch makes those libs to
linked in statically and cross gcc wont have dependencies on these libs anymore so
it can run on all hosts pretty much.

Quoted 7 lines

If you look at the way the SDK toolchain works in Poky, it automatically ships the versions of these libraries that it needs so we don't actually have this problem.

Also, looking at the patch again, was the first LDFLAGS change meant to be in there, is that related or different to the shared/static mpfr/mpc/gmp issue?

Quoted 5 lines

I think it's time for someone to build one at dig at it, but are you sure they're used and shipped and not just used? That was a problem before and unless the exported bits are using a relative $ORIGIN in the link path (or we've broken relocatability, which would be another problem) there's problems today.

They are used and shipped. As evidence I submit:

Quoted 8 lines
Quoted 1 line

http://autobuilder.yoctoproject.org/nightly/20110311-1/toolchain/x86_64/poky-lsb-eglibc-x86_64-i586-toolchain-gmae-0.9+snapshot-20110313.tar.bz2

Is /opt/poky-lsb/0.9+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/i586-poky-linux/i586-poky-linux-gcc the runs on host targets the target cross compiler the user should use
now? If so, you don't have relocation as the RPATH is hard-coded not
$ORIGIN based. If not, can I have a pointer to the right gcc to poke
at? Thanks :)

Hmm, this sounds like something is not working with the relocation. I could have sworn we'd made that relocatable :/.

It shouldn't be hard to fix with the relocation class at least...

I hope we at least agree it does find the right libraries to link against which is most of the problem solved :)

Cheers,

Richard

#14 lore raw

Re: [PATCHv3 3/6] gcc: Statically link in support libraries e.g. libmpfr libgmp etc.

Quoted 53 lines · Richard Purdie
Quoted 43 lines · Tom Rini
Quoted 42 lines · Richard Purdie
Quoted 33 lines · Tom Rini
Quoted 24 lines · Richard Purdie
Quoted 12 lines · Khem Raj
Quoted 9 lines · Richard Purdie
Quoted 1 line · Khem Raj

ping any opinion on this patch ?

This change looks rather hacky and I'd really like to understand more about why this is needed and whether there is a better way we could ensure the right flags get passed around. Can you provide more details about whats going on with this. Obviously this change as it stands isn't acceptable to upstream gcc and I'd like to see if we could find one that was.

Quoted 10 lines

this is because the supporting libraries like mpc mpfr that are needed by gcc itself to run
we might have different versions of these libraries. So depending upon shared objects
would mean we need to find same shared objects where say the SDK is installed so either we ship the whole baggage or we link it in statically. This patch makes those libs to
linked in statically and cross gcc wont have dependencies on these libs anymore so
it can run on all hosts pretty much.

Quoted 7 lines

If you look at the way the SDK toolchain works in Poky, it automatically ships the versions of these libraries that it needs so we don't actually have this problem.

Also, looking at the patch again, was the first LDFLAGS change meant to be in there, is that related or different to the shared/static mpfr/mpc/gmp issue?

Quoted 5 lines

I think it's time for someone to build one at dig at it, but are you sure they're used and shipped and not just used? That was a problem before and unless the exported bits are using a relative $ORIGIN in the link path (or we've broken relocatability, which would be another problem) there's problems today.

They are used and shipped. As evidence I submit:

Quoted 8 lines
Quoted 1 line

http://autobuilder.yoctoproject.org/nightly/20110311-1/toolchain/x86_64/poky-lsb-eglibc-x86_64-i586-toolchain-gmae-0.9+snapshot-20110313.tar.bz2

Is /opt/poky-lsb/0.9+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/i586-poky-linux/i586-poky-linux-gcc the runs on host targets the target cross compiler the user should use
now? If so, you don't have relocation as the RPATH is hard-coded not
$ORIGIN based. If not, can I have a pointer to the right gcc to poke
at? Thanks :)

Quoted 4 lines

Hmm, this sounds like something is not working with the relocation. I could have sworn we'd made that relocatable :/.

It shouldn't be hard to fix with the relocation class at least...

Yes, hopefully we just need to add relocatable to the various new classes and that'll be that.

Signature · 2 lines
Tom Rini
Mentor Graphics Corporation