Skip to content
New issue

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

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

Already on GitHub? # to your account

Compilation problem #23

Open
saghul opened this issue Jul 3, 2018 · 3 comments
Open

Compilation problem #23

saghul opened this issue Jul 3, 2018 · 3 comments

Comments

@saghul
Copy link

saghul commented Jul 3, 2018

Hi! Thanks for making this! ❤️

I'm running into the following compilation problem:

/home/saghul/.cargo/registry/src/github.heygears.com-1ecc6299db9ec823/chakracore-sys-0.2.3/target/source-1.7.6/lib/Backend/IRBuilderAsmJs.cpp:1063:14: error: comparison of two values with different enumeration types in switch statement ('Js::AsmJsRetType::Which' and 'Js::AsmJsVarType::Which') [-Werror,-Wenum-compare-switch]
        case Js::AsmJsVarType::Which::Int64:
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

In case it matters, I'm using Rust 1.127.0. Cheers!

@saghul
Copy link
Author

saghul commented Jul 6, 2018

Hum, if I target master, the build succeeds, but fails right at the end:

[100%] Linking CXX executable GCStress
[100%] Built target GCStress
[100%] Linking CXX shared library libChakraCore.so
Error copying file (if different) from "/home/saghul/.cargo/git/checkouts/chakracore-rs-e6ca0ff6ca37a3ff/72a6a08/chakracore-sys/target/source-1.8.1/out/Debug/bin/ChakraCore/libChakraCore.so" to "/home/saghul/.cargo/git/checkouts/chakracore-rs-e6ca0ff6ca37a3ff/72a6a08/chakracore-sys/target/source-1.8.1/out/Debug/".
make[2]: *** [bin/ChakraCore/CMakeFiles/ChakraCore.dir/build.make:118: bin/ChakraCore/libChakraCore.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:1791: bin/ChakraCore/CMakeFiles/ChakraCore.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
See error details above. Exit code was 2

@darfink
Copy link
Owner

darfink commented Jul 6, 2018

I assume you're running Linux, which distribution are you using?

@saghul
Copy link
Author

saghul commented Jul 10, 2018

Hi! I could get it working by setting the static feature. Are dynamic library builds supported? FWIW, I'm using Fedora 28.

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

No branches or pull requests

2 participants