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

"/bin/sh: 1: ./build_luisa.sh: not found" while trying to build the Docker image #397

Closed
git523 opened this issue Dec 30, 2024 · 6 comments

Comments

@git523
Copy link

git523 commented Dec 30, 2024

I was trying to build the Docker image, and came across the following error. Not sure if anyone has this before, thanks for your help:

D:\Genesis-docker\github>docker build -t genesis -f docker/Dockerfile docker
[+] Building 819.7s (19/26) docker:desktop-linux
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 4.50kB 0.0s
=> [internal] load metadata for docker.io/pytorch/pytorch:2.5.1-cuda12.1-cudnn9-devel 0.4s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 1.75kB 0.0s
=> [builder 1/11] FROM docker.io/pytorch/pytorch:2.5.1-cuda12.1-cudnn9-devel@sha256:e8e63dd7baca894ba11fe1ba48a52a550793c8974f89b533d697784dd20a4dc0 0.0s
=> => resolve docker.io/pytorch/pytorch:2.5.1-cuda12.1-cudnn9-devel@sha256:e8e63dd7baca894ba11fe1ba48a52a550793c8974f89b533d697784dd20a4dc0 0.0s
=> CACHED [stage-1 2/12] RUN apt-get update && apt-get install -y --no-install-recommends tmux git curl wget bash-completion 0.0s
=> [stage-1 3/12] WORKDIR /workspace 0.0s
=> CACHED [builder 2/11] RUN apt-get update && apt-get install -y --no-install-recommends build-essential manpages-dev libvulkan-dev 0.0s
=> CACHED [builder 3/11] RUN add-apt-repository ppa:ubuntu-toolchain-r/test && apt update && apt install -y --no-install-recommends gcc- 0.0s
=> CACHED [builder 4/11] RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 110 && update-alternatives --install /usr/bin/g++ g+ 0.0s
=> [builder 5/11] RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y 77.4s
=> [stage-1 4/12] RUN pip install --no-cache-dir open3d 409.0s
=> [builder 6/11] RUN pip install "pybind11[global]" 2.4s
=> [builder 7/11] RUN wget https://github.com/Kitware/CMake/releases/download/v3.31.0-rc2/cmake-3.31.0-rc2-linux-x86_64.sh && chmod +x cmake-3. 32.8s
=> [builder 8/11] WORKDIR /workspace 0.0s
=> [builder 9/11] RUN git clone https://github.com/Genesis-Embodied-AI/Genesis.git && cd Genesis && git submodule update --init --recursiv 706.2s
=> CANCELED [stage-1 5/12] RUN git clone https://github.com/Genesis-Embodied-AI/Genesis.git && cd Genesis && pip install . && pip inst 410.1s
=> [builder 10/11] COPY build_luisa.sh /workspace/build_luisa.sh 0.1s
=> ERROR [builder 11/11] RUN chmod +x ./build_luisa.sh && ./build_luisa.sh 3.11 0.3s

[builder 11/11] RUN chmod +x ./build_luisa.sh && ./build_luisa.sh 3.11:
0.238 /bin/sh: 1: ./build_luisa.sh: not found


Dockerfile:52

50 | git submodule update --init --recursive
51 | COPY build_luisa.sh /workspace/build_luisa.sh
52 | >>> RUN chmod +x ./build_luisa.sh && ./build_luisa.sh ${PYTHON_VERSION}
53 |
54 | # ===============================================================

ERROR: failed to solve: process "/bin/sh -c chmod +x ./build_luisa.sh && ./build_luisa.sh ${PYTHON_VERSION}" did not complete successfully: exit code: 127

@AgentOfLyra
Copy link

我在windows中构建的时候也遇到了这个问题

@alanahmet
Copy link

This usually happens on Windows because the shell script has DOS/Windows CRLF line endings rather than Unix LF line endings. Even though you see the file in ls -l and have executed chmod +x, the Docker build environment (which is Linux-based) treats the carriage return (\r) as part of the filename or a bad interpreter directive, causing the not found error.

image

You can fix it by changing CRLF line editing to LF line editing on VSCode

@git523
Copy link
Author

git523 commented Jan 1, 2025

Thank you very much, I made the change of CRLF to LF, and the image-building process did proceed, and it came across another issue later down the path:

=================
33.81 [ 25%] Linking C shared library ../../../../../bin/liblc-ext-stb.so
33.82 [ 25%] Built target stb
33.83 [ 25%] Building CXX object src/compute/src/core/CMakeFiles/luisa-compute-core.dir/stl/filesystem.cpp.o
33.83 [ 25%] Building CXX object src/compute/src/core/CMakeFiles/luisa-compute-core.dir/basic_types.cpp.o
33.83 [ 25%] Building CXX object src/compute/src/core/CMakeFiles/luisa-compute-core.dir/stl/memory.cpp.o
33.83 [ 26%] Building CXX object src/compute/src/core/CMakeFiles/luisa-compute-core.dir/binary_buffer.cpp.o
33.83 [ 26%] Building CXX object src/compute/src/core/CMakeFiles/luisa-compute-core.dir/stl/hash.cpp.o
33.83 [ 26%] Building CXX object src/compute/src/core/CMakeFiles/luisa-compute-core.dir/binary_file_stream.cpp.o
33.83 [ 26%] Building CXX object src/compute/src/core/CMakeFiles/luisa-compute-core.dir/binary_io.cpp.o
33.83 [ 26%] Building CXX object src/compute/src/core/CMakeFiles/luisa-compute-core.dir/dynamic_module.cpp.o
33.83 [ 26%] Building CXX object src/compute/src/core/CMakeFiles/luisa-compute-core.dir/first_fit.cpp.o
33.83 [ 26%] Building CXX object src/compute/src/core/CMakeFiles/luisa-compute-core.dir/platform.cpp.o
33.83 [ 27%] Building CXX object src/compute/src/core/CMakeFiles/luisa-compute-core.dir/pool.cpp.o
33.83 [ 27%] Building CXX object src/compute/src/core/CMakeFiles/luisa-compute-core.dir/logging.cpp.o
33.83 [ 27%] Building CXX object src/compute/src/core/CMakeFiles/luisa-compute-core.dir/string_scratch.cpp.o
34.10 Compiling serde_derive v1.0.193
34.10 Compiling zerocopy-derive v0.6.6
34.43 Compiling zerocopy v0.6.6
35.38 gmake[1]: *** [CMakeFiles/Makefile2:1291: src/ext/assimp/code/CMakeFiles/assimp.dir/all] Error 2
35.38 gmake[1]: *** Waiting for unfinished jobs....
36.04 Compiling embree_sys v0.1.11 (https://github.com/shiinamiyuki/embree-sys#6a0a591d)
36.30 /workspace/Genesis/genesis/ext/LuisaRender/src/compute/src/core/binary_file_stream.cpp: In member function 'virtual void luisa::BinaryFileStream::read(eastl::spanstd::byte)':
36.30 /workspace/Genesis/genesis/ext/LuisaRender/src/compute/src/core/binary_file_stream.cpp:68:10: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
36.30 68 | fread(dst.data(), 1, size, _file);
36.30 | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
36.37 Compiling toml v0.5.11
36.50 Compiling half v2.3.1
36.50 Compiling bincode v1.3.3
38.00 Compiling luisa_compute_api_types v0.1.1-alpha.1 (/workspace/Genesis/genesis/ext/LuisaRender/src/compute/src/rust/luisa_compute_api_types)
38.00 Compiling luisa_compute_ir v0.1.1-alpha.1 (/workspace/Genesis/genesis/ext/LuisaRender/src/compute/src/rust/luisa_compute_ir)
38.00 Compiling luisa_compute_cpu_kernel_defs v0.1.0-alpha.1 (/workspace/Genesis/genesis/ext/LuisaRender/src/compute/src/rust/luisa_compute_cpu_kernel_defs)
39.83 [ 27%] Linking CXX shared library ../../../../bin/liblc-core.so
39.88 [ 27%] Built target luisa-compute-core
56.59 Compiling luisa_compute_ir_v2 v0.1.0 (/workspace/Genesis/genesis/ext/LuisaRender/src/compute/src/rust/luisa_compute_ir_v2)
56.59 Compiling luisa_compute_backend v0.1.1-alpha.1 (/workspace/Genesis/genesis/ext/LuisaRender/src/compute/src/rust/luisa_compute_backend)
56.63 warning: unused import: crate::*
56.63 --> luisa_compute_ir_v2/src/convert.rs:1:5
56.63 |
56.63 1 | use crate::;
56.63 | ^^^^^^^^
56.63 |
56.63 = note: #[warn(unused_imports)] on by default
56.63
56.74 warning: unused variable: module
56.74 --> luisa_compute_ir_v2/src/convert.rs:10:20
56.74 |
56.74 10 | pub fn convert(module:ir_v1::ir::Module) {
56.74 | ^^^^^^ help: if this is intentional, prefix it with an underscore: _module
56.74 |
56.74 = note: #[warn(unused_variables)] on by default
56.74
56.75 warning: struct V1ToV2 is never constructed
56.75 --> luisa_compute_ir_v2/src/convert.rs:5:8
56.75 |
56.75 5 | struct V1ToV2 {
56.75 | ^^^^^^
56.75 |
56.75 = note: #[warn(dead_code)] on by default
56.75
56.75 warning: associated function convert is never used
56.75 --> luisa_compute_ir_v2/src/convert.rs:10:12
56.75 |
56.75 9 | impl V1ToV2 {
56.75 | ----------- associated function in this implementation
56.75 10 | pub fn convert(module:ir_v1::ir::Module) {
56.75 | ^^^^^^^
56.75
56.75 warning: creating a shared reference to mutable static is discouraged
56.75 --> luisa_compute_ir_v2/src/lib.rs:38:15
56.75 |
56.75 38 | unsafe { &LIB.as_ref().unwrap().binding }
56.75 | ^^^^^^^^^^^^ shared reference to mutable static
56.75 |
56.75 = note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
56.75 = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
56.75 = note: #[warn(static_mut_refs)] on by default
56.75
56.86 warning: luisa_compute_ir_v2 (lib) generated 5 warnings (run cargo fix --lib -p luisa_compute_ir_v2 to apply 1 suggestion)
58.03 Compiling luisa_compute_ir_staticlib v0.1.0 (/workspace/Genesis/genesis/ext/LuisaRender/src/compute/src/rust/luisa_compute_ir_staticlib)
83.01 Compiling luisa_compute_backend_impl v0.1.0-alpha.1 (/workspace/Genesis/genesis/ext/LuisaRender/src/compute/src/rust/luisa_compute_backend_impl)
83.07 warning: unused import: std::ptr::null
83.07 --> luisa_compute_backend_impl/src/cpu/mod.rs:4:5
83.07 |
83.07 4 | use std::ptr::null;
83.07 | ^^^^^^^^^^^^^^
83.07 |
83.07 = note: #[warn(unused_imports)] on by default
83.07
83.07 warning: unused import: CBoxedSlice
83.07 --> luisa_compute_backend_impl/src/cpu/codegen/mod.rs:3:39
83.07 |
83.07 3 | use luisa_compute_ir::{context, CArc, CBoxedSlice};
83.07 | ^^^^^^^^^^^
83.07
83.07 warning: unused import: std::ffi::CString
83.07 --> luisa_compute_backend_impl/src/cpu/codegen/mod.rs:6:5
83.07 |
83.07 6 | use std::ffi::CString;
83.07 | ^^^^^^^^^^^^^^^^^
83.07
83.07 warning: unused import: luisa_compute_ir::ir
83.07 --> luisa_compute_backend_impl/src/cpu/codegen/mod.rs:9:5
83.07 |
83.07 9 | use luisa_compute_ir::ir;
83.07 | ^^^^^^^^^^^^^^^^^^^^
83.07
83.07 warning: unused import: decode_const_data
83.07 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:6:13
83.07 |
83.07 6 | use super::{decode_const_data, decode_const_data_v2, sha256_short};
83.07 | ^^^^^^^^^^^^^^^^^
83.07
83.07 warning: unused imports: Deserialize and Serialize
83.07 --> luisa_compute_backend_impl/src/cpu/shader.rs:7:13
83.07 |
83.07 7 | use serde::{Deserialize, Serialize};
83.07 | ^^^^^^^^^^^ ^^^^^^^^^
83.07
83.07 warning: unused import: CString
83.07 --> luisa_compute_backend_impl/src/cpu/shader.rs:10:17
83.07 |
83.07 10 | ffi::{CStr, CString},
83.07 | ^^^^^^^
83.07
83.08 warning: use of deprecated function std::arch::x86_64::_MM_SET_FLUSH_ZERO_MODE: see _mm_setcsr documentation - use inline assembly instead
83.08 --> luisa_compute_backend_impl/src/cpu/mod.rs:508:33
83.08 |
83.08 508 | ... _MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON);
83.08 | ^^^^^^^^^^^^^^^^^^^^^^^
83.08 |
83.08 = note: #[warn(deprecated)] on by default
83.08
83.08 warning: use of deprecated function std::arch::x86_64::_mm_setcsr: see _mm_setcsr documentation - use inline assembly instead
83.08 --> luisa_compute_backend_impl/src/cpu/mod.rs:511:33
83.08 |
83.08 511 | ... mm_setcsr(
83.08 | ^^^^^^^^^^
83.08
83.08 warning: use of deprecated function std::arch::x86_64::_mm_getcsr: see _mm_getcsr documentation - use inline assembly instead
83.08 --> luisa_compute_backend_impl/src/cpu/mod.rs:512:38
83.08 |
83.08 512 | ... (mm_getcsr() & !MM_DENORMALS_ZERO_MASK)
83.08 | ^^^^^^^^^^
83.08
83.12 warning: unreachable expression
83.12 --> luisa_compute_backend_impl/src/cpu/codegen/cpp.rs:1318:17
83.12 |
83.12 1317 | panic!("Use CpuFn/CpuCallable to pass closures to kernel directly instead of ExternalCallable on cpu backend!.");
83.12 | ---------------------------------------------------------------------------------------------------------------- any code following this expression is unreachable
83.12 1318 | true
83.12 | ^^^^ unreachable expression
83.12 |
83.12 = note: #[warn(unreachable_code)] on by default
83.12
83.23 warning: unused variable: buffer_ty
83.23 --> luisa_compute_backend_impl/src/cpu/codegen/cpp.rs:729:21
83.23 |
83.23 729 | let buffer_ty = self.type_gen.gen_c_type(args[0].type
());
83.23 | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: _buffer_ty
83.23 |
83.23 = note: #[warn(unused_variables)] on by default
83.23
83.27 warning: unused variable: var
83.27 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:1561:9
83.27 |
83.27 1561 | var: &String,
83.27 | ^^^ help: if this is intentional, prefix it with an underscore: _var
83.27
83.27 warning: unused variable: node_ty_s
83.27 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:1562:9
83.27 |
83.27 1562 | node_ty_s: &String,
83.27 | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: _node_ty_s
83.27
83.27 warning: unused variable: f
83.27 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:1563:9
83.27 |
83.27 1563 | f: FuncRef,
83.27 | ^ help: if this is intentional, prefix it with an underscore: _f
83.27
83.27 warning: unused variable: args_v
83.27 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:1564:9
83.27 |
83.27 1564 | args_v: &Vec,
83.27 | ^^^^^^ help: if this is intentional, prefix it with an underscore: _args_v
83.27
83.28 warning: unused variable: e
83.28 --> luisa_compute_backend_impl/src/cpu/codegen/mod.rs:665:17
83.28 |
83.28 665 | let e = ty.element();
83.28 | ^ help: if this is intentional, prefix it with an underscore: _e
83.28
83.37 warning: function decode_const_data_v2 is never used
83.37 --> luisa_compute_backend_impl/src/cpu/codegen/mod.rs:445:8
83.37 |
83.37 445 | pub fn decode_const_data_v2(data: &[u8], ty: TypeRef) -> String {
83.37 | ^^^^^^^^^^^^^^^^^^^^
83.37 |
83.37 = note: #[warn(dead_code)] on by default
83.37
83.37 warning: struct TypeGenInner is never constructed
83.37 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:10:19
83.37 |
83.37 10 | pub(crate) struct TypeGenInner {
83.37 | ^^^^^^^^^^^^
83.37
83.37 warning: associated items new, to_c_type_, and to_c_type are never used
83.37 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:16:19
83.37 |
83.37 15 | impl TypeGenInner {
83.37 | ----------------- associated items in this implementation
83.37 16 | pub(crate) fn new() -> Self {
83.37 | ^^^
83.37 ...
83.37 22 | fn to_c_type
(&mut self, t: TypeRef) -> String {
83.37 | ^^^^^^^^^^
83.37 ...
83.37 130 | pub(crate) fn to_c_type(&mut self, t: TypeRef) -> String {
83.37 | ^^^^^^^^^
83.37
83.37 warning: struct TypeGen is never constructed
83.37 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:141:8
83.37 |
83.37 141 | struct TypeGen {
83.37 | ^^^^^^^
83.37
83.37 warning: associated items new, gen_c_type, and generated are never used
83.37 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:146:8
83.37 |
83.37 145 | impl TypeGen {
83.37 | ------------ associated items in this implementation
83.37 146 | fn new() -> Self {
83.37 | ^^^
83.37 ...
83.37 151 | fn gen_c_type(&self, t: TypeRef) -> String {
83.37 | ^^^^^^^^^^
83.37 ...
83.37 154 | fn generated(&self) -> String {
83.37 | ^^^^^^^^^
83.37
83.37 warning: struct GlobalEmitter is never constructed
83.37 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:159:8
83.37 |
83.37 159 | struct GlobalEmitter {
83.37 | ^^^^^^^^^^^^^
83.37
83.37 warning: struct FunctionEmitter is never constructed
83.37 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:170:8
83.37 |
83.37 170 | struct FunctionEmitter<'a> {
83.37 | ^^^^^^^^^^^^^^^
83.37
83.37 warning: struct PhiCollector is never constructed
83.37 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:184:12
83.37 |
83.37 184 | pub struct PhiCollector {
83.37 | ^^^^^^^^^^^^
83.37
83.37 warning: associated items new and visit_block are never used
83.37 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:190:12
83.37 |
83.37 189 | impl PhiCollector {
83.37 | ----------------- associated items in this implementation
83.37 190 | pub fn new() -> Self {
83.37 | ^^^
83.37 ...
83.37 196 | pub unsafe fn visit_block(&mut self, block: BasicBlockRef) {
83.37 | ^^^^^^^^^^^
83.37
83.37 warning: multiple associated items are never used
83.37 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:267:8
83.37 |
83.37 266 | impl<'a> FunctionEmitter<'a> {
83.37 | ---------------------------- associated items in this implementation
83.37 267 | fn new(globals: &'a mut GlobalEmitter, type_gen: &'a TypeGen) -> Self {
83.37 | ^^^
83.37 ...
83.37 281 | fn write_ident(&mut self) {
83.37 | ^^^^^^^^^^^
83.37 ...
83.37 286 | fn gen_node(&mut self, node: NodeRef) -> String {
83.37 | ^^^^^^^^
83.37 ...
83.37 316 | fn access_chain(&mut self, mut var: String, node: NodeRef, indices: &[NodeRef]) -> String {
83.37 | ^^^^^^^^^^^^
83.37 ...
83.37 335 | fn atomic_chain_op(
83.37 | ^^^^^^^^^^^^^^^
83.37 ...
83.37 363 | fn gep_field_name(node: NodeRef, i: i32) -> String {
83.37 | ^^^^^^^^^^^^^^
83.37 ...
83.37 381 | fn gen_binop(
83.37 | ^^^^^^^^^
83.37 ...
83.37 419 | fn gen_call_op(
83.37 | ^^^^^^^^^^^
83.37 ...
83.37 531 | fn gen_buffer_op(
83.37 | ^^^^^^^^^^^^^
83.37 ...
83.37 827 | fn gen_misc(
83.37 | ^^^^^^^^
83.37 ...
83.37 1283 | fn gen_const(&mut self, var: &String, node_ty_s: &String, cst: ConstantInstRef) {
83.37 | ^^^^^^^^^
83.37 ...
83.37 1295 | fn gen_instr(&mut self, node: NodeRef) {
83.37 | ^^^^^^^^^
83.37 ...
83.37 1531 | fn gen_block
(&mut self, block: BasicBlockRef) {
83.37 | ^^^^^^^^^^
83.37 ...
83.37 1550 | fn gen_block(&mut self, block: BasicBlockRef) {
83.37 | ^^^^^^^^^
83.37 ...
83.37 1559 | fn gen_callable(
83.37 | ^^^^^^^^^^^^
83.37
83.37 warning: method copy_to_vec_2d is never used
83.37 --> luisa_compute_backend_impl/src/cpu/texture.rs:243:19
83.37 |
83.37 142 | impl TextureView {
83.37 | ---------------- method in this implementation
83.37 ...
83.37 243 | pub(crate) fn copy_to_vec_2d(&self) -> Vec {
83.37 | ^^^^^^^^^^^^^^
83.37
84.21 warning: luisa_compute_backend_impl (lib) generated 28 warnings (run cargo fix --lib -p luisa_compute_backend_impl to apply 7 suggestions)
84.21 Finished release profile [optimized] target(s) in 57.30s
84.22 warning: unused import: crate::*
84.22 --> luisa_compute_ir_v2/src/convert.rs:1:5
84.22 |
84.22 1 | use crate::;
84.22 | ^^^^^^^^
84.22 |
84.22 = note: #[warn(unused_imports)] on by default
84.22
84.22 warning: unused variable: module
84.22 --> luisa_compute_ir_v2/src/convert.rs:10:20
84.22 |
84.22 10 | pub fn convert(module:ir_v1::ir::Module) {
84.22 | ^^^^^^ help: if this is intentional, prefix it with an underscore: _module
84.22 |
84.22 = note: #[warn(unused_variables)] on by default
84.22
84.22 warning: struct V1ToV2 is never constructed
84.22 --> luisa_compute_ir_v2/src/convert.rs:5:8
84.22 |
84.22 5 | struct V1ToV2 {
84.22 | ^^^^^^
84.22 |
84.22 = note: #[warn(dead_code)] on by default
84.22
84.22 warning: associated function convert is never used
84.22 --> luisa_compute_ir_v2/src/convert.rs:10:12
84.22 |
84.22 9 | impl V1ToV2 {
84.22 | ----------- associated function in this implementation
84.22 10 | pub fn convert(module:ir_v1::ir::Module) {
84.22 | ^^^^^^^
84.22
84.22 warning: creating a shared reference to mutable static is discouraged
84.22 --> luisa_compute_ir_v2/src/lib.rs:38:15
84.22 |
84.22 38 | unsafe { &LIB.as_ref().unwrap().binding }
84.22 | ^^^^^^^^^^^^ shared reference to mutable static
84.22 |
84.22 = note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
84.22 = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
84.22 = note: #[warn(static_mut_refs)] on by default
84.22
84.22 warning: luisa_compute_ir_v2 (lib) generated 5 warnings (run cargo fix --lib -p luisa_compute_ir_v2 to apply 1 suggestion)
84.22 warning: unused import: std::ptr::null
84.22 --> luisa_compute_backend_impl/src/cpu/mod.rs:4:5
84.22 |
84.22 4 | use std::ptr::null;
84.22 | ^^^^^^^^^^^^^^
84.22 |
84.22 = note: #[warn(unused_imports)] on by default
84.22
84.22 warning: unused import: CBoxedSlice
84.22 --> luisa_compute_backend_impl/src/cpu/codegen/mod.rs:3:39
84.22 |
84.22 3 | use luisa_compute_ir::{context, CArc, CBoxedSlice};
84.22 | ^^^^^^^^^^^
84.22
84.22 warning: unused import: std::ffi::CString
84.22 --> luisa_compute_backend_impl/src/cpu/codegen/mod.rs:6:5
84.22 |
84.22 6 | use std::ffi::CString;
84.22 | ^^^^^^^^^^^^^^^^^
84.22
84.22 warning: unused import: luisa_compute_ir::ir
84.22 --> luisa_compute_backend_impl/src/cpu/codegen/mod.rs:9:5
84.22 |
84.22 9 | use luisa_compute_ir::ir;
84.22 | ^^^^^^^^^^^^^^^^^^^^
84.22
84.22 warning: unused import: decode_const_data
84.22 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:6:13
84.22 |
84.22 6 | use super::{decode_const_data, decode_const_data_v2, sha256_short};
84.22 | ^^^^^^^^^^^^^^^^^
84.22
84.22 warning: unused imports: Deserialize and Serialize
84.22 --> luisa_compute_backend_impl/src/cpu/shader.rs:7:13
84.22 |
84.22 7 | use serde::{Deserialize, Serialize};
84.22 | ^^^^^^^^^^^ ^^^^^^^^^
84.22
84.22 warning: unused import: CString
84.22 --> luisa_compute_backend_impl/src/cpu/shader.rs:10:17
84.22 |
84.22 10 | ffi::{CStr, CString},
84.22 | ^^^^^^^
84.22
84.22 warning: use of deprecated function std::arch::x86_64::_MM_SET_FLUSH_ZERO_MODE: see _mm_setcsr documentation - use inline assembly instead
84.22 --> luisa_compute_backend_impl/src/cpu/mod.rs:508:33
84.22 |
84.22 508 | ... _MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON);
84.22 | ^^^^^^^^^^^^^^^^^^^^^^^
84.22 |
84.22 = note: #[warn(deprecated)] on by default
84.22
84.22 warning: use of deprecated function std::arch::x86_64::_mm_setcsr: see _mm_setcsr documentation - use inline assembly instead
84.22 --> luisa_compute_backend_impl/src/cpu/mod.rs:511:33
84.22 |
84.22 511 | ... mm_setcsr(
84.22 | ^^^^^^^^^^
84.22
84.22 warning: use of deprecated function std::arch::x86_64::_mm_getcsr: see _mm_getcsr documentation - use inline assembly instead
84.22 --> luisa_compute_backend_impl/src/cpu/mod.rs:512:38
84.22 |
84.22 512 | ... (mm_getcsr() & !MM_DENORMALS_ZERO_MASK)
84.22 | ^^^^^^^^^^
84.22
84.22 warning: unreachable expression
84.22 --> luisa_compute_backend_impl/src/cpu/codegen/cpp.rs:1318:17
84.22 |
84.22 1317 | panic!("Use CpuFn/CpuCallable to pass closures to kernel directly instead of ExternalCallable on cpu backend!.");
84.22 | ---------------------------------------------------------------------------------------------------------------- any code following this expression is unreachable
84.22 1318 | true
84.22 | ^^^^ unreachable expression
84.22 |
84.22 = note: #[warn(unreachable_code)] on by default
84.22
84.22 warning: unused variable: buffer_ty
84.22 --> luisa_compute_backend_impl/src/cpu/codegen/cpp.rs:729:21
84.22 |
84.22 729 | let buffer_ty = self.type_gen.gen_c_type(args[0].type
());
84.22 | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: _buffer_ty
84.22 |
84.22 = note: #[warn(unused_variables)] on by default
84.22
84.22 warning: unused variable: var
84.22 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:1561:9
84.22 |
84.22 1561 | var: &String,
84.22 | ^^^ help: if this is intentional, prefix it with an underscore: _var
84.22
84.22 warning: unused variable: node_ty_s
84.22 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:1562:9
84.22 |
84.22 1562 | node_ty_s: &String,
84.22 | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: _node_ty_s
84.22
84.22 warning: unused variable: f
84.22 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:1563:9
84.22 |
84.22 1563 | f: FuncRef,
84.22 | ^ help: if this is intentional, prefix it with an underscore: _f
84.22
84.22 warning: unused variable: args_v
84.22 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:1564:9
84.22 |
84.22 1564 | args_v: &Vec,
84.22 | ^^^^^^ help: if this is intentional, prefix it with an underscore: _args_v
84.22
84.22 warning: unused variable: e
84.22 --> luisa_compute_backend_impl/src/cpu/codegen/mod.rs:665:17
84.22 |
84.22 665 | let e = ty.element();
84.22 | ^ help: if this is intentional, prefix it with an underscore: _e
84.22
84.22 warning: function decode_const_data_v2 is never used
84.22 --> luisa_compute_backend_impl/src/cpu/codegen/mod.rs:445:8
84.22 |
84.22 445 | pub fn decode_const_data_v2(data: &[u8], ty: TypeRef) -> String {
84.22 | ^^^^^^^^^^^^^^^^^^^^
84.22 |
84.22 = note: #[warn(dead_code)] on by default
84.22
84.22 warning: struct TypeGenInner is never constructed
84.22 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:10:19
84.22 |
84.22 10 | pub(crate) struct TypeGenInner {
84.22 | ^^^^^^^^^^^^
84.22
84.22 warning: associated items new, to_c_type_, and to_c_type are never used
84.22 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:16:19
84.22 |
84.22 15 | impl TypeGenInner {
84.22 | ----------------- associated items in this implementation
84.22 16 | pub(crate) fn new() -> Self {
84.22 | ^^^
84.22 ...
84.22 22 | fn to_c_type
(&mut self, t: TypeRef) -> String {
84.22 | ^^^^^^^^^^
84.22 ...
84.22 130 | pub(crate) fn to_c_type(&mut self, t: TypeRef) -> String {
84.22 | ^^^^^^^^^
84.22
84.22 warning: struct TypeGen is never constructed
84.22 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:141:8
84.22 |
84.22 141 | struct TypeGen {
84.22 | ^^^^^^^
84.22
84.22 warning: associated items new, gen_c_type, and generated are never used
84.22 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:146:8
84.22 |
84.22 145 | impl TypeGen {
84.22 | ------------ associated items in this implementation
84.22 146 | fn new() -> Self {
84.22 | ^^^
84.22 ...
84.22 151 | fn gen_c_type(&self, t: TypeRef) -> String {
84.22 | ^^^^^^^^^^
84.22 ...
84.22 154 | fn generated(&self) -> String {
84.22 | ^^^^^^^^^
84.22
84.22 warning: struct GlobalEmitter is never constructed
84.22 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:159:8
84.22 |
84.22 159 | struct GlobalEmitter {
84.22 | ^^^^^^^^^^^^^
84.22
84.22 warning: struct FunctionEmitter is never constructed
84.22 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:170:8
84.22 |
84.22 170 | struct FunctionEmitter<'a> {
84.22 | ^^^^^^^^^^^^^^^
84.22
84.22 warning: struct PhiCollector is never constructed
84.22 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:184:12
84.22 |
84.22 184 | pub struct PhiCollector {
84.22 | ^^^^^^^^^^^^
84.22
84.22 warning: associated items new and visit_block are never used
84.22 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:190:12
84.22 |
84.22 189 | impl PhiCollector {
84.22 | ----------------- associated items in this implementation
84.22 190 | pub fn new() -> Self {
84.22 | ^^^
84.22 ...
84.22 196 | pub unsafe fn visit_block(&mut self, block: BasicBlockRef) {
84.22 | ^^^^^^^^^^^
84.22
84.22 warning: multiple associated items are never used
84.22 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:267:8
84.22 |
84.22 266 | impl<'a> FunctionEmitter<'a> {
84.22 | ---------------------------- associated items in this implementation
84.22 267 | fn new(globals: &'a mut GlobalEmitter, type_gen: &'a TypeGen) -> Self {
84.22 | ^^^
84.22 ...
84.22 281 | fn write_ident(&mut self) {
84.22 | ^^^^^^^^^^^
84.22 ...
84.22 286 | fn gen_node(&mut self, node: NodeRef) -> String {
84.22 | ^^^^^^^^
84.22 ...
84.22 316 | fn access_chain(&mut self, mut var: String, node: NodeRef, indices: &[NodeRef]) -> String {
84.22 | ^^^^^^^^^^^^
84.22 ...
84.22 335 | fn atomic_chain_op(
84.22 | ^^^^^^^^^^^^^^^
84.22 ...
84.22 363 | fn gep_field_name(node: NodeRef, i: i32) -> String {
84.22 | ^^^^^^^^^^^^^^
84.22 ...
84.22 381 | fn gen_binop(
84.22 | ^^^^^^^^^
84.22 ...
84.22 419 | fn gen_call_op(
84.22 | ^^^^^^^^^^^
84.22 ...
84.22 531 | fn gen_buffer_op(
84.22 | ^^^^^^^^^^^^^
84.22 ...
84.22 827 | fn gen_misc(
84.22 | ^^^^^^^^
84.22 ...
84.22 1283 | fn gen_const(&mut self, var: &String, node_ty_s: &String, cst: ConstantInstRef) {
84.22 | ^^^^^^^^^
84.22 ...
84.22 1295 | fn gen_instr(&mut self, node: NodeRef) {
84.22 | ^^^^^^^^^
84.22 ...
84.22 1531 | fn gen_block
(&mut self, block: BasicBlockRef) {
84.22 | ^^^^^^^^^^
84.22 ...
84.22 1550 | fn gen_block(&mut self, block: BasicBlockRef) {
84.22 | ^^^^^^^^^
84.22 ...
84.22 1559 | fn gen_callable(
84.22 | ^^^^^^^^^^^^
84.22
84.22 warning: method copy_to_vec_2d is never used
84.22 --> luisa_compute_backend_impl/src/cpu/texture.rs:243:19
84.22 |
84.22 142 | impl TextureView {
84.22 | ---------------- method in this implementation
84.22 ...
84.22 243 | pub(crate) fn copy_to_vec_2d(&self) -> Vec {
84.22 | ^^^^^^^^^^^^^^
84.22
84.22 warning: luisa_compute_backend_impl (lib) generated 28 warnings (run cargo fix --lib -p luisa_compute_backend_impl to apply 7 suggestions)
84.22 Finished release profile [optimized] target(s) in 57.30s
84.22 [ 28%] Generating ../../../../bin/libluisa_compute_ir_static.a
84.23 Compiling luisa_compute_ir v0.1.1-alpha.1 (/workspace/Genesis/genesis/ext/LuisaRender/src/compute/src/rust/luisa_compute_ir)
84.23 [ 28%] Copying /workspace/Genesis/genesis/ext/LuisaRender/build/src/compute/src/rust/rust/release/libluisa_compute_backend_impl.so to /workspace/Genesis/genesis/ext/LuisaRender/build/bin/libluisa_compute_backend_impl.so and patch it
84.24 [ 28%] Built target libluisa_compute_ir_static.a
84.24 [ 28%] Built target luisa_compute_rust_build_libluisa_compute_backend_impl.so
85.18 Compiling luisa_compute_ir_v2 v0.1.0 (/workspace/Genesis/genesis/ext/LuisaRender/src/compute/src/rust/luisa_compute_ir_v2)
85.18 Compiling luisa_compute_backend v0.1.1-alpha.1 (/workspace/Genesis/genesis/ext/LuisaRender/src/compute/src/rust/luisa_compute_backend)
85.22 warning: unused import: crate::*
85.22 --> luisa_compute_ir_v2/src/convert.rs:1:5
85.22 |
85.22 1 | use crate::;
85.22 | ^^^^^^^^
85.22 |
85.22 = note: #[warn(unused_imports)] on by default
85.22
85.32 warning: unused variable: module
85.32 --> luisa_compute_ir_v2/src/convert.rs:10:20
85.32 |
85.32 10 | pub fn convert(module:ir_v1::ir::Module) {
85.32 | ^^^^^^ help: if this is intentional, prefix it with an underscore: _module
85.32 |
85.32 = note: #[warn(unused_variables)] on by default
85.32
85.34 warning: struct V1ToV2 is never constructed
85.34 --> luisa_compute_ir_v2/src/convert.rs:5:8
85.34 |
85.34 5 | struct V1ToV2 {
85.34 | ^^^^^^
85.34 |
85.34 = note: #[warn(dead_code)] on by default
85.34
85.34 warning: associated function convert is never used
85.34 --> luisa_compute_ir_v2/src/convert.rs:10:12
85.34 |
85.34 9 | impl V1ToV2 {
85.34 | ----------- associated function in this implementation
85.34 10 | pub fn convert(module:ir_v1::ir::Module) {
85.34 | ^^^^^^^
85.34
85.34 warning: creating a shared reference to mutable static is discouraged
85.34 --> luisa_compute_ir_v2/src/lib.rs:38:15
85.34 |
85.34 38 | unsafe { &LIB.as_ref().unwrap().binding }
85.34 | ^^^^^^^^^^^^ shared reference to mutable static
85.34 |
85.34 = note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
85.34 = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
85.34 = note: #[warn(static_mut_refs)] on by default
85.34
85.43 warning: luisa_compute_ir_v2 (lib) generated 5 warnings (run cargo fix --lib -p luisa_compute_ir_v2 to apply 1 suggestion)
86.65 Compiling luisa_compute_ir_staticlib v0.1.0 (/workspace/Genesis/genesis/ext/LuisaRender/src/compute/src/rust/luisa_compute_ir_staticlib)
86.65 Compiling luisa_compute_backend_impl v0.1.0-alpha.1 (/workspace/Genesis/genesis/ext/LuisaRender/src/compute/src/rust/luisa_compute_backend_impl)
86.69 warning: unused import: std::ptr::null
86.69 --> luisa_compute_backend_impl/src/cpu/mod.rs:4:5
86.69 |
86.69 4 | use std::ptr::null;
86.69 | ^^^^^^^^^^^^^^
86.69 |
86.69 = note: #[warn(unused_imports)] on by default
86.69
86.69 warning: unused import: CBoxedSlice
86.69 --> luisa_compute_backend_impl/src/cpu/codegen/mod.rs:3:39
86.69 |
86.69 3 | use luisa_compute_ir::{context, CArc, CBoxedSlice};
86.69 | ^^^^^^^^^^^
86.69
86.69 warning: unused import: std::ffi::CString
86.69 --> luisa_compute_backend_impl/src/cpu/codegen/mod.rs:6:5
86.69 |
86.69 6 | use std::ffi::CString;
86.69 | ^^^^^^^^^^^^^^^^^
86.69
86.69 warning: unused import: luisa_compute_ir::ir
86.69 --> luisa_compute_backend_impl/src/cpu/codegen/mod.rs:9:5
86.69 |
86.69 9 | use luisa_compute_ir::ir;
86.69 | ^^^^^^^^^^^^^^^^^^^^
86.69
86.69 warning: unused import: decode_const_data
86.69 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:6:13
86.69 |
86.69 6 | use super::{decode_const_data, decode_const_data_v2, sha256_short};
86.69 | ^^^^^^^^^^^^^^^^^
86.69
86.69 warning: unused imports: Deserialize and Serialize
86.69 --> luisa_compute_backend_impl/src/cpu/shader.rs:7:13
86.69 |
86.69 7 | use serde::{Deserialize, Serialize};
86.69 | ^^^^^^^^^^^ ^^^^^^^^^
86.69
86.69 warning: unused import: CString
86.69 --> luisa_compute_backend_impl/src/cpu/shader.rs:10:17
86.69 |
86.69 10 | ffi::{CStr, CString},
86.69 | ^^^^^^^
86.69
86.71 warning: use of deprecated function std::arch::x86_64::_MM_SET_FLUSH_ZERO_MODE: see _mm_setcsr documentation - use inline assembly instead
86.71 --> luisa_compute_backend_impl/src/cpu/mod.rs:508:33
86.71 |
86.71 508 | ... _MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON);
86.71 | ^^^^^^^^^^^^^^^^^^^^^^^
86.71 |
86.71 = note: #[warn(deprecated)] on by default
86.71
86.71 warning: use of deprecated function std::arch::x86_64::_mm_setcsr: see _mm_setcsr documentation - use inline assembly instead
86.71 --> luisa_compute_backend_impl/src/cpu/mod.rs:511:33
86.71 |
86.71 511 | ... mm_setcsr(
86.71 | ^^^^^^^^^^
86.71
86.71 warning: use of deprecated function std::arch::x86_64::_mm_getcsr: see _mm_getcsr documentation - use inline assembly instead
86.71 --> luisa_compute_backend_impl/src/cpu/mod.rs:512:38
86.71 |
86.71 512 | ... (mm_getcsr() & !MM_DENORMALS_ZERO_MASK)
86.71 | ^^^^^^^^^^
86.71
86.74 warning: unreachable expression
86.74 --> luisa_compute_backend_impl/src/cpu/codegen/cpp.rs:1318:17
86.74 |
86.74 1317 | panic!("Use CpuFn/CpuCallable to pass closures to kernel directly instead of ExternalCallable on cpu backend!.");
86.74 | ---------------------------------------------------------------------------------------------------------------- any code following this expression is unreachable
86.74 1318 | true
86.74 | ^^^^ unreachable expression
86.74 |
86.74 = note: #[warn(unreachable_code)] on by default
86.74
86.85 warning: unused variable: buffer_ty
86.85 --> luisa_compute_backend_impl/src/cpu/codegen/cpp.rs:729:21
86.85 |
86.85 729 | let buffer_ty = self.type_gen.gen_c_type(args[0].type
());
86.85 | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: _buffer_ty
86.85 |
86.85 = note: #[warn(unused_variables)] on by default
86.85
86.89 warning: unused variable: var
86.89 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:1561:9
86.89 |
86.89 1561 | var: &String,
86.89 | ^^^ help: if this is intentional, prefix it with an underscore: _var
86.89
86.89 warning: unused variable: node_ty_s
86.89 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:1562:9
86.89 |
86.89 1562 | node_ty_s: &String,
86.89 | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: _node_ty_s
86.89
86.89 warning: unused variable: f
86.89 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:1563:9
86.89 |
86.89 1563 | f: FuncRef,
86.89 | ^ help: if this is intentional, prefix it with an underscore: _f
86.89
86.89 warning: unused variable: args_v
86.89 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:1564:9
86.89 |
86.89 1564 | args_v: &Vec,
86.89 | ^^^^^^ help: if this is intentional, prefix it with an underscore: _args_v
86.89
86.90 warning: unused variable: e
86.90 --> luisa_compute_backend_impl/src/cpu/codegen/mod.rs:665:17
86.90 |
86.90 665 | let e = ty.element();
86.90 | ^ help: if this is intentional, prefix it with an underscore: _e
86.90
86.99 warning: function decode_const_data_v2 is never used
86.99 --> luisa_compute_backend_impl/src/cpu/codegen/mod.rs:445:8
86.99 |
86.99 445 | pub fn decode_const_data_v2(data: &[u8], ty: TypeRef) -> String {
86.99 | ^^^^^^^^^^^^^^^^^^^^
86.99 |
86.99 = note: #[warn(dead_code)] on by default
86.99
86.99 warning: struct TypeGenInner is never constructed
86.99 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:10:19
86.99 |
86.99 10 | pub(crate) struct TypeGenInner {
86.99 | ^^^^^^^^^^^^
86.99
86.99 warning: associated items new, to_c_type_, and to_c_type are never used
86.99 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:16:19
86.99 |
86.99 15 | impl TypeGenInner {
86.99 | ----------------- associated items in this implementation
86.99 16 | pub(crate) fn new() -> Self {
86.99 | ^^^
86.99 ...
86.99 22 | fn to_c_type
(&mut self, t: TypeRef) -> String {
86.99 | ^^^^^^^^^^
86.99 ...
86.99 130 | pub(crate) fn to_c_type(&mut self, t: TypeRef) -> String {
86.99 | ^^^^^^^^^
86.99
86.99 warning: struct TypeGen is never constructed
86.99 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:141:8
86.99 |
86.99 141 | struct TypeGen {
86.99 | ^^^^^^^
86.99
86.99 warning: associated items new, gen_c_type, and generated are never used
86.99 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:146:8
86.99 |
86.99 145 | impl TypeGen {
86.99 | ------------ associated items in this implementation
86.99 146 | fn new() -> Self {
86.99 | ^^^
86.99 ...
86.99 151 | fn gen_c_type(&self, t: TypeRef) -> String {
86.99 | ^^^^^^^^^^
86.99 ...
86.99 154 | fn generated(&self) -> String {
86.99 | ^^^^^^^^^
86.99
86.99 warning: struct GlobalEmitter is never constructed
86.99 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:159:8
86.99 |
86.99 159 | struct GlobalEmitter {
86.99 | ^^^^^^^^^^^^^
86.99
86.99 warning: struct FunctionEmitter is never constructed
86.99 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:170:8
86.99 |
86.99 170 | struct FunctionEmitter<'a> {
86.99 | ^^^^^^^^^^^^^^^
86.99
86.99 warning: struct PhiCollector is never constructed
86.99 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:184:12
86.99 |
86.99 184 | pub struct PhiCollector {
86.99 | ^^^^^^^^^^^^
86.99
86.99 warning: associated items new and visit_block are never used
86.99 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:190:12
86.99 |
86.99 189 | impl PhiCollector {
86.99 | ----------------- associated items in this implementation
86.99 190 | pub fn new() -> Self {
86.99 | ^^^
86.99 ...
86.99 196 | pub unsafe fn visit_block(&mut self, block: BasicBlockRef) {
86.99 | ^^^^^^^^^^^
86.99
86.99 warning: multiple associated items are never used
86.99 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:267:8
86.99 |
86.99 266 | impl<'a> FunctionEmitter<'a> {
86.99 | ---------------------------- associated items in this implementation
86.99 267 | fn new(globals: &'a mut GlobalEmitter, type_gen: &'a TypeGen) -> Self {
86.99 | ^^^
86.99 ...
86.99 281 | fn write_ident(&mut self) {
86.99 | ^^^^^^^^^^^
86.99 ...
86.99 286 | fn gen_node(&mut self, node: NodeRef) -> String {
86.99 | ^^^^^^^^
86.99 ...
86.99 316 | fn access_chain(&mut self, mut var: String, node: NodeRef, indices: &[NodeRef]) -> String {
86.99 | ^^^^^^^^^^^^
86.99 ...
86.99 335 | fn atomic_chain_op(
86.99 | ^^^^^^^^^^^^^^^
86.99 ...
86.99 363 | fn gep_field_name(node: NodeRef, i: i32) -> String {
86.99 | ^^^^^^^^^^^^^^
86.99 ...
86.99 381 | fn gen_binop(
86.99 | ^^^^^^^^^
86.99 ...
86.99 419 | fn gen_call_op(
86.99 | ^^^^^^^^^^^
86.99 ...
86.99 531 | fn gen_buffer_op(
86.99 | ^^^^^^^^^^^^^
86.99 ...
86.99 827 | fn gen_misc(
86.99 | ^^^^^^^^
86.99 ...
86.99 1283 | fn gen_const(&mut self, var: &String, node_ty_s: &String, cst: ConstantInstRef) {
86.99 | ^^^^^^^^^
86.99 ...
86.99 1295 | fn gen_instr(&mut self, node: NodeRef) {
86.99 | ^^^^^^^^^
86.99 ...
86.99 1531 | fn gen_block
(&mut self, block: BasicBlockRef) {
86.99 | ^^^^^^^^^^
86.99 ...
86.99 1550 | fn gen_block(&mut self, block: BasicBlockRef) {
86.99 | ^^^^^^^^^
86.99 ...
86.99 1559 | fn gen_callable(
86.99 | ^^^^^^^^^^^^
86.99
86.99 warning: method copy_to_vec_2d is never used
86.99 --> luisa_compute_backend_impl/src/cpu/texture.rs:243:19
86.99 |
86.99 142 | impl TextureView {
86.99 | ---------------- method in this implementation
86.99 ...
86.99 243 | pub(crate) fn copy_to_vec_2d(&self) -> Vec {
86.99 | ^^^^^^^^^^^^^^
86.99
87.81 warning: luisa_compute_backend_impl (lib) generated 28 warnings (run cargo fix --lib -p luisa_compute_backend_impl to apply 7 suggestions)
87.81 Finished release profile [optimized] target(s) in 1m 00s
87.82 warning: unused import: crate::*
87.82 --> luisa_compute_ir_v2/src/convert.rs:1:5
87.82 |
87.82 1 | use crate::;
87.82 | ^^^^^^^^
87.82 |
87.82 = note: #[warn(unused_imports)] on by default
87.82
87.82 warning: unused variable: module
87.82 --> luisa_compute_ir_v2/src/convert.rs:10:20
87.82 |
87.82 10 | pub fn convert(module:ir_v1::ir::Module) {
87.82 | ^^^^^^ help: if this is intentional, prefix it with an underscore: _module
87.82 |
87.82 = note: #[warn(unused_variables)] on by default
87.82
87.82 warning: struct V1ToV2 is never constructed
87.82 --> luisa_compute_ir_v2/src/convert.rs:5:8
87.82 |
87.82 5 | struct V1ToV2 {
87.82 | ^^^^^^
87.82 |
87.82 = note: #[warn(dead_code)] on by default
87.82
87.82 warning: associated function convert is never used
87.82 --> luisa_compute_ir_v2/src/convert.rs:10:12
87.82 |
87.82 9 | impl V1ToV2 {
87.82 | ----------- associated function in this implementation
87.82 10 | pub fn convert(module:ir_v1::ir::Module) {
87.82 | ^^^^^^^
87.82
87.82 warning: creating a shared reference to mutable static is discouraged
87.82 --> luisa_compute_ir_v2/src/lib.rs:38:15
87.82 |
87.82 38 | unsafe { &LIB.as_ref().unwrap().binding }
87.82 | ^^^^^^^^^^^^ shared reference to mutable static
87.82 |
87.82 = note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
87.82 = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
87.82 = note: #[warn(static_mut_refs)] on by default
87.82
87.82 warning: luisa_compute_ir_v2 (lib) generated 5 warnings (run cargo fix --lib -p luisa_compute_ir_v2 to apply 1 suggestion)
87.82 warning: unused import: std::ptr::null
87.82 --> luisa_compute_backend_impl/src/cpu/mod.rs:4:5
87.82 |
87.82 4 | use std::ptr::null;
87.82 | ^^^^^^^^^^^^^^
87.82 |
87.82 = note: #[warn(unused_imports)] on by default
87.82
87.82 warning: unused import: CBoxedSlice
87.82 --> luisa_compute_backend_impl/src/cpu/codegen/mod.rs:3:39
87.82 |
87.82 3 | use luisa_compute_ir::{context, CArc, CBoxedSlice};
87.82 | ^^^^^^^^^^^
87.82
87.82 warning: unused import: std::ffi::CString
87.82 --> luisa_compute_backend_impl/src/cpu/codegen/mod.rs:6:5
87.82 |
87.82 6 | use std::ffi::CString;
87.82 | ^^^^^^^^^^^^^^^^^
87.82
87.82 warning: unused import: luisa_compute_ir::ir
87.82 --> luisa_compute_backend_impl/src/cpu/codegen/mod.rs:9:5
87.82 |
87.82 9 | use luisa_compute_ir::ir;
87.82 | ^^^^^^^^^^^^^^^^^^^^
87.82
87.82 warning: unused import: decode_const_data
87.82 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:6:13
87.82 |
87.82 6 | use super::{decode_const_data, decode_const_data_v2, sha256_short};
87.82 | ^^^^^^^^^^^^^^^^^
87.82
87.82 warning: unused imports: Deserialize and Serialize
87.82 --> luisa_compute_backend_impl/src/cpu/shader.rs:7:13
87.82 |
87.82 7 | use serde::{Deserialize, Serialize};
87.82 | ^^^^^^^^^^^ ^^^^^^^^^
87.82
87.82 warning: unused import: CString
87.82 --> luisa_compute_backend_impl/src/cpu/shader.rs:10:17
87.82 |
87.82 10 | ffi::{CStr, CString},
87.82 | ^^^^^^^
87.82
87.82 warning: use of deprecated function std::arch::x86_64::_MM_SET_FLUSH_ZERO_MODE: see _mm_setcsr documentation - use inline assembly instead
87.82 --> luisa_compute_backend_impl/src/cpu/mod.rs:508:33
87.82 |
87.82 508 | ... _MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON);
87.82 | ^^^^^^^^^^^^^^^^^^^^^^^
87.82 |
87.82 = note: #[warn(deprecated)] on by default
87.82
87.82 warning: use of deprecated function std::arch::x86_64::_mm_setcsr: see _mm_setcsr documentation - use inline assembly instead
87.82 --> luisa_compute_backend_impl/src/cpu/mod.rs:511:33
87.82 |
87.82 511 | ... mm_setcsr(
87.82 | ^^^^^^^^^^
87.82
87.82 warning: use of deprecated function std::arch::x86_64::_mm_getcsr: see _mm_getcsr documentation - use inline assembly instead
87.82 --> luisa_compute_backend_impl/src/cpu/mod.rs:512:38
87.82 |
87.82 512 | ... (mm_getcsr() & !MM_DENORMALS_ZERO_MASK)
87.82 | ^^^^^^^^^^
87.82
87.82 warning: unreachable expression
87.82 --> luisa_compute_backend_impl/src/cpu/codegen/cpp.rs:1318:17
87.82 |
87.82 1317 | panic!("Use CpuFn/CpuCallable to pass closures to kernel directly instead of ExternalCallable on cpu backend!.");
87.82 | ---------------------------------------------------------------------------------------------------------------- any code following this expression is unreachable
87.82 1318 | true
87.82 | ^^^^ unreachable expression
87.82 |
87.82 = note: #[warn(unreachable_code)] on by default
87.82
87.82 warning: unused variable: buffer_ty
87.82 --> luisa_compute_backend_impl/src/cpu/codegen/cpp.rs:729:21
87.82 |
87.82 729 | let buffer_ty = self.type_gen.gen_c_type(args[0].type
());
87.82 | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: _buffer_ty
87.82 |
87.82 = note: #[warn(unused_variables)] on by default
87.82
87.82 warning: unused variable: var
87.82 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:1561:9
87.82 |
87.82 1561 | var: &String,
87.82 | ^^^ help: if this is intentional, prefix it with an underscore: _var
87.82
87.82 warning: unused variable: node_ty_s
87.82 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:1562:9
87.82 |
87.82 1562 | node_ty_s: &String,
87.82 | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: _node_ty_s
87.82
87.82 warning: unused variable: f
87.82 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:1563:9
87.82 |
87.82 1563 | f: FuncRef,
87.82 | ^ help: if this is intentional, prefix it with an underscore: _f
87.82
87.82 warning: unused variable: args_v
87.82 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:1564:9
87.82 |
87.82 1564 | args_v: &Vec,
87.82 | ^^^^^^ help: if this is intentional, prefix it with an underscore: _args_v
87.82
87.82 warning: unused variable: e
87.82 --> luisa_compute_backend_impl/src/cpu/codegen/mod.rs:665:17
87.82 |
87.82 665 | let e = ty.element();
87.82 | ^ help: if this is intentional, prefix it with an underscore: _e
87.82
87.82 warning: function decode_const_data_v2 is never used
87.82 --> luisa_compute_backend_impl/src/cpu/codegen/mod.rs:445:8
87.82 |
87.82 445 | pub fn decode_const_data_v2(data: &[u8], ty: TypeRef) -> String {
87.82 | ^^^^^^^^^^^^^^^^^^^^
87.82 |
87.82 = note: #[warn(dead_code)] on by default
87.82
87.82 warning: struct TypeGenInner is never constructed
87.82 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:10:19
87.82 |
87.82 10 | pub(crate) struct TypeGenInner {
87.82 | ^^^^^^^^^^^^
87.82
87.82 warning: associated items new, to_c_type_, and to_c_type are never used
87.82 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:16:19
87.82 |
87.82 15 | impl TypeGenInner {
87.82 | ----------------- associated items in this implementation
87.82 16 | pub(crate) fn new() -> Self {
87.82 | ^^^
87.82 ...
87.82 22 | fn to_c_type
(&mut self, t: TypeRef) -> String {
87.82 | ^^^^^^^^^^
87.82 ...
87.82 130 | pub(crate) fn to_c_type(&mut self, t: TypeRef) -> String {
87.82 | ^^^^^^^^^
87.82
87.82 warning: struct TypeGen is never constructed
87.82 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:141:8
87.82 |
87.82 141 | struct TypeGen {
87.82 | ^^^^^^^
87.82
87.82 warning: associated items new, gen_c_type, and generated are never used
87.82 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:146:8
87.82 |
87.82 145 | impl TypeGen {
87.82 | ------------ associated items in this implementation
87.82 146 | fn new() -> Self {
87.82 | ^^^
87.82 ...
87.82 151 | fn gen_c_type(&self, t: TypeRef) -> String {
87.82 | ^^^^^^^^^^
87.82 ...
87.82 154 | fn generated(&self) -> String {
87.82 | ^^^^^^^^^
87.82
87.82 warning: struct GlobalEmitter is never constructed
87.82 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:159:8
87.82 |
87.82 159 | struct GlobalEmitter {
87.82 | ^^^^^^^^^^^^^
87.82
87.82 warning: struct FunctionEmitter is never constructed
87.82 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:170:8
87.82 |
87.82 170 | struct FunctionEmitter<'a> {
87.82 | ^^^^^^^^^^^^^^^
87.82
87.82 warning: struct PhiCollector is never constructed
87.82 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:184:12
87.82 |
87.82 184 | pub struct PhiCollector {
87.82 | ^^^^^^^^^^^^
87.82
87.82 warning: associated items new and visit_block are never used
87.82 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:190:12
87.82 |
87.82 189 | impl PhiCollector {
87.82 | ----------------- associated items in this implementation
87.82 190 | pub fn new() -> Self {
87.82 | ^^^
87.82 ...
87.82 196 | pub unsafe fn visit_block(&mut self, block: BasicBlockRef) {
87.82 | ^^^^^^^^^^^
87.82
87.82 warning: multiple associated items are never used
87.82 --> luisa_compute_backend_impl/src/cpu/codegen/cpp_v2.rs:267:8
87.82 |
87.82 266 | impl<'a> FunctionEmitter<'a> {
87.82 | ---------------------------- associated items in this implementation
87.82 267 | fn new(globals: &'a mut GlobalEmitter, type_gen: &'a TypeGen) -> Self {
87.82 | ^^^
87.82 ...
87.82 281 | fn write_ident(&mut self) {
87.82 | ^^^^^^^^^^^
87.82 ...
87.82 286 | fn gen_node(&mut self, node: NodeRef) -> String {
87.82 | ^^^^^^^^
87.82 ...
87.82 316 | fn access_chain(&mut self, mut var: String, node: NodeRef, indices: &[NodeRef]) -> String {
87.82 | ^^^^^^^^^^^^
87.82 ...
87.82 335 | fn atomic_chain_op(
87.82 | ^^^^^^^^^^^^^^^
87.82 ...
87.82 363 | fn gep_field_name(node: NodeRef, i: i32) -> String {
87.82 | ^^^^^^^^^^^^^^
87.82 ...
87.82 381 | fn gen_binop(
87.82 | ^^^^^^^^^
87.82 ...
87.82 419 | fn gen_call_op(
87.82 | ^^^^^^^^^^^
87.82 ...
87.82 531 | fn gen_buffer_op(
87.82 | ^^^^^^^^^^^^^
87.82 ...
87.82 827 | fn gen_misc(
87.82 | ^^^^^^^^
87.82 ...
87.82 1283 | fn gen_const(&mut self, var: &String, node_ty_s: &String, cst: ConstantInstRef) {
87.82 | ^^^^^^^^^
87.82 ...
87.82 1295 | fn gen_instr(&mut self, node: NodeRef) {
87.82 | ^^^^^^^^^
87.82 ...
87.82 1531 | fn gen_block
(&mut self, block: BasicBlockRef) {
87.82 | ^^^^^^^^^^
87.82 ...
87.82 1550 | fn gen_block(&mut self, block: BasicBlockRef) {
87.82 | ^^^^^^^^^
87.82 ...
87.82 1559 | fn gen_callable(
87.82 | ^^^^^^^^^^^^
87.82
87.82 warning: method copy_to_vec_2d is never used
87.82 --> luisa_compute_backend_impl/src/cpu/texture.rs:243:19
87.82 |
87.82 142 | impl TextureView {
87.82 | ---------------- method in this implementation
87.82 ...
87.82 243 | pub(crate) fn copy_to_vec_2d(&self) -> Vec {
87.82 | ^^^^^^^^^^^^^^
87.82
87.82 warning: luisa_compute_backend_impl (lib) generated 28 warnings (run cargo fix --lib -p luisa_compute_backend_impl to apply 7 suggestions)
87.82 Finished release profile [optimized] target(s) in 1m 00s
87.83 [ 28%] Copying embree to the output directory...
87.83 [ 28%] Generating ../../../../bin/libluisa_compute_api_types.a
87.85 [ 28%] Built target libluisa_compute_api_types.a
87.88 [ 28%] Built target luisa_compute_rust_build_embree
87.88 gmake: *** [Makefile:136: all] Error 2

Dockerfile:52

50 | git submodule update --init --recursive
51 | COPY build_luisa.sh /workspace/build_luisa.sh
52 | >>> RUN chmod +x ./build_luisa.sh && ./build_luisa.sh ${PYTHON_VERSION}
53 |
54 | # ===============================================================

ERROR: failed to solve: process "/bin/sh -c chmod +x ./build_luisa.sh && ./build_luisa.sh ${PYTHON_VERSION}" did not complete successfully: exit code: 2

@SphaeroX
Copy link

SphaeroX commented Jan 1, 2025

Switched from CRFL to LF and it works. thank @alanahmet

@git523 open the file, switch to LF and than save the file. Run the build again.

@git523
Copy link
Author

git523 commented Jan 1, 2025

Thank you @SphaeroX , I tried again and still could not move forward, each time the error message differs a little though. I am not sure if it could be related to the downloading process(?)....

=========
**(i only copy/paste part of the log file here)

106.2 1295 | fn gen_instr(&mut self, node: NodeRef) {
106.2 | ^^^^^^^^^
106.2 ...
106.2 1531 | fn gen_block_(&mut self, block: BasicBlockRef) {
106.2 | ^^^^^^^^^^
106.2 ...
106.2 1550 | fn gen_block(&mut self, block: BasicBlockRef) {
106.2 | ^^^^^^^^^
106.2 ...
106.2 1559 | fn gen_callable(
106.2 | ^^^^^^^^^^^^
106.2
106.2 warning: method copy_to_vec_2d is never used
106.2 --> luisa_compute_backend_impl/src/cpu/texture.rs:243:19
106.2 |
106.2 142 | impl TextureView {
106.2 | ---------------- method in this implementation
106.2 ...
106.2 243 | pub(crate) fn copy_to_vec_2d(&self) -> Vec {
106.2 | ^^^^^^^^^^^^^^
106.2
107.1 warning: luisa_compute_backend_impl (lib) generated 28 warnings (run cargo fix --lib -p luisa_compute_backend_impl to apply 7 suggestions)
107.1 Finished release profile [optimized] target(s) in 1m 28s
107.1 [ 49%] Copying /workspace/Genesis/genesis/ext/LuisaRender/build/src/compute/src/rust/rust/release/libluisa_compute_backend_impl.so to /workspace/Genesis/genesis/ext/LuisaRender/build/bin/libluisa_compute_backend_impl.so and patch it
107.1 [ 49%] Built target luisa_compute_rust_build_libluisa_compute_backend_impl.so
107.1 [ 49%] Built target luisa_compute_rust_build
107.1 [ 49%] Building CXX object src/compute/src/ir/CMakeFiles/luisa-compute-ir.dir/ast2ir.cpp.o
107.1 [ 49%] Building CXX object src/compute/src/ir/CMakeFiles/luisa-compute-ir.dir/ir2ast.cpp.o
107.1 [ 49%] Building CXX object src/compute/src/ir/CMakeFiles/luisa-compute-ir.dir/transform.cpp.o
115.1 [ 50%] Linking CXX shared library ../../../../bin/liblc-ir.so
115.2 [ 50%] Built target luisa-compute-ir
115.2 [ 50%] Building CXX object src/compute/src/runtime/CMakeFiles/luisa-compute-runtime.dir/cmake_pch.hxx.gch
118.8 [ 51%] Building CXX object src/compute/src/runtime/CMakeFiles/luisa-compute-runtime.dir/bindless_array.cpp.o
118.8 [ 51%] Building CXX object src/compute/src/runtime/CMakeFiles/luisa-compute-runtime.dir/buffer.cpp.o
118.8 [ 51%] Building CXX object src/compute/src/runtime/CMakeFiles/luisa-compute-runtime.dir/byte_buffer.cpp.o
118.8 [ 51%] Building CXX object src/compute/src/runtime/CMakeFiles/luisa-compute-runtime.dir/command_list.cpp.o
118.8 [ 51%] Building CXX object src/compute/src/runtime/CMakeFiles/luisa-compute-runtime.dir/context.cpp.o
118.8 [ 51%] Building CXX object src/compute/src/runtime/CMakeFiles/luisa-compute-runtime.dir/device.cpp.o
118.8 [ 51%] Building CXX object src/compute/src/runtime/CMakeFiles/luisa-compute-runtime.dir/dispatch_buffer.cpp.o
118.8 [ 52%] Building CXX object src/compute/src/runtime/CMakeFiles/luisa-compute-runtime.dir/event.cpp.o
118.8 [ 52%] Building CXX object src/compute/src/runtime/CMakeFiles/luisa-compute-runtime.dir/image.cpp.o
118.8 [ 52%] Building CXX object src/compute/src/runtime/CMakeFiles/luisa-compute-runtime.dir/sparse_buffer.cpp.o
118.8 [ 52%] Building CXX object src/compute/src/runtime/CMakeFiles/luisa-compute-runtime.dir/mipmap.cpp.o
118.8 [ 52%] Building CXX object src/compute/src/runtime/CMakeFiles/luisa-compute-runtime.dir/volume.cpp.o
118.8 [ 52%] Building CXX object src/compute/src/runtime/CMakeFiles/luisa-compute-runtime.dir/sparse_heap.cpp.o
118.8 [ 52%] Building CXX object src/compute/src/runtime/CMakeFiles/luisa-compute-runtime.dir/sparse_texture.cpp.o
118.8 [ 52%] Building CXX object src/compute/src/runtime/CMakeFiles/luisa-compute-runtime.dir/sparse_command_list.cpp.o
118.8 [ 53%] Building CXX object src/compute/src/runtime/CMakeFiles/luisa-compute-runtime.dir/stream.cpp.o
118.8 [ 53%] Building CXX object src/compute/src/runtime/CMakeFiles/luisa-compute-runtime.dir/rhi/command_encoder.cpp.o
118.8 [ 53%] Building CXX object src/compute/src/runtime/CMakeFiles/luisa-compute-runtime.dir/rhi/device_interface.cpp.o
118.8 [ 53%] Building CXX object src/compute/src/runtime/CMakeFiles/luisa-compute-runtime.dir/rhi/pixel.cpp.o
118.8 [ 53%] Building CXX object src/compute/src/runtime/CMakeFiles/luisa-compute-runtime.dir/swapchain.cpp.o
118.8 [ 53%] Building CXX object src/compute/src/runtime/CMakeFiles/luisa-compute-runtime.dir/rhi/resource.cpp.o
118.8 [ 53%] Building CXX object src/compute/src/runtime/CMakeFiles/luisa-compute-runtime.dir/rtx/mesh.cpp.o
118.8 [ 54%] Building CXX object src/compute/src/runtime/CMakeFiles/luisa-compute-runtime.dir/rtx/accel.cpp.o
118.8 [ 54%] Building CXX object src/compute/src/runtime/CMakeFiles/luisa-compute-runtime.dir/raster/depth_buffer.cpp.o
118.8 [ 54%] Building CXX object src/compute/src/runtime/CMakeFiles/luisa-compute-runtime.dir/rtx/curve.cpp.o
118.8 [ 54%] Building CXX object src/compute/src/runtime/CMakeFiles/luisa-compute-runtime.dir/raster/raster.cpp.o
118.8 [ 54%] Building CXX object src/compute/src/runtime/CMakeFiles/luisa-compute-runtime.dir/rtx/procedural_primitive.cpp.o
118.8 [ 54%] Building CXX object src/compute/src/runtime/CMakeFiles/luisa-compute-runtime.dir/remote/server_interface.cpp.o
118.8 [ 55%] Building CXX object src/compute/src/runtime/CMakeFiles/luisa-compute-runtime.dir/remote/client_interface.cpp.o
124.1 during RTL pass: ira
124.1 In file included from /workspace/Genesis/genesis/ext/LuisaRender/src/compute/src/ext/spdlog/include/spdlog/fmt/bundled/core.h:2967,
124.1 from /workspace/Genesis/genesis/ext/LuisaRender/src/compute/src/ext/spdlog/include/spdlog/fmt/fmt.h:24,
124.1 from /workspace/Genesis/genesis/ext/LuisaRender/src/compute/src/ext/spdlog/include/spdlog/common.h:50,
124.1 from /workspace/Genesis/genesis/ext/LuisaRender/src/compute/src/ext/spdlog/include/spdlog/spdlog.h:12,
124.1 from /workspace/Genesis/genesis/ext/LuisaRender/src/compute/include/luisa/core/logging.h:8,
124.1 from /workspace/Genesis/genesis/ext/LuisaRender/src/compute/src/runtime/pch.h:6,
124.1 from /workspace/Genesis/genesis/ext/LuisaRender/build/src/compute/src/runtime/CMakeFiles/luisa-compute-runtime.dir/cmake_pch.hxx:5,
124.1 from :
124.1 /workspace/Genesis/genesis/ext/LuisaRender/src/compute/src/ext/spdlog/include/spdlog/fmt/bundled/format.h: In function 'constexpr int fmt::v10::detail::format_float(Float, int, fmt::v10::detail::float_specs, fmt::v10::detail::buffer&) [with Float = double]':
124.1 /workspace/Genesis/genesis/ext/LuisaRender/src/compute/src/ext/spdlog/include/spdlog/fmt/bundled/format.h:3585:1: internal compiler error: Segmentation fault
124.1 3585 | }
124.1 | ^
124.1 0xe34ddb internal_error(char const*, ...)
124.1 ???:0
124.1 0x1296fc1 ira_traverse_loop_tree(bool, ira_loop_tree_node*, void ()(ira_loop_tree_node), void ()(ira_loop_tree_node))
124.1 ???:0
124.1 0x1297185 ira_traverse_loop_tree(bool, ira_loop_tree_node*, void ()(ira_loop_tree_node), void ()(ira_loop_tree_node))
124.1 ???:0
124.1 0x1298aa0 ira_costs()
124.1 ???:0
124.1 0x12934a0 ira_build()
124.1 ???:0
124.1 Please submit a full bug report,
124.1 with preprocessed source if appropriate.
124.1 Please include the complete backtrace with any bug report.
124.1 See file:///usr/share/doc/gcc-11/README.Bugs for instructions.
124.1 gmake[2]: *** [src/compute/src/runtime/CMakeFiles/luisa-compute-runtime.dir/build.make:125: src/compute/src/runtime/CMakeFiles/luisa-compute-runtime.dir/byte_buffer.cpp.o] Error 1
124.1 gmake[2]: *** Waiting for unfinished jobs....
126.6 gmake[1]: *** [CMakeFiles/Makefile2:1782: src/compute/src/runtime/CMakeFiles/luisa-compute-runtime.dir/all] Error 2
126.6 gmake: *** [Makefile:136: all] Error 2

Dockerfile:52

50 | git submodule update --init --recursive
51 | COPY build_luisa.sh /workspace/build_luisa.sh
52 | >>> RUN chmod +x ./build_luisa.sh && ./build_luisa.sh ${PYTHON_VERSION}
53 |
54 | # ===============================================================

ERROR: failed to solve: process "/bin/sh -c chmod +x ./build_luisa.sh && ./build_luisa.sh ${PYTHON_VERSION}" did not complete successfully: exit code: 2**

@git523
Copy link
Author

git523 commented Jan 2, 2025

Just a quick follow-up: I gave up on installing it into the Ubuntu environment through Microsoft App store, and switched to virtualbox and installed a fresh new Ubuntu environment. I was able to install the program with no issues there. (I did came across other issues when running the examples, and i will start a new thread). Thanks again to @SphaeroX and @alanahmet

@git523 git523 closed this as completed Jan 2, 2025
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