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

[ WASM ]Build fail host error #10446

Closed
ArionTT opened this issue Sep 3, 2018 · 5 comments · Fixed by #10618
Labels

Comments

@ArionTT
Copy link

@ArionTT ArionTT commented Sep 3, 2018

I have make and make install mono on linux. And now I am trying to build sdks/wasm.

I type the command :
make -C builds {toolchain,configure,build,package}-wasm-interp

And it return me a error:

configure: loading cache /home/Arion/WebAssembly/mono/sdks/builds/wasm-interp.config.cache
checking build system type... x86_64-unknown-linux-gnu
checking host system type... Invalid configuration `wasm32': machine `wasm32' not recognized
configure: error: /bin/sh /home/Arion/WebAssembly/mono/config.sub wasm32 failed
ERROR:root:**Configure step failed with non-zero return code: 1.  Command line: /home/Arion/WebAssembly/mono/configure --cache-file=/home/Arion/WebAssembly/mono/sdks/builds/wasm-interp.config.cache --prefix=/home/Arion/WebAssembly/mono/sdks/out/wasm-interp --enable-interpreter --disable-mcs-build --disable-nls --disable-boehm --disable-btls --with-lazy-gc-thread-creation=yes --with-libgc=none --disable-executables --disable-support-build --disable-visibility-hidden --enable-maintainer-mode --enable-minimal=ssa,com,jit,reflection_emit_save,reflection_emit,portability,assembly_remapping,attach,verifier,full_messages,appdomains,security,sgen_marksweep_conc,sgen_split_nursery,sgen_gc_bridge,logging,remoting,shared_perfcounters,sgen_debug_helpers,soft_debug --host=wasm32 at /home/Arion/WebAssembly/mono/sdks/builds/wasm-interp**
make: *** [.stamp-wasm-interp-configure] Error 1
@lewurm lewurm added the target-wasm label Sep 3, 2018
@lewurm

This comment has been minimized.

Copy link
Member

@lewurm lewurm commented Sep 3, 2018

@ArionTT what version of automake do you use? Since recently you need at least 1.16.1: #10013

@ArionTT

This comment has been minimized.

Copy link
Author

@ArionTT ArionTT commented Sep 3, 2018

@lewurm Thanks for reply. My automake version is 1.13.5 and now I have updated it to 1.16.1.(The blow last command is show automake version)

But it still return me a same error that the host is wrong.
Is any other soft should update to the certain version?

My system is CentOS 7.4

This is terminal info:

configure: loading cache /home/Arion/WebAssembly/mono/sdks/builds/wasm-interp.config.cache
checking build system type... x86_64-unknown-linux-gnu
checking host system type... Invalid configuration wasm32': machine wasm32' not recognized
configure: error: /bin/sh /home/Arion/WebAssembly/mono/config.sub wasm32 failed
ERROR:root:Configure step failed with non-zero return code: 1. Command line: /home/Arion/WebAssembly/mono/configure --cache-file=/home/Arion/WebAssembly/mono/sdks/builds/wasm-interp.config.cache --prefix=/home/Arion/WebAssembly/mono/sdks/out/wasm-interp --enable-interpreter --disable-mcs-build --disable-nls --disable-boehm --disable-btls --with-lazy-gc-thread-creation=yes --with-libgc=none --disable-executables --disable-support-build --disable-visibility-hidden --enable-maintainer-mode --enable-minimal=ssa,com,jit,reflection_emit_save,reflection_emit,portability,assembly_remapping,attach,verifier,full_messages,appdomains,security,sgen_marksweep_conc,sgen_split_nursery,sgen_gc_bridge,logging,remoting,shared_perfcounters,sgen_debug_helpers,soft_debug --host=wasm32 at /home/Arion/WebAssembly/mono/sdks/builds/wasm-interp
make: *** [.stamp-wasm-interp-configure] Error 1

[Arion@vultr builds]$ automake --version
automake (GNU automake) 1.16.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later https://gnu.org/licenses/gpl-2.0.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Tom Tromey tromey@redhat.com
and Alexandre Duret-Lutz adl@gnu.org.

@lewurm

This comment has been minimized.

Copy link
Member

@lewurm lewurm commented Sep 5, 2018

@kumpera any idea?

@kumpera

This comment has been minimized.

Copy link
Member

@kumpera kumpera commented Sep 5, 2018

Yes, you have an old automake (prior to 1.16.1) and/or you have a configure cache that you must remove. git clean -xffd your checkout.

kjpou1 added a commit to kjpou1/mono that referenced this issue Sep 14, 2018
- Update the gitignore for wasm-runtime
- Document automake 1.16.1 dependency. resolves mono#10446

closes mono#10614
luhenry added a commit that referenced this issue Sep 14, 2018
…es. (#10618)

- Update the gitignore for wasm-runtime
- Document automake 1.16.1 dependency. resolves #10446

closes #10614
@zwcloud

This comment has been minimized.

Copy link

@zwcloud zwcloud commented Oct 16, 2018

Still got the same error (the repo was just cloned from GitHub):

root@localhost:/home/cloud/mono/sdks# make -C builds {toolchain,configure,build,package,clean}-wasm-runtime
make: Entering directory '/home/cloud/mono/sdks/builds'
make: Nothing to be done for 'toolchain-wasm-runtime'.
mkdir -p /home/cloud/mono/sdks/builds/wasm-runtime-release
cd /home/cloud/mono/sdks/builds/wasm-runtime-release && source /home/cloud/mono/sdks/builds/toolchains/emsdk/emsdk_env.sh && CFLAGS="-Os -g" emconfigure /home/cloud/mono/configure ac_cv_func_shm_open_working_with_mmap=no --cache-file=/home/cloud/mono/sdks/builds/wasm-runtime-release.config.cache --prefix=/home/cloud/mono/sdks/out/wasm-runtime-release --disable-mcs-build --disable-nls --disable-boehm --disable-btls --with-lazy-gc-thread-creation=yes --with-libgc=none --disable-executables --disable-support-build --disable-visibility-hidden --enable-maintainer-mode --enable-minimal=ssa,com,jit,reflection_emit_save,portability,assembly_remapping,attach,verifier,full_messages,appdomains,security,sgen_marksweep_conc,sgen_split_nursery,sgen_gc_bridge,logging,remoting,shared_perfcounters,sgen_debug_helpers,soft_debug,interpreter --host=wasm32 --enable-llvm-runtime --enable-icall-export --disable-icall-tables --disable-crash-reporting --with-bitcode=yes CFLAGS="-fexceptions"
Adding directories to PATH:
PATH += /home/cloud/mono/sdks/builds/toolchains/emsdk
PATH += /home/cloud/mono/sdks/builds/toolchains/emsdk/clang/e1.38.11_64bit
PATH += /home/cloud/mono/sdks/builds/toolchains/emsdk/node/8.9.1_64bit/bin
PATH += /home/cloud/mono/sdks/builds/toolchains/emsdk/emscripten/1.38.11

Setting environment variables:
EMSDK = /home/cloud/mono/sdks/builds/toolchains/emsdk
EM_CONFIG = /home/cloud/mono/sdks/builds/toolchains/emsdk/.emscripten
EM_CACHE = /home/cloud/mono/sdks/builds/toolchains/emsdk/.emscripten_cache
LLVM_ROOT = /home/cloud/mono/sdks/builds/toolchains/emsdk/clang/e1.38.11_64bit
EMSCRIPTEN_NATIVE_OPTIMIZER = /home/cloud/mono/sdks/builds/toolchains/emsdk/clang/e1.38.11_64bit/optimizer
BINARYEN_ROOT = /home/cloud/mono/sdks/builds/toolchains/emsdk/clang/e1.38.11_64bit/binaryen
EMSDK_NODE = /home/cloud/mono/sdks/builds/toolchains/emsdk/node/8.9.1_64bit/bin/node
EMSCRIPTEN = /home/cloud/mono/sdks/builds/toolchains/emsdk/emscripten/1.38.11

configure: loading cache /home/cloud/mono/sdks/builds/wasm-runtime-release.config.cache
checking build system type... x86_64-pc-linux-gnu
checking host system type... Invalid configuration wasm32': machine wasm32' not recognized
configure: error: /bin/bash /home/cloud/mono/config.sub wasm32 failed
ERROR:root:Configure step failed with non-zero return code: 1. Command line: /home/cloud/mono/configure ac_cv_func_shm_open_working_with_mmap=no --cache-file=/home/cloud/mono/sdks/builds/wasm-runtime-release.config.cache --prefix=/home/cloud/mono/sdks/out/wasm-runtime-release --disable-mcs-build --disable-nls --disable-boehm --disable-btls --with-lazy-gc-thread-creation=yes --with-libgc=none --disable-executables --disable-support-build --disable-visibility-hidden --enable-maintainer-mode --enable-minimal=ssa,com,jit,reflection_emit_save,portability,assembly_remapping,attach,verifier,full_messages,appdomains,security,sgen_marksweep_conc,sgen_split_nursery,sgen_gc_bridge,logging,remoting,shared_perfcounters,sgen_debug_helpers,soft_debug,interpreter --host=wasm32 --enable-llvm-runtime --enable-icall-export --disable-icall-tables --disable-crash-reporting --with-bitcode=yes CFLAGS=-fexceptions at /home/cloud/mono/sdks/builds/wasm-runtime-release
wasm.mk:46: recipe for target '.stamp-wasm-runtime-release-configure' failed
make: *** [.stamp-wasm-runtime-release-configure] Error 1
make: Leaving directory '/home/cloud/mono/sdks/builds'

20181016203906

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.