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

clang, Linux 6.7.12, zfs 2.2.7: build error #16879

Open
michael-brade opened this issue Dec 17, 2024 · 1 comment
Open

clang, Linux 6.7.12, zfs 2.2.7: build error #16879

michael-brade opened this issue Dec 17, 2024 · 1 comment
Labels
Type: Defect Incorrect behavior (e.g. crash, hang)

Comments

@michael-brade
Copy link

System information

Type Version/Name
Distribution Name Debian
Distribution Version unstable
Kernel Version 6.7.12
Architecture amd64
OpenZFS Version 2.2.7

Describe the problem you're observing

Trying to compile with clang results in:

  CC [M]  /var/lib/dkms/zfs/2.2.7/build/module/lua/lcorolib.o
In file included from /var/lib/dkms/zfs/2.2.7/build/module/icp/algs/blake3/blake3_impl.c:284:
In file included from /var/lib/dkms/zfs/2.2.7/build/module/icp/include/generic_impl.c:37:
In file included from /var/lib/dkms/zfs/2.2.7/build/include/sys/zio_checksum.h:31:
In file included from /var/lib/dkms/zfs/2.2.7/build/include/sys/zio.h:39:
In file included from /var/lib/dkms/zfs/2.2.7/build/include/sys/spa.h:46:
In file included from /var/lib/dkms/zfs/2.2.7/build/include/sys/dmu.h:50:
In file included from /var/lib/dkms/zfs/2.2.7/build/include/sys/zio_compress.h:33:
/var/lib/dkms/zfs/2.2.7/build/include/sys/abd.h:68:3: error: redefinition of typedef 'abd_t' is a C11 feature [-Werror,-Wtypedef-redefinition]
   68 | } abd_t;
      |   ^
/var/lib/dkms/zfs/2.2.7/build/include/os/linux/zfs/sys/abd_os.h:47:20: note: previous definition is here
   47 | typedef struct abd abd_t;
      |                    ^
  CC [M]  /var/lib/dkms/zfs/2.2.7/build/module/lua/lctype.o
  CC [M]  /var/lib/dkms/zfs/2.2.7/build/module/lua/ldebug.o
1 error generated.
make[5]: *** [scripts/Makefile.build:243: /var/lib/dkms/zfs/2.2.7/build/module/icp/algs/blake3/blake3_impl.o] Error 1
make[5]: *** Waiting for unfinished jobs....

Describe how to reproduce the problem

Happens every time. If needed, I can send the kernel config as well.

Include any warning/errors/backtraces from the system logs

@michael-brade michael-brade added the Type: Defect Incorrect behavior (e.g. crash, hang) label Dec 17, 2024
@michael-brade
Copy link
Author

thanks! The fix works for me :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Defect Incorrect behavior (e.g. crash, hang)
Projects
None yet
Development

No branches or pull requests

1 participant