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

WebAssembly error: undefined symbol: saveSetjmp (referenced by root reference (e.g. compiled C/C++ code))

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Cannot Reproduce
    • Icon: P2: Important P2: Important
    • None
    • 6.8.0
    • Build System: CMake
    • None
    • WebAssembly

      Trying to create a WebAssembly project in Qt Creator is far from simple, and in the end it fails with something about freetype (according to this bug report):

       

      error: undefined symbol: saveSetjmp (referenced by root reference (e.g. compiled C/C++ code))
      warning: To disable errors for undefined symbols use `-sERROR_ON_UNDEFINED_SYMBOLS=0`
      warning: _saveSetjmp may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
      error: undefined symbol: testSetjmp (referenced by root reference (e.g. compiled C/C++ code))
      warning: _testSetjmp may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
      Error: Aborting compilation due to previous errors
      em++: error: '/usr/lib/emsdk/node/20.18.0_64bit/bin/node /usr/lib/emsdk/upstream/emscripten/src/compiler.mjs /tmp/tmposkekwvb.json' failed (returned 1)
      ninja: build stopped: subcommand failed.
      

      I had to jump through logs to find it, because the Qt Creator itself only displays a message from ninja that the qmlls subcommand failed:

      I won't list the whole specs of the project because it was literally just generated from a template.

      Arch Linux,
      Qt Installer, manually installed Emscripten Kit,
      Installed emSDK from AUR (because somehow emscripten from official Arch Linux repos was not good enough for Qt CMake).

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

            qt.webassembly qt.webassembly
            ratijas ivan tkachenko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes