Open dioni21 opened 1 year ago
That's one low value error, alas
diff --git a/cmd/zfs/zfs_main.c b/cmd/zfs/zfs_main.c
index e28f1d04f..667eaebd1 100644
--- a/cmd/zfs/zfs_main.c
+++ b/cmd/zfs/zfs_main.c
@@ -536,7 +536,7 @@ usage(boolean_t requested)
(void) fprintf(fp, gettext("\nEach dataset is of the form: "
"pool/[dataset/]*dataset[@name]\n"));
} else {
- (void) fprintf(fp, gettext("usage:\n"));
+ (void) fprintf(fp, "%s", gettext("usage:\n"));
(void) fprintf(fp, "%s", get_usage(current_command->usage));
}
does this do the trick?
This would do, but I just printed the first error, it was not the only one... 😢
And apparently it was not the fault of some OpenBSD commit, but some recent upgrade to gcc on FC38. Now on gcc-13.1.1-1.fc38.x86_64
.
ye i suspect there are more crappers of the sort. this is all trivial and frankly low value and preferably avoided, but it will likely keep popping up so probably should be fixed after all. that said, since you have a build env which repreduces, how about you patch it out? :)
@dioni21 maybe we're doing things slightly differently, but I cannot reproduce this on F38. When I build with your ./configure
line, I get this failure:
checking whether gcc supports -fsanitize=undefined... configure: error: gcc does not support -fsanitize=undefined
This is due to --enable-ubsan
. If I take that out, it builds:
$ ./autogen.sh
$ ./configure --enable-silent-rules --enable-dependency-tracking --config-cache --enable-linux-builtin --disable-nls --with-config=all --enable-asan --enable-debuginfo --enable-debug --enable-debug-kmem --enable-debug-kmem-tracking CFLAGS=-Wno-stringop-overflow
$ make -j 12 rpm-utils
...
absolute symlink: /etc/zfs/zpool.d/test_type -> /usr/libexec/zfs/zpool.d/test_type
absolute symlink: /etc/zfs/zpool.d/upath -> /usr/libexec/zfs/zpool.d/upath
absolute symlink: /etc/zfs/zpool.d/vendor -> /usr/libexec/zfs/zpool.d/vendor
absolute symlink: /etc/zfs/zpool.d/w_proc -> /usr/libexec/zfs/zpool.d/w_proc
absolute symlink: /etc/zfs/zpool.d/w_ucor -> /usr/libexec/zfs/zpool.d/w_ucor
File listed twice: /sbin/zgenhostid
File listed twice: /usr/lib/.build-id/e5/af478f0bcc1e7c1e6bff8c15da149dfe34e2b5
absolute symlink: /usr/lib/systemd/system/zfs-import.service -> /dev/null
absolute symlink: /usr/lib/systemd/system/zfs-load-key.service -> /dev/null
make[1]: Leaving directory '/home/hutter/zfs'
configure: error: gcc does not support -fsanitize=undefined
Note to self - this can be fixed with dnf install libubsan
I'm seeing a lot of these errors building on Fedora 39.
System information
Describe the problem you're observing
Cannot compile OpenZFS in FC38
Describe how to reproduce the problem
Include any warning/errors/backtraces from the system logs
BTW: I can avoid this error by disabling -Werror before build:
sed -i '/ DEBUG_CFLAGS="-Werror"/s/^/#/' config/zfs-build.m4
Not sure if this is safe, though...
Edit: current commit is
5a83f761c7c7445dda39d3fd3c5aa2a7bcb353f1
but this has been happening for some time now.