Package Details: linux-rust 6.10.10.arch1-1

Git Clone URL: https://aur.archlinux.org/linux-rust.git (read-only, click to copy)
Package Base: linux-rust
Description: The Linux kernel and modules with support for Rust written modules
Upstream URL: https://github.com/rnestler/archpkg-linux-rust
Licenses: GPL2
Provides: KSMBD-MODULE, VIRTUALBOX-GUEST-MODULES, WIREGUARD-MODULE
Replaces: virtualbox-guest-modules-arch, wireguard-arch
Submitter: rnestler
Maintainer: rnestler
Last Packager: rnestler
Votes: 3
Popularity: 0.91
First Submitted: 2022-12-20 21:45 (UTC)
Last Updated: 2024-10-04 09:49 (UTC)

Required by (5)

Sources (5)

Latest Comments

1 2 Next › Last »

crazyboycjr commented on 2024-10-03 19:02 (UTC)

This is minor, but it looks like the PKGBUILD is missing this dependency python-yaml. @rnestler Would you mind adding python-yaml to makedepends?

...
  BTF [M] net/qrtr/qrtr-smd.ko
  CC [M]  net/qrtr/qrtr-tun.mod.o
  LD [M]  net/qrtr/qrtr-tun.ko
  BTF [M] net/qrtr/qrtr-tun.ko
  CC [M]  net/qrtr/qrtr-mhi.mod.o
  LD [M]  net/qrtr/qrtr-mhi.ko
  BTF [M] net/qrtr/qrtr-mhi.ko
Traceback (most recent call last):
  File "/home/cjr/.cache/paru/clone/linux-rust/src/linux-6.10.10/./tools/net/ynl/ynl-gen-rst.py", line 26, in <module>
    import yaml
ModuleNotFoundError: No module named 'yaml'
make[2]: *** [Documentation/Makefile:116: Documentation/networking/netlink_spec/devlink.rst] Error 1
make[1]: *** [/home/xxx/.cache/paru/clone/linux-rust/src/linux-6.10.10/Makefile:1718: htmldocs] Error 2
make: *** [Makefile:240: __sub-make] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'linux-rust-6.10.10.arch1-1 (linux-rust linux-rust-docs linux-rust-headers)':
error: packages failed to build: linux-rust-6.10.10.arch1-1 (linux-rust linux-rust-docs linux-rust-headers)
paru -S linux-rust linux-rust-docs linux-rust-headers  20549.37s user 1249.60s system 101% cpu 5:59:03.33 total

rnestler commented on 2024-09-16 09:54 (UTC)

Ah, that will probably be hard to support, since currently Rust support in the Linux kernel needs exact versions of the Rust compiler and the bindgen tool.

According to https://rust-for-linux.com/rust-version-policy this should change with the 6.11 kernel, so that we could use the packaged versions of rustc and the compiler.

Btw. if you want to propose changes to the PKGBUILD you can create a PR in https://github.com/rnestler/archpkg-linux-rust.

rnestler commented on 2024-09-16 09:44 (UTC) (edited on 2024-09-16 09:44 (UTC) by rnestler)

Ah, I am building in a clean chroot

Ah, that will probably be hard to support, since currently Rust support in the Linux kernel needs exact versions of the Rust compiler and the bindgen tool.

But I guess you'd need to add ~/.cargo/bin to the PATH, since that's where cargo will install it. (/build/.cargo/bin/ in your case judging from the output).

graysky commented on 2024-09-16 08:55 (UTC)

Ah, I am building in a clean chroot, not on the live filesystem. I added rustup default stable to the prepare function but encountered another error:

...
   Compiling clap_derive v4.2.0
   Compiling clap v4.2.1
   Compiling bindgen-cli v0.65.1
    Finished `release` profile [optimized] target(s) in 11.69s
  Installing /build/.cargo/bin/bindgen
   Installed package `bindgen-cli v0.65.1` (executable `bindgen`)
Verifying that Rust support is available
***
*** Rust bindings generator 'bindgen' could not be found.
***
***
*** Please see Documentation/rust/quick-start.rst for details
*** on how to set up the Rust support.
***
make[1]: *** [/build/linux-rust/src/linux-6.9.9/Makefile:1711: rustavailable] Error 1
make: *** [Makefile:240: __sub-make] Error 2
==> ERROR: A failure occurred in prepare().

https://wiki.archlinux.org/title/DeveloperWiki:Building_in_a_clean_chroot

rnestler commented on 2024-09-16 07:37 (UTC)

@graysky Is rustup otherwise working for you? Can you try to execute rustup show in your home directory and then in the linux-rust PKBGUILD directory?

In the PKGBUILD directory it should show something similar to

active toolchain
----------------

1.76.0-x86_64-unknown-linux-gnu (overridden by '~/projects/archpkg/linux-rust/rust-toolchain')
rustc 1.76.0 (07dca489a 2024-02-04)

Otherwise try to run the command the error suggests: rustup default stable.

graysky commented on 2024-09-15 21:42 (UTC)

I get this failure, any advice?

==> Starting prepare()...
Setting version...
Applying patch linux-v6.9.9-arch1.patch...
patching file Makefile
patching file arch/Kconfig
patching file drivers/firmware/sysfb.c
patching file include/linux/user_namespace.h
patching file init/Kconfig
patching file kernel/fork.c
patching file kernel/sysctl.c
patching file kernel/user_namespace.c
Applying patch 0001-try.patch...
patching file arch/x86/Kconfig.cpu
patching file arch/x86/Makefile
Hunk #1 succeeded at 158 (offset -20 lines).
Installing rust-src
error: rustup could not choose a version of rustup to run, because one wasn't specified explicitly, and no default is configured.
help: run 'rustup default stable' to download the latest stable release of Rust and set it as your default toolchain.
==> ERROR: A failure occurred in prepare().
    Aborting...

rnestler commented on 2024-07-16 17:53 (UTC)

@user20159 Could you get it to build? I added a check to the PKGBUILD now which should verify that Rust support is really available.

rnestler commented on 2024-07-02 16:16 (UTC) (edited on 2024-07-02 16:19 (UTC) by rnestler)

@user20159 Judging from the build logs Rust support gets disabled during the config step:

-CONFIG_RUST_IS_AVAILABLE=y

It looks like something is missing on your system. Maybe rustup isn't configured correctly or something?

Can you do

cd src/linux-6.9.7/
make LLVM=1 rustavailable

user20159 commented on 2024-07-01 16:32 (UTC)

I tried both. It does not matter whether I use an AUR helper or run git clone + makepkg -sri manually, the same error occurs in both cases, also with the new version. See the full build log here: https://codeberg.org/LukeLR/gists/src/branch/main/rust-linux-build.log

rnestler commented on 2024-06-30 17:33 (UTC)

Hi, building the linux-rust-headers fails for me with the scripts/target.json missing. Is this a known issue, or am I doing something wrong?

It's not a known issue. The file should be there. Did you build the packages manually with makepkg after git clone or with a helper like yay?