Skip to content

Problems with the hello world example not compilling. #3877

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

Closed
makuru-org opened this issue Nov 7, 2023 · 21 comments
Closed

Problems with the hello world example not compilling. #3877

makuru-org opened this issue Nov 7, 2023 · 21 comments
Labels
needs info Further information from the reporter is requested

Comments

@makuru-org
Copy link

why cant it find slint_macros?
it has compiled it and it is literally hello world example.

   compiling …
   Compiling slint-macros v1.2.2
   Compiling slint v1.2.2
error[E0463]: can't find crate for `slint_macros`
   --> /home/lenovo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/slint-1.2.2/lib.rs:202:9
    |
202 | pub use slint_macros::slint;
    |         ^^^^^^^^^^^^ can't find crate

For more information about this error, try `rustc --explain E0463`.
error: could not compile `slint` (lib) due to previous error
@ogoffart
Copy link
Member

ogoffart commented Nov 8, 2023

This is a very strange error. I've never seen this bebore. The slint crate depends on the slint-macros crate so this shouldn't happen.
Are you using any special platform? What's your version of rust? Did you change any of the files or did anything special?
Can you delete the target directory and try again? (perhaps a bug in incremental compilation?)

@ogoffart ogoffart added the needs info Further information from the reporter is requested label Nov 8, 2023
@makuru-org
Copy link
Author

  \\  \\ //     lenovo@lenovo 
 ==\\__\\/ //   ------------- 
   //   \\//    OS: NixOS 23.11.20231104.85f1ba3 (Tapir) x86_64 
==//     //==   
 //\\___//      Kernel: 6.1.61 
// /\\  \\==    Uptime: 6 hours, 54 mins 
  // \\  \\     Packages: 1979 (nix-system), 2233 (nix-user) 
                Shell: bash 5.2.15 
                Resolution: 1920x1080 
                DE: Plasma 5.27.9 (Wayland) 
                WM: kwin 
                Icons: breeze-dark [GTK2/3] 
                Terminal: nu 
                CPU: Intel i7-1065G7 (8) @ 3.900GHz 
                GPU: Intel Iris Plus Graphics G7 
                GPU: NVIDIA GeForce MX330 
                Memory: 13202MiB / 15670MiB 

cargo -V
cargo 1.73.0 (9c4383fb5 2023-08-26)

@makuru-org
Copy link
Author

after a bit of trouble, not having the right libraries and bad errors, i got the same error after deleting the target dir

@ogoffart
Copy link
Member

ogoffart commented Nov 8, 2023

Can you maybe paste your Cargo.toml ?

@makuru-org
Copy link
Author

[package]
name = "calculator"
version = "0.1.0"
authors = ["makuru <MAKURU_DD@[REDACTED]>"]
edition = "2021"
build = "build.rs"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
slint = "1.0"

[build-dependencies]
slint-build = "1.0"

@makuru-org
Copy link
Author

but commenting out [build-dependencies] and updating to 1.2.0 didnt fix it.

@ogoffart
Copy link
Member

ogoffart commented Nov 8, 2023

Can you paste the contents of /home/lenovo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/slint-1.2.2/Cargo.toml
Maybe something is wrong with your cache?

Can you paste the output of cargo check -vv ? the -vv` flag should print the exact command used by cargo to launch rustc.

For example, in my case, this is the build line for slint:

   Compiling slint v1.2.2
    Running `CARGO=/home/olivier/snap/rustup/common/rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/cargo CARGO_CRATE_NAME=slint CARGO_MANIFEST_DIR=/home/olivier/.cargo/registry/src/index.crates.io-6f17d22bba15001f/slint-1.2.2 CARGO_PKG_AUTHORS='Slint Developers <info@slint.dev>' CARGO_PKG_DESCRIPTION='GUI toolkit to efficiently develop fluid graphical user interfaces for embedded devices and desktop applications' CARGO_PKG_HOMEPAGE='https://slint.rs' CARGO_PKG_LICENSE='GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=slint CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/slint-ui/slint' CARGO_PKG_RUST_VERSION=1.66 CARGO_PKG_VERSION=1.2.2 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=2 CARGO_PKG_VERSION_PATCH=2 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/tmp/xxxx/calculator/target/debug/deps:/home/olivier/snap/rustup/common/rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib:/home/olivier/snap/rustup/common/rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib' /home/olivier/snap/rustup/common/rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name slint --edition=2021 /home/olivier/.cargo/registry/src/index.crates.io-6f17d22bba15001f/slint-1.2.2/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=156 --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="accessibility"' --cfg 'feature="backend-qt"' --cfg 'feature="backend-winit"' --cfg 'feature="compat-1-2"' --cfg 'feature="default"' --cfg 'feature="renderer-femtovg"' --cfg 'feature="renderer-software"' --cfg 'feature="std"' -C metadata=16b35c9846f4cac2 -C extra-filename=-16b35c9846f4cac2 --out-dir /tmp/xxxx/calculator/target/debug/deps -L dependency=/tmp/xxxx/calculator/target/debug/deps --extern const_field_offset=/tmp/xxxx/calculator/target/debug/deps/libconst_field_offset-be37d220ecdb9929.rmeta --extern i_slint_backend_selector=/tmp/xxxx/calculator/target/debug/deps/libi_slint_backend_selector-ead6e2f16d738098.rmeta --extern i_slint_core=/tmp/xxxx/calculator/target/debug/deps/libi_slint_core-cea8e7a73e5a0ff8.rmeta --extern i_slint_renderer_femtovg=/tmp/xxxx/calculator/target/debug/deps/libi_slint_renderer_femtovg-3aff10c9575f5f1e.rmeta --extern num_traits=/tmp/xxxx/calculator/target/debug/deps/libnum_traits-b69232006cd59620.rmeta --extern once_cell=/tmp/xxxx/calculator/target/debug/deps/libonce_cell-2834b339519b18f6.rmeta --extern pin_weak=/tmp/xxxx/calculator/target/debug/deps/libpin_weak-72e93857fa2c82fd.rmeta --extern slint_macros=/tmp/xxxx/calculator/target/debug/deps/libslint_macros-2bdee7bebf2e7138.so --extern vtable=/tmp/xxxx/calculator/target/debug/deps/libvtable-ecc0aa234af6dced.rmeta --cap-lints warn -L native=/tmp/xxxx/calculator/target/debug/build/i-slint-backend-qt-52220ea0fe2d510d/out -L native=/tmp/xxxx/calculator/target/debug/build/qttypes-d227cf5cd04d2fcf/out -L /usr/lib/x86_64-linux-gnu`

And it does include --extern slint_macros=/tmp/xxxx/calculator/target/debug/deps/libslint_macros-2bdee7bebf2e7138.so

@makuru-org
Copy link
Author

# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.66"
name = "slint"
version = "1.2.2"
authors = ["Slint Developers <info@slint.dev>"]
description = "GUI toolkit to efficiently develop fluid graphical user interfaces for embedded devices and desktop applications"
homepage = "https://slint.rs"
readme = "README.md"
keywords = [
    "gui",
    "toolkit",
    "graphics",
    "design",
    "ui",
]
categories = [
    "gui",
    "rendering::engine",
]
license = "GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial"
repository = "https://github.com/slint-ui/slint"

[package.metadata.docs.rs]
features = [
    "document-features",
    "log",
    "gettext",
    "renderer-software",
    "renderer-femtovg",
]
rustdoc-args = [
    "--html-in-header",
    "docs/resources/slint-docs-highlight.html",
]

[lib]
path = "lib.rs"

[dependencies.const-field-offset]
version = "0.1.2"

[dependencies.document-features]
version = "0.2.0"
optional = true

[dependencies.i-slint-backend-selector]
version = "=1.2.2"

[dependencies.i-slint-core]
version = "=1.2.2"
default-features = false

[dependencies.i-slint-renderer-femtovg]
version = "=1.2.2"
optional = true
default-features = false

[dependencies.log]
version = "0.4.17"
optional = true

[dependencies.num-traits]
version = "0.2"
default-features = false

[dependencies.once_cell]
version = "1.5"
features = ["alloc"]
default-features = false

[dependencies.pin-weak]
version = "1.1"
default-features = false

[dependencies.slint-macros]
version = "=1.2.2"

[dependencies.vtable]
version = "0.1.6"

[dev-dependencies.serde]
version = "1.0.163"
features = ["derive"]

[dev-dependencies.serde_json]
version = "1.0.96"

[features]
accessibility = ["i-slint-backend-selector/accessibility"]
backend-linuxkms = [
    "i-slint-backend-selector/backend-linuxkms",
    "std",
]
backend-qt = [
    "i-slint-backend-selector/i-slint-backend-qt",
    "std",
]
backend-winit = [
    "i-slint-backend-selector/backend-winit",
    "std",
]
backend-winit-wayland = [
    "i-slint-backend-selector/backend-winit-wayland",
    "std",
]
backend-winit-x11 = [
    "i-slint-backend-selector/backend-winit-x11",
    "std",
]
compat-1-0 = [
    "compat-1-2",
    "renderer-software",
]
compat-1-2 = []
default = [
    "std",
    "backend-winit",
    "renderer-femtovg",
    "renderer-software",
    "backend-qt",
    "accessibility",
    "compat-1-2",
]
gettext = ["i-slint-core/gettext-rs"]
libm = ["i-slint-core/libm"]
log = ["dep:log"]
renderer-femtovg = [
    "i-slint-backend-selector/renderer-femtovg",
    "dep:i-slint-renderer-femtovg",
    "std",
]
renderer-skia = [
    "i-slint-backend-selector/renderer-skia",
    "std",
]
renderer-skia-opengl = [
    "i-slint-backend-selector/renderer-skia-opengl",
    "std",
]
renderer-skia-vulkan = [
    "i-slint-backend-selector/renderer-skia-vulkan",
    "std",
]
renderer-software = [
    "i-slint-backend-selector/renderer-software",
    "i-slint-core/software-renderer",
]
renderer-winit-femtovg = ["renderer-femtovg"]
renderer-winit-skia = ["renderer-skia"]
renderer-winit-skia-opengl = ["renderer-skia-opengl"]
renderer-winit-skia-vulkan = ["renderer-skia-vulkan"]
renderer-winit-software = ["renderer-software"]
serde = ["i-slint-core/serde"]
software-renderer-systemfonts = [
    "renderer-software",
    "i-slint-core/software-renderer-systemfonts",
]
std = ["i-slint-core/std"]
unsafe-single-threaded = ["i-slint-core/unsafe-single-threaded"]
       Fresh slint-macros v1.2.2
     Running `CARGO=/home/lenovo/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/cargo CARGO_CRATE_NAME=build_script_build CARGO_MANIFEST_DIR=/home/lenovo/Documents/rust-learning/calculator CARGO_PKG_AUTHORS='makuru <MAKURU_DD@protonmail.com>' CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=calculator CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.1.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 LD_LIBRARY_PATH='/home/lenovo/Documents/rust-learning/calculator/target/debug/deps:/home/lenovo/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib:/home/lenovo/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib:/nix/store/s5gzrzha72q79v92wqq61x9ir8xiwbxk-zlib-1.3/lib:/nix/store/hp6zbw9kkvxy57v79gnb4h5yzy9x86fl-pipewire-0.3.80-jack/lib' /home/lenovo/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name build_script_build --edition=2021 build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=116 --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C metadata=f4f0e83c4207b38a -C extra-filename=-f4f0e83c4207b38a --out-dir /home/lenovo/Documents/rust-learning/calculator/target/debug/build/calculator-f4f0e83c4207b38a -C incremental=/home/lenovo/Documents/rust-learning/calculator/target/debug/incremental -L dependency=/home/lenovo/Documents/rust-learning/calculator/target/debug/deps`

@ogoffart
Copy link
Member

ogoffart commented Nov 8, 2023

could you do a cargo clean, and then paste the full output of cargo with -vv? i'm especially interested of the line that builds slint.

Anyway, this error is really strange and that looks like a rust or cargo bug to me. Never seen it before. I don't think this is a problem in Slint

@makuru-org
Copy link
Author

welp give me a second.

@makuru-org
Copy link
Author

so even after cleanup, i get the same error.
should i go to cargo next?

@tronical
Copy link
Member

tronical commented Nov 8, 2023

so even after cleanup, i get the same error. should i go to cargo next?

Please provide us with the output of cargo build -vv

@makuru-org
Copy link
Author

……………   
   Compiling spin_on v0.1.1
     Running `CARGO=/home/lenovo/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/cargo CARGO_CRATE_NAME=spin_on CARGO_MANIFEST_DIR=/home/lenovo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/spin_on-0.1.1 CARGO_PKG_AUTHORS='paulkernfeld <me@paulkernfeld.com>' CARGO_PKG_DESCRIPTION='A simple, inefficient Future executor' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='Apache-2.0 OR MIT' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=spin_on CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.1.1 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=1 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/home/lenovo/Documents/rust-learning/calculator/target/debug/deps:/home/lenovo/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib:/home/lenovo/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib:/nix/store/s5gzrzha72q79v92wqq61x9ir8xiwbxk-zlib-1.3/lib:/nix/store/hp6zbw9kkvxy57v79gnb4h5yzy9x86fl-pipewire-0.3.80-jack/lib' /home/lenovo/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name spin_on --edition=2018 /home/lenovo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/spin_on-0.1.1/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=116 --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C metadata=d9a9a58133a14d8e -C extra-filename=-d9a9a58133a14d8e --out-dir /home/lenovo/Documents/rust-learning/calculator/target/debug/deps -L dependency=/home/lenovo/Documents/rust-learning/calculator/target/debug/deps --extern pin_utils=/home/lenovo/Documents/rust-learning/calculator/target/debug/deps/libpin_utils-c2f8c3e8b8c28b8a.rmeta --cap-lints warn`
warning: use of deprecated function `core::sync::atomic::spin_loop_hint`: use hint::spin_loop instead
  --> /home/lenovo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/spin_on-0.1.1/src/lib.rs:47:25
   |
47 | use core::sync::atomic::spin_loop_hint;
   |                         ^^^^^^^^^^^^^^
   |
   = note: `#[warn(deprecated)]` on by default

warning: use of deprecated function `core::sync::atomic::spin_loop_hint`: use hint::spin_loop instead
  --> /home/lenovo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/spin_on-0.1.1/src/lib.rs:81:9
   |
81 |         spin_loop_hint();
   |         ^^^^^^^^^^^^^^

warning: `spin_on` (lib) generated 2 warnings
   Compiling calculator v0.1.0 (/home/lenovo/Documents/rust-learning/calculator)
     Running `CARGO=/home/lenovo/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/cargo CARGO_CRATE_NAME=build_script_build CARGO_MANIFEST_DIR=/home/lenovo/Documents/rust-learning/calculator CARGO_PKG_AUTHORS='makuru <MAKURU_DD@protonmail.com>' CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=calculator CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.1.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 LD_LIBRARY_PATH='/home/lenovo/Documents/rust-learning/calculator/target/debug/deps:/home/lenovo/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib:/home/lenovo/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib:/nix/store/s5gzrzha72q79v92wqq61x9ir8xiwbxk-zlib-1.3/lib:/nix/store/hp6zbw9kkvxy57v79gnb4h5yzy9x86fl-pipewire-0.3.80-jack/lib' /home/lenovo/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name build_script_build --edition=2021 build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=116 --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C metadata=f4f0e83c4207b38a -C extra-filename=-f4f0e83c4207b38a --out-dir /home/lenovo/Documents/rust-learning/calculator/target/debug/build/calculator-f4f0e83c4207b38a -C incremental=/home/lenovo/Documents/rust-learning/calculator/target/debug/incremental -L dependency=/home/lenovo/Documents/rust-learning/calculator/target/debug/deps`
error[E0433]: failed to resolve: use of undeclared crate or module `slint_build`
 --> build.rs:2:5
  |
2 |     slint_build::compile("ui/appwindow.slint").unwrap();
  |     ^^^^^^^^^^^ use of undeclared crate or module `slint_build`

For more information about this error, try `rustc --explain E0433`.
error: could not compile `calculator` (build script) due to previous error

Caused by:
  process didn't exit successfully: `CARGO=/home/lenovo/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/cargo CARGO_CRATE_NAME=build_script_build CARGO_MANIFEST_DIR=/home/lenovo/Documents/rust-learning/calculator CARGO_PKG_AUTHORS='makuru <MAKURU_DD@>' CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=calculator CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.1.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 LD_LIBRARY_PATH='/home/lenovo/Documents/rust-learning/calculator/target/debug/deps:/home/lenovo/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib:/home/lenovo/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib:/nix/store/s5gzrzha72q79v92wqq61x9ir8xiwbxk-zlib-1.3/lib:/nix/store/hp6zbw9kkvxy57v79gnb4h5yzy9x86fl-pipewire-0.3.80-jack/lib' /home/lenovo/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name build_script_build --edition=2021 build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=116 --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C metadata=f4f0e83c4207b38a -C extra-filename=-f4f0e83c4207b38a --out-dir /home/lenovo/Documents/rust-learning/calculator/target/debug/build/calculator-f4f0e83c4207b38a -C incremental=/home/lenovo/Documents/rust-learning/calculator/target/debug/incremental -L dependency=/home/lenovo/Documents/rust-learning/calculator/target/debug/deps` (exit status: 1)
warning: build failed, waiting for other jobs to finish...
[i-slint-backend-qt 1.2.2] cargo:warning=qt_window.rs: In function ‘void __cpp_closure_3960042792424564835(QWidget* const&)’:
[i-slint-backend-qt 1.2.2] 
[i-slint-backend-qt 1.2.2] cargo:warning=qt_window.rs:1536:35: warning: ignoring return value of ‘QEventLoopLocker::QEventLoopLocker()’, declared with attribute ‘nodiscard’ [-Wunused-result]
[i-slint-backend-qt 1.2.2] 
[i-slint-backend-qt 1.2.2] cargo:warning= 1536 |                 QEventLoopLocker();
[i-slint-backend-qt 1.2.2] 
[i-slint-backend-qt 1.2.2] cargo:warning=      |                                   ^
[i-slint-backend-qt 1.2.2] 
[i-slint-backend-qt 1.2.2] cargo:warning=In file included from /nix/store/gcgfdiaj8yafh3c2kcwagqcc04dndmxv-qt-full-6.6.0/include/QtCore/qabstracteventdispatcher.h:8,
[i-slint-backend-qt 1.2.2] 
[i-slint-backend-qt 1.2.2] cargo:warning=                 from /nix/store/gcgfdiaj8yafh3c2kcwagqcc04dndmxv-qt-full-6.6.0/include/QtCore/QtCore:15,
[i-slint-backend-qt 1.2.2] 
[i-slint-backend-qt 1.2.2] cargo:warning=                 from /nix/store/gcgfdiaj8yafh3c2kcwagqcc04dndmxv-qt-full-6.6.0/include/QtWidgets/QtWidgetsDepends:3,
[i-slint-backend-qt 1.2.2] 
[i-slint-backend-qt 1.2.2] cargo:warning=                 from /nix/store/gcgfdiaj8yafh3c2kcwagqcc04dndmxv-qt-full-6.6.0/include/QtWidgets/QtWidgets:3,
[i-slint-backend-qt 1.2.2] 
[i-slint-backend-qt 1.2.2] cargo:warning=                 from qt_accessible.rs:259:
[i-slint-backend-qt 1.2.2] 
[i-slint-backend-qt 1.2.2] cargo:warning=/nix/store/gcgfdiaj8yafh3c2kcwagqcc04dndmxv-qt-full-6.6.0/include/QtCore/qeventloop.h:59:36: note: declared here
[i-slint-backend-qt 1.2.2] 
[i-slint-backend-qt 1.2.2] cargo:warning=   59 |     Q_NODISCARD_CTOR Q_CORE_EXPORT QEventLoopLocker() noexcept;
[i-slint-backend-qt 1.2.2] 
[i-slint-backend-qt 1.2.2] cargo:warning=      |                                    ^~~~~~~~~~~~~~~~
[i-slint-backend-qt 1.2.2] 
[i-slint-backend-qt 1.2.2] exit status: 0
[i-slint-backend-qt 1.2.2] cargo:rerun-if-env-changed=AR_x86_64-unknown-linux-gnu
[i-slint-backend-qt 1.2.2] AR_x86_64-unknown-linux-gnu = None
[i-slint-backend-qt 1.2.2] cargo:rerun-if-env-changed=AR_x86_64_unknown_linux_gnu
[i-slint-backend-qt 1.2.2] AR_x86_64_unknown_linux_gnu = None
[i-slint-backend-qt 1.2.2] cargo:rerun-if-env-changed=HOST_AR
[i-slint-backend-qt 1.2.2] HOST_AR = None
[i-slint-backend-qt 1.2.2] cargo:rerun-if-env-changed=AR
[i-slint-backend-qt 1.2.2] AR = None
[i-slint-backend-qt 1.2.2] cargo:rerun-if-env-changed=ARFLAGS_x86_64-unknown-linux-gnu
[i-slint-backend-qt 1.2.2] ARFLAGS_x86_64-unknown-linux-gnu = None
[i-slint-backend-qt 1.2.2] cargo:rerun-if-env-changed=ARFLAGS_x86_64_unknown_linux_gnu
[i-slint-backend-qt 1.2.2] ARFLAGS_x86_64_unknown_linux_gnu = None
[i-slint-backend-qt 1.2.2] cargo:rerun-if-env-changed=HOST_ARFLAGS
[i-slint-backend-qt 1.2.2] HOST_ARFLAGS = None
[i-slint-backend-qt 1.2.2] cargo:rerun-if-env-changed=ARFLAGS
[i-slint-backend-qt 1.2.2] ARFLAGS = None
[i-slint-backend-qt 1.2.2] running: ZERO_AR_DATE="1" "ar" "cq" "/home/lenovo/Documents/rust-learning/calculator/target/debug/build/i-slint-backend-qt-53b805fdbd895185/out/librust_cpp_generated.a" "/home/lenovo/Documents/rust-learning/calculator/target/debug/build/i-slint-backend-qt-53b805fdbd895185/out/bce5582848ff36d8-cpp_closures.o"
[i-slint-backend-qt 1.2.2] exit status: 0
[i-slint-backend-qt 1.2.2] running: "ar" "s" "/home/lenovo/Documents/rust-learning/calculator/target/debug/build/i-slint-backend-qt-53b805fdbd895185/out/librust_cpp_generated.a"
[i-slint-backend-qt 1.2.2] exit status: 0
[i-slint-backend-qt 1.2.2] cargo:rustc-link-lib=static=rust_cpp_generated
[i-slint-backend-qt 1.2.2] cargo:rustc-link-search=native=/home/lenovo/Documents/rust-learning/calculator/target/debug/build/i-slint-backend-qt-53b805fdbd895185/out
[i-slint-backend-qt 1.2.2] cargo:rerun-if-env-changed=CXXSTDLIB_x86_64-unknown-linux-gnu
[i-slint-backend-qt 1.2.2] CXXSTDLIB_x86_64-unknown-linux-gnu = None
[i-slint-backend-qt 1.2.2] cargo:rerun-if-env-changed=CXXSTDLIB_x86_64_unknown_linux_gnu
[i-slint-backend-qt 1.2.2] CXXSTDLIB_x86_64_unknown_linux_gnu = None
[i-slint-backend-qt 1.2.2] cargo:rerun-if-env-changed=HOST_CXXSTDLIB
[i-slint-backend-qt 1.2.2] HOST_CXXSTDLIB = None
[i-slint-backend-qt 1.2.2] cargo:rerun-if-env-changed=CXXSTDLIB
[i-slint-backend-qt 1.2.2] CXXSTDLIB = None
[i-slint-backend-qt 1.2.2] cargo:rustc-link-lib=stdc++
[i-slint-backend-qt 1.2.2] cargo:rerun-if-changed=lib.rs
[i-slint-backend-qt 1.2.2] cargo:rerun-if-changed=qt_accessible.rs
[i-slint-backend-qt 1.2.2] cargo:rerun-if-changed=qt_widgets.rs
[i-slint-backend-qt 1.2.2] cargo:rerun-if-changed=qt_widgets/button.rs
[i-slint-backend-qt 1.2.2] cargo:rerun-if-changed=qt_widgets/checkbox.rs
[i-slint-backend-qt 1.2.2] cargo:rerun-if-changed=qt_widgets/combobox.rs
[i-slint-backend-qt 1.2.2] cargo:rerun-if-changed=qt_widgets/groupbox.rs
[i-slint-backend-qt 1.2.2] cargo:rerun-if-changed=qt_widgets/lineedit.rs
[i-slint-backend-qt 1.2.2] cargo:rerun-if-changed=qt_widgets/listviewitem.rs
[i-slint-backend-qt 1.2.2] cargo:rerun-if-changed=qt_widgets/scrollview.rs
[i-slint-backend-qt 1.2.2] cargo:rerun-if-changed=qt_widgets/slider.rs
[i-slint-backend-qt 1.2.2] cargo:rerun-if-changed=qt_widgets/progress_indicator.rs
[i-slint-backend-qt 1.2.2] cargo:rerun-if-changed=qt_widgets/spinbox.rs
[i-slint-backend-qt 1.2.2] cargo:rerun-if-changed=qt_widgets/stylemetrics.rs
[i-slint-backend-qt 1.2.2] cargo:rerun-if-changed=qt_widgets/tabwidget.rs
[i-slint-backend-qt 1.2.2] cargo:rerun-if-changed=qt_widgets/tableheadersection.rs
[i-slint-backend-qt 1.2.2] cargo:rerun-if-changed=qt_window.rs
[i-slint-backend-qt 1.2.2] cargo:SUPPORTS_NATIVE_STYLE=1
warning: qt_window.rs: In function ‘void __cpp_closure_3960042792424564835(QWidget* const&)’:
warning: qt_window.rs:1536:35: warning: ignoring return value of ‘QEventLoopLocker::QEventLoopLocker()’, declared with attribute ‘nodiscard’ [-Wunused-result]
warning:  1536 |                 QEventLoopLocker();
warning:       |                                   ^
warning: In file included from /nix/store/gcgfdiaj8yafh3c2kcwagqcc04dndmxv-qt-full-6.6.0/include/QtCore/qabstracteventdispatcher.h:8,
warning:                  from /nix/store/gcgfdiaj8yafh3c2kcwagqcc04dndmxv-qt-full-6.6.0/include/QtCore/QtCore:15,
warning:                  from /nix/store/gcgfdiaj8yafh3c2kcwagqcc04dndmxv-qt-full-6.6.0/include/QtWidgets/QtWidgetsDepends:3,
warning:                  from /nix/store/gcgfdiaj8yafh3c2kcwagqcc04dndmxv-qt-full-6.6.0/include/QtWidgets/QtWidgets:3,
warning:                  from qt_accessible.rs:259:
warning: /nix/store/gcgfdiaj8yafh3c2kcwagqcc04dndmxv-qt-full-6.6.0/include/QtCore/qeventloop.h:59:36: note: declared here
warning:    59 |     Q_NODISCARD_CTOR Q_CORE_EXPORT QEventLoopLocker() noexcept;
warning:       |                                    ^~~~~~~~~~~~~~~~

@ogoffart
Copy link
Member

ogoffart commented Nov 8, 2023

please copy or attach the whole log.

@makuru-org
Copy link
Author

       Fresh unicode-ident v1.0.12
       Fresh proc-macro2 v1.0.69
       Fresh quote v1.0.33
       Fresh autocfg v1.1.0
       Fresh cfg-if v1.0.0
       Fresh syn v2.0.39
       Fresh bitflags v1.3.2
       Fresh log v0.4.20
       Fresh version_check v0.9.4
       Fresh memchr v2.6.4
       Fresh critical-section v1.1.2
       Fresh atomic-polyfill v1.0.3
       Fresh arrayvec v0.7.4
       Fresh lazy_static v1.4.0
       Fresh simd-adler32 v0.3.7
       Fresh libloading v0.8.1
       Fresh pkg-config v0.3.27
       Fresh float-cmp v0.9.0
       Fresh adler v1.0.2
       Fresh miniz_oxide v0.7.1
       Fresh strict-num v0.1.1
       Fresh arrayref v0.3.7
       Fresh crc32fast v1.3.2
       Fresh flate2 v1.0.28
       Fresh libc v0.2.150
       Fresh xml-rs v0.8.19
       Fresh libm v0.2.8
       Fresh bytemuck_derive v1.5.0
       Fresh num-traits v0.2.17
       Fresh syn v1.0.109
       Fresh tinyvec_macros v0.1.1
       Fresh xmlparser v0.13.6
       Fresh roxmltree v0.18.1
       Fresh tinyvec v1.6.0
       Fresh fdeflate v0.3.1
       Fresh png v0.17.10
       Fresh memoffset v0.9.0
       Fresh hashbrown v0.14.2
       Fresh byteorder v1.5.0
       Fresh equivalent v1.0.1
       Fresh indexmap v2.1.0
       Fresh kurbo v0.9.5
       Fresh winnow v0.5.19
       Fresh toml_datetime v0.6.5
       Fresh scopeguard v1.2.0
       Fresh siphasher v0.3.11
       Fresh svgtypes v0.11.0
       Fresh fontconfig-parser v0.5.3
       Fresh dlib v0.5.2
       Fresh rctree v0.5.0
       Fresh ttf-parser v0.19.2
       Fresh memoffset v0.6.5
       Fresh unicode-general-category v0.6.0
       Fresh aho-corasick v1.1.2
       Fresh unicode-bidi v0.3.13
       Fresh unicode-script v0.5.5
       Fresh unicode-ccc v0.1.2
       Fresh unicode-bidi-mirroring v0.1.0
       Fresh once_cell v1.18.0
       Fresh wayland-scanner v0.29.5
       Fresh euclid v0.22.9
       Fresh cfg_aliases v0.1.1
       Fresh regex-syntax v0.8.2
       Fresh regex-automata v0.4.3
       Fresh semver v1.0.20
       Fresh nix v0.24.3
       Fresh simplecss v0.2.1
       Fresh thiserror-impl v1.0.50
       Fresh data-url v0.2.0
       Fresh zerocopy v0.7.25
       Fresh unicode-vo v0.1.0
       Fresh bytemuck v1.14.0
       Fresh pin-project-lite v0.2.13
       Fresh imagesize v0.12.0
       Fresh thiserror v1.0.50
       Fresh futures-core v0.3.29
       Fresh regex v1.10.2
       Fresh cc v1.0.83
       Fresh downcast-rs v1.2.0
       Fresh scoped-tls v1.0.1
       Fresh num-integer v0.1.45
       Fresh toml_edit v0.19.15
       Fresh color_quant v1.1.0
       Fresh xmlwriter v0.1.0
       Fresh base64 v0.21.5
       Fresh pico-args v0.5.0
       Fresh num-rational v0.4.1
       Fresh wayland-sys v0.29.5
       Fresh memoffset v0.7.1
       Fresh convert_case v0.4.0
       Fresh event-listener v2.5.3
       Fresh futures-io v0.3.29
       Fresh derive_more v0.99.17
       Fresh crossbeam-epoch v0.9.15
       Fresh nix v0.26.4
       Fresh wayland-commons v0.29.5
       Fresh slab v0.4.9
       Fresh rustversion v1.0.14
       Fresh crossbeam-utils v0.8.16
       Fresh ttf-parser v0.15.2
       Fresh pin-utils v0.1.0
       Fresh minimal-lexical v0.2.1
       Fresh percent-encoding v2.3.0
       Fresh heck v0.4.1
       Fresh concurrent-queue v2.3.0
       Fresh nom v7.1.3
       Fresh strum_macros v0.25.3
       Fresh crossbeam-deque v0.8.3
       Fresh wayland-client v0.29.5
       Fresh typenum v1.17.0
       Fresh khronos_api v3.1.0
       Fresh tiny-skia-path v0.10.0
       Fresh cpp_common v0.5.9
       Fresh tracing-core v0.1.32
       Fresh tracing-attributes v0.1.27
       Fresh parking v2.2.0
       Fresh fastrand v2.0.1
       Fresh static_assertions v1.1.0
       Fresh smallvec v1.11.1
       Fresh waker-fn v1.1.1
       Fresh fastrand v1.9.0
       Fresh gl_generator v0.14.0
       Fresh futures-lite v1.13.0
       Fresh tracing v0.1.40
       Fresh rayon-core v1.12.0
       Fresh xcursor v0.3.4
       Fresh strum v0.25.0
       Fresh generic-array v0.14.7
       Fresh slotmap v1.0.6
       Fresh async-lock v2.8.0
       Fresh proc-macro-crate v1.3.1
       Fresh rustc_version v0.4.0
       Fresh nix v0.25.1
       Fresh zvariant_utils v1.0.1
       Fresh memmap2 v0.6.2
       Fresh serde_derive v1.0.192
       Fresh vec_map v0.8.2
       Fresh either v1.9.0
       Fresh bitflags v2.4.1
       Fresh serde v1.0.192
       Fresh calloop v0.10.6
       Fresh fontdb v0.14.1
       Fresh lock_api v0.4.11
       Fresh wayland-cursor v0.29.5
       Fresh wayland-protocols v0.29.5
       Fresh usvg-tree v0.34.0
       Fresh getrandom v0.2.11
       Fresh memmap2 v0.5.10
       Fresh enumflags2_derive v0.7.8
       Fresh atomic-waker v1.1.2
       Fresh ttf-parser v0.18.1
       Fresh unicode-xid v0.2.4
       Fresh async-task v4.5.0
       Fresh enumflags2 v0.7.8
       Fresh rustybuzz v0.7.0
       Fresh cpp_build v0.5.9
       Fresh piper v0.2.1
       Fresh rand_core v0.6.4
       Fresh spin v0.9.8
       Fresh smithay-client-toolkit v0.16.1
       Fresh io-lifetimes v1.0.11
       Fresh rayon v1.8.0
       Fresh zvariant_derive v3.15.0
       Fresh block-buffer v0.10.4
       Fresh crypto-common v0.1.6
       Fresh async-channel v1.9.0
       Fresh toml_edit v0.20.7
       Fresh instant v0.1.12
       Fresh linux-raw-sys v0.3.8
       Fresh raw-window-handle v0.5.2
       Fresh ttf-parser v0.20.0
       Fresh ppv-lite86 v0.2.17
       Fresh weezl v0.1.7
       Fresh rand_chacha v0.3.1
       Fresh owned_ttf_parser v0.20.0
       Fresh rustix v0.37.27
       Fresh proc-macro-crate v2.0.0
       Fresh digest v0.10.7
       Fresh blocking v1.4.1
       Fresh x11-dl v2.21.0
       Fresh field-offset v0.3.6
       Fresh flume v0.11.0
       Fresh zvariant v3.15.0
       Fresh futures-task v0.3.29
       Fresh polling v2.8.0
       Fresh usvg-text-layout v0.34.0
       Fresh usvg-parser v0.34.0
       Fresh ahash v0.8.6
       Fresh lyon_geom v1.0.4
       Fresh unicode-normalization v0.1.22
       Fresh tiny-skia-path v0.8.4
       Fresh zune-inflate v0.2.54
       Fresh socket2 v0.4.10
       Fresh const-field-offset-macro v0.1.3
       Fresh half v2.2.1
       Fresh lebe v0.5.2
       Fresh cpufeatures v0.2.11
       Fresh bit_field v0.10.2
       Fresh ab_glyph_rasterizer v0.1.8
       Fresh futures-sink v0.3.29
       Fresh jpeg-decoder v0.3.0
       Fresh exr v1.71.0
       Fresh sha1 v0.10.6
       Fresh futures-util v0.3.29
       Fresh ab_glyph v0.2.23
       Fresh lyon_path v1.0.4
       Fresh const-field-offset v0.1.3
       Fresh tiny-skia v0.8.4
       Fresh idna v0.4.0
       Fresh async-io v1.13.0
       Fresh hashbrown v0.13.2
       Fresh usvg v0.34.1
       Fresh zbus_names v2.6.0
       Fresh async-fs v1.6.0
       Fresh tiff v0.9.0
       Fresh num_enum_derive v0.7.1
       Fresh async-trait v0.1.74
       Fresh portable-atomic v1.5.1
       Fresh rand v0.8.5
       Fresh gif v0.12.0
       Fresh async-executor v1.6.0
       Fresh zbus_macros v3.14.1
       Fresh tiny-skia v0.10.0
       Fresh form_urlencoded v1.2.0
       Fresh xdg-home v1.0.0
       Fresh async-broadcast v0.5.1
       Fresh ordered-stream v0.2.0
       Fresh rgb v0.8.37
       Fresh qoi v0.4.1
       Fresh derivative v2.2.0
       Fresh pin-project-internal v1.1.3
       Fresh derive_utils v0.13.2
       Fresh vtable-macro v0.1.10
       Fresh serde_repr v0.1.17
       Fresh async-recursion v1.0.5
       Fresh libloading v0.7.4
       Fresh linked-hash-map v0.5.6
       Fresh codemap v0.1.3
       Fresh stable_deref_trait v1.2.0
       Fresh hashbrown v0.12.3
       Fresh text-size v1.1.1
       Fresh hex v0.4.3
       Fresh rustc-hash v1.1.0
       Fresh countme v3.0.1
       Fresh termcolor v1.3.0
       Fresh unicode-segmentation v1.10.1
       Fresh zbus v3.14.1
       Fresh rowan v0.15.13
       Fresh vtable v0.1.11
       Fresh auto_enums v0.8.3
       Fresh codemap-diagnostic v0.1.2
       Fresh linked_hash_set v0.1.4
       Fresh pin-project v1.1.3
       Fresh image v0.24.7
       Fresh url v2.4.1
       Fresh resvg v0.34.1
       Fresh num_enum v0.7.1
warning: src/qtgui/qcolor.rs: In function ‘bool __cpp_closure_6562486521463766636_impl(const size_t&, char* const&)’:
warning: src/qtgui/qcolor.rs:288:40: warning: ‘static bool QColor::isValidColor(QLatin1StringView)’ is deprecated: Use isValidColorName() instead. [-Wdeprecated-declarations]
warning:   288 |             return QColor::isValidColor(QLatin1String(ptr, len));
warning:       |                    ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
warning: In file included from /nix/store/gcgfdiaj8yafh3c2kcwagqcc04dndmxv-qt-full-6.6.0/include/QtGui/qimage.h:8,
warning:                  from /nix/store/gcgfdiaj8yafh3c2kcwagqcc04dndmxv-qt-full-6.6.0/include/QtGui/QImage:1,
warning:                  from src/lib.rs:186:
warning: /nix/store/gcgfdiaj8yafh3c2kcwagqcc04dndmxv-qt-full-6.6.0/include/QtGui/qcolor.h:201:17: note: declared here
warning:   201 |     static bool isValidColor(QLatin1StringView) noexcept;
warning:       |                 ^~~~~~~~~~~~
warning: src/qtgui/qcolor.rs: In function ‘void __cpp_closure_12696219515047926371(QColor* const&, const size_t&, char* const&)’:
warning: src/qtgui/qcolor.rs:731:39: warning: ‘void QColor::setNamedColor(QLatin1StringView)’ is deprecated: Use fromString() instead. [-Wdeprecated-declarations]
warning:   731 |             return self->setNamedColor(QLatin1String(ptr, len));
warning:       |                    ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
warning: /nix/store/gcgfdiaj8yafh3c2kcwagqcc04dndmxv-qt-full-6.6.0/include/QtGui/qcolor.h:70:10: note: declared here
warning:    70 |     void setNamedColor(QLatin1StringView name);
warning:       |          ^~~~~~~~~~~~~
warning: cargo:rustc-cdylib-link-arg was specified in the build script of qttypes v0.2.11, but that package does not contain a cdylib target

Allowing this was an unintended change in the 1.50 release, and may become an error in the future. For more information, see <https://github.com/rust-lang/cargo/issues/9562>.
       Fresh sctk-adwaita v0.5.4
       Fresh fontdue v0.7.3
       Fresh wayland-sys v0.31.1
       Fresh drm-sys v0.5.0
       Fresh lyon_algorithms v1.0.3
       Fresh lyon_extra v1.0.1
       Fresh i-slint-common v1.2.2
       Fresh nix v0.27.1
       Fresh itertools v0.11.0
       Fresh x11rb-protocol v0.10.0
       Fresh atspi-macros v0.2.0
       Fresh integer-sqrt v0.1.5
       Fresh css-color-parser2 v1.0.1
       Fresh quick-xml v0.30.0
       Fresh mio v0.8.9
       Fresh gethostname v0.2.3
       Fresh i-slint-core-macros v1.2.2
       Fresh unicode-linebreak v0.1.5
       Fresh accesskit v0.11.2
       Fresh clru v0.6.1
       Fresh scoped-tls-hkt v0.1.4
       Fresh dunce v1.0.4
       Fresh by_address v1.1.0
       Fresh smol_str v0.2.0
       Fresh as-raw-xcb-connection v1.0.0
       Fresh pin-weak v1.1.0
       Fresh x11rb v0.10.1
       Fresh i-slint-core v1.2.2
       Fresh i-slint-compiler v1.2.2
       Fresh winit v0.28.7
       Fresh wayland-scanner v0.31.0
       Fresh accesskit_consumer v0.15.2
       Fresh drm-ffi v0.6.0
       Fresh atspi v0.10.1
       Fresh wayland-backend v0.3.2
       Fresh glutin_glx_sys v0.4.0
       Fresh glutin_egl_sys v0.5.1
       Fresh wayland-sys v0.30.1
       Fresh drm-fourcc v2.2.0
       Fresh cpp_macros v0.5.9
       Fresh spin_on v0.1.1
       Fresh x11rb-protocol v0.12.0
       Fresh gethostname v0.3.0
       Fresh ctor v0.2.5
       Fresh generational-arena v0.2.9
       Fresh glow v0.12.3
       Fresh fnv v1.0.7
       Fresh lru v0.10.1
       Fresh linux-raw-sys v0.4.11
       Fresh imgref v1.10.0
       Fresh cpp v0.5.9
       Fresh tiny-xlib v0.2.2
       Fresh femtovg v0.7.1
       Fresh rustix v0.38.21
       Fresh x11rb v0.12.0
       Fresh accesskit_unix v0.5.2
       Fresh wayland-client v0.31.1
       Fresh glutin v0.30.10
warning: qt_window.rs: In function ‘void __cpp_closure_3960042792424564835(QWidget* const&)’:
warning: qt_window.rs:1536:35: warning: ignoring return value of ‘QEventLoopLocker::QEventLoopLocker()’, declared with attribute ‘nodiscard’ [-Wunused-result]
warning:  1536 |                 QEventLoopLocker();
warning:       |                                   ^
warning: In file included from /nix/store/gcgfdiaj8yafh3c2kcwagqcc04dndmxv-qt-full-6.6.0/include/QtCore/qabstracteventdispatcher.h:8,
warning:                  from /nix/store/gcgfdiaj8yafh3c2kcwagqcc04dndmxv-qt-full-6.6.0/include/QtCore/QtCore:15,
warning:                  from /nix/store/gcgfdiaj8yafh3c2kcwagqcc04dndmxv-qt-full-6.6.0/include/QtWidgets/QtWidgetsDepends:3,
warning:                  from /nix/store/gcgfdiaj8yafh3c2kcwagqcc04dndmxv-qt-full-6.6.0/include/QtWidgets/QtWidgets:3,
warning:                  from qt_accessible.rs:259:
warning: /nix/store/gcgfdiaj8yafh3c2kcwagqcc04dndmxv-qt-full-6.6.0/include/QtCore/qeventloop.h:59:36: note: declared here
warning:    59 |     Q_NODISCARD_CTOR Q_CORE_EXPORT QEventLoopLocker() noexcept;
warning:       |                                    ^~~~~~~~~~~~~~~~
       Fresh drm v0.10.0
       Fresh x11-clipboard v0.7.1
       Fresh smithay-clipboard v0.6.6
       Fresh memmap2 v0.9.0
       Fresh glutin-winit v0.3.0
       Fresh accesskit_winit v0.14.4
       Fresh i-slint-renderer-femtovg v1.2.2
       Fresh softbuffer v0.3.3
       Fresh copypasta v0.8.2
       Fresh qttypes v0.2.11
       Fresh send_wrapper v0.6.0
       Fresh slint-build v1.2.2
       Fresh slint-macros v1.2.2
       Fresh i-slint-backend-qt v1.2.2
       Fresh i-slint-backend-winit v1.2.2
       Fresh i-slint-backend-selector v1.2.2
   Compiling slint v1.2.2
     Running `CARGO=/home/lenovo/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/cargo CARGO_CRATE_NAME=slint CARGO_MANIFEST_DIR=/home/lenovo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/slint-1.2.2 CARGO_PKG_AUTHORS='Slint Developers <info@slint.dev>' CARGO_PKG_DESCRIPTION='GUI toolkit to efficiently develop fluid graphical user interfaces for embedded devices and desktop applications' CARGO_PKG_HOMEPAGE='https://slint.rs' CARGO_PKG_LICENSE='GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=slint CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/slint-ui/slint' CARGO_PKG_RUST_VERSION=1.66 CARGO_PKG_VERSION=1.2.2 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=2 CARGO_PKG_VERSION_PATCH=2 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/home/lenovo/Documents/rust-learning/calculator2/target/debug/deps:/home/lenovo/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib:/home/lenovo/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib:/nix/store/s5gzrzha72q79v92wqq61x9ir8xiwbxk-zlib-1.3/lib:/nix/store/hp6zbw9kkvxy57v79gnb4h5yzy9x86fl-pipewire-0.3.80-jack/lib' /home/lenovo/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name slint --edition=2021 /home/lenovo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/slint-1.2.2/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=116 --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="accessibility"' --cfg 'feature="backend-qt"' --cfg 'feature="backend-winit"' --cfg 'feature="compat-1-2"' --cfg 'feature="default"' --cfg 'feature="renderer-femtovg"' --cfg 'feature="renderer-software"' --cfg 'feature="std"' -C metadata=70b25c5d97ca3fe3 -C extra-filename=-70b25c5d97ca3fe3 --out-dir /home/lenovo/Documents/rust-learning/calculator2/target/debug/deps -L dependency=/home/lenovo/Documents/rust-learning/calculator2/target/debug/deps --extern const_field_offset=/home/lenovo/Documents/rust-learning/calculator2/target/debug/deps/libconst_field_offset-031d8eb0ca9233e5.rmeta --extern i_slint_backend_selector=/home/lenovo/Documents/rust-learning/calculator2/target/debug/deps/libi_slint_backend_selector-e49202566669defe.rmeta --extern i_slint_core=/home/lenovo/Documents/rust-learning/calculator2/target/debug/deps/libi_slint_core-a9f6a97927ca6276.rmeta --extern i_slint_renderer_femtovg=/home/lenovo/Documents/rust-learning/calculator2/target/debug/deps/libi_slint_renderer_femtovg-b08293b732ee65d3.rmeta --extern num_traits=/home/lenovo/Documents/rust-learning/calculator2/target/debug/deps/libnum_traits-32803166979ba2a5.rmeta --extern once_cell=/home/lenovo/Documents/rust-learning/calculator2/target/debug/deps/libonce_cell-73a6673b0373cf7c.rmeta --extern pin_weak=/home/lenovo/Documents/rust-learning/calculator2/target/debug/deps/libpin_weak-278f82aafcea6f69.rmeta --extern slint_macros=/home/lenovo/Documents/rust-learning/calculator2/target/debug/deps/libslint_macros-8016e1eedcf8f170.so --extern vtable=/home/lenovo/Documents/rust-learning/calculator2/target/debug/deps/libvtable-30e3b333a2a52c86.rmeta --cap-lints warn -L native=/home/lenovo/Documents/rust-learning/calculator2/target/debug/build/i-slint-backend-qt-4bc91b3b1d06064c/out -L native=/home/lenovo/Documents/rust-learning/calculator2/target/debug/build/qttypes-44f4bd289c2f7422/out -L /nix/store/gcgfdiaj8yafh3c2kcwagqcc04dndmxv-qt-full-6.6.0/lib`
error[E0463]: can't find crate for `slint_macros`
   --> /home/lenovo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/slint-1.2.2/lib.rs:202:9
    |
202 | pub use slint_macros::slint;
    |         ^^^^^^^^^^^^ can't find crate

For more information about this error, try `rustc --explain E0463`.
error: could not compile `slint` (lib) due to previous error

Caused by:
  process didn't exit successfully: `CARGO=/home/lenovo/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/cargo CARGO_CRATE_NAME=slint CARGO_MANIFEST_DIR=/home/lenovo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/slint-1.2.2 CARGO_PKG_AUTHORS='Slint Developers <info@slint.dev>' CARGO_PKG_DESCRIPTION='GUI toolkit to efficiently develop fluid graphical user interfaces for embedded devices and desktop applications' CARGO_PKG_HOMEPAGE='https://slint.rs' CARGO_PKG_LICENSE='GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=slint CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/slint-ui/slint' CARGO_PKG_RUST_VERSION=1.66 CARGO_PKG_VERSION=1.2.2 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=2 CARGO_PKG_VERSION_PATCH=2 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/home/lenovo/Documents/rust-learning/calculator2/target/debug/deps:/home/lenovo/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib:/home/lenovo/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib:/nix/store/s5gzrzha72q79v92wqq61x9ir8xiwbxk-zlib-1.3/lib:/nix/store/hp6zbw9kkvxy57v79gnb4h5yzy9x86fl-pipewire-0.3.80-jack/lib' /home/lenovo/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name slint --edition=2021 /home/lenovo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/slint-1.2.2/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=116 --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="accessibility"' --cfg 'feature="backend-qt"' --cfg 'feature="backend-winit"' --cfg 'feature="compat-1-2"' --cfg 'feature="default"' --cfg 'feature="renderer-femtovg"' --cfg 'feature="renderer-software"' --cfg 'feature="std"' -C metadata=70b25c5d97ca3fe3 -C extra-filename=-70b25c5d97ca3fe3 --out-dir /home/lenovo/Documents/rust-learning/calculator2/target/debug/deps -L dependency=/home/lenovo/Documents/rust-learning/calculator2/target/debug/deps --extern const_field_offset=/home/lenovo/Documents/rust-learning/calculator2/target/debug/deps/libconst_field_offset-031d8eb0ca9233e5.rmeta --extern i_slint_backend_selector=/home/lenovo/Documents/rust-learning/calculator2/target/debug/deps/libi_slint_backend_selector-e49202566669defe.rmeta --extern i_slint_core=/home/lenovo/Documents/rust-learning/calculator2/target/debug/deps/libi_slint_core-a9f6a97927ca6276.rmeta --extern i_slint_renderer_femtovg=/home/lenovo/Documents/rust-learning/calculator2/target/debug/deps/libi_slint_renderer_femtovg-b08293b732ee65d3.rmeta --extern num_traits=/home/lenovo/Documents/rust-learning/calculator2/target/debug/deps/libnum_traits-32803166979ba2a5.rmeta --extern once_cell=/home/lenovo/Documents/rust-learning/calculator2/target/debug/deps/libonce_cell-73a6673b0373cf7c.rmeta --extern pin_weak=/home/lenovo/Documents/rust-learning/calculator2/target/debug/deps/libpin_weak-278f82aafcea6f69.rmeta --extern slint_macros=/home/lenovo/Documents/rust-learning/calculator2/target/debug/deps/libslint_macros-8016e1eedcf8f170.so --extern vtable=/home/lenovo/Documents/rust-learning/calculator2/target/debug/deps/libvtable-30e3b333a2a52c86.rmeta --cap-lints warn -L native=/home/lenovo/Documents/rust-learning/calculator2/target/debug/build/i-slint-backend-qt-4bc91b3b1d06064c/out -L native=/home/lenovo/Documents/rust-learning/calculator2/target/debug/build/qttypes-44f4bd289c2f7422/out -L /nix/store/gcgfdiaj8yafh3c2kcwagqcc04dndmxv-qt-full-6.6.0/lib` (exit status: 1)

@ogoffart
Copy link
Member

ogoffart commented Nov 8, 2023

Thanks, the interresint line is

Running `CARGO=/home/lenovo/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/cargo CARGO_CRATE_NAME=slint CARGO_MANIFEST_DIR=/home/lenovo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/slint-1.2.2 CARGO_PKG_AUTHORS='Slint Developers <info@slint.dev>' CARGO_PKG_DESCRIPTION='GUI toolkit to efficiently develop fluid graphical user interfaces for embedded devices and desktop applications' CARGO_PKG_HOMEPAGE='https://slint.rs' CARGO_PKG_LICENSE='GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=slint CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/slint-ui/slint' CARGO_PKG_RUST_VERSION=1.66 CARGO_PKG_VERSION=1.2.2 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=2 CARGO_PKG_VERSION_PATCH=2 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/home/lenovo/Documents/rust-learning/calculator2/target/debug/deps:/home/lenovo/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib:/home/lenovo/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib:/nix/store/s5gzrzha72q79v92wqq61x9ir8xiwbxk-zlib-1.3/lib:/nix/store/hp6zbw9kkvxy57v79gnb4h5yzy9x86fl-pipewire-0.3.80-jack/lib' /home/lenovo/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name slint --edition=2021 /home/lenovo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/slint-1.2.2/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=116 --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="accessibility"' --cfg 'feature="backend-qt"' --cfg 'feature="backend-winit"' --cfg 'feature="compat-1-2"' --cfg 'feature="default"' --cfg 'feature="renderer-femtovg"' --cfg 'feature="renderer-software"' --cfg 'feature="std"' -C metadata=70b25c5d97ca3fe3 -C extra-filename=-70b25c5d97ca3fe3 --out-dir /home/lenovo/Documents/rust-learning/calculator2/target/debug/deps -L dependency=/home/lenovo/Documents/rust-learning/calculator2/target/debug/deps --extern const_field_offset=/home/lenovo/Documents/rust-learning/calculator2/target/debug/deps/libconst_field_offset-031d8eb0ca9233e5.rmeta --extern i_slint_backend_selector=/home/lenovo/Documents/rust-learning/calculator2/target/debug/deps/libi_slint_backend_selector-e49202566669defe.rmeta --extern i_slint_core=/home/lenovo/Documents/rust-learning/calculator2/target/debug/deps/libi_slint_core-a9f6a97927ca6276.rmeta --extern i_slint_renderer_femtovg=/home/lenovo/Documents/rust-learning/calculator2/target/debug/deps/libi_slint_renderer_femtovg-b08293b732ee65d3.rmeta --extern num_traits=/home/lenovo/Documents/rust-learning/calculator2/target/debug/deps/libnum_traits-32803166979ba2a5.rmeta --extern once_cell=/home/lenovo/Documents/rust-learning/calculator2/target/debug/deps/libonce_cell-73a6673b0373cf7c.rmeta --extern pin_weak=/home/lenovo/Documents/rust-learning/calculator2/target/debug/deps/libpin_weak-278f82aafcea6f69.rmeta --extern slint_macros=/home/lenovo/Documents/rust-learning/calculator2/target/debug/deps/libslint_macros-8016e1eedcf8f170.so --extern vtable=/home/lenovo/Documents/rust-learning/calculator2/target/debug/deps/libvtable-30e3b333a2a52c86.rmeta --cap-lints warn -L native=/home/lenovo/Documents/rust-learning/calculator2/target/debug/build/i-slint-backend-qt-4bc91b3b1d06064c/out -L native=/home/lenovo/Documents/rust-learning/calculator2/target/debug/build/qttypes-44f4bd289c2f7422/out -L /nix/store/gcgfdiaj8yafh3c2kcwagqcc04dndmxv-qt-full-6.6.0/lib`

And it does pass the slint_macro as a crate in its argument: --extern slint_macros=/home/lenovo/Documents/rust-learning/calculator2/target/debug/deps/libslint_macros-8016e1eedcf8f170.so

Does that libslint_macros-8016e1eedcf8f170.so file actually exists? Is it the right format to be loaded by rustc?
Does NixOS do something fishy like not allowing to load some libraries or something?

@makuru-org
Copy link
Author

Does that libslint_macros-8016e1eedcf8f170.so file actually exists?

yes

Is it the right format to be loaded by rustc?

rustc /home/lenovo/Documents/rust-learning/calculator2/target/debug/deps/libslint_macros-8016e1eedcf8f170.so
error: couldn't read /home/lenovo/Documents/rust-learning/calculator2/target/debug/deps/libslint_macros-8016e1eedcf8f170.so: stream did not contain valid UTF-8

error: aborting due to previous error

Does NixOS do something fishy like not allowing to load some libraries or something?

I dont think so.

@makuru-org
Copy link
Author

Ok intresting, I have tested it on another PC and got the same error as before, it is PureOS a Debian derivative, logs down bellow.

    Updating crates.io index
  Downloaded rand_chacha v0.3.1
  Downloaded stable_deref_trait v1.2.0
  Downloaded home v0.5.5
  Downloaded i-slint-compiler v1.2.2
  Downloaded image v0.24.7
  Downloaded drm-ffi v0.5.0
  Downloaded idna v0.4.0
  Downloaded svgtypes v0.11.0
  Downloaded drm-fourcc v2.2.0
  Downloaded i-slint-renderer-femtovg v1.2.2
  Downloaded atomic-polyfill v1.0.3
  Downloaded wayland-client v0.31.1
  Downloaded wayland-client v0.29.5
  Downloaded wayland-backend v0.3.2
  Downloaded waker-fn v1.1.1
  Downloaded unicode-bidi-mirroring v0.1.0
  Downloaded pin-weak v1.1.0
  Downloaded pin-utils v0.1.0
  Downloaded pin-project-lite v0.2.13
  Downloaded pin-project-internal v1.1.3
  Downloaded pin-project v1.1.3
  Downloaded qttypes v0.2.11
  Downloaded slint-macros v1.2.2
  Downloaded pico-args v0.5.0
  Downloaded percent-encoding v2.3.0
  Downloaded peeking_take_while v0.1.2
  Downloaded parking v2.2.0
  Downloaded owned_ttf_parser v0.20.0
  Downloaded ordered-stream v0.2.0
  Downloaded once_cell v1.18.0
  Downloaded num_enum_derive v0.7.1
  Downloaded num_enum v0.7.1
  Downloaded num-traits v0.2.17
  Downloaded memoffset v0.9.0
  Downloaded memmap2 v0.6.2
  Downloaded codemap-diagnostic v0.1.2
  Downloaded lyon_path v1.0.4
  Downloaded gbm-sys v0.2.2
  Downloaded lyon_extra v1.0.1
  Downloaded libseat v0.2.1
  Downloaded lyon_algorithms v1.0.3
  Downloaded log v0.4.20
  Downloaded unicode-vo v0.1.0
  Downloaded kurbo v0.9.5
  Downloaded input v0.8.3
  Downloaded imagesize v0.12.0
  Downloaded vtable v0.1.11
  Downloaded tracing v0.1.40
  Downloaded toml_edit v0.20.7
  Downloaded tinyvec v1.6.0
  Downloaded resvg v0.34.1
  Downloaded tiny-skia-path v0.8.4
  Downloaded sct v0.7.1
  Downloaded ring v0.17.5
  Downloaded slint v1.2.2
  Downloaded skia-bindings v0.66.3
  Downloaded xmlwriter v0.1.0
  Downloaded i-slint-backend-winit v1.2.2
  Downloaded i-slint-core-macros v1.2.2
  Downloaded i-slint-backend-linuxkms v1.2.2
  Downloaded i-slint-backend-selector v1.2.2
  Downloaded i-slint-backend-qt v1.2.2
  Downloaded hex v0.4.3
  Downloaded heck v0.4.1
  Downloaded hashbrown v0.14.2
  Downloaded vtable-macro v0.1.10
  Downloaded lyon_geom v1.0.4
  Downloaded hashbrown v0.13.2
  Downloaded i-slint-renderer-skia v1.2.2
  Downloaded hashbrown v0.12.3
  Downloaded glutin_glx_sys v0.4.0
  Downloaded ttf-parser v0.15.2
  Downloaded toml_edit v0.19.15
  Downloaded tiny-skia-path v0.10.0
  Downloaded tiny-skia v0.10.0
  Downloaded tiny-skia v0.8.4
  Downloaded softbuffer v0.3.3
  Downloaded skia-safe v0.66.3
  Downloaded clang-sys v1.6.1
  Downloaded cc v1.0.83
  Downloaded calloop v0.10.6
  Downloaded cfg-if v1.0.0
  Downloaded bitflags v2.4.1
  Downloaded bindgen v0.68.1
  Downloaded base64 v0.21.5
  Downloaded atspi v0.10.1
  Downloaded async-task v4.5.0
  Downloaded async-lock v2.8.0
  Downloaded codemap v0.1.3
  Downloaded i-slint-core v1.2.2
  Downloaded calloop v0.11.0
  Downloaded auto_enums v0.8.3
  Downloaded proc-macro2 v1.0.69
  Downloaded drm-sys v0.5.0
  Downloaded enumflags2 v0.7.8
  Downloaded digest v0.10.7
  Downloaded derive_more v0.99.17
  Downloaded typenum v1.17.0
  Downloaded ttf-parser v0.20.0
  Downloaded i-slint-common v1.2.2
  Downloaded ttf-parser v0.19.2
  Downloaded ttf-parser v0.18.1
  Downloaded tracing-core v0.1.32
  Downloaded tracing-attributes v0.1.27
  Downloaded toml v0.7.8
  Downloaded tar v0.4.40
  Downloaded syn v2.0.39
  Downloaded syn v1.0.109
  Downloaded static_assertions v1.1.0
  Downloaded smithay-client-toolkit v0.16.1
  Downloaded glutin_egl_sys v0.5.1
  Downloaded glutin-winit v0.3.0
  Downloaded glutin v0.30.10
  Downloaded glow v0.12.3
  Downloaded input-sys v1.17.0
  Downloaded glob v0.3.1
  Downloaded gl_generator v0.14.0
  Downloaded getrandom v0.2.10
  Downloaded zvariant v3.15.0
  Downloaded zerocopy v0.7.25
  Downloaded zbus_names v2.6.0
  Downloaded zbus_macros v3.14.1
  Downloaded zbus v3.14.1
  Downloaded xmlparser v0.13.6
  Downloaded xml-rs v0.8.19
  Downloaded xkeysym v0.2.0
  Downloaded xkbcommon v0.6.0
  Downloaded xdg-home v1.0.0
  Downloaded xcursor v0.3.4
  Downloaded xattr v1.0.1
  Downloaded x11rb-protocol v0.12.0
  Downloaded x11rb v0.12.0
  Downloaded x11rb v0.10.1
  Downloaded x11-dl v2.21.0
  Downloaded x11-clipboard v0.7.1
  Downloaded wio v0.2.2
  Downloaded winnow v0.5.19
  Downloaded winit v0.28.7
  Downloaded winapi v0.3.9
  Downloaded which v4.4.2
  Downloaded webpki-roots v0.25.2
  Downloaded wayland-sys v0.31.1
  Downloaded wayland-sys v0.30.1
  Downloaded wayland-sys v0.29.5
  Downloaded wayland-scanner v0.31.0
  Downloaded wayland-scanner v0.29.5
  Downloaded wayland-protocols v0.29.5
  Downloaded wayland-cursor v0.29.5
  Downloaded wayland-commons v0.29.5
  Downloaded unicode-bidi v0.3.13
  Downloaded num-rational v0.4.1
  Downloaded memoffset v0.7.1
  Downloaded memoffset v0.6.5
  Downloaded memmap2 v0.9.0
  Downloaded memmap2 v0.7.1
  Downloaded memmap2 v0.5.10
  Downloaded memchr v2.6.4
  Downloaded lru v0.10.1
  Downloaded linux-raw-sys v0.4.10
  Downloaded linux-raw-sys v0.3.8
  Downloaded linked_hash_set v0.1.4
  Downloaded linked-hash-map v0.5.6
  Downloaded khronos_api v3.1.0
  Downloaded jpeg-decoder v0.3.0
  Downloaded jobserver v0.1.27
  Downloaded io-lifetimes v1.0.11
  Downloaded integer-sqrt v0.1.5
  Downloaded indexmap v2.1.0
  Downloaded imgref v1.10.0
  Downloaded gethostname v0.3.0
  Downloaded gethostname v0.2.3
  Downloaded generic-array v0.14.7
  Downloaded generational-arena v0.2.9
  Downloaded gbm v0.12.0
  Downloaded futures-util v0.3.29
  Downloaded futures-task v0.3.29
  Downloaded futures-sink v0.3.29
  Downloaded futures-lite v1.13.0
  Downloaded futures-io v0.3.29
  Downloaded zvariant_utils v1.0.1
  Downloaded zvariant_derive v3.15.0
  Downloaded version_check v0.9.4
  Downloaded vec_map v0.8.2
  Downloaded usvg-tree v0.34.0
  Downloaded usvg v0.34.1
  Downloaded url v2.4.1
  Downloaded ureq v2.8.0
  Downloaded untrusted v0.9.0
  Downloaded unicode-xid v0.2.4
  Downloaded unicode-segmentation v1.10.1
  Downloaded unicode-script v0.5.5
  Downloaded unicode-normalization v0.1.22
  Downloaded unicode-linebreak v0.1.5
  Downloaded unicode-ident v1.0.12
  Downloaded unicode-general-category v0.6.0
  Downloaded unicode-ccc v0.1.2
  Downloaded num-integer v0.1.45
  Downloaded nom v7.1.3
  Downloaded nix v0.27.1
  Downloaded nix v0.26.4
  Downloaded nix v0.25.1
  Downloaded nix v0.24.3
  Downloaded mio v0.8.9
  Downloaded miniz_oxide v0.7.1
  Downloaded minimal-lexical v0.2.1
  Downloaded libudev-sys v0.1.4
  Downloaded libseat-sys v0.1.7
  Downloaded libm v0.2.8
  Downloaded libloading v0.8.1
  Downloaded libloading v0.7.4
  Downloaded libc v0.2.150
  Downloaded lazycell v1.3.0
  Downloaded lazy_static v1.4.0
  Downloaded tiny-xlib v0.2.2
  Downloaded thiserror v1.0.50
  Downloaded spin_on v0.1.1
  Downloaded smallvec v1.11.1
  Downloaded simplecss v0.2.1
  Downloaded slab v0.4.9
  Downloaded siphasher v0.3.11
  Downloaded shlex v1.2.0
  Downloaded sha1 v0.10.6
  Downloaded scoped-tls-hkt v0.1.4
  Downloaded rustc_version v0.4.0
  Downloaded crc32fast v1.3.2
  Downloaded cpp_build v0.5.9
  Downloaded concurrent-queue v2.3.0
  Downloaded cexpr v0.6.0
  Downloaded by_address v1.1.0
  Downloaded convert_case v0.4.0
  Downloaded color_quant v1.1.0
  Downloaded clru v0.6.1
  Downloaded cfg_aliases v0.1.1
  Downloaded blocking v1.4.1
  Downloaded block-buffer v0.10.4
  Downloaded autocfg v1.1.0
  Downloaded atspi-macros v0.2.0
  Downloaded atomic-waker v1.1.2
  Downloaded async-fs v1.6.0
  Downloaded as-raw-xcb-connection v1.0.0
  Downloaded byteorder v1.5.0
  Downloaded countme v3.0.1
  Downloaded copypasta v0.8.2
  Downloaded const-field-offset-macro v0.1.3
  Downloaded const-field-offset v0.1.3
  Downloaded proc-macro-crate v2.0.0
  Downloaded proc-macro-crate v1.3.1
  Downloaded derive_utils v0.13.2
  Downloaded critical-section v1.1.2
  Downloaded udev v0.7.0
  Downloaded toml_datetime v0.6.5
  Downloaded tinyvec_macros v0.1.1
  Downloaded thiserror-impl v1.0.50
  Downloaded text-size v1.1.1
  Downloaded termcolor v1.3.0
  Downloaded strum_macros v0.25.3
  Downloaded strum v0.25.0
  Downloaded smol_str v0.2.0
  Downloaded smithay-clipboard v0.6.6
  Downloaded x11rb-protocol v0.10.0
  Downloaded drm-ffi v0.6.0
  Downloaded drm v0.10.0
  Downloaded downcast-rs v1.2.0
  Downloaded derivative v2.2.0
  Downloaded data-url v0.2.0
  Downloaded ctor v0.2.5
  Downloaded css-color-parser2 v1.0.1
  Downloaded crypto-common v0.1.6
  Downloaded crossbeam-utils v0.8.16
  Downloaded cpufeatures v0.2.11
  Downloaded usvg-text-layout v0.34.0
  Downloaded usvg-parser v0.34.0
  Downloaded itoa v1.0.9
  Downloaded itertools v0.11.0
  Downloaded instant v0.1.12
  Downloaded strict-num v0.1.1
  Downloaded slotmap v1.0.6
  Downloaded simd-adler32 v0.3.7
  Downloaded serde_spanned v0.6.4
  Downloaded serde_repr v0.1.17
  Downloaded serde_json v1.0.108
  Downloaded serde_derive v1.0.192
  Downloaded serde v1.0.192
  Downloaded send_wrapper v0.6.0
  Downloaded semver v1.0.20
  Downloaded sctk-adwaita v0.5.4
  Downloaded scopeguard v1.2.0
  Downloaded scoped-tls v1.0.1
  Downloaded ryu v1.0.15
  Downloaded rustybuzz v0.7.0
  Downloaded rustversion v1.0.14
  Downloaded rustls-webpki v0.101.7
  Downloaded rustls v0.21.8
  Downloaded rustix v0.38.21
  Downloaded rustix v0.37.27
  Downloaded rustc-hash v1.1.0
  Downloaded roxmltree v0.18.1
  Downloaded rowan v0.15.13
  Downloaded rgb v0.8.37
  Downloaded regex-syntax v0.8.2
  Downloaded regex-automata v0.4.3
  Downloaded regex v1.10.2
  Downloaded raw-window-handle v0.5.2
  Downloaded quick-xml v0.30.0
  Downloaded spin v0.9.8
  Downloaded socket2 v0.4.10
  Downloaded bytemuck_derive v1.5.0
  Downloaded bytemuck v1.14.0
  Downloaded bitflags v1.3.2
  Downloaded async-trait v0.1.74
  Downloaded async-recursion v1.0.5
  Downloaded async-io v1.13.0
  Downloaded arrayvec v0.7.4
  Downloaded arrayref v0.3.7
  Downloaded async-executor v1.6.0
  Downloaded async-channel v1.9.0
  Downloaded async-broadcast v0.5.1
  Downloaded aho-corasick v1.1.2
  Downloaded ahash v0.8.6
  Downloaded adler v1.0.2
  Downloaded accesskit_winit v0.14.4
  Downloaded accesskit v0.11.2
  Downloaded ab_glyph_rasterizer v0.1.8
  Downloaded accesskit_unix v0.5.2
  Downloaded accesskit_consumer v0.15.2
  Downloaded prettyplease v0.2.15
  Downloaded ppv-lite86 v0.2.17
  Downloaded portable-atomic v1.5.1
  Downloaded polling v2.8.0
  Downloaded png v0.17.10
  Downloaded pkg-config v0.3.27
  Downloaded piper v0.2.1
  Downloaded futures-core v0.3.29
  Downloaded form_urlencoded v1.2.0
  Downloaded fontdue v0.7.3
  Downloaded fontdb v0.14.1
  Downloaded fontconfig-parser v0.5.3
  Downloaded fnv v1.0.7
  Downloaded float-cmp v0.9.0
  Downloaded flate2 v1.0.28
  Downloaded filetime v0.2.22
  Downloaded field-offset v0.3.6
  Downloaded femtovg v0.7.1
  Downloaded fdeflate v0.3.1
  Downloaded fastrand v2.0.1
  Downloaded fastrand v1.9.0
  Downloaded event-listener v2.5.3
  Downloaded euclid v0.22.9
  Downloaded errno v0.3.6
  Downloaded equivalent v1.0.1
  Downloaded enumflags2_derive v0.7.8
  Downloaded either v1.9.0
  Downloaded dunce v1.0.4
  Downloaded drm-sys v0.4.0
  Downloaded dlib v0.5.2
  Downloaded cpp_macros v0.5.9
  Downloaded cpp_common v0.5.9
  Downloaded cpp v0.5.9
  Downloaded rctree v0.5.0
  Downloaded rand_core v0.6.4
  Downloaded rand v0.8.5
  Downloaded quote v1.0.33
  Downloaded drm v0.9.0
  Downloaded ab_glyph v0.2.23
  Downloaded 364 crates (31.8 MB) in 7.43s (largest was `ring` at 4.1 MB)
   Compiling proc-macro2 v1.0.69
   Compiling unicode-ident v1.0.12
   Compiling autocfg v1.1.0
   Compiling cfg-if v1.0.0
   Compiling libc v0.2.150
   Compiling quote v1.0.33
   Compiling syn v2.0.39
   Compiling bitflags v1.3.2
   Compiling log v0.4.20
   Compiling critical-section v1.1.2
   Compiling memchr v2.6.4
   Compiling atomic-polyfill v1.0.3
   Compiling version_check v0.9.4
   Compiling once_cell v1.18.0
   Compiling pkg-config v0.3.27
   Compiling lazy_static v1.4.0
   Compiling arrayvec v0.7.4
   Compiling xml-rs v0.8.19
   Compiling libloading v0.8.1
   Compiling libm v0.2.8
   Compiling smallvec v1.11.1
   Compiling bytemuck_derive v1.5.0
   Compiling syn v1.0.109
   Compiling memoffset v0.6.5
   Compiling bytemuck v1.14.0
   Compiling dlib v0.5.2
   Compiling slotmap v1.0.6
   Compiling simd-adler32 v0.3.7
   Compiling crc32fast v1.3.2
   Compiling aho-corasick v1.1.2
   Compiling hashbrown v0.14.2
   Compiling float-cmp v0.9.0
   Compiling equivalent v1.0.1
   Compiling adler v1.0.2
   Compiling miniz_oxide v0.7.1
   Compiling indexmap v2.1.0
   Compiling strict-num v0.1.1
   Compiling wayland-scanner v0.29.5
   Compiling toml_datetime v0.6.5
   Compiling semver v1.0.20
   Compiling arrayref v0.3.7
   Compiling winnow v0.5.19
   Compiling flate2 v1.0.28
   Compiling num-traits v0.2.17
   Compiling cfg_aliases v0.1.1
   Compiling regex-syntax v0.8.2
   Compiling futures-core v0.3.29
   Compiling regex-automata v0.4.3
   Compiling nix v0.24.3
   Compiling tinyvec_macros v0.1.1
   Compiling pin-project-lite v0.2.13
   Compiling byteorder v1.5.0
   Compiling tinyvec v1.6.0
   Compiling regex v1.10.2
   Compiling cc v1.0.83
   Compiling fdeflate v0.3.1
   Compiling wayland-sys v0.29.5
   Compiling memoffset v0.7.1
   Compiling scoped-tls v1.0.1
   Compiling downcast-rs v1.2.0
   Compiling png v0.17.10
   Compiling slab v0.4.9
   Compiling thiserror v1.0.50
   Compiling crossbeam-utils v0.8.16
   Compiling wayland-client v0.29.5
   Compiling thiserror-impl v1.0.50
   Compiling memoffset v0.9.0
   Compiling xmlparser v0.13.6
   Compiling typenum v1.17.0
   Compiling event-listener v2.5.3
   Compiling khronos_api v3.1.0
   Compiling futures-io v0.3.29
   Compiling roxmltree v0.18.1
   Compiling wayland-commons v0.29.5
   Compiling nix v0.26.4
   Compiling generic-array v0.14.7
   Compiling unicode-general-category v0.6.0
   Compiling minimal-lexical v0.2.1
   Compiling nom v7.1.3
   Compiling concurrent-queue v2.3.0
   Compiling toml_edit v0.19.15
   Compiling wayland-protocols v0.29.5
   Compiling tiny-skia-path v0.10.0
   Compiling tracing-attributes v0.1.27
   Compiling kurbo v0.9.5
   Compiling cpp_common v0.5.9
   Compiling tracing-core v0.1.32
   Compiling siphasher v0.3.11
   Compiling serde v1.0.192
   Compiling rustversion v1.0.14
   Compiling parking v2.2.0
   Compiling fastrand v2.0.1
   Compiling waker-fn v1.1.1
   Compiling fastrand v1.9.0
   Compiling static_assertions v1.1.0
   Compiling futures-lite v1.13.0
   Compiling svgtypes v0.11.0
   Compiling tracing v0.1.40
   Compiling proc-macro-crate v1.3.1
   Compiling gl_generator v0.14.0
   Compiling xcursor v0.3.4
   Compiling fontconfig-parser v0.5.3
   Compiling async-lock v2.8.0
   Compiling rustc_version v0.4.0
   Compiling zvariant_utils v1.0.1
   Compiling nix v0.25.1
   Compiling serde_derive v1.0.192
   Compiling smithay-client-toolkit v0.16.1
   Compiling memmap2 v0.6.2
   Compiling num-integer v0.1.45
   Compiling io-lifetimes v1.0.11
   Compiling rctree v0.5.0
   Compiling unicode-ccc v0.1.2
   Compiling unicode-script v0.5.5
   Compiling vec_map v0.8.2
   Compiling ttf-parser v0.19.2
   Compiling bitflags v2.4.1
   Compiling ttf-parser v0.18.1
   Compiling unicode-bidi-mirroring v0.1.0
   Compiling rustybuzz v0.7.0
   Compiling fontdb v0.14.1
   Compiling calloop v0.10.6
   Compiling usvg-tree v0.34.0
   Compiling field-offset v0.3.6
   Compiling wayland-cursor v0.29.5
   Compiling euclid v0.22.9
   Compiling enumflags2_derive v0.7.8
   Compiling x11-dl v2.21.0
   Compiling ahash v0.8.6
   Compiling getrandom v0.2.10
   Compiling memmap2 v0.5.10
   Compiling polling v2.8.0
   Compiling num-rational v0.4.1
   Compiling unicode-xid v0.2.4
   Compiling async-task v4.5.0
   Compiling atomic-waker v1.1.2
   Compiling rustix v0.37.27
   Compiling convert_case v0.4.0
   Compiling heck v0.4.1
   Compiling futures-task v0.3.29
   Compiling percent-encoding v2.3.0
   Compiling unicode-bidi v0.3.13
   Compiling pin-utils v0.1.0
   Compiling strum_macros v0.25.3
   Compiling derive_more v0.99.17
   Compiling piper v0.2.1
   Compiling cpp_build v0.5.9
   Compiling rand_core v0.6.4
   Compiling enumflags2 v0.7.8
   Compiling lyon_geom v1.0.4
   Compiling zvariant_derive v3.15.0
   Compiling crypto-common v0.1.6
   Compiling block-buffer v0.10.4
   Compiling async-channel v1.9.0
   Compiling simplecss v0.2.1
   Compiling instant v0.1.12
   Compiling async-fs v1.6.0
   Compiling async-io v1.13.0
   Compiling imagesize v0.12.0
   Compiling linux-raw-sys v0.3.8
   Compiling raw-window-handle v0.5.2
   Compiling async-trait v0.1.74
   Compiling zerocopy v0.7.25
   Compiling futures-util v0.3.29
   Compiling ttf-parser v0.20.0
   Compiling unicode-vo v0.1.0
   Compiling ppv-lite86 v0.2.17
   Compiling portable-atomic v1.5.1
   Compiling data-url v0.2.0
   Compiling usvg-parser v0.34.0
   Compiling owned_ttf_parser v0.20.0
   Compiling rand_chacha v0.3.1
   Compiling usvg-text-layout v0.34.0
   Compiling blocking v1.4.1
   Compiling digest v0.10.7
   Compiling zvariant v3.15.0
   Compiling lyon_path v1.0.4
   Compiling strum v0.25.0
   Compiling tiny-skia-path v0.8.4
   Compiling rgb v0.8.37
   Compiling const-field-offset-macro v0.1.3
   Compiling wayland-sys v0.31.1
   Compiling socket2 v0.4.10
   Compiling color_quant v1.1.0
   Compiling cpufeatures v0.2.11
   Compiling base64 v0.21.5
   Compiling futures-sink v0.3.29
   Compiling ab_glyph_rasterizer v0.1.8
   Compiling xmlwriter v0.1.0
   Compiling pico-args v0.5.0
   Compiling drm-sys v0.5.0
   Compiling jpeg-decoder v0.3.0
   Compiling usvg v0.34.1
   Compiling ab_glyph v0.2.23
   Compiling image v0.24.7
   Compiling sha1 v0.10.6
   Compiling const-field-offset v0.1.3
   Compiling tiny-skia v0.8.4
   Compiling zbus_names v2.6.0
   Compiling hashbrown v0.13.2
   Compiling rand v0.8.5
   Compiling qttypes v0.2.11
   Compiling async-executor v1.6.0
   Compiling zbus_macros v3.14.1
   Compiling glutin_glx_sys v0.4.0
   Compiling glutin_egl_sys v0.5.1
   Compiling tiny-skia v0.10.0
   Compiling xdg-home v1.0.0
   Compiling async-broadcast v0.5.1
   Compiling ordered-stream v0.2.0
   Compiling wayland-backend v0.3.2
   Compiling winit v0.28.7
   Compiling derivative v2.2.0
   Compiling pin-project-internal v1.1.3
   Compiling vtable-macro v0.1.10
   Compiling serde_repr v0.1.17
   Compiling async-recursion v1.0.5
   Compiling derive_utils v0.13.2
   Compiling wayland-sys v0.30.1
   Compiling libloading v0.7.4
   Compiling stable_deref_trait v1.2.0
   Compiling hex v0.4.3
   Compiling unicode-segmentation v1.10.1
   Compiling ttf-parser v0.15.2
   Compiling drm-fourcc v2.2.0
   Compiling zbus v3.14.1
   Compiling fontdue v0.7.3
   Compiling vtable v0.1.11
   Compiling auto_enums v0.8.3
   Compiling pin-project v1.1.3
   Compiling resvg v0.34.1
   Compiling sctk-adwaita v0.5.4
   Compiling lyon_algorithms v1.0.3
   Compiling lyon_extra v1.0.1
   Compiling i-slint-common v1.2.2
   Compiling nix v0.27.1
   Compiling integer-sqrt v0.1.5
   Compiling x11rb-protocol v0.10.0
   Compiling toml_edit v0.20.7
   Compiling glutin v0.30.10
   Compiling atspi-macros v0.2.0
   Compiling i-slint-core-macros v1.2.2
   Compiling quick-xml v0.30.0
   Compiling mio v0.8.9
   Compiling gethostname v0.2.3
   Compiling rustix v0.38.21
   Compiling scopeguard v1.2.0
   Compiling x11rb v0.12.0
   Compiling clru v0.6.1
   Compiling scoped-tls-hkt v0.1.4
   Compiling accesskit v0.11.2
   Compiling pin-weak v1.1.0
   Compiling unicode-linebreak v0.1.5
   Compiling as-raw-xcb-connection v1.0.0
   Compiling i-slint-core v1.2.2
   Compiling accesskit_consumer v0.15.2
   Compiling x11rb v0.10.1
   Compiling wayland-scanner v0.31.0
   Compiling atspi v0.10.1
   Compiling proc-macro-crate v2.0.0
   Compiling drm-ffi v0.6.0
   Compiling i-slint-backend-qt v1.2.2
   Compiling cpp_macros v0.5.9
   Compiling x11rb-protocol v0.12.0
   Compiling unicode-normalization v0.1.22
   Compiling softbuffer v0.3.3
   Compiling glutin-winit v0.3.0
   Compiling ctor v0.2.5
   Compiling gethostname v0.3.0
   Compiling generational-arena v0.2.9
   Compiling lru v0.10.1
   Compiling fnv v1.0.7
   Compiling imgref v1.10.0
   Compiling linux-raw-sys v0.4.10
   Compiling glow v0.12.3
   Compiling femtovg v0.7.1
   Compiling idna v0.4.0
   Compiling tiny-xlib v0.2.2
   Compiling accesskit_unix v0.5.2
   Compiling cpp v0.5.9
   Compiling drm v0.10.0
   Compiling wayland-client v0.31.1
   Compiling num_enum_derive v0.7.1
   Compiling x11-clipboard v0.7.1
   Compiling smithay-clipboard v0.6.6
   Compiling form_urlencoded v1.2.0
   Compiling i-slint-backend-winit v1.2.2
   Compiling memmap2 v0.9.0
   Compiling countme v3.0.1
   Compiling either v1.9.0
   Compiling text-size v1.1.1
   Compiling rustc-hash v1.1.0
   Compiling codemap v0.1.3
   Compiling termcolor v1.3.0
   Compiling i-slint-compiler v1.2.2
   Compiling linked-hash-map v0.5.6
   Compiling hashbrown v0.12.3
   Compiling linked_hash_set v0.1.4
   Compiling codemap-diagnostic v0.1.2
   Compiling rowan v0.15.13
   Compiling itertools v0.11.0
   Compiling url v2.4.1
   Compiling copypasta v0.8.2
   Compiling num_enum v0.7.1
   Compiling accesskit_winit v0.14.4
   Compiling i-slint-renderer-femtovg v1.2.2
   Compiling css-color-parser2 v1.0.1
   Compiling send_wrapper v0.6.0
   Compiling dunce v1.0.4
   Compiling smol_str v0.2.0
   Compiling i-slint-backend-selector v1.2.2
   Compiling by_address v1.1.0
   Compiling spin_on v0.1.1
   Compiling calculator v0.1.0 (/home/t3sserakt/Downloads/calculator)
error[E0433]: failed to resolve: use of undeclared crate or module `slint_build`
 --> build.rs:2:5
  |
2 |     slint_build::compile("ui/appwindow.slint").unwrap();
  |     ^^^^^^^^^^^ use of undeclared crate or module `slint_build`

For more information about this error, try `rustc --explain E0433`.
error: could not compile `calculator` (build script) due to previous error
warning: build failed, waiting for other jobs to finish...

@ogoffart
Copy link
Member

ogoffart commented Nov 9, 2023

That's not the same error.

That's probably because you removed the build depenency in your Cargo.toml

[build-dependencies]
slint-build = "1.0"

@makuru-org
Copy link
Author

okay adding that did fix it.

@ogoffart
Copy link
Member

As mentioned in rust-lang/cargo#12935 , this looks like this is bug rust-lang/rust#115073
Closing the bug here since this is not a Slint issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs info Further information from the reporter is requested
Projects
None yet
Development

No branches or pull requests

3 participants