我試圖按照Web程序集指令(http://webassembly.org/getting-started/developers-guide/)安裝emsdk。這一切都在編譯OSX很好,但我遇到了以下錯誤,當我試圖建立它在Ubuntu 16.04:嘗試在Ubuntu上構建emsdk時出錯16.04
[ 94%] Built target llvm-lto2
[ 94%] Built target llvm-diff
[ 94%] Linking CXX executable ../../bin/llvm-c-test
collect2: error: ld returned 1 exit status
tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/build.make:425: recipe for target 'bin/llvm-c-test' failed
make[2]: *** [bin/llvm-c-test] Error 1
CMakeFiles/Makefile2:15474: recipe for target 'tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/all' failed
make[1]: *** [tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
Build failed due to exception!
Working directory: /opt/emsdk/clang/fastcomp/build_incoming_64
Command '['make', '-j1']' returned non-zero exit status 2
Installation failed!
有誰知道這是怎麼回事?
謝謝!這是一個徹底的解釋! :)我也能夠通過直接向網上的程序員請求幫助來解決這個問題:https://github.com/WebAssembly/website/issues/103 –