* [meta-browser][PATCH 1/2] firefox: properly fix build without freetype-config
@ 2014-08-09 21:39 Martin Jansa
2014-08-09 21:39 ` [meta-browser][PATCH 2/2] chromium-35*: use BFD when building for x86-64 Martin Jansa
0 siblings, 1 reply; 4+ messages in thread
From: Martin Jansa @ 2014-08-09 21:39 UTC (permalink / raw)
To: openembedded-devel
* fails with:
../../gfx/thebes/gfxFT2Utils.o: In function `gfxFT2LockedFace::GetMetrics(gfxFont::Metrics*, unsigned int*)':
/OE/build/oe-core/tmp-eglibc/work/i586-oe-linux/firefox/10.0.11esr-r0/mozilla-esr10/gfx/thebes/gfxFT2Utils.cpp:139: undefined reference to `FT_Get_Sfnt_Table'
/OE/build/oe-core/tmp-eglibc/work/i586-oe-linux/firefox/10.0.11esr-r0/mozilla-esr10/gfx/thebes/gfxFT2Utils.cpp:234: undefined reference to `FT_Get_Sfnt_Table'
../../gfx/thebes/gfxFT2Utils.o: In function `gfxFT2LockedFace::GetFontTable(unsigned int, FallibleTArray<unsigned char>&)':
/OE/build/oe-core/tmp-eglibc/work/i586-oe-linux/firefox/10.0.11esr-r0/mozilla-esr10/gfx/thebes/gfxFT2Utils.cpp:364: undefined reference to `FT_Load_Sfnt_Table'
/OE/build/oe-core/tmp-eglibc/work/i586-oe-linux/firefox/10.0.11esr-r0/mozilla-esr10/gfx/thebes/gfxFT2Utils.cpp:372: undefined reference to `FT_Load_Sfnt_Table'
collect2: error: ld returned 1 exit status
../../config/rules.mk:1089: recipe for target 'libxul.so' failed
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
recipes-mozilla/firefox/firefox/freetype-2.5.patch | 73 ++++++++++++++++++++++
recipes-mozilla/firefox/firefox_10.0.11esr.bb | 2 +-
2 files changed, 74 insertions(+), 1 deletion(-)
create mode 100644 recipes-mozilla/firefox/firefox/freetype-2.5.patch
diff --git a/recipes-mozilla/firefox/firefox/freetype-2.5.patch b/recipes-mozilla/firefox/firefox/freetype-2.5.patch
new file mode 100644
index 0000000..78f4ff8
--- /dev/null
+++ b/recipes-mozilla/firefox/firefox/freetype-2.5.patch
@@ -0,0 +1,73 @@
+Adapted from:
+https://bugzilla.mozilla.org/show_bug.cgi?id=944454
+
+Upstream-Status: Backport
+
+Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
+
+diff -uNr mozilla-esr10.orig/config/system-headers mozilla-esr10/config/system-headers
+--- mozilla-esr10.orig/config/system-headers 2012-11-15 19:24:02.000000000 +0100
++++ mozilla-esr10/config/system-headers 2014-08-09 20:59:18.103672068 +0200
+@@ -273,6 +273,19 @@
+ freetype/ttnameid.h
+ freetype/tttables.h
+ freetype/t1tables.h
++freetype.h
++ftcache.h
++ftglyph.h
++ftsynth.h
++ftoutln.h
++ttnameid.h
++tttables.h
++t1tables.h
++ftlcdfil.h
++ftsizes.h
++ftadvanc.h
++ftbitmap.h
++ftxf86.h
+ fribidi/fribidi.h
+ FSp_fopen.h
+ fstream
+diff -uNr mozilla-esr10.orig/js/src/config/system-headers mozilla-esr10/js/src/config/system-headers
+--- mozilla-esr10.orig/js/src/config/system-headers 2012-11-15 19:24:19.000000000 +0100
++++ mozilla-esr10/js/src/config/system-headers 2014-08-09 20:59:25.877672347 +0200
+@@ -273,6 +273,19 @@
+ freetype/ttnameid.h
+ freetype/tttables.h
+ freetype/t1tables.h
++freetype.h
++ftcache.h
++ftglyph.h
++ftsynth.h
++ftoutln.h
++ttnameid.h
++tttables.h
++t1tables.h
++ftlcdfil.h
++ftsizes.h
++ftadvanc.h
++ftbitmap.h
++ftxf86.h
+ fribidi/fribidi.h
+ FSp_fopen.h
+ fstream
+--- mozilla-esr10.orig/configure 2014-08-09 23:05:46.397944139 +0200
++++ mozilla-esr10/configure 2014-08-09 23:07:23.691947627 +0200
+@@ -16011,8 +16011,7 @@
+ #define MOZ_PANGO 1
+ EOF
+
+- else
+- succeeded=no
++ fi
+
+ if test -z "$PKG_CONFIG"; then
+ # Extract the first word of "pkg-config", so it can be a program name with args.
+@@ -16105,7 +16104,6 @@
+
+
+
+- fi
+ fi
+
+ if test "$MOZ_ENABLE_QT"
diff --git a/recipes-mozilla/firefox/firefox_10.0.11esr.bb b/recipes-mozilla/firefox/firefox_10.0.11esr.bb
index 98da1a4..307e672 100644
--- a/recipes-mozilla/firefox/firefox_10.0.11esr.bb
+++ b/recipes-mozilla/firefox/firefox_10.0.11esr.bb
@@ -73,6 +73,7 @@ SRC_URI = "ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/${PV}/source/f
file://debian-hacks/Bug-508942-Use-Preprocessor.py-filters-in-defines-an.patch \
file://configure.patch \
file://powerpc_va_list.patch \
+ file://freetype-2.5.patch \
file://vendor.js"
SRC_URI[archive.md5sum] = "2f0e3a1dd7480e03f374c0121b4155e2"
@@ -85,7 +86,6 @@ inherit mozilla
EXTRA_OEMAKE = "installdir=${libdir}/${PN}"
ARM_INSTRUCTION_SET = "arm"
-TARGET_CC_ARCH += " -I${STAGING_INCDIR}/freetype2"
do_install() {
oe_runmake DESTDIR="${D}" destdir="${D}" install
--
2.0.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [meta-browser][PATCH 2/2] chromium-35*: use BFD when building for x86-64
2014-08-09 21:39 [meta-browser][PATCH 1/2] firefox: properly fix build without freetype-config Martin Jansa
@ 2014-08-09 21:39 ` Martin Jansa
2014-08-11 0:12 ` Otavio Salvador
0 siblings, 1 reply; 4+ messages in thread
From: Martin Jansa @ 2014-08-09 21:39 UTC (permalink / raw)
To: openembedded-devel
* this doesn't fix it completely, but allows it a bit further and then
it fails in the same spot as when building for qemux86 (or 37* version
with gold)
sysroots/x86_64-linux/usr/bin/x86_64-oe-linux/x86_64-oe-linux-ld.gold:
warning: hidden symbol 'sqlite3_temp_directory' in obj/third_party/sqlite/libsqlite3.a(obj/third_party/sqlite/amalgamation/sqlite.sqlite3.o)
is referenced by DSO
sysroots/qemux86-64/usr/lib/../lib/libsoftokn3.so
sysroots/x86_64-linux/usr/bin/x86_64-oe-linux/x86_64-oe-linux-ld.gold:
error: treating warnings as errors
collect2: error: ld returned 1 exit status
and few more symbols like this, libsoftokn3.so is provided by system
nss, using system sqlite3 has some issues too:
https://code.google.com/p/chromium/issues/detail?id=22208
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
recipes-browser/chromium/chromium_35.0.1916.114.bb | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/recipes-browser/chromium/chromium_35.0.1916.114.bb b/recipes-browser/chromium/chromium_35.0.1916.114.bb
index c1021c0..3df1716 100644
--- a/recipes-browser/chromium/chromium_35.0.1916.114.bb
+++ b/recipes-browser/chromium/chromium_35.0.1916.114.bb
@@ -30,9 +30,17 @@ inherit gettext
# automatically and silently fall back to GLX
PACKAGECONFIG[use-egl] = ",,virtual/egl virtual/libgles2"
+# when building with gold for qemux86-64 it fails with:
+# FAILED: x86_64-oe-linux-gcc -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse --sysroot=/home/jenkins/oe/world/shr-core/tmp-eglibc/sysroots/qemux86-64 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-z,now -Wl,-z,relro -Wl,--fatal-warnings -pthread -Wl,-z,noexecstack -fPIC -B/home/jenkins/oe/world/shr-core/tmp-eglibc/work/core2-64-oe-linux/chromium/35.0.1916.114-r0/chromium-35.0.1916.114/third_party/gold -m64 -Wl,--icf=none -Wl,--gc-sections -o chrome_sandbox -Wl,--start-group obj/sandbox/linux/suid/chrome_sandbox.linux_util.o obj/sandbox/linux/suid/chrome_sandbox.process_util_linux.o obj/sandbox/linux/suid/chrome_sandbox.sandbox.o -Wl,--end-group
+# chromium/35.0.1916.114-r0/chromium-35.0.1916.114/third_party/gold/gold64: -plugin: unknown option
+# chromium/35.0.1916.114-r0/chromium-35.0.1916.114/third_party/gold/gold64: use the --help option for usage information
+# collect2: error: ld returned 1 exit status
+# ninja: build stopped: subcommand failed.
+EXTRA_OEGYP_GOLD_x86-64 = "-Dlinux_use_gold_binary=0 -Dlinux_use_gold_flags=0"
+EXTRA_OEGYP_GOLD = "${@base_contains('DISTRO_FEATURES', 'ld-is-gold', '', '-Dlinux_use_gold_binary=0 -Dlinux_use_gold_flags=0', d)}"
+
EXTRA_OEGYP = " \
- ${@base_contains('DISTRO_FEATURES', 'ld-is-gold', '', '-Dlinux_use_gold_binary=0', d)} \
- ${@base_contains('DISTRO_FEATURES', 'ld-is-gold', '', '-Dlinux_use_gold_flags=0', d)} \
+ ${EXTRA_OEGYP_GOLD} \
-I ${WORKDIR}/oe-defaults.gypi \
-I ${WORKDIR}/include.gypi \
${@bb.utils.contains('PACKAGECONFIG', 'component-build', '-I ${WORKDIR}/component-build.gypi', '', d)} \
--
2.0.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [meta-browser][PATCH 2/2] chromium-35*: use BFD when building for x86-64
2014-08-09 21:39 ` [meta-browser][PATCH 2/2] chromium-35*: use BFD when building for x86-64 Martin Jansa
@ 2014-08-11 0:12 ` Otavio Salvador
2014-08-11 8:45 ` Martin Jansa
0 siblings, 1 reply; 4+ messages in thread
From: Otavio Salvador @ 2014-08-11 0:12 UTC (permalink / raw)
To: OpenEmbedded Devel List
On Sat, Aug 9, 2014 at 6:39 PM, Martin Jansa <martin.jansa@gmail.com> wrote:
> * this doesn't fix it completely, but allows it a bit further and then
> it fails in the same spot as when building for qemux86 (or 37* version
> with gold)
>
> sysroots/x86_64-linux/usr/bin/x86_64-oe-linux/x86_64-oe-linux-ld.gold:
> warning: hidden symbol 'sqlite3_temp_directory' in obj/third_party/sqlite/libsqlite3.a(obj/third_party/sqlite/amalgamation/sqlite.sqlite3.o)
> is referenced by DSO
> sysroots/qemux86-64/usr/lib/../lib/libsoftokn3.so
> sysroots/x86_64-linux/usr/bin/x86_64-oe-linux/x86_64-oe-linux-ld.gold:
> error: treating warnings as errors
> collect2: error: ld returned 1 exit status
>
> and few more symbols like this, libsoftokn3.so is provided by system
> nss, using system sqlite3 has some issues too:
> https://code.google.com/p/chromium/issues/detail?id=22208
>
> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Are you going to work on this to fix it completely?
I think we ought to focus in 37 as 35 is "old" already.
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [meta-browser][PATCH 2/2] chromium-35*: use BFD when building for x86-64
2014-08-11 0:12 ` Otavio Salvador
@ 2014-08-11 8:45 ` Martin Jansa
0 siblings, 0 replies; 4+ messages in thread
From: Martin Jansa @ 2014-08-11 8:45 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 1353 bytes --]
On Sun, Aug 10, 2014 at 09:12:50PM -0300, Otavio Salvador wrote:
> On Sat, Aug 9, 2014 at 6:39 PM, Martin Jansa <martin.jansa@gmail.com> wrote:
> > * this doesn't fix it completely, but allows it a bit further and then
> > it fails in the same spot as when building for qemux86 (or 37* version
> > with gold)
> >
> > sysroots/x86_64-linux/usr/bin/x86_64-oe-linux/x86_64-oe-linux-ld.gold:
> > warning: hidden symbol 'sqlite3_temp_directory' in obj/third_party/sqlite/libsqlite3.a(obj/third_party/sqlite/amalgamation/sqlite.sqlite3.o)
> > is referenced by DSO
> > sysroots/qemux86-64/usr/lib/../lib/libsoftokn3.so
> > sysroots/x86_64-linux/usr/bin/x86_64-oe-linux/x86_64-oe-linux-ld.gold:
> > error: treating warnings as errors
> > collect2: error: ld returned 1 exit status
> >
> > and few more symbols like this, libsoftokn3.so is provided by system
> > nss, using system sqlite3 has some issues too:
> > https://code.google.com/p/chromium/issues/detail?id=22208
> >
> > Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
>
> Are you going to work on this to fix it completely?
I don't use chromium anywhere, so I would prefer someone else to do it.
I just got too annoyed by it failing in every single world build for
months.
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-08-11 8:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-09 21:39 [meta-browser][PATCH 1/2] firefox: properly fix build without freetype-config Martin Jansa
2014-08-09 21:39 ` [meta-browser][PATCH 2/2] chromium-35*: use BFD when building for x86-64 Martin Jansa
2014-08-11 0:12 ` Otavio Salvador
2014-08-11 8:45 ` Martin Jansa
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.