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

fails to build ZLUDA #228

Open
waldolin opened this issue May 8, 2024 · 6 comments
Open

fails to build ZLUDA #228

waldolin opened this issue May 8, 2024 · 6 comments

Comments

@waldolin
Copy link

waldolin commented May 8, 2024

I can't build ZLUDA from source on Windows.

Versions

git version 2.42.0.windows.2
CMake 3.29.2
AMD Radeon Software: Pro Edition 24.4.1(2024.4.17)
Python 3.10.6
ninja 1.11.1.1

Full log

D:\github\github\zluda>cargo xtask --release
Updating crates.io index
Downloaded adler v1.0.2
Downloaded byteorder v1.5.0
Downloaded argh_shared v0.1.12
Downloaded time-core v0.1.1
Downloaded cfg-if v1.0.0
Downloaded argh_derive v0.1.12
Downloaded cargo-platform v0.1.5
Downloaded thiserror v1.0.51
Downloaded camino v1.1.6
Downloaded argh v0.1.12
Downloaded thiserror-impl v1.0.51
Downloaded itoa v1.0.10
Downloaded crc32fast v1.4.0
Downloaded semver v1.0.20
Downloaded quote v1.0.33
Downloaded cargo_metadata v0.17.0
Downloaded ryu v1.0.16
Downloaded unicode-ident v1.0.12
Downloaded cc v1.0.83
Downloaded zip v0.6.6
Downloaded serde_derive v1.0.193
Downloaded proc-macro2 v1.0.70
Downloaded flate2 v1.0.29
Downloaded serde v1.0.193
Downloaded miniz_oxide v0.7.2
Downloaded time v0.3.23
Downloaded syn v2.0.41
Downloaded serde_json v1.0.108
Downloaded cloudflare-zlib-sys v0.3.3
Downloaded 29 crates (1.5 MB) in 2.76s
Compiling proc-macro2 v1.0.70
Compiling unicode-ident v1.0.12
Compiling serde v1.0.193
Compiling cc v1.0.83
Compiling crc32fast v1.4.0
Compiling serde_json v1.0.108
Compiling adler v1.0.2
Compiling cfg-if v1.0.0
Compiling semver v1.0.20
Compiling camino v1.1.6
Compiling thiserror v1.0.51
Compiling itoa v1.0.10
Compiling ryu v1.0.16
Compiling time-core v0.1.1
Compiling byteorder v1.5.0
Compiling miniz_oxide v0.7.2
Compiling time v0.3.23
Compiling cloudflare-zlib-sys v0.3.3
Compiling quote v1.0.33
Compiling syn v2.0.41
Compiling flate2 v1.0.29
Compiling serde_derive v1.0.193
Compiling thiserror-impl v1.0.51
Compiling zip v0.6.6
Compiling argh_shared v0.1.12
Compiling cargo-platform v0.1.5
Compiling argh_derive v0.1.12
Compiling cargo_metadata v0.17.0
Compiling argh v0.1.12
Compiling xtask v0.0.0 (D:\github\github\zluda\xtask)
Finished dev profile [unoptimized + debuginfo] target(s) in 23.40s
Running target\debug\xtask.exe --release
Downloaded cloudflare-zlib v0.2.10
Downloaded crunchy v0.2.2
Downloaded enum-iterator v1.5.0
Downloaded enum-iterator-derive v1.3.0
Downloaded rustversion v1.0.14
Downloaded time-macros v0.2.10
Downloaded new_debug_unreachable v1.0.4
Downloaded proc-macro-crate v0.1.5
Downloaded phf_shared v0.10.0
Downloaded proc-macro-error-attr v1.0.4
Downloaded anyhow v1.0.79
Downloaded precomputed-hash v0.1.1
Downloaded autocfg v1.1.0
Downloaded tinyvec_macros v0.1.1
Downloaded block-buffer v0.10.4
Downloaded bitflags v1.3.2
Downloaded scroll_derive v0.11.1
Downloaded dirs v4.0.0
Downloaded dirs-sys v0.3.7
Downloaded equivalent v1.0.1
Downloaded embed-manifest v1.4.0
Downloaded either v1.9.0
Downloaded generic-array v0.14.7
Downloaded subtle v2.5.0
Downloaded unicode-xid v0.2.4
Downloaded getset v0.1.2
Downloaded fixedbitset v0.4.2
Downloaded tiny-keccak v2.0.2
Downloaded is-terminal v0.4.9
Downloaded lazy_static v1.4.0
Downloaded lalrpop-util v0.20.0
Downloaded percent-encoding v2.3.1
Downloaded siphasher v0.3.11
Downloaded paste v1.0.14
Downloaded thread-id v4.2.1
Downloaded vergen v7.5.1
Downloaded proc-macro-hack v0.5.20+deprecated
Downloaded scroll v0.11.0
Downloaded sha2 v0.10.8
Downloaded unicode-bidi v0.3.15
Downloaded scopeguard v1.2.0
Downloaded toml v0.5.11
Downloaded capnpc v0.17.2
Downloaded bitflags v2.4.1
Downloaded digest v0.10.7
Downloaded dynasmrt v1.2.3
Downloaded url v2.5.0
Downloaded fallible-iterator v0.2.0
Downloaded arrayvec v0.7.4
Downloaded typenum v1.17.0
Downloaded unicode-normalization v0.1.22
Downloaded jobserver v0.1.27
Downloaded hashlink v0.8.4
Downloaded zerocopy v0.7.32
Downloaded lock_api v0.4.11
Downloaded wchar-impl v0.6.0
Downloaded vcpkg v0.2.15
Downloaded convert_case v0.5.0
Downloaded syn v1.0.109
Downloaded plain v0.2.3
Downloaded pico-args v0.5.0
Downloaded parking_lot v0.12.1
Downloaded diff v0.1.13
Downloaded derivative v2.2.0
Downloaded crossbeam-utils v0.8.17
Downloaded half v1.8.2
Downloaded log v0.4.20
Downloaded cpp_demangle v0.3.5
Downloaded num-traits v0.2.17
Downloaded indexmap v2.1.0
Downloaded allocator-api2 v0.2.16
Downloaded ahash v0.8.7
Downloaded crossbeam-channel v0.5.9
Downloaded const_format v0.2.32
Downloaded wchar v0.6.1
Downloaded static_assertions v1.1.0
Downloaded proc-macro-error v1.0.4
Downloaded parking_lot_core v0.9.9
Downloaded once_cell v1.19.0
Downloaded memmap2 v0.5.10
Downloaded libloading v0.8.1
Downloaded windows_x86_64_msvc v0.48.5
Downloaded rustc-hash v1.1.0
Downloaded bit-set v0.5.3
Downloaded tinyvec v1.6.0
Downloaded string_cache v0.8.7
Downloaded smallvec v1.11.2
Downloaded term v0.7.0
Downloaded pkg-config v0.3.29
Downloaded dynasm v1.2.3
Downloaded memchr v2.6.4
Downloaded windows-targets v0.48.5
Downloaded capnp v0.17.2
Downloaded version_check v0.9.4
Downloaded winapi v0.3.9
Downloaded hashbrown v0.14.3
Downloaded rusqlite v0.28.0
Downloaded itertools v0.10.5
Downloaded goblin v0.5.4
Downloaded blake3 v1.3.3
Downloaded petgraph v0.6.4
Downloaded git2 v0.16.1
Downloaded regex v1.10.2
Downloaded windows-sys v0.48.0
Downloaded regex-syntax v0.7.5
Downloaded regex-syntax v0.8.2
Downloaded lz4-sys v1.9.4
Downloaded lalrpop v0.20.0
Downloaded idna v0.5.0
Downloaded aho-corasick v1.1.2
Downloaded libm v0.2.8
Downloaded regex-automata v0.4.3
Downloaded libc v0.2.151
Downloaded tempfile v3.8.1
Downloaded num_enum_derive v0.4.3
Downloaded num_enum v0.4.3
Downloaded memoffset v0.8.0
Downloaded form_urlencoded v1.2.1
Downloaded fastrand v2.0.1
Downloaded fallible-streaming-iterator v0.1.9
Downloaded ena v0.14.2
Downloaded dirs-sys-next v0.1.2
Downloaded dirs-next v2.0.0
Downloaded crypto-common v0.1.6
Downloaded cpufeatures v0.2.11
Downloaded constant_time_eq v0.2.6
Downloaded const_format_proc_macros v0.2.32
Downloaded bit-vec v0.6.3
Downloaded cmake v0.1.50
Downloaded ascii-canvas v3.0.0
Downloaded arrayref v0.3.7
Downloaded libgit2-sys v0.14.2+1.5.1
Downloaded libz-sys v1.1.15
Downloaded libsqlite3-sys v0.25.2
Downloaded 134 crates (23.2 MB) in 7.07s (largest was libsqlite3-sys at 4.8 MB)
Compiling proc-macro2 v1.0.70
Compiling unicode-ident v1.0.12
Compiling jobserver v0.1.27
Compiling version_check v0.9.4
Compiling windows_x86_64_msvc v0.48.5
Compiling syn v1.0.109
Compiling serde v1.0.193
Compiling winapi v0.3.9
Compiling pkg-config v0.3.29
Compiling vcpkg v0.2.15
Compiling cfg-if v1.0.0
Compiling autocfg v1.1.0
Compiling libc v0.2.151
Compiling rustversion v1.0.14
Compiling typenum v1.17.0
Compiling unicode-xid v0.2.4
Compiling memchr v2.6.4
Compiling log v0.4.20
Compiling once_cell v1.19.0
Compiling thiserror v1.0.51
Compiling cc v1.0.83
Compiling parking_lot_core v0.9.9
Compiling zerocopy v0.7.32
Compiling allocator-api2 v0.2.16
Compiling ahash v0.8.7
Compiling generic-array v0.14.7
Compiling proc-macro-error-attr v1.0.4
Compiling lock_api v0.4.11
Compiling proc-macro-error v1.0.4
Compiling aho-corasick v1.1.2
Compiling libsqlite3-sys v0.25.2
Compiling libz-sys v1.1.15
Compiling scopeguard v1.2.0
Compiling crunchy v0.2.2
Compiling smallvec v1.11.2
Compiling regex-syntax v0.8.2
Compiling windows-targets v0.48.5
Compiling hip_runtime-sys v0.0.0 (D:\github\github\zluda\hip_runtime-sys)
Compiling tinyvec_macros v0.1.1
Compiling subtle v2.5.0
Compiling serde_json v1.0.108
Compiling quote v1.0.33
Compiling windows-sys v0.48.0
Compiling tinyvec v1.6.0
Compiling regex-automata v0.4.3
Compiling cmake v0.1.50
Compiling syn v2.0.41
Compiling dirs-sys-next v0.1.2
Compiling siphasher v0.3.11
Compiling hashbrown v0.14.3
Compiling anyhow v1.0.79
Compiling bitflags v1.3.2
Compiling itoa v1.0.10
Compiling tiny-keccak v2.0.2
Compiling ryu v1.0.16
Compiling convert_case v0.5.0
Compiling crypto-common v0.1.6
Compiling block-buffer v0.10.4
Compiling dirs-next v2.0.0
Compiling rustc-hash v1.1.0
Compiling equivalent v1.0.1
Compiling term v0.7.0
Compiling digest v0.10.7
Compiling phf_shared v0.10.0
Compiling parking_lot v0.12.1
Compiling unicode-normalization v0.1.22
Compiling const_format_proc_macros v0.2.32
Compiling libgit2-sys v0.14.2+1.5.1
Compiling fallible-streaming-iterator v0.1.9
Compiling either v1.9.0
Compiling percent-encoding v2.3.1
Compiling llvm-sys v150.1.2 (D:\github\github\zluda\ext\llvm-sys.rs)
Compiling fixedbitset v0.4.2
Compiling indexmap v2.1.0
Compiling hashlink v0.8.4
Compiling cpufeatures v0.2.11
Compiling regex v1.10.2
Compiling unicode-bidi v0.3.15
Compiling new_debug_unreachable v1.0.4
Compiling bit-vec v0.6.3
Compiling time-core v0.1.1
Compiling libm v0.2.8
Compiling plain v0.2.3
Compiling precomputed-hash v0.1.1
Compiling fallible-iterator v0.2.0
Compiling bit-set v0.5.3
Compiling string_cache v0.8.7
Compiling time v0.3.23
Compiling itertools v0.10.5
Compiling form_urlencoded v1.2.1
Compiling sha2 v0.10.8
Compiling lalrpop-util v0.20.0
Compiling idna v0.5.0
Compiling is-terminal v0.4.9
Compiling const_format v0.2.32
Compiling petgraph v0.6.4
Compiling ascii-canvas v3.0.0
Compiling libloading v0.8.1
Compiling lz4-sys v1.9.4
Compiling cloudflare-zlib-sys v0.3.3
Compiling num-traits v0.2.17
Compiling ena v0.14.2
Compiling serde_derive v1.0.193
Compiling scroll_derive v0.11.1
Compiling thiserror-impl v1.0.51
Compiling regex-syntax v0.7.5
Compiling diff v0.1.13
Compiling capnp v0.17.2
Compiling pico-args v0.5.0
Compiling paste v1.0.14
Compiling vergen v7.5.1
Compiling enum-iterator-derive v1.3.0
Compiling url v2.5.0
Compiling detours-sys v0.1.2 (D:\github\github\zluda\detours-sys)
Compiling zluda_llvm v0.0.0 (D:\github\github\zluda\zluda_llvm)
Compiling scroll v0.11.0
Compiling bitflags v2.4.1
Compiling proc-macro-hack v0.5.20+deprecated
Compiling cuda_base v0.0.0 (D:\github\github\zluda\cuda_base)
Compiling lalrpop v0.20.0
Compiling cpp_demangle v0.3.5
Compiling goblin v0.5.4
Compiling enum-iterator v1.5.0
Compiling getset v0.1.2
Compiling thread-id v4.2.1
Compiling blake3 v1.3.3
Compiling cuda_types v0.0.0 (D:\github\github\zluda\cuda_types)
Compiling memoffset v0.8.0
Compiling fastrand v2.0.1
Compiling crossbeam-utils v0.8.17
Compiling half v1.8.2
Compiling tempfile v3.8.1
Compiling derivative v2.2.0
Compiling dirs-sys v0.3.7
Compiling wchar-impl v0.6.0
Compiling arrayvec v0.7.4
Compiling atiadlxx-sys v0.0.0 (D:\github\github\zluda\atiadlxx-sys)
Compiling byteorder v1.5.0
Compiling embed-manifest v1.4.0
Compiling lazy_static v1.4.0
Compiling constant_time_eq v0.2.6
Compiling arrayref v0.3.7
Compiling dynasm v1.2.3
Compiling wchar v0.6.1
Compiling dirs v4.0.0
Compiling zluda_inject v0.0.0 (D:\github\github\zluda\zluda_inject)
Compiling toml v0.5.11
Compiling argh_shared v0.1.12
Compiling memmap2 v0.5.10
Compiling static_assertions v1.1.0
Compiling argh_derive v0.1.12
Compiling crossbeam-channel v0.5.9
Compiling zluda_ml v0.0.0 (D:\github\github\zluda\zluda_ml)
Compiling proc-macro-crate v0.1.5
warning: struct CountingWriter is never constructed
--> zluda_ml\src\windows.rs:140:8
|
140 | struct CountingWriter<T: std::io::Write> {
| ^^^^^^^^^^^^^^
|
= note: #[warn(dead_code)] on by default

Compiling rusqlite v0.28.0
Compiling argh v0.1.12
Compiling num_enum_derive v0.4.3
warning: zluda_ml (lib) generated 1 warning
Compiling hip_common v0.0.0 (D:\github\github\zluda\hip_common)
Compiling num_enum v0.4.3
Compiling comgr v0.0.0 (D:\github\github\zluda\comgr)
Compiling zluda_redirect v0.0.0 (D:\github\github\zluda\zluda_redirect)
warning: creating a shared reference to mutable static is discouraged
--> zluda_redirect\src\lib.rs:309:34
|
309 | starts_with_ignore_case(lib, &DRIVERSTORE_UTF8, utf8_to_ascii_uppercase)
| ^^^^^^^^^^^^^^^^^ shared reference to mutable static
|
= note: for more information, see issue #114447 rust-lang/rust#114447
= note: this will be a hard error in the 2024 edition
= note: this shared reference has lifetime 'static, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior
= note: #[warn(static_mut_refs)] on by default
help: use addr_of! instead to create a raw pointer
|
309 | starts_with_ignore_case(lib, addr_of!(DRIVERSTORE_UTF8), utf8_to_ascii_uppercase)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~

warning: creating a shared reference to mutable static is discouraged
--> zluda_redirect\src\lib.rs:313:34
|
313 | starts_with_ignore_case(lib, &DRIVERSTORE_UTF16, utf16_to_ascii_uppercase)
| ^^^^^^^^^^^^^^^^^^ shared reference to mutable static
|
= note: for more information, see issue #114447 rust-lang/rust#114447
= note: this will be a hard error in the 2024 edition
= note: this shared reference has lifetime 'static, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior
help: use addr_of! instead to create a raw pointer
|
313 | starts_with_ignore_case(lib, addr_of!(DRIVERSTORE_UTF16), utf16_to_ascii_uppercase)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~

warning: creating a mutable reference to mutable static is discouraged
--> zluda_redirect\src\lib.rs:581:17
|
581 | &mut LOAD_LIBRARY_A as *mut _ as *mut *mut c_void,
| ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see issue #114447 rust-lang/rust#114447
= note: this will be a hard error in the 2024 edition
= note: this mutable reference has lifetime 'static, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior
help: use addr_of_mut! instead to create a raw pointer
|
581 | addr_of_mut!(LOAD_LIBRARY_A) as *mut _ as *mut *mut c_void,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

warning: creating a mutable reference to mutable static is discouraged
--> zluda_redirect\src\lib.rs:584:14
|
584 | (&mut LOAD_LIBRARY_W as *mut _ as _, ZludaLoadLibraryW as _),
| ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see issue #114447 rust-lang/rust#114447
= note: this will be a hard error in the 2024 edition
= note: this mutable reference has lifetime 'static, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior
help: use addr_of_mut! instead to create a raw pointer
|
584 | (addr_of_mut!(LOAD_LIBRARY_W) as *mut _ as _, ZludaLoadLibraryW as _),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

warning: creating a mutable reference to mutable static is discouraged
--> zluda_redirect\src\lib.rs:586:17
|
586 | &mut LOAD_LIBRARY_EX_A as *mut _ as _,
| ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see issue #114447 rust-lang/rust#114447
= note: this will be a hard error in the 2024 edition
= note: this mutable reference has lifetime 'static, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior
help: use addr_of_mut! instead to create a raw pointer
|
586 | addr_of_mut!(LOAD_LIBRARY_EX_A) as *mut _ as _,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

warning: creating a mutable reference to mutable static is discouraged
--> zluda_redirect\src\lib.rs:590:17
|
590 | &mut LOAD_LIBRARY_EX_W as *mut _ as _,
| ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see issue #114447 rust-lang/rust#114447
= note: this will be a hard error in the 2024 edition
= note: this mutable reference has lifetime 'static, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior
help: use addr_of_mut! instead to create a raw pointer
|
590 | addr_of_mut!(LOAD_LIBRARY_EX_W) as *mut _ as _,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

warning: creating a mutable reference to mutable static is discouraged
--> zluda_redirect\src\lib.rs:594:17
|
594 | &mut CREATE_PROCESS_A as *mut _ as _,
| ^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see issue #114447 rust-lang/rust#114447
= note: this will be a hard error in the 2024 edition
= note: this mutable reference has lifetime 'static, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior
help: use addr_of_mut! instead to create a raw pointer
|
594 | addr_of_mut!(CREATE_PROCESS_A) as *mut _ as _,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

warning: creating a mutable reference to mutable static is discouraged
--> zluda_redirect\src\lib.rs:598:17
|
598 | &mut CREATE_PROCESS_W as *mut _ as _,
| ^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see issue #114447 rust-lang/rust#114447
= note: this will be a hard error in the 2024 edition
= note: this mutable reference has lifetime 'static, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior
help: use addr_of_mut! instead to create a raw pointer
|
598 | addr_of_mut!(CREATE_PROCESS_W) as *mut _ as _,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

warning: creating a mutable reference to mutable static is discouraged
--> zluda_redirect\src\lib.rs:602:17
|
602 | &mut CREATE_PROCESS_AS_USER_W as *mut _ as _,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see issue #114447 rust-lang/rust#114447
= note: this will be a hard error in the 2024 edition
= note: this mutable reference has lifetime 'static, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior
help: use addr_of_mut! instead to create a raw pointer
|
602 | addr_of_mut!(CREATE_PROCESS_AS_USER_W) as *mut _ as _,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

warning: creating a mutable reference to mutable static is discouraged
--> zluda_redirect\src\lib.rs:606:17
|
606 | &mut CREATE_PROCESS_WITH_LOGON_W as *mut _ as _,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see issue #114447 rust-lang/rust#114447
= note: this will be a hard error in the 2024 edition
= note: this mutable reference has lifetime 'static, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior
help: use addr_of_mut! instead to create a raw pointer
|
606 | addr_of_mut!(CREATE_PROCESS_WITH_LOGON_W) as *mut _ as _,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

warning: creating a mutable reference to mutable static is discouraged
--> zluda_redirect\src\lib.rs:610:17
|
610 | &mut CREATE_PROCESS_WITH_TOKEN_W as *mut _ as _,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see issue #114447 rust-lang/rust#114447
= note: this will be a hard error in the 2024 edition
= note: this mutable reference has lifetime 'static, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior
help: use addr_of_mut! instead to create a raw pointer
|
610 | addr_of_mut!(CREATE_PROCESS_WITH_TOKEN_W) as *mut _ as _,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

warning: creating a mutable reference to mutable static is discouraged
--> zluda_redirect\src\lib.rs:848:50
|
848 | if !load_global_string(&PAYLOAD_NVCUDA_GUID, &mut ZLUDA_PATH_UTF8, || {
| ^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see issue #114447 rust-lang/rust#114447
= note: this will be a hard error in the 2024 edition
= note: this mutable reference has lifetime 'static, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior
help: use addr_of_mut! instead to create a raw pointer
|
848 | if !load_global_string(&PAYLOAD_NVCUDA_GUID, addr_of_mut!(ZLUDA_PATH_UTF8), || {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

warning: creating a mutable reference to mutable static is discouraged
--> zluda_redirect\src\lib.rs:849:9
|
849 | &mut ZLUDA_PATH_UTF16
| ^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see issue #114447 rust-lang/rust#114447
= note: this will be a hard error in the 2024 edition
= note: this mutable reference has lifetime 'static, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior
help: use addr_of_mut! instead to create a raw pointer
|
849 | addr_of_mut!(ZLUDA_PATH_UTF16)
|

warning: creating a mutable reference to mutable static is discouraged
--> zluda_redirect\src\lib.rs:853:48
|
853 | if !load_global_string(&PAYLOAD_NVML_GUID, &mut ZLUDA_ML_PATH_UTF8, || {
| ^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see issue #114447 rust-lang/rust#114447
= note: this will be a hard error in the 2024 edition
= note: this mutable reference has lifetime 'static, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior
help: use addr_of_mut! instead to create a raw pointer
|
853 | if !load_global_string(&PAYLOAD_NVML_GUID, addr_of_mut!(ZLUDA_ML_PATH_UTF8), || {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

warning: creating a mutable reference to mutable static is discouraged
--> zluda_redirect\src\lib.rs:854:9
|
854 | &mut ZLUDA_ML_PATH_UTF16
| ^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see issue #114447 rust-lang/rust#114447
= note: this will be a hard error in the 2024 edition
= note: this mutable reference has lifetime 'static, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior
help: use addr_of_mut! instead to create a raw pointer
|
854 | addr_of_mut!(ZLUDA_ML_PATH_UTF16)
|

warning: creating a mutable reference to mutable static is discouraged
--> zluda_redirect\src\lib.rs:858:45
|
858 | load_global_string(&PAYLOAD_NVAPI_GUID, &mut ZLUDA_API_PATH_UTF8, || {
| ^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see issue #114447 rust-lang/rust#114447
= note: this will be a hard error in the 2024 edition
= note: this mutable reference has lifetime 'static, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior
help: use addr_of_mut! instead to create a raw pointer
|
858 | load_global_string(&PAYLOAD_NVAPI_GUID, addr_of_mut!(ZLUDA_API_PATH_UTF8), || {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

warning: creating a mutable reference to mutable static is discouraged
--> zluda_redirect\src\lib.rs:861:47
|
861 | load_global_string(&PAYLOAD_NVOPTIX_GUID, &mut ZLUDA_OPTIX_PATH_UTF8, || {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see issue #114447 rust-lang/rust#114447
= note: this will be a hard error in the 2024 edition
= note: this mutable reference has lifetime 'static, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior
help: use addr_of_mut! instead to create a raw pointer
|
861 | load_global_string(&PAYLOAD_NVOPTIX_GUID, addr_of_mut!(ZLUDA_OPTIX_PATH_UTF8), || {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

warning: zluda_redirect (lib) generated 17 warnings
Compiling cloudflare-zlib v0.2.10
Compiling ptx v0.0.0 (D:\github\github\zluda\ptx)
Compiling zluda_dark_api v0.0.0 (D:\github\github\zluda\zluda_dark_api)
Compiling dynasmrt v1.2.3
Compiling git2 v0.16.1
Compiling zluda v0.0.0 (D:\github\github\zluda\zluda)
warning: associated function to_triple is never used
--> D:\github\github\zluda\target\release\build\ptx-17d53ab93278e1b1\out/ptx.rs:89618:8
|
89616 | pub trait __ToTriple<'input, 'err, >
| ---------- associated function in this trait
89617 | {
89618 | fn to_triple(value: Self) -> Result<(usize,Token<'input>,usize), __lalrpop_util::ParseError<usize, Token...
| ^^^^^^^^^
|
= note: #[warn(dead_code)] on by default

warning: trait HasLivenessCookie is never used
--> zluda\src\impl\mod.rs:112:18
|
112 | pub(crate) trait HasLivenessCookie: Sized {
| ^^^^^^^^^^^^^^^^^
|
= note: #[warn(dead_code)] on by default

warning: ptx (lib) generated 1 warning
Compiling zluda_dump v0.0.0 (D:\github\github\zluda\zluda_dump)
warning: struct CUuuidWrapper is never constructed
--> zluda_dump\src\dark_api.rs:28:19
|
28 | pub(crate) struct CUuuidWrapper(pub CUuuid);
| ^^^^^^^^^^^^^
|
= note: #[warn(dead_code)] on by default

warning: method flush is never used
--> zluda_dump\src\log.rs:614:8
|
612 | pub(crate) trait WriteTrailingZeroAware {
| ---------------------- method in this trait
613 | fn write_zero_aware(&mut self, buf: &[u8]) -> std::io::Result<()>;
614 | fn flush(&mut self) -> std::io::Result<()>;
| ^^^^^

warning: zluda (lib) generated 1 warning
Compiling zluda_lib v0.0.0 (D:\github\github\zluda\zluda_lib)
warning: zluda_dump (lib) generated 2 warnings
Finished release profile [optimized] target(s) in 5m 02s

@vosen
Copy link
Owner

vosen commented May 8, 2024

Going by the log, you've built ZLUDA successfully, the warnings in the log are harmless.
Binaries should be now located in target\release. Are you seeing some other issues not captured in the log?

@waldolin
Copy link
Author

waldolin commented May 8, 2024

Going by the log, you've built ZLUDA successfully, the warnings in the log are harmless. Binaries should be now located in target\release. Are you seeing some other issues not captured in the log?

thank you! which files in target/release? i can't find it!

@vosen
Copy link
Owner

vosen commented May 8, 2024

zluda.exe, nvcuda.dll, zluda_dump.dll, nvml.dll, zluda_redirect.dll
If you want a zip package with just necessay files then try cargo xtask zip --release. It will place zluda.zip in target\release

@vosen
Copy link
Owner

vosen commented May 8, 2024

And if you want the freshest files, you don't need to build by yourself but you can get latest build from github: green checkmark on the latest commit -> Details -> Summary. It's convoluted but it's there

@waldolin
Copy link
Author

zluda.exe、nvcuda.dll、zluda_dump.dll、nvml.dll、zluda_redirect.dll 如果您想要一個只包含必需檔案的 zip 包,請嘗試cargo xtask zip --release.它將把 zluda.zip 放在 target\release 中

I check 5 file is existed (zluda.exe、nvcuda.dll、zluda_dump.dll、nvml.dll、zluda_redirect.dll)
Thank you a million.
green checkmark on the latest commit is that means tags V3 V2 V1?

@vosen
Copy link
Owner

vosen commented May 15, 2024

Screenshot 2024-05-16 011324

This tiny thing in the red circle. BTW, if someone is reading this and know a more visible way to advertise nightly builds on the project page then I'm interested

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

2 participants