Skip to content

zfs 2.3.5: compilation error with clang #17959

@mabod

Description

@mabod

This is a report for an up-to-date endeavouros with

clang 21.1.5-1
llvm 21.1.5-1
llvm-libs 21.1.5-1

I am using the linux-tkg kernels. I typically use gcc but today I wanted to try the llvm toolchain.

The gcc build works fine.

When I compile kernel 6.12.58 with llvm I get a zfs-dkms build fail:

From /var/lib/dkms/zfs/2.3.5/build/make.log :

...
checking whether bio->bi_bdev->bd_disk exists... yes
checking whether block_device_operations->submit_bio() returns void... yes
checking whether bio_alloc() wants 4 args... yes
checking whether blkdev_get_by_path() exists and takes 3 args... no
checking whether blkdev_get_by_path() exists and takes 4 args... no
checking whether bdev_open_by_path() exists... no
checking whether bdev_file_open_by_path() exists... no
configure: error: 
	*** None of the expected "blkdev_get_by_path()" interfaces were detected.
	*** This may be because your kernel version is newer than what is
	*** supported, or you are using a patched custom kernel with
	*** incompatible modifications.
	***
	*** ZFS Version: zfs-2.3.5-1
	*** Compatible Kernels: 4.18 - 6.17
	

# exit code: 1
# elapsed time: 00:00:32

I am not aware of any incompatible linux-tkg changes. Thats why I am posting this here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: DefectIncorrect behavior (e.g. crash, hang)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions