Skip to contentSkip to conversation

glibc: Upgrade to latest tip of master

PATCH In review Khem Raj 2 participants 8 messages Jul 2, 2016 – Jul 18, 2016

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH v2 1/1 glibc: Upgrade to latest tip of master

- libc-package.bbclass: Do not use --old-style
This option has been dropped from latest glibc

---
 meta/classes/libc-package.bbclass                      | 4 ++--
 meta/recipes-core/glibc/cross-localedef-native_2.24.bb | 2 +-
 meta/recipes-core/glibc/glibc_2.24.bb                  | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
meta/classes/libc-package.bbclass +2 -2
index 4f321d4..6624746 100644
@@ -290,7 +290,7 @@ python package_do_split_gconvs () {
                 bb.error("locale_arch_options not found for target_arch=" + target_arch)
                 raise bb.build.FuncFailed("unknown arch:" + target_arch + " for locale_arch_options")
 
-            localedef_opts += " --force --old-style --no-archive --prefix=%s \
+            localedef_opts += " --force  --no-archive --prefix=%s \
                 --inputfile=%s/%s/i18n/locales/%s --charmap=%s %s/%s" \
                 % (treedir, treedir, datadir, locale, encoding, outputpath, name)
 
@@ -298,7 +298,7 @@ python package_do_split_gconvs () {
                 (path, i18npath, gconvpath, localedef_opts)
         else: # earlier slower qemu way 
             qemu = qemu_target_binary(d) 
-            localedef_opts = "--force --old-style --no-archive --prefix=%s \
+            localedef_opts = "--force --no-archive --prefix=%s \
                 --inputfile=%s/i18n/locales/%s --charmap=%s %s" \
                 % (treedir, datadir, locale, encoding, name)
 
meta/recipes-core/glibc/cross-localedef-native_2.24.bb +1 -1
index 79c3132..c921211 100644
@@ -22,7 +22,7 @@ GLIBC_GIT_URI ?= "git://sourceware.org/git/glibc.git"
 SRCBRANCH ?= "master"
 UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+\.\d+(\.\d+)*)"
 
-SRCREV_glibc ?= "1ac3eaa6bcc473a56340c24511786ff48a91293e"
+SRCREV_glibc ?= "76a0b73e8102c5bfb5cb791e34992472f5d1d33e"
 SRCREV_localedef ?= "29869b6dc11427c5bab839bdb155c85a7c644c71"
 
 SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \
meta/recipes-core/glibc/glibc_2.24.bb +1 -1
index 77630e3..a5e1ad6 100644
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://LICENSES;md5=e9a558e243b36d3209f380deb394b213 \
 
 DEPENDS += "gperf-native"
 
-SRCREV ?= "1ac3eaa6bcc473a56340c24511786ff48a91293e"
+SRCREV ?= "76a0b73e8102c5bfb5cb791e34992472f5d1d33e"
 
 #SRCBRANCH ?= "release/${PV}/master"
 SRCBRANCH ?= "master"
Signature · 1 line
2.9.0
#1 lore raw

Even after applying this patch, I'm still seeing crashes in Chromium (which aren't there before the glibc update to 2.24)

I wish I could understand why Chromium is crashing, but everything else seems to run okay. I wouldn't be surprised to find Chromium is doing something funky; but what, exactly, would be nice to know.

author
#2 lore raw

Is it specific to x86-64

Quoted 8 lines · Trevor Woerner

Even after applying this patch, I'm still seeing crashes in Chromium (which aren't there before the glibc update to 2.24)

I wish I could understand why Chromium is crashing, but everything else seems
to run okay. I wouldn't be surprised to find Chromium is doing something funky; but what, exactly, would be nice to know.

#3 lore raw
Quoted 1 line · Khem Raj

Is it specific to x86-64

Up to this point I've only been focused on x86-64, but now that I have things cleared up on that arch, I'll be working on aarch64 to see how that goes.

My "solution" for the time-being is to simply pull in the glibc_2.23 recipes into my build and set GLIBCVERSION to match. At some point I'll be trying to bisect the glibc commits themselves to see if I can find anything conclusive (but, as always, that'll take some time).

author
#4 lore raw

Ok thanks. Let me know if you get to see the same issue on say qemuarm or qemuarm64

Quoted 15 lines · Trevor Woerner
Quoted 1 line · Khem Raj

Is it specific to x86-64

Up to this point I've only been focused on x86-64, but now that I have things
cleared up on that arch, I'll be working on aarch64 to see how that goes.

My "solution" for the time-being is to simply pull in the glibc_2.23 recipes
into my build and set GLIBCVERSION to match. At some point I'll be trying to
bisect the glibc commits themselves to see if I can find anything conclusive
(but, as always, that'll take some time).

author
#5 lore raw

Trevor

Quoted 2 lines · Khem Raj

Ok thanks. Let me know if you get to see the same issue on say qemuarm or qemuarm64

I built core-image-sato/qemux86-64 vmdk with chromium added

CORE_IMAGE_EXTRA_INSTALL_append = " chromium "

launched this image in VM and chromium starts normally.

I am using github.com/kraj/openembedded-core kraj/master branch and github.com/kraj/meta-raspberrypi kraj/master
everything else is upstream master and gcc is 5.x

here is my build info

Build Configuration:

BB_VERSION        = "1.31.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "universal"
TARGET_SYS        = "x86_64-oe-linux"
MACHINE           = "qemux86-64"
DISTRO            = "nodistro"
DISTRO_VERSION    = "nodistro.0"
TUNE_FEATURES     = "m64 core2"
TARGET_FPU        = ""
meta-raspberrypi  = "kraj/master:b9ba221e520f39bc3e273f709b5ceea02897d525"
meta-qcom         = "master:0eaea003cac6c3175b0a3682efd6e1f20ecc9dab"
meta-96boards     = "master:6b2744bf3e82154a9329ab89cf03eec9d1f80837"
oe-meta-go        = "master:dc19a245ae5224d1c9859119a9c53b6331812400"
meta-browser      = "master:77736988073a5d90fcff9d0005c8477332ede387"

meta-metrological = "kraj/master:356f0c33298eb63af415f333fe06121d056261e1" meta-multimedia
meta-gnome
meta-oe = "master:f11f8664de82e4f8c23b075542f4c98c16ce1f5e"
meta = "kraj/master:96ed9e94082589a62a6c602e5f774c11de3328c6"

Quoted 18 lines · Trevor Woerner
Quoted 15 lines · Khem Raj
Quoted 1 line

Is it specific to x86-64

Up to this point I've only been focused on x86-64, but now that I have things
cleared up on that arch, I'll be working on aarch64 to see how that goes.

My "solution" for the time-being is to simply pull in the glibc_2.23 recipes
into my build and set GLIBCVERSION to match. At some point I'll be trying to
bisect the glibc commits themselves to see if I can find anything conclusive
(but, as always, that'll take some time).

#6 lore raw
Quoted 11 lines · Khem Raj

Trevor

Quoted 2 lines · Khem Raj

Ok thanks. Let me know if you get to see the same issue on say qemuarm or qemuarm64

I built core-image-sato/qemux86-64 vmdk with chromium added

CORE_IMAGE_EXTRA_INSTALL_append = " chromium "

launched this image in VM and chromium starts normally.

Someday I hope that we'll have a mechanism in place that will be able to better record the full information about a build to help make it easier for multiple people to fully recreate the exact same builds, independently (iow, in situations like this).

I've done my best to recreate your build, and I'm still seeing the failure. I was able, however, to convince someone else to try building and running chromium (from master), they tried it, and are seeing the run-time failure too.

Quoted 22 lines

I am using github.com/kraj/openembedded-core kraj/master branch and github.com/kraj/meta-raspberrypi kraj/master
everything else is upstream master and gcc is 5.x

here is my build info

Build Configuration:

BB_VERSION        = "1.31.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "universal"
TARGET_SYS        = "x86_64-oe-linux"
MACHINE           = "qemux86-64"
DISTRO            = "nodistro"
DISTRO_VERSION    = "nodistro.0"
TUNE_FEATURES     = "m64 core2"
TARGET_FPU        = ""
meta-raspberrypi  = "kraj/master:b9ba221e520f39bc3e273f709b5ceea02897d525"
meta-qcom         = "master:0eaea003cac6c3175b0a3682efd6e1f20ecc9dab"
meta-96boards     = "master:6b2744bf3e82154a9329ab89cf03eec9d1f80837"
oe-meta-go        = "master:dc19a245ae5224d1c9859119a9c53b6331812400"
meta-browser      = "master:77736988073a5d90fcff9d0005c8477332ede387"
Quoted 5 lines

meta-metrological = "kraj/master:356f0c33298eb63af415f333fe06121d056261e1" meta-multimedia
meta-gnome
meta-oe = "master:f11f8664de82e4f8c23b075542f4c98c16ce1f5e"
meta = "kraj/master:96ed9e94082589a62a6c602e5f774c11de3328c6"

At first I looked at your list and thought to myself: why all the extras? For qemux86-64, all that's needed are:
- something to provide the meta (poky or openembedded-core)
- meta-browser
- meta-openembedded

As such my first build was:

        BB_VERSION        = "1.31.0"
        BUILD_SYS         = "x86_64-linux"
        NATIVELSBSTRING   = "SUSELINUX-42.1"
        TARGET_SYS        = "x86_64-oe-linux"
        MACHINE           = "qemux86-64"
        DISTRO            = "nodistro"
        DISTRO_VERSION    = "nodistro.0"
        TUNE_FEATURES     = "m64 core2"
        TARGET_FPU        = ""
        meta              = "kraj/master:f30e9793b8f247f691e5ffd023e1b83301508409"
        meta-browser      = "master:77736988073a5d90fcff9d0005c8477332ede387"
        meta-oe
        meta-gnome
        meta-multimedia   = "master:303d9ea960e2d88281079a4e71abe2cf8c815184"

Running chromium showed the failure, as usual.

So then I thought I'd try to recreate your build exactly -- except that's not possible:

	oe-meta-go from https://github.com/errordeveloper/oe-meta-go doesn't contain a dc19a245ae5224d1c9859119a9c53b6331812400
	meta-openembedded doesn't contain a f11f8664de82e4f8c23b075542f4c98c16ce1f5e
	openembedded-core from https://github.com/kraj/openembedded-core doesn't contain a 96ed9e94082589a62a6c602e5f774c11de3328c6

But even at that, I ended up removing meta-metrological because:
ERROR: ParseError at /z/chromium-qemux86-64/meta-metrological/recipes-qt/qtbrowser/qtbrowser_2.0.11.bb:14: Could not inherit file classes/qmake5.bbclass

So I performed my build with:

        BB_VERSION        = "1.31.0"
        BUILD_SYS         = "x86_64-linux"
        NATIVELSBSTRING   = "SUSELINUX-42.1"
        TARGET_SYS        = "x86_64-oe-linux"
        MACHINE           = "qemux86-64"
        DISTRO            = "nodistro"
        DISTRO_VERSION    = "nodistro.0"
        TUNE_FEATURES     = "m64 core2"
        TARGET_FPU        = ""
        meta-raspberrypi__kraj = "HEAD:b9ba221e520f39bc3e273f709b5ceea02897d525"
        meta-qcom         = "HEAD:0eaea003cac6c3175b0a3682efd6e1f20ecc9dab"
        meta-96boards     = "HEAD:6b2744bf3e82154a9329ab89cf03eec9d1f80837"
        oe-meta-go        = "master:0712320950adf810fb324d49fba5d49ae19981b0"
        meta-browser      = "HEAD:77736988073a5d90fcff9d0005c8477332ede387"
        meta-oe
        meta-gnome
        meta-multimedia   = "master:303d9ea960e2d88281079a4e71abe2cf8c815184"
        meta              = "kraj/master:f30e9793b8f247f691e5ffd023e1b83301508409"

This build succeeded (with gcc-5%), but running chromium caused the failure to occur, as usual.

In the last couple weeks I've built chromium for x86-64 52 times and haven't once seen it run successfully unless glibc was at 2.23. Plus I've had someone else independently build and run chromium once, and it failed. I'm baffled how it could be failing for me but succeeding for you :-(

author
#7 lore raw

I also enable security flags

require conf/distro/include/no-static-libs.inc
require conf/distro/include/yocto-uninative.inc
require conf/distro/include/security_flags.inc

INHERIT += "uninative"

Quoted 114 lines · Trevor Woerner
Quoted 11 lines · Khem Raj

Trevor

Quoted 2 lines · Khem Raj

Ok thanks. Let me know if you get to see the same issue on say qemuarm or qemuarm64

I built core-image-sato/qemux86-64 vmdk with chromium added

CORE_IMAGE_EXTRA_INSTALL_append = " chromium "

launched this image in VM and chromium starts normally.

Someday I hope that we'll have a mechanism in place that will be able to better record the full information about a build to help make it easier for multiple people to fully recreate the exact same builds, independently (iow, in situations like this).

I've done my best to recreate your build, and I'm still seeing the failure. I was able, however, to convince someone else to try building and running chromium (from master), they tried it, and are seeing the run-time failure too.

Quoted 22 lines

I am using github.com/kraj/openembedded-core kraj/master branch and github.com/kraj/meta-raspberrypi kraj/master
everything else is upstream master and gcc is 5.x

here is my build info

Build Configuration:

BB_VERSION        = "1.31.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "universal"
TARGET_SYS        = "x86_64-oe-linux"
MACHINE           = "qemux86-64"
DISTRO            = "nodistro"
DISTRO_VERSION    = "nodistro.0"
TUNE_FEATURES     = "m64 core2"
TARGET_FPU        = ""
meta-raspberrypi  = "kraj/master:b9ba221e520f39bc3e273f709b5ceea02897d525"
meta-qcom         = "master:0eaea003cac6c3175b0a3682efd6e1f20ecc9dab"
meta-96boards     = "master:6b2744bf3e82154a9329ab89cf03eec9d1f80837"
oe-meta-go        = "master:dc19a245ae5224d1c9859119a9c53b6331812400"
meta-browser      = "master:77736988073a5d90fcff9d0005c8477332ede387"
Quoted 5 lines

meta-metrological = "kraj/master:356f0c33298eb63af415f333fe06121d056261e1" meta-multimedia
meta-gnome
meta-oe = "master:f11f8664de82e4f8c23b075542f4c98c16ce1f5e"
meta = "kraj/master:96ed9e94082589a62a6c602e5f774c11de3328c6"

At first I looked at your list and thought to myself: why all the extras? For qemux86-64, all that's needed are:
- something to provide the meta (poky or openembedded-core)
- meta-browser
- meta-openembedded

As such my first build was:

        BB_VERSION        = "1.31.0"
        BUILD_SYS         = "x86_64-linux"
        NATIVELSBSTRING   = "SUSELINUX-42.1"
        TARGET_SYS        = "x86_64-oe-linux"
        MACHINE           = "qemux86-64"
        DISTRO            = "nodistro"
        DISTRO_VERSION    = "nodistro.0"
        TUNE_FEATURES     = "m64 core2"
        TARGET_FPU        = ""
        meta              = "kraj/master:f30e9793b8f247f691e5ffd023e1b83301508409"
        meta-browser      = "master:77736988073a5d90fcff9d0005c8477332ede387"
        meta-oe
        meta-gnome
        meta-multimedia   = "master:303d9ea960e2d88281079a4e71abe2cf8c815184"

Running chromium showed the failure, as usual.

So then I thought I'd try to recreate your build exactly -- except that's not possible:

        oe-meta-go from https://github.com/errordeveloper/oe-meta-go doesn't contain a dc19a245ae5224d1c9859119a9c53b6331812400
        meta-openembedded doesn't contain a f11f8664de82e4f8c23b075542f4c98c16ce1f5e
        openembedded-core from https://github.com/kraj/openembedded-core doesn't contain a 96ed9e94082589a62a6c602e5f774c11de3328c6

But even at that, I ended up removing meta-metrological because:
ERROR: ParseError at /z/chromium-qemux86-64/meta-metrological/recipes-qt/qtbrowser/qtbrowser_2.0.11.bb:14: Could not inherit file classes/qmake5.bbclass

So I performed my build with:

        BB_VERSION        = "1.31.0"
        BUILD_SYS         = "x86_64-linux"
        NATIVELSBSTRING   = "SUSELINUX-42.1"
        TARGET_SYS        = "x86_64-oe-linux"
        MACHINE           = "qemux86-64"
        DISTRO            = "nodistro"
        DISTRO_VERSION    = "nodistro.0"
        TUNE_FEATURES     = "m64 core2"
        TARGET_FPU        = ""
        meta-raspberrypi__kraj = "HEAD:b9ba221e520f39bc3e273f709b5ceea02897d525"
        meta-qcom         = "HEAD:0eaea003cac6c3175b0a3682efd6e1f20ecc9dab"
        meta-96boards     = "HEAD:6b2744bf3e82154a9329ab89cf03eec9d1f80837"
        oe-meta-go        = "master:0712320950adf810fb324d49fba5d49ae19981b0"
        meta-browser      = "HEAD:77736988073a5d90fcff9d0005c8477332ede387"
        meta-oe
        meta-gnome
        meta-multimedia   = "master:303d9ea960e2d88281079a4e71abe2cf8c815184"
        meta              = "kraj/master:f30e9793b8f247f691e5ffd023e1b83301508409"

This build succeeded (with gcc-5%), but running chromium caused the failure to occur, as usual.

In the last couple weeks I've built chromium for x86-64 52 times and haven't once seen it run successfully unless glibc was at 2.23. Plus I've had someone else independently build and run chromium once, and it failed. I'm baffled how it could be failing for me but succeeding for you :-(