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

Latest Rust will not compile #1676

Closed
Pelle-B opened this issue Sep 10, 2022 · 5 comments
Closed

Latest Rust will not compile #1676

Pelle-B opened this issue Sep 10, 2022 · 5 comments

Comments

@Pelle-B
Copy link
Contributor

Pelle-B commented Sep 10, 2022

Version 1.63.0-1
The last of the output in xterm:
`CXX_x86_64-unknown-linux-gnu = Some("c++")
CXXFLAGS_x86_64-unknown-linux-gnu = Some("-ffunction-sections -fdata-sections -fPIC -m64 -march=x86-64 -pipe -fomit-frame-pointer")
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("fxsr,llvm14-builtins-abi,sse,sse2")
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-march=x86-64" "-pipe" "-fomit-frame-pointer" "-I/usr/include" "-std=c++14" "-fno-exceptions" "-D_GNU_SOURCE" "-D__STDC_CONSTANT_MACROS" "-D__STDC_FORMAT_MACROS" "-D__STDC_LIMIT_MACROS" "-DLLVM_COMPONENT_AMDGPU" "-DLLVM_COMPONENT_ASMPARSER" "-DLLVM_COMPONENT_BITREADER" "-DLLVM_COMPONENT_BITWRITER" "-DLLVM_COMPONENT_BPF" "-DLLVM_COMPONENT_COVERAGE" "-DLLVM_COMPONENT_INSTRUMENTATION" "-DLLVM_COMPONENT_IPO" "-DLLVM_COMPONENT_LINKER" "-DLLVM_COMPONENT_LTO" "-DLLVM_COMPONENT_NVPTX" "-DLLVM_COMPONENT_WEBASSEMBLY" "-DLLVM_COMPONENT_X86" "-DNDEBUG" "-o" "/var/cache/scratchpkg/work/rust/src/rustc-1.63.0-src/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/build/rustc_llvm-5137e0cac6014676/out/llvm-wrapper/PassWrapper.o" "-c" "llvm-wrapper/PassWrapper.cpp"
cargo:warning=llvm-wrapper/PassWrapper.cpp: In lambda function:
cargo:warning=llvm-wrapper/PassWrapper.cpp:988:43: error: 'ASanGlobalsMetadataAnalysis' was not declared in this scope
cargo:warning= 988 | MPM.addPass(RequireAnalysisPass<ASanGlobalsMetadataAnalysis, Module>());
cargo:warning= | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
cargo:warning=llvm-wrapper/PassWrapper.cpp:988:78: error: template argument 1 is invalid
cargo:warning= 988 | MPM.addPass(RequireAnalysisPass<ASanGlobalsMetadataAnalysis, Module>());
cargo:warning= | ^
exit status: 1

--- stderr

error occurred: Command "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-march=x86-64" "-pipe" "-fomit-frame-pointer" "-I/usr/include" "-std=c++14" "-fno-exceptions" "-D_GNU_SOURCE" "-D__STDC_CONSTANT_MACROS" "-D__STDC_FORMAT_MACROS" "-D__STDC_LIMIT_MACROS" "-DLLVM_COMPONENT_AMDGPU" "-DLLVM_COMPONENT_ASMPARSER" "-DLLVM_COMPONENT_BITREADER" "-DLLVM_COMPONENT_BITWRITER" "-DLLVM_COMPONENT_BPF" "-DLLVM_COMPONENT_COVERAGE" "-DLLVM_COMPONENT_INSTRUMENTATION" "-DLLVM_COMPONENT_IPO" "-DLLVM_COMPONENT_LINKER" "-DLLVM_COMPONENT_LTO" "-DLLVM_COMPONENT_NVPTX" "-DLLVM_COMPONENT_WEBASSEMBLY" "-DLLVM_COMPONENT_X86" "-DNDEBUG" "-o" "/var/cache/scratchpkg/work/rust/src/rustc-1.63.0-src/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/build/rustc_llvm-5137e0cac6014676/out/llvm-wrapper/PassWrapper.o" "-c" "llvm-wrapper/PassWrapper.cpp" with args "c++" did not execute successfully (status code exit status: 1).

warning: build failed, waiting for other jobs to finish...
Build completed unsuccessfully in 0:04:01
==> ERROR: Build failed: rust-1.63.0-1
`

@Ouaille-Aime-Scier
Copy link

Here is my build.log.
build.log

@Pelle-B
Copy link
Contributor Author

Pelle-B commented Sep 10, 2022

Here is my build.log.

A quick look makes me think it is the same as mine (if I can find it).

@heitbaum
Copy link

@lumarogit
Copy link
Collaborator

Hi, this version build fine on my system. Try again with the updated version 1.64.0.

@Pelle-B
Copy link
Contributor Author

Pelle-B commented Sep 23, 2022

I close this issue as a new version is out.

@Pelle-B Pelle-B closed this as completed Sep 23, 2022
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

4 participants