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

[wasm] configure failed when building qt-5.14 wasm with emscripten 1.39.0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.14.1, 5.15.0 Alpha
    • 5.14.0 RC2
    • Build System
    • None
    • ubuntu 18.04
      emscripten 1.39.0
    • WebAssembly
    • 868ded6d87ca4e05482d2ae6955ddfbe0fb85ff0 (qt/qtbase/5.14)

    Description

          I build qt 5.14 wasm from git with emscripten 1.39.0 with the follow command:

      ./configure -opensource -confirm-license -xplatform wasm-emscripten -feature-thread -nomake examples -nomake tests -skip qt3d -skip qtdeclarative -skip qtmultimedia -skip qttools -skip qtxmlpatterns -prefix /usr/local/qt5-wasm

          I can successfully built qt-wasm from the latest 5.14 branch about one month ago, but today I pull the latest code from 5.14 branch and configure failed:

      Running configuration tests...
      Checking for valid makespec... Note: Also available for Linux: linux-clang linux-icc

      ERROR: Cannot compile a minimal program. The toolchain or QMakeSpec is broken.

      Check config.log for details.

      The content of config.log is as follows:

      Command line: -opensource -confirm-license -xplatform wasm-emscripten -feature-thread -nomake examples -nomake tests -skip qt3d -skip qtdeclarative -skip qtmultimedia -skip qttools -skip qtxmlpatterns -prefix /usr/local/qt5-wasm
      executing config test verifyspec
      + cd /home/jl/sdk/qt/qt5/config.tests/verifyspec && /home/jl/sdk/qt/qt5/qtbase/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += static warn_off console single_arch" -early "CONFIG += cross_compile" /home/jl/sdk/qt/qt5/qtbase/config.tests/verifyspec
      > Project WARNING: You should use the recommended Emscripten version 1.38.27 with this Qt. You have 1.39.0 closure
      > Project WARNING: This Qt was built with Emscripten version . You have 1.39.0 closure. The difference may cause issues.
      + cd /home/jl/sdk/qt/qt5/config.tests/verifyspec && MAKEFLAGS= /usr/bin/make
      > em++ -c -pipe -O3 -std=gnu++11 -w -I/home/jl/sdk/qt/qt5/qtbase/config.tests/verifyspec -I. -I/home/jl/.emscripten_ports/openssl/include -I/home/jl/sdk/qt/qt5/qtbase/mkspecs/wasm-emscripten -o verifyspec.o /home/jl/sdk/qt/qt5/qtbase/config.tests/verifyspec/verifyspec.cpp
      > sed -e s/@APPNAME@/verifyspec/g /usr/local/qt5-wasm/plugins/platforms/wasm_shell.html > /home/jl/sdk/qt/qt5/config.tests/verifyspec/verifyspec.html
      > cp -f /usr/local/qt5-wasm/plugins/platforms/qtloader.js /home/jl/sdk/qt/qt5/config.tests/verifyspec
      > cp -f /usr/local/qt5-wasm/plugins/platforms/qtlogo.svg /home/jl/sdk/qt/qt5/config.tests/verifyspec
      > em++ -s "BINARYEN_TRAP_MODE='clamp'" -s WASM=1 -s FULL_ES2=1 -s USE_WEBGL2=1 -s NO_EXIT_RUNTIME=0 -s ERROR_ON_UNDEFINED_SYMBOLS=1 --bind -O3 -o ./verifyspec.js verifyspec.o
      > shared:ERROR: BINARYEN_TRAP_MODE is not supported by the LLVM wasm backend
      > Makefile:68: recipe for target 'verifyspec.js' failed
      > make: *** [verifyspec.js] Error 1

           How can I build qt-5.14 wasm with emscripten 1.39.0?

      Attachments

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

        Activity

          People

            lpotter Lorn Potter
            jianliang79 liang jian
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes