English 中文(简体)
错误:不明理由: - 说明中没有系统
原标题:Error: unknown argument: -nostdsysteminc in Emscripten
  • 时间:2012-04-05 19:49:23
  •  标签:
  • emscripten

我正在通过辅导读到这里:

到目前为止,我已经下载了来文方,安装了附属设施,并适当确定了我的描述环境文件。

这里的背景是:

# This file will be copied to ~/.emscripten if that file doesn t exist. Or, this is     that copy.
# IMPORTANT: Edit the *copy* with the right paths!

#EMSCRIPTEN_ROOT = os.path.expanduser( ~/Dev/emscripten ) # this helps projects using emscripten find it
EMSCRIPTEN_ROOT = os.path.expanduser( ~/softwares/kripken-emscripten-12e45ea )

#LLVM_ROOT = os.path.expanduser( ~/Dev/llvm-3.0/cbuild/bin )
LLVM_ROOT = os.path.expanduser( /usr/bin )

# See below for notes on which JS engine(s) you need
NODE_JS =  node 
SPIDERMONKEY_ENGINE = [os.path.expanduser( ~/Dev/mozilla-central/js/src/js ),  -m ,  -n ]
V8_ENGINE = os.path.expanduser( ~/Dev/v8/d8 )

TEMP_DIR =  /tmp 


########################################################################################################


# Pick the JS engine to use for running the compiler. This engine must exist, or
# nothing can be compiled.
#
# Recommendation: If you already have node installed, use that. Otherwise, build v8 or
#                 spidermonkey from source. Any of these three is fine, as long as it s
#                 a recent version (especially for v8 and spidermonkey).

COMPILER_ENGINE = NODE_JS
#COMPILER_ENGINE = V8_ENGINE
#COMPILER_ENGINE = SPIDERMONKEY_ENGINE


# All JS engines to use when running the automatic tests. Not all the engines in this list
# must exist (if they don t, they will be skipped in the test runner).
#
# Recommendation: If you already have node installed, use that. If you can, also build
#                 spidermonkey from source as well to get more test coverage (node can t
#                 run all the tests due to node issue 1669). v8 is currently not recommended
#                 here because of v8 issue 1822.

JS_ENGINES = [NODE_JS, SPIDERMONKEY_ENGINE]

但是,当我参加一项试验方案时,该试验方案位于指挥的测试目录中:

./emcc tests/hello_world.cpp

我正在犯错误:

error: unknown argument:  -nostdsysteminc 
emcc: compiler frontend failed to generate LLVM bitcode, halting

我无法理解为何出现这一错误。

问题回答

这很可能使你重新使用3之前的部族版本。

检查你的版本。

clang --version

我发现,我的版本为2.8,因为我已在乌班图11.04安装了吸收装置;一旦我更新到部族3.0,这一错误就消失了。





相关问题
Emcc compiling c++ files not compiling correctly

I used to have this: void extra(int x){ printf("Here s your number: %d ", x); } EXTERN EMSCRIPTEN_KEEPALIVE void myFunction(int x){ extra(x); } With a number input field and a ...

Unable to compile/build rust to wasm, when dependency uses C

One of my rust dependency is zip, which uses a C library to compile. When I try to compile using wasm-pack, it throws an error saying that clang cannot find the header files. I am able to compile ...

Enabling C++ linkage for Emscripten compilation

EDIT: the linkage is for the #include directives for the .h files. I figured out that the error occurs when the same #include statements is declared twice in different .cpp files. I m trying to use ...

热门标签