-
Notifications
You must be signed in to change notification settings - Fork 288
Closed
Labels
pending releaseIssues that will be fixed by the next releaseIssues that will be fixed by the next release
Description
Hi. I've tried installing on Arch Linux with the following toolchaing:
Default host: x86_64-unknown-linux-gnu
rustup home: /home/app/.rustup
nightly-2019-12-05-x86_64-unknown-linux-gnu (default)
rustc 1.41.0-nightly (6d77e45f0 2019-12-04)
I've tried to build c2rust using cargo +nightly-2019-12-05 install c2rust --locked as suggested in response to #323 and the compilation failed with the following error:
/home/app/.cargo/registry/src/github.com-1ecc6299db9ec823/c2rust-ast-exporter-0.15.0/src/AstExporter.cpp: In lambda function:
/home/app/.cargo/registry/src/github.com-1ecc6299db9ec823/c2rust-ast-exporter-0.15.0/src/AstExporter.cpp:2466:37: error: ‘class clang::ASTContext’ has no member named ‘getRawCommentList’; did you mean ‘DeclRawComments’?
2466 | auto comments = Context.getRawCommentList().getCommentsInFile(file);
| ^~~~~~~~~~~~~~~~~
| DeclRawComments
/home/app/.cargo/registry/src/github.com-1ecc6299db9ec823/c2rust-ast-exporter-0.15.0/src/AstExporter.cpp: In function ‘std::vector<const char*, std::allocator<const char*> > augment_argv(int, const char**)’:
/home/app/.cargo/registry/src/github.com-1ecc6299db9ec823/c2rust-ast-exporter-0.15.0/src/AstExporter.cpp:2565:37: error: conversion from ‘llvm::StringRef’ to non-scalar type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} requested
2565 | std::string resource_dir = P.str();
| ~~~~~^~
make[3]: *** [CMakeFiles/clangAstExporter.dir/build.make:82: CMakeFiles/clangAstExporter.dir/AstExporter.cpp.o] Error 1
make[2]: *** [CMakeFiles/Makefile2:103: CMakeFiles/clangAstExporter.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:110: CMakeFiles/clangAstExporter.dir/rule] Error 2
make: *** [Makefile:137: clangAstExporter] Error 2
thread 'main' panicked at '
command did not execute successfully, got: exit code: 2
build script failed, must exit now', /home/app/.cargo/registry/src/github.com-1ecc6299db9ec823/cmake-0.1.44/src/lib.rs:885:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
Metadata
Metadata
Assignees
Labels
pending releaseIssues that will be fixed by the next releaseIssues that will be fixed by the next release