Skip to content

Instantly share code, notes, and snippets.

@Widdershin
Created March 2, 2019 00:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Widdershin/feca3375bd8d1717980a42a8117bd6d6 to your computer and use it in GitHub Desktop.
Save Widdershin/feca3375bd8d1717980a42a8117bd6d6 to your computer and use it in GitHub Desktop.
LIBTCODDIR=/nix/store/ss5yxvyjff7f9vv8gwbagki9fg67kw9j-libtcod-1.5.1
EMCC_DEBUG=1 emcc \
-o brogue.html \
-s WASM=1 \
-Isrc/brogue -Isrc/platform \
-I$LIBTCODDIR/include \
-L. \
-L$LIBTCODDIR \
-DBROGUE_TCOD \
`sdl-config --cflags` `sdl-config --libs` \
-ltcod -Wl,-rpath,. \
-lm -Wl,-rpath,. \
src/brogue/*.c \
src/platform/main.c \
src/platform/platformdependent.c \
src/platform/curses-platform.c \
src/platform/tcod-platform.c \
src/platform/term.c
shared:DEBUG: successfully executed /home/nickj/Projects/brogue/emsdk/clang/e1.38.28_64bit/llvm-ar t /home/nickj/.emscripten_cache/asmjs/libcompiler_rt.a
shared:DEBUG: successfully executed /home/nickj/Projects/brogue/emsdk/clang/e1.38.28_64bit/llvm-ar xo /home/nickj/.emscripten_cache/asmjs/libcompiler_rt.a
shared:DEBUG: executed /home/nickj/Projects/brogue/emsdk/clang/e1.38.28_64bit/llvm-nm /home/nickj/.emscripten_cache/asmjs/libdlmalloc.bc
shared:DEBUG: executed /home/nickj/Projects/brogue/emsdk/clang/e1.38.28_64bit/llvm-nm /home/nickj/.emscripten_cache/asmjs/libgl.bc
shared:DEBUG: executed /home/nickj/Projects/brogue/emsdk/clang/e1.38.28_64bit/llvm-nm /home/nickj/.emscripten_cache/asmjs/libc.bc
shared:DEBUG: executed /home/nickj/Projects/brogue/emsdk/clang/e1.38.28_64bit/llvm-nm /home/nickj/.emscripten_cache/asmjs/libc-wasm.bc
shared:DEBUG: executed /home/nickj/Projects/brogue/emsdk/clang/e1.38.28_64bit/llvm-nm /home/nickj/.emscripten_cache/asmjs/libpthreads_stub.bc
shared:DEBUG: executed /home/nickj/Projects/brogue/emsdk/clang/e1.38.28_64bit/llvm-nm /home/nickj/.emscripten_cache/asmjs/libc-extras.bc
shared:DEBUG: executed /home/nickj/Projects/brogue/emsdk/clang/e1.38.28_64bit/llvm-nm /tmp/emscripten_temp_A7tYnG_archive_contents/divdc3_9c366427.c.o
shared:DEBUG: executed /home/nickj/Projects/brogue/emsdk/clang/e1.38.28_64bit/llvm-nm /tmp/emscripten_temp_A7tYnG_archive_contents/divsc3_05fe1ace.c.o
shared:DEBUG: executed /home/nickj/Projects/brogue/emsdk/clang/e1.38.28_64bit/llvm-nm /tmp/emscripten_temp_A7tYnG_archive_contents/muldc3_7eeb9162.c.o
shared:DEBUG: executed /home/nickj/Projects/brogue/emsdk/clang/e1.38.28_64bit/llvm-nm /tmp/emscripten_temp_A7tYnG_archive_contents/mulsc3_b3c1d2b1.c.o
shared:DEBUG: adding object /tmp/emscripten_temp/Architect_0.o to link
shared:DEBUG: adding object /tmp/emscripten_temp/Buttons_1.o to link
shared:DEBUG: adding object /tmp/emscripten_temp/Combat_2.o to link
shared:DEBUG: adding object /tmp/emscripten_temp/Dijkstra_3.o to link
shared:DEBUG: adding object /tmp/emscripten_temp/Globals_4.o to link
shared:DEBUG: adding object /tmp/emscripten_temp/Grid_5.o to link
shared:DEBUG: adding object /tmp/emscripten_temp/IO_6.o to link
shared:DEBUG: adding object /tmp/emscripten_temp/Items_7.o to link
shared:DEBUG: adding object /tmp/emscripten_temp/Light_8.o to link
shared:DEBUG: adding object /tmp/emscripten_temp/MainMenu_9.o to link
shared:DEBUG: adding object /tmp/emscripten_temp/Monsters_10.o to link
shared:DEBUG: adding object /tmp/emscripten_temp/Movement_11.o to link
shared:DEBUG: adding object /tmp/emscripten_temp/PowerTables_12.o to link
shared:DEBUG: adding object /tmp/emscripten_temp/Random_13.o to link
shared:DEBUG: adding object /tmp/emscripten_temp/Recordings_14.o to link
shared:DEBUG: adding object /tmp/emscripten_temp/RogueMain_15.o to link
shared:DEBUG: adding object /tmp/emscripten_temp/Sqrt_16.o to link
shared:DEBUG: adding object /tmp/emscripten_temp/Time_17.o to link
shared:DEBUG: adding object /tmp/emscripten_temp/main_18.o to link
shared:DEBUG: adding object /tmp/emscripten_temp/platformdependent_19.o to link
shared:DEBUG: adding object /tmp/emscripten_temp/curses-platform_20.o to link
shared:DEBUG: adding object /tmp/emscripten_temp/tcod-platform_21.o to link
shared:DEBUG: adding object /tmp/emscripten_temp/term_22.o to link
shared:DEBUG: adding object /home/nickj/.emscripten_cache/asmjs/libdlmalloc.bc to link
shared:DEBUG: adding object /home/nickj/.emscripten_cache/asmjs/libgl.bc to link
shared:DEBUG: adding object /home/nickj/.emscripten_cache/asmjs/libc.bc to link
shared:DEBUG: adding object /home/nickj/.emscripten_cache/asmjs/libc-wasm.bc to link
shared:DEBUG: adding object /home/nickj/.emscripten_cache/asmjs/libpthreads_stub.bc to link
shared:DEBUG: adding object /home/nickj/.emscripten_cache/asmjs/libc-extras.bc to link
shared:DEBUG: considering archive /home/nickj/.emscripten_cache/asmjs/libcompiler_rt.a
shared:DEBUG: adding object /tmp/emscripten_temp_A7tYnG_archive_contents/muldc3_7eeb9162.c.o to link
shared:DEBUG: adding object /tmp/emscripten_temp_A7tYnG_archive_contents/mulsc3_b3c1d2b1.c.o to link
shared:DEBUG: done running loop of archive /home/nickj/.emscripten_cache/asmjs/libcompiler_rt.a
emcc:DEBUG: emcc step "link" took 0.14 seconds
emcc:DEBUG: saving intermediate processing steps to /tmp/emscripten_temp
emcc:DEBUG: (not saving intermediate /tmp/emscripten_temp/emcc-0-basebc.bc because deferring linking)
shared:DEBUG: successfully executed /home/nickj/Projects/brogue/emsdk/clang/e1.38.28_64bit/opt /tmp/emscripten_temp/Architect_0.o /tmp/emscripten_temp/Buttons_1.o /tmp/emscripten_temp/Combat_2.o /tmp/emscripten_temp/Dijkstra_3.o /tmp/emscripten_temp/Globals_4.o /tmp/emscripten_temp/Grid_5.o /tmp/emscripten_temp/IO_6.o /tmp/emscripten_temp/Items_7.o /tmp/emscripten_temp/Light_8.o /tmp/emscripten_temp/MainMenu_9.o /tmp/emscripten_temp/Monsters_10.o /tmp/emscripten_temp/Movement_11.o /tmp/emscripten_temp/PowerTables_12.o /tmp/emscripten_temp/Random_13.o /tmp/emscripten_temp/Recordings_14.o /tmp/emscripten_temp/RogueMain_15.o /tmp/emscripten_temp/Sqrt_16.o /tmp/emscripten_temp/Time_17.o /tmp/emscripten_temp/main_18.o /tmp/emscripten_temp/platformdependent_19.o /tmp/emscripten_temp/curses-platform_20.o /tmp/emscripten_temp/tcod-platform_21.o /tmp/emscripten_temp/term_22.o /home/nickj/.emscripten_cache/asmjs/libdlmalloc.bc /home/nickj/.emscripten_cache/asmjs/libgl.bc /home/nickj/.emscripten_cache/asmjs/libc.bc /home/nickj/.emscripten_cache/asmjs/libc-wasm.bc /home/nickj/.emscripten_cache/asmjs/libpthreads_stub.bc /home/nickj/.emscripten_cache/asmjs/libc-extras.bc /tmp/emscripten_temp_A7tYnG_archive_contents/muldc3_7eeb9162.c.o /tmp/emscripten_temp_A7tYnG_archive_contents/mulsc3_b3c1d2b1.c.o -strip-debug -disable-debug-info-type-map -internalize -internalize-public-api-list=main,malloc,free,__errno_location,fflush,emscripten_GetProcAddress,strstr,_get_tzname,_get_daylight,_get_timezone -globaldce -disable-loop-vectorization -disable-slp-vectorization -vectorize-loops=false -vectorize-slp=false -o /tmp/emscripten_temp/brogue.bc
emcc:DEBUG: emcc step "post-link" took 1.33 seconds
emcc:DEBUG: LLVM => JS
shared:DEBUG: TEMP_DIR not defined in /home/nickj/.emscripten, using /tmp
emscripten:DEBUG: emscript: llvm backend: /home/nickj/Projects/brogue/emsdk/clang/e1.38.28_64bit/llc /tmp/emscripten_temp/brogue.bc -march=js -filetype=asm -o /tmp/emscripten_temp/tmpTMR9Wk.4.js -emscripten-stack-size=5242880 -O0 -emscripten-precise-f32 -emscripten-assertions=1 -emscripten-no-aliasing-function-pointers -emscripten-global-base=1024 -emscripten-no-exit-runtime -emscripten-wasm -emscripten-only-wasm
warning: unexpected number of arguments 0 in call to 'TCOD_console_flush', should be 1
warning: unexpected number of arguments 1 in call to 'TCOD_mouse_get_status', should be 2
warning: unexpected number of arguments 0 in call to 'TCOD_console_flush', should be 1
warning: unexpected number of arguments 0 in call to 'TCOD_sys_elapsed_milli', should be 1
warning: unexpected number of arguments 0 in call to 'TCOD_console_is_window_closed', should be 1
warning: unexpected number of arguments 0 in call to 'TCOD_console_flush', should be 1
warning: unexpected number of arguments 1 in call to 'TCOD_mouse_get_status', should be 2
warning: unexpected number of arguments 0 in call to 'TCOD_sys_elapsed_milli', should be 1
warning: unexpected number of arguments 0 in call to 'TCOD_console_flush', should be 1
warning: unexpected number of arguments 0 in call to 'TCOD_console_flush', should be 1
emscripten:DEBUG: emscript: llvm backend took 1.33109092712 seconds
emscripten:DEBUG: emscript: js compiler glue
error: undefined symbol: TCOD_console_delete
warning: To disable errors for undefined symbols use `-s ERROR_ON_UNDEFINED_SYMBOLS=0`
error: undefined symbol: TCOD_console_flush
error: undefined symbol: TCOD_console_init_root
error: undefined symbol: TCOD_console_is_key_pressed
error: undefined symbol: TCOD_console_is_window_closed
error: undefined symbol: TCOD_console_map_ascii_codes_to_font
error: undefined symbol: TCOD_console_put_char_ex
error: undefined symbol: TCOD_console_set_custom_font
error: undefined symbol: TCOD_console_set_fullscreen
error: undefined symbol: TCOD_console_set_keyboard_repeat
error: undefined symbol: TCOD_mouse_get_status
error: undefined symbol: TCOD_mouse_show_cursor
error: undefined symbol: TCOD_sys_check_for_event
error: undefined symbol: TCOD_sys_elapsed_milli
error: undefined symbol: TCOD_sys_get_char_size
error: undefined symbol: TCOD_sys_save_screenshot
error: undefined symbol: TCOD_sys_sleep_milli
Error: Aborting compilation due to previous errors
shared:ERROR: '/home/nickj/Projects/brogue/emsdk/node/8.9.1_64bit/bin/node /home/nickj/Projects/brogue/emsdk/emscripten/1.38.28/src/compiler.js /tmp/emscripten_temp/tmpkiKj9t.txt /home/nickj/Projects/brogue/emsdk/emscripten/1.38.28/src/library_pthread_stub.js' failed (1)
emscripten:DEBUG: Cache: PID 12231 released multiprocess file lock to Emscripten cache at /home/nickj/.emscripten_cache/asmjs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment