Created
February 24, 2019 18:44
-
-
Save bvibber/aee93a766fd3ebeeefa9b183f3df6056 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ make | |
emcc -O1 -g4 -s WASM_OBJECT_FILES=0 -c -o test.o test.c | |
shared:DEBUG: EM_CONFIG is located in /home/brion/.emscripten | |
shared:DEBUG: TEMP_DIR not defined in /home/brion/.emscripten, using /tmp | |
shared:DEBUG: PYTHON not defined in /home/brion/.emscripten, using "/usr/bin/python" | |
shared:DEBUG: JAVA not defined in /home/brion/.emscripten, using "java" | |
emscripten:DEBUG: Cache: PID 5591 acquiring multiprocess file lock to Emscripten cache at /home/brion/.emscripten_cache | |
emscripten:DEBUG: Cache: done | |
emscripten:DEBUG: Cache: PID 5591 released multiprocess file lock to Emscripten cache at /home/brion/.emscripten_cache | |
shared:DEBUG: check tells us to use wasm backend | |
shared:DEBUG: executed /home/brion/src/emsdk/upstream/3453/bin/wasm-ld --version | |
emcc:WARNING: invocation: /home/brion/src/emsdk/upstream/3453/emscripten/emcc.py -O1 -g4 -s WASM_OBJECT_FILES=0 -c -o test.o test.c (in /home/brion/src/embind-tests/kerboom) | |
shared:DEBUG: successfully executed /home/brion/src/emsdk/upstream/3453/bin/clang++ --version | |
root:DEBUG: Checking JS engine ['/home/brion/src/emsdk/node/8.9.1_64bit/bin/node'] | |
shared:DEBUG: successfully executed /home/brion/src/emsdk/node/8.9.1_64bit/bin/node --version | |
shared:DEBUG: successfully executed /home/brion/src/emsdk/upstream/3453/bin/llc --version | |
shared:INFO: (Emscripten: Running sanity checks) | |
shared:DEBUG: successfully executed java -version | |
shared:DEBUG: executed /home/brion/src/emsdk/upstream/3453/bin/wasm-ld --version | |
emcc:DEBUG: compiling to bitcode | |
emcc:DEBUG: emcc step "parse arguments and setup" took 0.23 seconds | |
emscripten:DEBUG: Cache: PID 5591 acquiring multiprocess file lock to Emscripten cache at /home/brion/.emscripten_cache/wasm_bc | |
emscripten:DEBUG: Cache: done | |
emcc:DEBUG: compiling source file: test.c | |
emcc:DEBUG: running: /home/brion/src/emsdk/upstream/3453/bin/clang -target wasm32-unknown-unknown-wasm -D__EMSCRIPTEN_major__=1 -D__EMSCRIPTEN_minor__=38 -D__EMSCRIPTEN_tiny__=27 -D_LIBCPP_ABI_VERSION=2 -D__EMSCRIPTEN__ -Dunix -D__unix -D__unix__ -Werror=implicit-function-declaration -nostdinc -Xclang -nobuiltininc -Xclang -nostdsysteminc -Xclang -isystem/home/brion/src/emsdk/upstream/3453/emscripten/system/include/libcxx -Xclang -isystem/home/brion/src/emsdk/upstream/3453/emscripten/system/lib/libcxxabi/include -Xclang -isystem/home/brion/src/emsdk/upstream/3453/emscripten/system/include/compat -Xclang -isystem/home/brion/src/emsdk/upstream/3453/emscripten/system/include -Xclang -isystem/home/brion/src/emsdk/upstream/3453/emscripten/system/include/SSE -Xclang -isystem/home/brion/src/emsdk/upstream/3453/emscripten/system/include/libc -Xclang -isystem/home/brion/src/emsdk/upstream/3453/emscripten/system/lib/libc/musl/arch/emscripten -Xclang -isystem/home/brion/src/emsdk/upstream/3453/emscripten/system/local/include -O1 -c -g test.c -Xclang -isystem/home/brion/src/emsdk/upstream/3453/emscripten/system/include/SDL -c -o test.o -emit-llvm | |
shared:DEBUG: executed /home/brion/src/emsdk/upstream/3453/bin/clang -target wasm32-unknown-unknown-wasm -D__EMSCRIPTEN_major__=1 -D__EMSCRIPTEN_minor__=38 -D__EMSCRIPTEN_tiny__=27 -D_LIBCPP_ABI_VERSION=2 -D__EMSCRIPTEN__ -Dunix -D__unix -D__unix__ -Werror=implicit-function-declaration -nostdinc -Xclang -nobuiltininc -Xclang -nostdsysteminc -Xclang -isystem/home/brion/src/emsdk/upstream/3453/emscripten/system/include/libcxx -Xclang -isystem/home/brion/src/emsdk/upstream/3453/emscripten/system/lib/libcxxabi/include -Xclang -isystem/home/brion/src/emsdk/upstream/3453/emscripten/system/include/compat -Xclang -isystem/home/brion/src/emsdk/upstream/3453/emscripten/system/include -Xclang -isystem/home/brion/src/emsdk/upstream/3453/emscripten/system/include/SSE -Xclang -isystem/home/brion/src/emsdk/upstream/3453/emscripten/system/include/libc -Xclang -isystem/home/brion/src/emsdk/upstream/3453/emscripten/system/lib/libc/musl/arch/emscripten -Xclang -isystem/home/brion/src/emsdk/upstream/3453/emscripten/system/local/include -O1 -c -g test.c -Xclang -isystem/home/brion/src/emsdk/upstream/3453/emscripten/system/include/SDL -c -o test.o -emit-llvm | |
emcc:DEBUG: emcc step "bitcodeize inputs" took 0.06 seconds | |
emcc:DEBUG: stopping at bitcode | |
emscripten:DEBUG: Cache: PID 5591 released multiprocess file lock to Emscripten cache at /home/brion/.emscripten_cache/wasm_bc | |
emcc -s EXPORTED_FUNCTIONS='["_padding","_main"]' -O1 -g4 -o test.js test.o | |
shared:DEBUG: EM_CONFIG is located in /home/brion/.emscripten | |
shared:DEBUG: TEMP_DIR not defined in /home/brion/.emscripten, using /tmp | |
shared:DEBUG: PYTHON not defined in /home/brion/.emscripten, using "/usr/bin/python" | |
shared:DEBUG: JAVA not defined in /home/brion/.emscripten, using "java" | |
emscripten:DEBUG: Cache: PID 5639 acquiring multiprocess file lock to Emscripten cache at /home/brion/.emscripten_cache | |
emscripten:DEBUG: Cache: done | |
emscripten:DEBUG: Cache: PID 5639 released multiprocess file lock to Emscripten cache at /home/brion/.emscripten_cache | |
shared:DEBUG: check tells us to use wasm backend | |
shared:DEBUG: executed /home/brion/src/emsdk/upstream/3453/bin/wasm-ld --version | |
emcc:WARNING: invocation: /home/brion/src/emsdk/upstream/3453/emscripten/emcc.py -s EXPORTED_FUNCTIONS=["_padding","_main"] -O1 -g4 -o test.js test.o (in /home/brion/src/embind-tests/kerboom) | |
shared:DEBUG: successfully executed /home/brion/src/emsdk/upstream/3453/bin/clang++ --version | |
root:DEBUG: Checking JS engine ['/home/brion/src/emsdk/node/8.9.1_64bit/bin/node'] | |
shared:DEBUG: successfully executed /home/brion/src/emsdk/node/8.9.1_64bit/bin/node --version | |
shared:DEBUG: successfully executed /home/brion/src/emsdk/upstream/3453/bin/llc --version | |
shared:INFO: (Emscripten: Running sanity checks) | |
shared:DEBUG: successfully executed java -version | |
shared:DEBUG: executed /home/brion/src/emsdk/upstream/3453/bin/wasm-ld --version | |
emcc:DEBUG: compiling to bitcode | |
emcc:DEBUG: emcc step "parse arguments and setup" took 0.23 seconds | |
emscripten:DEBUG: Cache: PID 5639 acquiring multiprocess file lock to Emscripten cache at /home/brion/.emscripten_cache/wasm_o | |
emscripten:DEBUG: Cache: done | |
emcc:DEBUG: using bitcode file: test.o | |
emcc:DEBUG: emcc step "bitcodeize inputs" took 0.00 seconds | |
emcc:DEBUG: emcc step "process inputs" took 0.00 seconds | |
emcc:DEBUG: will generate JavaScript | |
root:DEBUG: binaryen root already set to /home/brion/src/emsdk/upstream/3453 | |
shared:DEBUG: executed /home/brion/src/emsdk/upstream/3453/bin/llvm-nm /home/brion/src/embind-tests/kerboom/test.o | |
root:DEBUG: including libcompiler_rt.a | |
root:DEBUG: including libc.a | |
root:DEBUG: including libc-wasm.a | |
root:DEBUG: including libdlmalloc_debug.a | |
root:DEBUG: including libpthreads_stub.a | |
emcc:DEBUG: emcc step "calculate system libraries" took 0.04 seconds | |
emcc:DEBUG: linking: ['test.o', '/home/brion/.emscripten_cache/wasm_o/libcompiler_rt.a', '/home/brion/.emscripten_cache/wasm_o/libc.a', '/home/brion/.emscripten_cache/wasm_o/libc-wasm.a', '/home/brion/.emscripten_cache/wasm_o/libdlmalloc_debug.a', '/home/brion/.emscripten_cache/wasm_o/libpthreads_stub.a', '/home/brion/.emscripten_cache/wasm_o/libcompiler_rt_wasm.a', '/home/brion/.emscripten_cache/wasm_o/libc_rt_wasm.a'] | |
shared:DEBUG: successfully executed /home/brion/src/emsdk/upstream/3453/bin/wasm-ld -z stack-size=5242880 --global-base=1024 --initial-memory=16777216 -o /tmp/emscripten_temp/test.wasm --no-entry --allow-undefined --import-memory --import-table --export __wasm_call_ctors --export __data_end --lto-O0 test.o /home/brion/.emscripten_cache/wasm_o/libcompiler_rt.a /home/brion/.emscripten_cache/wasm_o/libc.a /home/brion/.emscripten_cache/wasm_o/libc-wasm.a /home/brion/.emscripten_cache/wasm_o/libdlmalloc_debug.a /home/brion/.emscripten_cache/wasm_o/libpthreads_stub.a /home/brion/.emscripten_cache/wasm_o/libcompiler_rt_wasm.a /home/brion/.emscripten_cache/wasm_o/libc_rt_wasm.a --max-memory=16777216 -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr --export padding --export main --export malloc --export free --export setThrew --export __errno_location | |
emcc:DEBUG: emcc step "link" took 0.03 seconds | |
emcc:DEBUG: LLVM => JS | |
shared:DEBUG: TEMP_DIR not defined in /home/brion/.emscripten, using /tmp | |
root:DEBUG: binaryen root already set to /home/brion/src/emsdk/upstream/3453 | |
root:DEBUG: binaryen root already set to /home/brion/src/emsdk/upstream/3453 | |
shared:DEBUG: successfully executed /home/brion/src/emsdk/upstream/3453/bin/wasm-dis /tmp/emscripten_temp/test.wasm -o /tmp/emscripten_temp/base.wasm.wast | |
emscripten:WARNING: Wasm source map won't be usable in a browser without --source-map-base | |
shared:DEBUG: EM_CONFIG is located in /home/brion/.emscripten | |
shared:DEBUG: TEMP_DIR not defined in /home/brion/.emscripten, using /tmp | |
shared:DEBUG: PYTHON not defined in /home/brion/.emscripten, using "/usr/bin/python" | |
shared:DEBUG: JAVA not defined in /home/brion/.emscripten, using "java" | |
shared:DEBUG: check tells us to use wasm backend | |
shared:DEBUG: executed /home/brion/src/emsdk/upstream/3453/bin/wasm-ld --version | |
root:DEBUG: Reading DWARF information from /tmp/emscripten_temp/test.wasm | |
root:DEBUG: Read sections index | |
root:DEBUG: Saving to /tmp/emscripten_temp/test.wasm.map | |
root:DEBUG: Done | |
shared:DEBUG: successfully executed /usr/bin/python /home/brion/src/emsdk/upstream/3453/emscripten/tools/wasm-sourcemap.py /tmp/emscripten_temp/test.wasm --dwarfdump=/home/brion/src/emsdk/upstream/3453/bin/llvm-dwarfdump -o /tmp/emscripten_temp/test.wasm.map | |
shared:DEBUG: successfully executed /home/brion/src/emsdk/upstream/3453/bin/wasm-emscripten-finalize /tmp/emscripten_temp/test.wasm -o /tmp/emscripten_temp/test.wasm.o.wasm --global-base=1024 --emscripten-reserved-function-pointers=0 -g --input-source-map=/tmp/emscripten_temp/test.wasm.map --output-source-map=/tmp/emscripten_temp/test.wasm.o.wasm.map --output-source-map-url=test.wasm.map --initial-stack-pointer=5243904 | |
shared:DEBUG: successfully executed /home/brion/src/emsdk/upstream/3453/bin/wasm-dis /tmp/emscripten_temp/test.wasm.o.wasm -o /tmp/emscripten_temp/post_finalize.wasm.wast | |
emscripten:DEBUG: Metadata parsed: {'asmConsts': {}, | |
'declares': ['sbrk', 'abort', 'emscripten_memcpy_big'], | |
'emJsFuncs': {}, | |
'exports': ['__post_instantiate', | |
'__heap_base', | |
'__data_end', | |
'padding', | |
'main', | |
'malloc', | |
'__errno_location', | |
'free', | |
'setThrew', | |
'stackSave', | |
'stackAlloc', | |
'stackRestore', | |
'__growWasmMemory'], | |
'externs': [], | |
'implementedFunctions': ['___post_instantiate', | |
'_padding', | |
'_main', | |
'_malloc', | |
'___errno_location', | |
'_free', | |
'_setThrew', | |
'_stackSave', | |
'_stackAlloc', | |
'_stackRestore', | |
'___growWasmMemory'], | |
'initializers': ['___post_instantiate'], | |
'invokeFuncs': [], | |
'jsCallFuncType': [], | |
'jsCallStartIndex': 0, | |
'maxGlobalAlign': 0, | |
'simd': False, | |
'staticBump': 508, | |
'tableSize': 1} | |
emscripten:DEBUG: very limited syscalls () so disabling full filesystem support | |
emscripten:DEBUG: emscript: js compiler glue | |
shared:DEBUG: successfully executed /home/brion/src/emsdk/node/8.9.1_64bit/bin/node /home/brion/src/emsdk/upstream/3453/emscripten/src/compiler.js /tmp/emscripten_temp/tmpReEoF1.txt /home/brion/src/emsdk/upstream/3453/emscripten/src/library_pthread_stub.js | |
emscripten:DEBUG: emscript: glue took 0.362853050232 seconds | |
emscripten:DEBUG: global_base: 1024 stack_base: 5244672, stack_max: 1792, dynamic_base: 5244672, static bump: 768 | |
emcc:DEBUG: emcc step "emscript (llvm => executable code)" took 0.54 seconds | |
emcc:DEBUG: emcc step "source transforms" took 0.00 seconds | |
emcc:DEBUG: emcc step "memory initializer" took 0.00 seconds | |
emcc:DEBUG: emcc step "js opts" took 0.00 seconds | |
emcc:DEBUG: using binaryen | |
root:DEBUG: binaryen root already set to /home/brion/src/emsdk/upstream/3453 | |
emcc:DEBUG: wasm-opt on BINARYEN_PASSES: /home/brion/src/emsdk/upstream/3453/bin/wasm-opt test.wasm -o test.wasm --no-exit-runtime -O1 --post-emscripten --strip-producers --mvp-features -g | |
shared:DEBUG: successfully executed /home/brion/src/emsdk/upstream/3453/bin/wasm-opt test.wasm -o test.wasm --no-exit-runtime -O1 --post-emscripten --strip-producers --mvp-features -g | |
emcc:DEBUG: Private module export name substitution with Module | |
emcc:DEBUG: emcc step "final emitting" took 0.05 seconds | |
emscripten:DEBUG: Cache: PID 5639 released multiprocess file lock to Emscripten cache at /home/brion/.emscripten_cache/wasm_o | |
emcc:DEBUG: total time: 0.67 seconds |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment