Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-59768

webengine cross-compilation fails when target architecture is the same as host

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 5.9
    • 5.9
    • Device Creation, WebEngine
    • None
    • d0df80599 (134-based-refactor)

      Cross-compilation for a Intel NUC target fails when building on a x86_64 linux host, which matches the target specs. It's cross-compilation in a sense that the target has different toolchain and sysroot than host. The build fails since it uses the target sysroot with the host toolchain.

      16:29:02 | [6470/16921] CXX host/obj/third_party/brotli/bro/brotli_bit_stream.o
      16:29:02 | FAILED: host/obj/third_party/brotli/bro/brotli_bit_stream.o
      16:29:02 | /usr/bin/g++ -MMD -MF host/obj/third_party/brotli/bro/brotli_bit_stream.o.d -DV8_DEPRECATION_WARNINGS -DENABLE_MDNS=1 -DENABLE_SPELLCHECK=1 -DUSE_UDEV -DUSE_AURA=1 -DUSE_DEFAULT_RENDER_THEME=1 -DUSE_OPENSSL_CERTS=1 -DUSE_OZONE=1 -DNO_TCMALLOC -DDISABLE_NACL -DENABLE_EXTENSIONS=1 -DENABLE_TASK_MANAGER=1 -DENABLE_THEMES=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_SUPERVISED_USERS=1 -DENABLE_SERVICE_DISCOVERY=1 -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED -DTOOLKIT_QT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -Ihost/gen -I../../../../git/src/3rdparty/chromium -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -pipe -pthread -m64 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-unused-parameter -O2 -fno-ident -fdata-sections -ffunction-sections -g0 --sysroot=../../../../../../../../sysroots/intel-corei7-64 -fvisibility=hidden -fno-threadsafe-statics -fvisibility-inlines-hidden -std=gnu++11 -fno-delete-null-pointer-checks -Wno-narrowing -fno-rtti -fno-exceptions -c ../../../../git/src/3rdparty/chromium/third_party/brotli/enc/brotli_bit_stream.cc -o host/obj/third_party/brotli/bro/brotli_bit_stream.o
      16:29:02 | In file included from ../../../../git/src/3rdparty/chromium/third_party/brotli/enc/brotli_bit_stream.cc:11:0:
      16:29:02 | ../../../../git/src/3rdparty/chromium/third_party/brotli/enc/./brotli_bit_stream.h:19:18: fatal error: vector: No such file or directory
      16:29:02 |  #include <vector>
      16:29:02 |                   ^
      16:29:02 | compilation terminated.
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            sapiippo Samuli Piippo
            sapiippo Samuli Piippo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes