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

wasm-ld: error: initial memory too small, 16870416 bytes needed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Out of scope
    • Affects Version/s: 5.15.2
    • Fix Version/s: None
    • Component/s: Build tools: qmake
    • Labels:
      None
    • Platform/s:
      WebAssembly

      Description

      wasm-ld: error: initial memory too small, 16870416 bytes needed

      shared:ERROR: 'D:/emsdk/upstream/bin\wasm-ld.exe -o C:\Users\SAMAN~1.SAM\AppData\Local\Temp\emscripten_temp_lbz74l0h\Avan.wasm --lto-O0 imageprovider.obj main.obj -LD:\emsdk\upstream\emscripten\system\local\lib cache.obj -LD:\emsdk\upstream\emscripten\system\lib persiancalendar.obj -LC:\Users\Saman.SAMAN-PC\.emscripten_cache\wasm-obj photoprovider.obj systeminfo.obj uploader.obj avan.js_plugin_import.obj avan.js_qml_plugin_import.obj qrc_qmake_qmake_immediate.obj moc_cache.obj moc_persiancalendar.obj moc_systeminfo.obj moc_uploader.obj D:/Qt/5.15.2/wasm_32/plugins/platforms/libqwasm.a D:/Qt/5.15.2/wasm_32/lib/libQt5EventDispatcherSupport.a D:/Qt/5.15.2/wasm_32/lib/libQt5FontDatabaseSupport.a D:/Qt/5.15.2/wasm_32/lib/libqtfreetype.a D:/Qt/5.15.2/wasm_32/lib/libQt5EglSupport.a D:/Qt/5.15.2/wasm_32/plugins/imageformats/libqgif.a D:/Qt/5.15.2/wasm_32/plugins/imageformats/libqicns.a D:/Qt/5.15.2/wasm_32/plugins/imageformats/libqico.a D:/Qt/5.15.2/wasm_32/plugins/imageformats/libqjpeg.a D:/Qt/5.15.2/wasm_32/plugins/imageformats/libqtga.a D:/Qt/5.15.2/wasm_32/plugins/imageformats/libqtiff.a D:/Qt/5.15.2/wasm_32/plugins/imageformats/libqwbmp.a D:/Qt/5.15.2/wasm_32/plugins/imageformats/libqwebp.a D:/Qt/5.15.2/wasm_32/qml/QtQuick/Dialogs/libdialogplugin.a D:/Qt/5.15.2/wasm_32/qml/Qt/labs/folderlistmodel/libqmlfolderlistmodelplugin.a D:/Qt/5.15.2/wasm_32/qml/Qt/labs/settings/libqmlsettingsplugin.a D:/Qt/5.15.2/wasm_32/qml/QtQuick/Dialogs/Private/libdialogsprivateplugin.a D:/Qt/5.15.2/wasm_32/qml/QtQuick/Controls/libqtquickcontrolsplugin.a D:/Qt/5.15.2/wasm_32/qml/QtQuick/PrivateWidgets/libwidgetsplugin.a D:/Qt/5.15.2/wasm_32/lib/libQt5Widgets.a D:/Qt/5.15.2/wasm_32/qml/QtQml/libqmlplugin.a D:/Qt/5.15.2/wasm_32/qml/QtGraphicalEffects/private/libqtgraphicaleffectsprivate.a D:/Qt/5.15.2/wasm_32/qml/QtQml/Models.2/libmodelsplugin.a D:/Qt/5.15.2/wasm_32/qml/QtQuick/Layouts/libqquicklayoutsplugin.a D:/Qt/5.15.2/wasm_32/qml/QtWebSockets/libdeclarative_qmlwebsockets.a D:/Qt/5.15.2/wasm_32/lib/libQt5WebSockets.a D:/Qt/5.15.2/wasm_32/qml/QtQuick/Window.2/libwindowplugin.a D:/Qt/5.15.2/wasm_32/qml/QtQuick.2/libqtquick2plugin.a D:/Qt/5.15.2/wasm_32/qml/QtQuick/Templates.2/libqtquicktemplates2plugin.a D:/Qt/5.15.2/wasm_32/qml/QtQuick/Controls.2/libqtquickcontrols2plugin.a D:/Qt/5.15.2/wasm_32/qml/QtQuick/Controls.2/Fusion/libqtquickcontrols2fusionstyleplugin.a D:/Qt/5.15.2/wasm_32/qml/QtGraphicalEffects/libqtgraphicaleffectsplugin.a D:/Qt/5.15.2/wasm_32/qml/QtQuick/Controls.2/Imagine/libqtquickcontrols2imaginestyleplugin.a D:/Qt/5.15.2/wasm_32/qml/QtQuick/Controls.2/Material/libqtquickcontrols2materialstyleplugin.a D:/Qt/5.15.2/wasm_32/qml/QtQuick/Controls.2/Universal/libqtquickcontrols2universalstyleplugin.a D:/Qt/5.15.2/wasm_32/lib/libQt5QuickControls2.a D:/Qt/5.15.2/wasm_32/lib/libQt5QuickTemplates2.a D:/Qt/5.15.2/wasm_32/lib/libQt5Quick.a D:/Qt/5.15.2/wasm_32/lib/libQt5Gui.a D:/Qt/5.15.2/wasm_32/lib/libqtlibpng.a D:/Qt/5.15.2/wasm_32/lib/libqtharfbuzz.a D:/Qt/5.15.2/wasm_32/lib/libQt5QmlModels.a D:/Qt/5.15.2/wasm_32/lib/libQt5Qml.a D:/Qt/5.15.2/wasm_32/lib/libQt5Network.a D:/Qt/5.15.2/wasm_32/lib/libQt5Core.a D:/Qt/5.15.2/wasm_32/lib/libqtpcre2.a C:\Users\Saman.SAMAN-PC\.emscripten_cache\wasm-obj\libc.a C:\Users\Saman.SAMAN-PC\.emscripten_cache\wasm-obj\libcompiler_rt.a C:\Users\Saman.SAMAN-PC\.emscripten_cache\wasm-obj\libc-wasm.a C:\Users\Saman.SAMAN-PC\.emscripten_cache\wasm-obj\libc+-noexcept.a --whole-archive C:\Users\Saman.SAMAN-PC\.emscripten_cache\wasm-obj\libc+abi-noexcept.a C:\Users\Saman.SAMAN-PC\.emscripten_cache\wasm-obj\libembind-rtti.a C:\Users\Saman.SAMAN-PC\.emscripten_cache\wasm-obj\libfetch.a --no-whole-archive C:\Users\Saman.SAMAN-PC\.emscripten_cache\wasm-obj\libgl-webgl2-full_es3.a C:\Users\Saman.SAMAN-PC\.emscripten_cache\wasm-obj\libdlmalloc-debug.a C:\Users\Saman.SAMAN-PC\.emscripten_cache\wasm-obj\libpthread_stub.a C:\Users\Saman.SAMAN-PC\.emscripten_cache\wasm-obj\libc_rt_wasm.a C:\Users\Saman.SAMAN-PC\.emscripten_cache\wasm-obj\libsockets.a --allow-undefined --import-memory --import-table -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr --export __wasm_call_ctors --export __data_end --export main --export __cxa_demangle --export malloc --export free --export setThrew --export __errno_location --export fflush --export _ZSt18uncaught_exceptionv --export emscripten_GetProcAddress --export strstr --export emscripten_webgl_make_context_current --export emscripten_webgl_get_current_context --export emscripten_builtin_free --export _get_environ --export emscripten_builtin_memalign --export memalign --export realloc --export _get_tzname --export _get_daylight --export _get_timezone --export htonl --export htons --export ntohs --export strlen -z stack-size=5242880 --initial-memory=16777216 --no-entry --global-base=1024' failed (1)

      mingw32-make: *** [Makefile:104: .\Avan.js] Error 1
      22:30:52: The process "D:\Qt\Tools\mingw810_32\bin\mingw32-make.exe" exited with code 2.
      Error while building/deploying project Otozy (kit: Qt 5.15.2 WebAssembly)
      When executing step "Make"
      22:30:52: Elapsed time: 01:00.

       

      Simple Wasm Projects goes wll, but when I use C++ code and QML I get this error

        Attachments

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

          Activity

            People

            Assignee:
            lpotter Lorn Potter
            Reporter:
            saman_pasha Saman H. Pasha
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes