Skip to contentSkip to conversation

Disable fatal linker warnings related to SQLite

PATCH Applied Carlos Rafael Giani 2 participants 2 messages Sep 2, 2014 – Sep 3, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Disable fatal linker warnings related to SQLite

With the gold linker, problems with hidden sqlite3 symbols occur. Example:

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 /mnt/ramdisk/yocto/qemu-test-build/tmp//sysroots/qemux86/usr/lib/../lib/libsoftokn3.so

The problem is known, and a solution would be to set the build scripts to not build sqlite3 and use the system's sqlite3 library instead. However, currently, this is not possible:

https://code.google.com/p/chromium/issues/detail?id=22208

The Crosswalk project fixed this by setting the warnings to non-fatal:

https://github.com/crosswalk-project/crosswalk/commit/83d22586852a3d64300fd024e24ade9a4ac325be

The disable_fatal_linker_warnings GYP flag used in that commit is already part of Chromium 37. It just needs to be enabled. This commit does precisely that.

---
 recipes-browser/chromium/chromium_37.0.2062.0.bb | 1 +
 1 file changed, 1 insertion(+)
recipes-browser/chromium/chromium_37.0.2062.0.bb +1 -0
index 2cf6d2a..c0e3b36 100644
@@ -81,6 +81,7 @@ PACKAGECONFIG ??= "use-egl"
 PACKAGECONFIG[use-egl] = ",,virtual/egl virtual/libgles2"
 
 EXTRA_OEGYP =	" \
+	-Ddisable_fatal_linker_warnings=1 \
 	${@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)} \
 	-I ${WORKDIR}/oe-defaults.gypi \
Signature · 1 line
1.8.3.2
#1 lore raw
Quoted 14 lines · Carlos Rafael Giani

With the gold linker, problems with hidden sqlite3 symbols occur. Example:

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 /mnt/ramdisk/yocto/qemu-test-build/tmp//sysroots/qemux86/usr/lib/../lib/libsoftokn3.so

The problem is known, and a solution would be to set the build scripts to not build sqlite3 and use the system's sqlite3 library instead. However, currently, this is not possible:

https://code.google.com/p/chromium/issues/detail?id=22208

The Crosswalk project fixed this by setting the warnings to non-fatal:

Quoted 7 lines

https://github.com/crosswalk-project/crosswalk/commit/83d22586852a3d64300fd024e24ade9a4ac325be

The disable_fatal_linker_warnings GYP flag used in that commit is already part of Chromium 37. It just needs to be enabled. This commit does precisely that.

Applied.

Signature · 3 lines
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