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

wasm: Cannot build anything with 6.5.0-beta1

    XMLWordPrintable

Details

    • WebAssembly

    Description

      Building even a dummy project fails (both single and multi threaded builds):

      wasm-ld: warning: function signature mismatch: time
      >>> defined as (i32) -> i32 in /home/user/Qt/6.5.0/wasm_multithread/lib/libQt6Core.a(qlocaltime.cpp.o)
      >>> defined as (i32) -> i64 in /home/user/work/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/libc-mt-debug.a(emscripten_time.o)
      
      wasm-ld: warning: function signature mismatch: mktime
      >>> defined as (i32) -> i32 in /home/user/Qt/6.5.0/wasm_multithread/lib/libQt6Core.a(qtenvironmentvariables.cpp.o)
      >>> defined as (i32) -> i64 in /home/user/work/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/libc-mt-debug.a(emscripten_time.o)
      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
      em++: error: '/home/user/work/emsdk/node/14.18.2_64bit/bin/node /home/user/work/emsdk/upstream/emscripten/src/compiler.js /tmp/tmp1zgiwur6.json' failed (returned 1)
      ninja: build stopped: subcommand failed.
      12:51:20: The process "/home/user/Qt/Tools/CMake/bin/cmake" exited with code 1.
      

      emsdk 3.1.25 was used:

      $ em++ --version
      emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.25 (febd44b21ecaca86e2cb2a25ef3ed4a0a2076365)
      ...
      

      Attachments

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

        Activity

          People

            lpotter Lorn Potter
            poikelin Joni Poikelin
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes