error: could not compile `luisa_compute_backend_impl` due to 5 previous errors; [ 51%] Built target _cargo-build_luisa_compute_ir
disini opened this issue · 3 comments
**I try to build this project on Ubuntu 22.04.2, with cmake version 3.27.0-rc5, cuda version 11.7.99, clang version 16.0.0
and the hardwares of my PC :
CPU : Intel® Core™ i7-6700K CPU @ 4.00GHz × 8
GPU : NVIDIA Corporation GP104 [GeForce GTX 1070]
the cmake process is ok,**
`/github/LuisaGroup/LuisaRender/LuisaRender/build_ubuntu$ cmake ../
-- Could not find sccache
-- Shared libraries enabled
-- Looking for ZLIB...
-- Checking for module 'zzip-zlib-config'
-- No package 'zzip-zlib-config' found
-- Found ZLIB: optimized;/usr/lib/x86_64-linux-gnu/libz.so;debug;/usr/lib/x86_64-linux-gnu/libz.so
-- Checking for module 'minizip'
-- Found minizip, version 1.2.8
-- Build an import-only version of Assimp.
-- Enabled importer formats: AMF 3DS AC ASE ASSBIN B3D BVH COLLADA DXF CSM HMP IRRMESH IQM IRR LWO LWS M3D MD2 MD3 MD5 MDC MDL NFF NDO OFF OBJ OGRE OPENGEX PLY MS3D COB BLEND IFC XGL FBX Q3D Q3BSP RAW SIB SMD STL TERRAGEN 3D X X3D GLTF 3MF MMD
-- Disabled importer formats:
-- Treating all warnings as errors (for assimp library only)
-- Could not find sccache
-- Build spdlog: 1.11.0
-- Build type: Release
-- Including X11 support
CMake Deprecation Warning at src/compute/src/ext/EASTL/packages/EABase/CMakeLists.txt:4 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Rust Target: x86_64-unknown-linux-gnu
-- Using Corrosion as a subdirectory
-- Build with CUDA backend: 11.7.99
-- Downloading nvcomp from https://developer.download.nvidia.com/compute/nvcomp/2.6.1/local_installers/nvcomp_2.6.1_x86_64_11.x.tgz
-- Found CUDAToolkit: /usr/local/cuda/include (found version "11.7.99")
-- Found nvcomp: /media/liusheng/Projects/project/game_engines/LuisaRender/github/LuisaGroup/LuisaRender/LuisaRender/build_ubuntu/_deps/nvcomp-src/lib/cmake/nvcomp/nvcomp-config.cmake (found version "2.6.1")
-- Configuring done (5.9s)
-- Generating done (1.6s)
-- Build files have been written to: `
but it present an error when executing make :
`warning: unused import: `SetLoggerError`
--> luisa_compute_backend_impl/src/lib.rs:7:49
|
7 | use log::{Level, LevelFilter, Metadata, Record, SetLoggerError};
| ^^^^^^^^^^^^^^
warning: `luisa_compute_backend_impl` (lib) generated 11 warnings
**error: could not compile `luisa_compute_backend_impl` due to 5 previous errors; 1**1 warnings emitted
make[2]: *** [src/compute/src/rust/CMakeFiles/_cargo-build_luisa_compute_backend_impl.dir/build.make:70:src/compute/src/rust/CMakeFiles/_cargo-build_luisa_compute_backend_impl] 错误 101
make[1]: *** [CMakeFiles/Makefile2:1767:src/compute/src/rust/CMakeFiles/_cargo-build_luisa_compute_backend_impl.dir/all] 错误 2
make[1]: *** 正在等待未完成的任务....
Compiling luisa_compute_ir v0.1.1-alpha.1 (/media/liusheng/Projects/project/game_engines/LuisaRender/github/LuisaGroup/LuisaRender/LuisaRender/src/compute/src/rust/luisa_compute_ir)
Compiling luisa_compute_api_types v0.1.1-alpha.1 (/media/liusheng/Projects/project/game_engines/LuisaRender/github/LuisaGroup/LuisaRender/LuisaRender/src/compute/src/rust/luisa_compute_api_types)
Compiling bincode v1.3.3
Compiling serde_json v1.0.103
warning: unused import: `Deserialize`
--> luisa_compute_ir/src/ffi.rs:8:13
|
8 | use serde::{Deserialize, Serialize};
| ^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: unused import: `std::ffi::CString`
--> luisa_compute_ir/src/display.rs:6:5
`
and it ended here:
`326 | fn construct(&self, value: Value, ty: CArc<Type>, builder: &mut IrBuilder) -> NodeRef {
| ^^^^^^^^^
warning: associated function `destruct` is never used
--> luisa_compute_ir/src/transform/eval.rs:354:8
|
354 | fn destruct(&self, node: NodeRef, builder: &mut IrBuilder) -> Value {
| ^^^^^^^^
warning: `luisa_compute_ir` (lib) generated 27 warnings
Finished release [optimized] target(s) in 3m 54s
Copying byproducts `libluisa_compute_ir.so` to /media/liusheng/Projects/project/game_engines/LuisaRender/github/LuisaGroup/LuisaRender/LuisaRender/build_ubuntu/bin
[ 51%] Built target _cargo-build_luisa_compute_ir
make: *** [Makefile:136:all] 错误 2
`
and the 5 previous errors are:
`warning: `luisa_compute_backend` (lib) generated 10 warnings
Compiling luisa_compute_backend_impl v0.1.0-alpha.1 (/media/liusheng/Projects/project/game_engines/LuisaRender/github/LuisaGroup/LuisaRender/LuisaRender/src/compute/src/rust/luisa_compute_backend_impl)
**error: unknown x86 target feature: gfni**
--> luisa_compute_backend_impl/src/cpu/llvm.rs:985:8
|
985 | if is_x86_feature_detected!("gfni") { features.push("gfni"); }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `is_x86_feature_detected` (in Nightly builds, run with -Z macro-backtrace for more info)
**error: unknown x86 target feature: vaes**
--> luisa_compute_backend_impl/src/cpu/llvm.rs:986:8
|
986 | if is_x86_feature_detected!("vaes") { features.push("vaes"); }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `is_x86_feature_detected` (in Nightly builds, run with -Z macro-backtrace for more info)
**error: unknown x86 target feature: vpclmulqdq**
--> luisa_compute_backend_impl/src/cpu/llvm.rs:987:8
|
987 | if is_x86_feature_detected!("vpclmulqdq") { features.push("vpclmulqdq"); }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `is_x86_feature_detected` (in Nightly builds, run with -Z macro-backtrace for more info)
**error: unknown x86 target feature: movbe**
--> luisa_compute_backend_impl/src/cpu/llvm.rs:1008:8
|
1008 | if is_x86_feature_detected!("movbe") { features.push("movbe"); }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `is_x86_feature_detected` (in Nightly builds, run with -Z macro-backtrace for more info)
**error: unknown x86 target feature: ermsb**
--> luisa_compute_backend_impl/src/cpu/llvm.rs:1009:8
|
1009 | if is_x86_feature_detected!("ermsb") { features.push("ermsb"); }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `is_x86_feature_detected` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: unused import: `cell::RefCell`
--> luisa_compute_backend_impl/src/cpu/mod.rs:3:11
|
3 | use std::{cell::RefCell, sync::Arc};
| ^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
`
**Does any one ever met this problem?
How should I do ?
Thanks a lot!**
Hi, @disini
Thanks for reporting this. It looks like your Rust toolchain is outdated. Would you please try
rustup update
to update it and then compile the project again?
Hi, @disini
Thanks for reporting this. It looks like your Rust toolchain is outdated. Would you please try
rustup updateto update it and then compile the project again?
Thank you for reply sir, it works!!! lol!
Thank you!