blitz-foundation / monkey2

zlib License
3 stars 0 forks source link

Emscripten 1.38.21 error: undefined symbol: glDrawBuffer #114

Open Pharmhaus-2 opened 5 years ago

Pharmhaus-2 commented 5 years ago

Original Author: RichardBetson

Howdy Mark,

I get the following error using the latest dev build of Monkey2 and the latest Emscripten ver. 1.38.21. I can get code to compile if I add -s ERROR_ON_UNDEFINED_SYMBOLS=0 to env_linux.txt in the wasm linker options.

Hope it helps.

Console output Ted2go, Linux Mint: Mx2cc version 1.1.15

Making app '/home/moonbasealpha/Programming/monkey2/phoenix/Phoenix_ISO/phoenixweb_ISO.monkey2' (emscripten release llvm gcc)

Parsing... Semanting... Translating... Compiling... Linking /home/moonbasealpha/Programming/monkey2/phoenix/Phoenix_ISO/phoenixweb_ISO.products/Emscripten/Phoenixweb_ISO.js... Build error: System command failed:

em++ -s USE_SDL=2 -s TOTAL_MEMORY=201326592 -s DISABLE_EXCEPTION_CATCHING=1 -O3 --preload-file "/home/moonbasealpha/Programming/monkey2/phoenix/Phoenix_ISO/phoenixweb_ISO.buildv1.1.15/emscripten_release/assets/@/assets" -s FETCH=1 -lopenal -s BINARYEN=1 -o "/home/moonbasealpha/Programming/monkey2/phoenix/Phoenix_ISO/phoenixweb_ISO.products/Emscripten/Phoenixweb_ISO.js" "/home/moonbasealpha/Programming/monkey2/phoenix/Phoenix_ISO/phoenixweb_ISO.buildv1.1.15/emscripten_release/build/r5b58089e.cpp_r.o" "/home/moonbasealpha/Programming/monkey2/phoenix/Phoenix_ISO/phoenixweb_ISO.buildv1.1.15/emscripten_release/build/rbfd71967.cpp_r.o" "/home/moonbasealpha/Programming/monkey2/phoenix/Phoenix_ISO/phoenixweb_ISO.buildv1.1.15/emscripten_release/build/r82d397c7.cpp_r.o" "/home/moonbasealpha/Programming/monkey2/phoenix/Phoenix_ISO/phoenixweb_ISO.buildv1.1.15/emscripten_release/build/r962138a7.cpp_r.o" "/home/moonbasealpha/Programming/monkey2/phoenix/Phoenix_ISO/phoenixweb_ISO.buildv1.1.15/emscripten_release/build/r25d941c7.cpp_r.o" "/home/moonbasealpha/Programming/monkey2/phoenix/Phoenix_ISO/phoenixweb_ISO.buildv1.1.15/emscripten_release/build/r1697175f.cpp_r.o" "/home/moonbasealpha/Programming/monkey2/phoenix/Phoenix_ISO/phoenixweb_ISO.buildv1.1.15/emscripten_release/build/r1dc7b347.cpp_r.o" "/home/moonbasealpha/Programming/monkey2/phoenix/Phoenix_ISO/phoenixweb_ISO.buildv1.1.15/emscripten_release/build/r9f64cc47.cpp_r.o" "/home/moonbasealpha/Programming/monkey2/phoenix/Phoenix_ISO/phoenixweb_ISO.buildv1.1.15/emscripten_release/build/r9856b2a3.cpp_r.o" "/home/moonbasealpha/Programming/monkey2/phoenix/Phoenix_ISO/phoenixweb_ISO.buildv1.1.15/emscripten_release/build/r53fc46c7.cpp_r.o" "/home/moonbasealpha/Programming/monkey2/phoenix/Phoenix_ISO/phoenixweb_ISO.buildv1.1.15/emscripten_release/build/r8464f71f.cpp_r.o" "/home/moonbasealpha/Programming/monkey2/phoenix/Phoenix_ISO/phoenixweb_ISO.buildv1.1.15/emscripten_release/build/r3b3f9947.cpp_r.o" "/home/moonbasealpha/Programming/monkey2/phoenix/Phoenix_ISO/phoenixweb_ISO.buildv1.1.15/emscripten_release/build/r36c00c07.cpp_r.o" "/home/moonbasealpha/Programming/monkey2/phoenix/Phoenix_ISO/phoenixweb_ISO.buildv1.1.15/emscripten_release/build/r4a371be7.cpp_r.o" "/home/moonbasealpha/Programming/monkey2/phoenix/Phoenix_ISO/phoenixweb_ISO.buildv1.1.15/emscripten_release/build/r957c2467.cpp_r.o" "/home/moonbasealpha/Programming/monkey2/phoenix/Phoenix_ISO/phoenixweb_ISO.buildv1.1.15/emscripten_release/build/r607d6bc7.cpp_r.o" "/home/moonbasealpha/Programming/monkey2/phoenix/Phoenix_ISO/phoenixweb_ISO.buildv1.1.15/emscripten_release/build/r663f34db.cpp_r.o" "/home/moonbasealpha/Programming/monkey2/phoenix/Phoenix_ISO/phoenixweb_ISO.buildv1.1.15/emscripten_release/build/r1dbb3f67.cpp_r.o" "/home/moonbasealpha/Programming/monkey2/phoenix/Phoenix_ISO/phoenixweb_ISO.buildv1.1.15/emscripten_release/build/rebc7b9c7.cpp_r.o" "/home/moonbasealpha/Programming/monkey2/phoenix/Phoenix_ISO/phoenixweb_ISO.buildv1.1.15/emscripten_release/build/ISOc7db8094.cpp.o" "/home/moonbasealpha/Programming/monkey2/phoenix/Phoenix_ISO/phoenixweb_ISO.buildv1.1.15/emscripten_release/build/phoenixmapeditora5a20f1.cpp.o" "/home/moonbasealpha/Programming/monkey2/phoenix/Phoenix_ISO/phoenixweb_ISO.buildv1.1.15/emscripten_release/build/phoenixinputd3a1aff2.cpp.o" "/home/moonbasealpha/Programming/monkey2/phoenix/Phoenix_ISO/phoenixweb_ISO.buildv1.1.15/emscripten_release/build/phoenixparts31af808.cpp.o" "/home/moonbasealpha/Programming/monkey2/phoenix/Phoenix_ISO/phoenixweb_ISO.buildv1.1.15/emscripten_release/build/phoenixmap7c9d44ebd.cpp.o" "/home/moonbasealpha/Programming/monkey2/phoenix/Phoenix_ISO/phoenixweb_ISO.buildv1.1.15/emscripten_release/build/phoenixinertia3fd4ca22.cpp.o" "/home/moonbasealpha/Programming/monkey2/phoenix/Phoenix_ISO/phoenixweb_ISO.buildv1.1.15/emscripten_release/build/phoenixcollision2d6739da.cpp.o" "/home/moonbasealpha/Programming/monkey2/phoenix/Phoenix_ISO/phoenixweb_ISO.buildv1.1.15/emscripten_release/build/phoenixconsole51e2de3f.cpp.o" "/home/moonbasealpha/Programming/monkey2/phoenix/Phoenix_ISO/phoenixweb_ISO.buildv1.1.15/emscripten_release/build/phoenixwindowbf9a3a92.cpp.o" "/home/moonbasealpha/Programming/monkey2/phoenix/Phoenix_ISO/phoenixweb_ISO.buildv1.1.15/emscripten_release/build/phoenixbutton65f514d4.cpp.o" "/home/moonbasealpha/Programming/monkey2/phoenix/Phoenix_ISO/phoenixweb_ISO.buildv1.1.15/emscripten_release/build/phoenixlistbox77e51e55.cpp.o" "/home/moonbasealpha/Programming/monkey2/phoenix/Phoenix_ISO/phoenixweb_ISO.buildv1.1.15/emscripten_release/build/phoenixslider9284f703.cpp.o" "/home/moonbasealpha/Programming/monkey2/phoenix/Phoenix_ISO/phoenixweb_ISO.buildv1.1.15/emscripten_release/build/containerd1b2aaba.cpp.o" "/home/moonbasealpha/Programming/monkey2/phoenix/Phoenix_ISO/phoenixweb_ISO.buildv1.1.15/emscripten_release/build/list88d40dcf.cpp.o" "/home/moonbasealpha/Programming/monkey2/phoenix/Phoenix_ISO/phoenixweb_ISO.buildv1.1.15/emscripten_release/build/stack444a6741.cpp.o" "/home/moonbasealpha/Programming/monkey2/phoenix/Phoenix_ISO/phoenixweb_ISO.buildv1.1.15/emscripten_release/build/dequeeadca759.cpp.o" "/home/moonbasealpha/Programming/monkey2/modules/mojo3d/mojo3d.buildv1.1.15/emscripten_release/mojo3d.bc" "/home/moonbasealpha/Programming/monkey2/modules/reflection/reflection.buildv1.1.15/emscripten_release/reflection.bc" "/home/moonbasealpha/Programming/monkey2/modules/bullet/bullet.buildv1.1.15/emscripten_release/bullet.bc" "/home/moonbasealpha/Programming/monkey2/modules/mojo/mojo.buildv1.1.15/emscripten_release/mojo.bc" "/home/moonbasealpha/Programming/monkey2/modules/std/std.buildv1.1.15/emscripten_release/std.bc" "/home/moonbasealpha/Programming/monkey2/modules/zlib/zlib.buildv1.1.15/emscripten_release/zlib.bc" "/home/moonbasealpha/Programming/monkey2/modules/stb-vorbis/stb-vorbis.buildv1.1.15/emscripten_release/stb-vorbis.bc" "/home/moonbasealpha/Programming/monkey2/modules/stb-image-write/stb-image-write.buildv1.1.15/emscripten_release/stb-image-write.bc" "/home/moonbasealpha/Programming/monkey2/modules/stb-image/stb-image.buildv1.1.15/emscripten_release/stb-image.bc" "/home/moonbasealpha/Programming/monkey2/modules/miniz/miniz.buildv1.1.15/emscripten_release/miniz.bc" "/home/moonbasealpha/Programming/monkey2/modules/opengl/opengl.buildv1.1.15/emscripten_release/opengl.bc" "/home/moonbasealpha/Programming/monkey2/modules/openal/openal.buildv1.1.15/emscripten_release/openal.bc" "/home/moonbasealpha/Programming/monkey2/modules/freetype/freetype.buildv1.1.15/emscripten_release/freetype.bc" "/home/moonbasealpha/Programming/monkey2/modules/emscripten/emscripten.buildv1.1.15/emscripten_release/emscripten.bc" "/home/moonbasealpha/Programming/monkey2/modules/sdl2/sdl2.buildv1.1.15/emscripten_release/sdl2.bc" "/home/moonbasealpha/Programming/monkey2/modules/jni/jni.buildv1.1.15/emscripten_release/jni.bc" "/home/moonbasealpha/Programming/monkey2/modules/libc/libc.buildv1.1.15/emscripten_release/libc.bc" "/home/moonbasealpha/Programming/monkey2/modules/monkey/monkey.buildv1.1.15/emscripten_release/monkey.bc"

error: undefined symbol: glDrawBuffer warning: To disable errors for undefined symbols use -s ERROR_ON_UNDEFINED_SYMBOLS=0 error: undefined symbol: glReadBuffer Error: Aborting compilation due to previous errors shared:ERROR: '/home/moonbasealpha/Programming/emsdk-portable/node/8.9.1_64bit/bin/node /home/moonbasealpha/Programming/emsdk-portable/emscripten/1.38.21/src/compiler.js /tmp/tmpLRtJHV.txt /home/moonbasealpha/Programming/emsdk-portable/emscripten/1.38.21/src/library_fetch.js /home/moonbasealpha/Programming/emsdk-portable/emscripten/1.38.21/src/library_pthread_stub.js' failed (1)

Fatal mx2cc error

Internal mx2cc build error

Pharmhaus-2 commented 5 years ago

@RichardBetson I am correct to assume that the issue was fixed? https://github.com/blitz-research/monkey2/issues/448