{"action":"created","issue":{"url":"https://api.github.com/repos/emscripten-core/emscripten/issues/8229","repository_url":"https://api.github.com/repos/emscripten-core/emscripten","labels_url":"https://api.github.com/repos/emscripten-core/emscripten/issues/8229/labels{/name}","comments_url":"https://api.github.com/repos/emscripten-core/emscripten/issues/8229/comments","events_url":"https://api.github.com/repos/emscripten-core/emscripten/issues/8229/events","html_url":"https://github.com/emscripten-core/emscripten/issues/8229","id":416421879,"node_id":"MDU6SXNzdWU0MTY0MjE4Nzk=","number":8229,"title":"wasm_opt + -g fails","user":{"login":"Beuc","id":980977,"node_id":"MDQ6VXNlcjk4MDk3Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/980977?v=4","gravatar_id":"","url":"https://api.github.com/users/Beuc","html_url":"https://github.com/Beuc","followers_url":"https://api.github.com/users/Beuc/followers","following_url":"https://api.github.com/users/Beuc/following{/other_user}","gists_url":"https://api.github.com/users/Beuc/gists{/gist_id}","starred_url":"https://api.github.com/users/Beuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Beuc/subscriptions","organizations_url":"https://api.github.com/users/Beuc/orgs","repos_url":"https://api.github.com/users/Beuc/repos","events_url":"https://api.github.com/users/Beuc/events{/privacy}","received_events_url":"https://api.github.com/users/Beuc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-03-02T17:47:48Z","updated_at":"2019-03-02T22:16:07Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Hi,\r\n\r\nWith 1.38.28 and `-g` I get the following error when linking with emcc: \r\n```\r\nFatal: Module::addFunction: $dynCall_vi already exists\r\nshared:ERROR: '/home/me/.emscripten_ports-incoming-renpyweb/binaryen/binaryen-version_68/bin/wasm-opt /home/me/workdir/emtests/renpyweb/build/t/index.wasm -o /home/me/workdir/emtests/renpyweb/build/t/index.wasm --fpcast-emu --mvp-features -g' failed (1)\r\n\r\n```\r\n\r\nSadly I don't have a minimal test case for this.\r\n\r\nFull compile command:\r\n```\r\nemcc /home/me/workdir/emtests/renpyweb/build/main-renpyweb-static.bc /home/me/workdir/emtests/renpyweb/build/importexport.bc /home/me/workdir/emtests/renpyweb/build/pygame_sdl2-static/emscripten-static/build-temp/gen/*.o /home/me/workdir/emtests/renpyweb/build/pygame_sdl2-static/emscripten-static/build-temp/src/*.o /home/me/workdir/emtests/renpyweb/build/renpy/module/emscripten-static/build-temp/*.o /home/me/workdir/emtests/renpyweb/build/renpy/module/emscripten-static/build-temp/gen/*.o \\\r\n    -L /home/me/workdir/emtests/renpyweb/install/lib -O2 -s ASSERTIONS=1 -g /home/me/workdir/emtests/renpyweb/build/emscripten.bc -s EMULATE_FUNCTION_POINTER_CASTS=1 -s FORCE_FILESYSTEM=1 -lpython2.7 -s USE_SDL=2 -lSDL2_image -ljpeg -lpng -lwebp -lz -s EMTERPRETIFY=1 -s EMTERPRETIFY_ASYNC=1 -s EMTERPRETIFY_WHITELIST='[\"_main\", \"_pyapp_runmain\", \"_SDL_WaitEvent\", \"_SDL_WaitEventTimeout\", \"_SDL_Delay\", \"_SDL_RenderPresent\", \"_GLES2_RenderPresent\", \"_SDL_GL_SwapWindow\", \"_Emscripten_GLES_SwapWindow\", \"_PyRun_SimpleFileExFlags\", \"_PyRun_FileExFlags\", \"_PyEval_EvalCode\", \"_PyEval_EvalCodeEx\", \"_PyEval_EvalFrameEx\", \"_PyCFunction_Call\", \"_PyObject_Call\", \"_fast_function\", \"_function_call\", \"_instancemethod_call\", \"_slot_tp_call\", \"___pyx_pw_11pygame_sdl2_5event_7wait\", \"___pyx_pw_11pygame_sdl2_7display_21flip\", \"___pyx_pw_11pygame_sdl2_7display_6Window_13flip\", \"___pyx_pf_5renpy_2gl_6gldraw_6GLDraw_30draw_screen\", \"___pyx_pw_5renpy_2gl_6gldraw_6GLDraw_31draw_screen\", \"___Pyx_PyObject_CallNoArg_*\", \"___pyx_pf_10emscripten_6sleep\", \"___pyx_pw_10emscripten_7sleep\", \"___pyx_pf_10emscripten_8sleep_with_yield\", \"___pyx_pw_10emscripten_9sleep_with_yield\", \"_gen_send\", \"_gen_send_ex\", \"_gen_iternext\", \"_type_call\", \"_slot_tp_init\", \"_PyDict_SetItem\", \"_PyDict_SetItemString\", \"_PySys_SetObject\", \"_PyErr_PrintEx\"]' -s USE_FREETYPE=1 -lavformat -lavcodec -lavutil -lswresample -lswscale -lfribidi -lzip -s EXPORTED_FUNCTIONS='[\"_main\", \"_Py_Initialize\", \"_PyRun_SimpleString\", \"_pyapp_runmain\", \"_emSavegamesImport\", \"_emSavegamesExport\"]' -s EXTRA_EXPORTED_RUNTIME_METHODS='[\"ccall\", \"cwrap\"]' -s FULL_ES2=1 --shell-file renpy-shell.html --pre-js renpy-pre.js \\\r\n    -s TOTAL_MEMORY=128MB -s ALLOW_MEMORY_GROWTH=1 \\\r\n    -s EMTERPRETIFY_FILE=/home/me/workdir/emtests/renpyweb/build/t/index.em \\\r\n    -o /home/me/workdir/emtests/renpyweb/build/t/index.html\r\n```\r\n\r\nSame result with `ASSERTIONS=0`."},"comment":{"url":"https://api.github.com/repos/emscripten-core/emscripten/issues/comments/468965648","html_url":"https://github.com/emscripten-core/emscripten/issues/8229#issuecomment-468965648","issue_url":"https://api.github.com/repos/emscripten-core/emscripten/issues/8229","id":468965648,"node_id":"MDEyOklzc3VlQ29tbWVudDQ2ODk2NTY0OA==","user":{"login":"kripken","id":173661,"node_id":"MDQ6VXNlcjE3MzY2MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/173661?v=4","gravatar_id":"","url":"https://api.github.com/users/kripken","html_url":"https://github.com/kripken","followers_url":"https://api.github.com/users/kripken/followers","following_url":"https://api.github.com/users/kripken/following{/other_user}","gists_url":"https://api.github.com/users/kripken/gists{/gist_id}","starred_url":"https://api.github.com/users/kripken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kripken/subscriptions","organizations_url":"https://api.github.com/users/kripken/orgs","repos_url":"https://api.github.com/users/kripken/repos","events_url":"https://api.github.com/users/kripken/events{/privacy}","received_events_url":"https://api.github.com/users/kripken/received_events","type":"User","site_admin":false},"created_at":"2019-03-02T22:16:07Z","updated_at":"2019-03-02T22:16:07Z","author_association":"MEMBER","body":"Can you send me the wasm file, even if it's not small?\r\n\r\nIf not, running with `BINARYEN_PASS_DEBUG=1` in the env will print out the passes as they run, which will at least show in which pass this happens."}}
{"actor":{"display_login":"kripken"}}