Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

cant compile in WSL FAILED: tools/clang/lib/ASTMatchers/Dynamic/CMakeFiles/obj.clangDynamicASTMatchers.dir/Registry.cpp.o #181

Open
anandijain opened this issue Oct 19, 2024 · 0 comments

Comments

@anandijain
Copy link

I am following the instructions in the docs https://enzyme.mit.edu/index.fcgi/rust/installation.html
Except I am using the Ubuntu 22 WSL distro.

Steps:

  • clone this repo
  • run the configure as instructed
  • run x.py as instructed

Here is the stack trace Its always nice to see finished in 5323.660 seconds Build completed unsuccessfully in 1:31:31

-- Build files have been written to: /home/anand/.rust/cloned/rust/build/x86_64-unknown-linux-gnu/llvm/build
running: cd "/home/anand/.rust/cloned/rust/build/x86_64-unknown-linux-gnu/llvm/build" && DESTDIR="" "cmake" "--build" "." "--target" "install" "--config" "Release" "--" "-j" "12"
[3651/4850] Building CXX object tools/clang/lib/ASTMatchers/Dynamic/CMakeFiles/obj.clangDynamicASTMatchers.dir/Registry.cpp.o
FAILED: tools/clang/lib/ASTMatchers/Dynamic/CMakeFiles/obj.clangDynamicASTMatchers.dir/Registry.cpp.o 
/usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/anand/.rust/cloned/rust/build/x86_64-unknown-linux-gnu/llvm/build/tools/clang/lib/ASTMatchers/Dynamic -I/home/anand/.rust/cloned/rust/src/llvm-project/clang/lib/ASTMatchers/Dynamic -I/home/anand/.rust/cloned/rust/src/llvm-project/clang/include -I/home/anand/.rust/cloned/rust/build/x86_64-unknown-linux-gnu/llvm/build/tools/clang/include -I/home/anand/.rust/cloned/rust/build/x86_64-unknown-linux-gnu/llvm/build/include -I/home/anand/.rust/cloned/rust/src/llvm-project/llvm/include -ffunction-sections -fdata-sections -fPIC -m64 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -w -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/clang/lib/ASTMatchers/Dynamic/CMakeFiles/obj.clangDynamicASTMatchers.dir/Registry.cpp.o -MF tools/clang/lib/ASTMatchers/Dynamic/CMakeFiles/obj.clangDynamicASTMatchers.dir/Registry.cpp.o.d -o tools/clang/lib/ASTMatchers/Dynamic/CMakeFiles/obj.clangDynamicASTMatchers.dir/Registry.cpp.o -c /home/anand/.rust/cloned/rust/src/llvm-project/clang/lib/ASTMatchers/Dynamic/Registry.cpp
c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
[3662/4850] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaExpr.cpp.o
ninja: build stopped: subcommand failed.
thread 'main' panicked at /home/anand/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cmake-0.1.48/src/lib.rs:975:5:

command did not execute successfully, got: exit status: 1

build script failed, must exit now
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
        finished in 5323.660 seconds
Build completed unsuccessfully in 1:31:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant