Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

native-build compilation issue #2

Open
crazyhtm opened this issue Jun 9, 2018 · 0 comments
Open

native-build compilation issue #2

crazyhtm opened this issue Jun 9, 2018 · 0 comments

Comments

@crazyhtm
Copy link

crazyhtm commented Jun 9, 2018

If you could find a time and let me know which "clang" and "llc" version do you actually use for #9-native-build?
I am sorry for disturbing you, but actually I am new to WASM and there is so few info on the web about LLVM toolchain for it.

I was trying with :

  • clang version 7.0.0
  • LLVM version 7.0.0
    build with -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=WebAssembly

and

options from your Makefile

here it is what I got:

clang and llc - passed

and then

s2wasm func.s > func.wat

[[function element:]]:
get_local $push2=, 0
i32.const $push0=, 3
i32.shl $push1=

Aborted (core dumped)

wasm-opt (with your options)

reading...
reading text from func.s
Loading 'func.s'...
[parse exception: expected list (at 1:1)]
Fatal: error in parsing input

Any guess?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant