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

Configuring for wasm-emscripten fails due to non-existent settings attribute "BINARYEN_METHOD"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.12.1
    • QPA
    • None
    • WebAssembly

    Description

      Configuring with

      ./configure -xplatform wasm-emscripten -nomake examples -skip qtwebengine -prefix $PWD/qtbase
      

      fails with

      > em++ -s WASM=1 -s FULL_ES2=1 -s ALLOW_MEMORY_GROWTH=1 -s USE_WEBGL2=1 -s NO_EXIT_RUNTIME=0 -s ERROR_ON_UNDEFINED_SYMBOLS=1 --bind -s "BINARYEN_METHOD='native-wasm'" -s "BINARYEN_TRAP_MODE='clamp'" -O3 -o ./verifyspec.js verifyspec.o      
      > shared:ERROR: Assigning a non-existent settings attribute "BINARYEN_METHOD"
      > shared:ERROR:  - did you mean one of BINARYEN_TRAP_MODE, BINARYEN_ROOT, BINARYEN_PASSES?
      > shared:ERROR:  - perhaps a typo in emcc's  -s X=Y  notation?
      > shared:ERROR:  - (see src/settings.js for valid values)
      > make: *** [verifyspec.js] Error 1
      ERROR: Cannot compile a minimal program. The toolchain or QMakeSpec is broken.
      

      with emcc version 1.38.25.

      BINARYEN_METHOD is set in qt-everywhere-src-5.12.1/qtbase/mkspecs/wasm-emscripten/qmake.conf and removing the particular line fixed the issue, but I am not sure if that is the correct way to fix it.

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.graphics.and.multimedia Qt Graphics Team
              qtcomsupport Qt Support
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes