Closed fabalchemy closed 9 months ago
Hi, is the c++
command clang or gcc on your system, and which version?
$ gcc --version
gcc (Ubuntu 10.3.0-1ubuntu1) 10.3.0
Same problem with clang 12.0
:(
It seems like a few function definitions are missing when we compile llvm-wrapper/PassWrapper.cpp
Hi,
After more research, something is definitely going on with registerBeforePassCallback()
and LLVM.
In the main Rust repo, llvm-wrapper/PassWrapper.cpp
was patched (here) but the Twizzler fork was not (here).
With that in mind, I tried to compile using clang-11
, with no luck.
Would you mind sharing your Travis configuration or your own work environment?
Hi,
On Ubuntu 21.04, the first compilation step (building the toolchain) fails at the Rust compilation step :
```code error occurred: Command "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I/usr/lib/llvm-12/include" "-std=c++14" "-fno-exceptions" "-D_GNU_SOURCE" "-D__STDC_CONSTANT_MACROS" "-D__STDC_FORMAT_MACROS" "-D__STDC_LIMIT_MACROS" "-DLLVM_COMPONENT_AARCH64" "-DLLVM_COMPONENT_AMDGPU" "-DLLVM_COMPONENT_ARM" "-DLLVM_COMPONENT_ASMPARSER" "-DLLVM_COMPONENT_AVR" "-DLLVM_COMPONENT_BITREADER" "-DLLVM_COMPONENT_BITWRITER" "-DLLVM_COMPONENT_COVERAGE" "-DLLVM_COMPONENT_HEXAGON" "-DLLVM_COMPONENT_INSTRUMENTATION" "-DLLVM_COMPONENT_IPO" "-DLLVM_COMPONENT_LINKER" "-DLLVM_COMPONENT_LTO" "-DLLVM_COMPONENT_MIPS" "-DLLVM_COMPONENT_MSP430" "-DLLVM_COMPONENT_NVPTX" "-DLLVM_COMPONENT_POWERPC" "-DLLVM_COMPONENT_RISCV" "-DLLVM_COMPONENT_SPARC" "-DLLVM_COMPONENT_SYSTEMZ" "-DLLVM_COMPONENT_WEBASSEMBLY" "-DLLVM_COMPONENT_X86" "-DNDEBUG" "-o" "twizzler/build/tools/rust/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/build/rustc_llvm-db0862b5ac2e556c/out/llvm-wrapper/PassWrapper.o" "-c" "llvm-wrapper/PassWrapper.cpp" with args "c++" did not execute successfully (status code exit code: 1). warning: build failed, waiting for other jobs to finish... error: build failed command did not execute successfully: "twizzler/build/tools/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "build" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "8" "--release" "--features" " llvm max_level_info" "--manifest-path" "twizzler/tools/rust/compiler/rustc/Cargo.toml" "--message-format" "json-render-diagnostics" expected success, got: exit code: 101 failed to run: twizzler/build/tools/rust/build/bootstrap/debug/bootstrap build -j 8 Build completed unsuccessfully in 0:02:15 [111/114] Completed 'utils' FAILED: rustc-prefix/src/rustc-stamp/rustc-build ```FAILED: rustc-prefix/src/rustc-stamp/rustc-build
I have tried to delete and clone everything before rebuilding, with no luck