servo / rust-mozjs

DEPRECATED - moved to servo/mozjs instead.
Mozilla Public License 2.0
293 stars 122 forks source link

Linux compilation failed #429

Open dudochkin-victor opened 6 years ago

dudochkin-victor commented 6 years ago

Both crates is build, mozjs test passed succesfull, but rust-mozjs failed. There are lot of 'undefined reference to' when i try to run tests. Example: /home/blacksmith/.cargo/registry/src/github.com-1ecc6299db9ec823/mozjs_sys-0.51.1/mozjs/js/src/jit/IonBuilder.cpp:14442: undefined reference to `js::jit::CompileCompartment::runtime()'

Also warning: cc1plus: warning: unrecognized command line option «-Wno-return-type-c-linkage» warning: cc1plus: warning: unrecognized command line option «-Wno-c++0x-extensions»

Seems that mozjs compiled using clang, but rust-mozjs compiled using gcc.

x86_64-pc-linux-gnu-5.4.0 clang-5.0.1