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

WASM: Prebuilt Qt built with non recommended Emscripten version

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • None
    • 6.5.0 Beta1
    • Build System
    • None
    • WebAssembly
    •  qt/qt5(4ee1668f466d35af83761a090add731ca1de4925) qt/qt5(1d77e425427439bf32968734db0d605d0a9cea30)

    Description

      If you use Qt provided by the maintenance tool, it seems to be compiled with diverging Emscripten versions. Recommended is 3.1.14 (which is active). During CMake you see:

      Qt Wasm built with Emscripten version: 3.1.10
      You are using Emscripten version: 3.1.14
      The recommended version of Emscripten for this Qt is: 3.1.14
      This may not work correctly

      And indeed - it does not work correctly:

      error: undefined symbol: _ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv (referenced by top-level compiled C/C++ code)
      warning: Link with `-sLLD_REPORT_UNDEFINED` to get more information on undefined symbols
      warning: To disable errors for undefined symbols use `-sERROR_ON_UNDEFINED_SYMBOLS=0`
      warning: __ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
      error: undefined symbol: _ZNKSt3__220__vector_base_commonILb1EE20__throw_out_of_rangeEv (referenced by top-level compiled C/C++ code)
      warning: __ZNKSt3__220__vector_base_commonILb1EE20__throw_out_of_rangeEv may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
      error: undefined symbol: _ZNKSt3__221__basic_string_commonILb1EE20__throw_length_errorEv (referenced by top-level compiled C/C++ code)
      warning: __ZNKSt3__221__basic_string_commonILb1EE20__throw_length_errorEv may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
      error: undefined symbol: _ZNKSt3__221__basic_string_commonILb1EE20__throw_out_of_rangeEv (referenced by top-level compiled C/C++ code)
      warning: __ZNKSt3__221__basic_string_commonILb1EE20__throw_out_of_rangeEv may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
      Error: Aborting compilation due to previous errors

      Going to 3.1.10 instead of 3.1.14 works.

      Attachments

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

        Activity

          People

            releaseteam Qt Release Team
            cajus Cajus Pollmeier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes