Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.8.0
-
None
-
host: Ubuntu 14.04 (x86_64)
target: embedded linux (x86)
Description
When cross-compiling QtWebEngine, it builds ICU for host and target, but host builds are forced as 32bit.
FAILED: obj.host/src/3rdparty/chromium/third_party/icu/source/common/icuuc.utrie2_builder.o /usr/bin/g++ -MMD -MF obj.host/src/3rdparty/chromium/third_party/icu/source/common/icuuc.utrie2_builder.o.d -DU_USING_ICU_NAMESPACE=0 -DHAVE_DLOPEN=0 -DUCONFIG_ONLY_HTML_CONVERSION=1 -DU_CHARSET_IS_UTF8=1 -DV8_DEPRECATION_WARNINGS -DTOOLKIT_QT -D_FILE_OFFSET_BITS=64 -DNO_TCMALLOC -DDISABLE_NACL -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES '-DOPENSSLDIR="/usr/lib/ssl"' -DOPENSSL_LOAD_CONF -DEGL_API_FB=1 -DLINUX=1 -DU_STATIC_IMPLEMENTATION -DCHROMIUM_BUILD -DUI_COMPOSITOR_IMAGE_TRANSPORT -DUSE_AURA=1 -DUSE_OZONE=1 -DUSE_DEFAULT_RENDER_THEME=1 -DUSE_LIBJPEG_TURBO=1 -DENABLE_MEDIA_ROUTER=1 -DFIELDTRIAL_TESTING_ENABLED -DENABLE_SPELLCHECK=1 -DENABLE_SUPERVISED_USERS=1 -DENABLE_MDNS=1 -DENABLE_SERVICE_DISCOVERY=1 -DU_COMMON_IMPLEMENTATION -DU_ICUDATAENTRY_IN_COMMON -DU_ENABLE_DYLOAD=0 -DU_NOEXCEPT= -DUSE_OPENSSL_CERTS=1 -DNDEBUG -DNO_UNWIND_TABLES -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 '-DQTWEBENGINEPROCESS_NAME="QtWebEngineProcess"' -I/home/sapiippo/development/qt/qt5/qtwebengine/src/3rdparty/chromium/third_party/icu/source/common -I/home/sapiippo/development/qt/qt5/qtwebengine/src/3rdparty/chromium/third_party/icu/source/i18n -Igen -fstack-protector --param=ssp-buffer-size=4 -pthread -fno-strict-aliasing -Wno-extra -Wno-unused-parameter -Wno-missing-field-initializers -fvisibility=hidden -pipe -fPIC -Wno-unused-local-typedefs -Wno-deprecated-declarations -Wno-unused-function -m32 -Os -fno-ident -fdata-sections -ffunction-sections -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-exceptions -fno-threadsafe-statics -fvisibility-inlines-hidden -frtti -Wno-deprecated -std=gnu++11 -Wno-narrowing -c /home/sapiippo/development/qt/qt5/qtwebengine/src/3rdparty/chromium/third_party/icu/source/common/utrie2_builder.cpp -o obj.host/src/3rdparty/chromium/third_party/icu/source/common/icuuc.utrie2_builder.o In file included from /usr/include/stdint.h:25:0, from /usr/lib/gcc/x86_64-linux-gnu/5/include/stdint.h:9, from /home/sapiippo/development/qt/qt5/qtwebengine/src/3rdparty/chromium/third_party/icu/source/common/unicode/ptypes.h:66, from /home/sapiippo/development/qt/qt5/qtwebengine/src/3rdparty/chromium/third_party/icu/source/common/unicode/umachine.h:44, from /home/sapiippo/development/qt/qt5/qtwebengine/src/3rdparty/chromium/third_party/icu/source/common/unicode/utypes.h:36, from /home/sapiippo/development/qt/qt5/qtwebengine/src/3rdparty/chromium/third_party/icu/source/common/utrie2_builder.cpp:29: /usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or directory
Compilation continues if 32bit headers are available (gcc-multilib), but builds fails finally in linking when it tries to combine 32bit and 64bit object files:
/usr/bin/g++ -Wl,-z,now -Wl,-z,relro -Wl,-z,defs -pthread -Wl,-z,noexecstack -fPIC -Wl,--disable-new-dtags -Wl,-O1 -Wl,--as-needed -Wl,--gc-sections -Wl,--no-as-needed -lpthread -Wl,--as-needed -o character_data_generator -Wl,--start-group obj.host/src/3rdparty/chromium/third_party/WebKit/Source/platform/text/character_data_generator.CharacterPropertyDataGenerator.o obj.host/src/3rdparty/chromium/third_party/icu/libicuuc.a -Wl,--end-group
/usr/bin/ld: i386 architecture of input file `obj.host/src/3rdparty/chromium/third_party/icu/source/common/icuuc.utrie2_builder.o' is incompatible with i386:x86-64 output