Created
June 27, 2017 23:55
-
-
Save norio-nomura/0de81d639484e08fcd7124576d251713 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
➜ 8:51:41 git:(master) ✗ echo 'print("Hello, world!")'|DEVELOPER_DIR=/Applications/Xcode-beta.app swiftc - -static-stdlib -emit-bc -o hello_world.bc | |
➜ 8:51:48 git:(master) ✗ DEVELOPER_DIR=/Applications/Xcode-beta.app LLVM=/usr/local/Cellar/emscripten/1.37.10/libexec/llvm/bin/ emcc hello_world.bc | |
warning: Linking two modules of different data layouts: '/Users/norio/.emscripten_cache/asmjs/libc.bc' is 'e-p:32:32-i64:64-v128:32:128-n32-S128' whereas 'hello_world.bc' is 'e-m:o-i64:64-f80:128-n8:16:32:64-S128' | |
warning: Linking two modules of different target triples: /Users/norio/.emscripten_cache/asmjs/libc.bc' is 'asmjs-unknown-emscripten' whereas 'hello_world.bc' is 'x86_64-apple-macosx10.9' | |
error: Appending variables with different alignment need to be linked! | |
Traceback (most recent call last): | |
File "/usr/local/bin/emcc", line 13, in <module> | |
emcc.run() | |
File "/usr/local/Cellar/emscripten/1.37.10/libexec/emcc.py", line 1649, in run | |
final = shared.Building.llvm_opt(final, link_opts, DEFAULT_FINAL) | |
File "/usr/local/Cellar/emscripten/1.37.10/libexec/tools/shared.py", line 1838, in llvm_opt | |
assert os.path.exists(target), 'Failed to run llvm optimizations: ' + output | |
AssertionError: Failed to run llvm optimizations: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment