Closed davide125 closed 2 years ago
I believe it needs just a little hack, see https://src.fedoraproject.org/rpms/smc-tools/blob/rawhide/f/smc-tools.spec#_33
Sorry, I'm not familiar with RPMbuild nor having a ppc64 environment, thus not much help can be provided from me.
But does the same problem reproduce when building without RPMbuild?
The type conflicts seems a little strange, as if <asm/types.h>
is not handling u64/s64 properly, tons of project would fail to compile.
It looks inode.h
is not including the correct types.
Mind to try the following diff?
diff --git a/inode.h b/inode.h
index 07575d08ba9d..4515efddbb96 100644
--- a/inode.h
+++ b/inode.h
@@ -3,7 +3,7 @@
#ifndef BTRFS_FUSE_INODE_H
#define BTRFS_FUSE_INODE_H
-#include <asm-generic/types.h>
+#include <linux/types.h>
#include <sys/stat.h>
#include "compat.h"
#include "ondisk_format.h"
That worked, thanks! https://koji.fedoraproject.org/koji/taskinfo?taskID=78669160
Sorry, I only fixed the compile error, but still left the format warning.
I have updated meson.build
, mind to update the spec file for F36 and check the build log?
Great! Now the warning are gone, just need to address the remaining warnings which only shows up in ppc64le.
See https://koji.fedoraproject.org/koji/taskinfo?taskID=78634323 for details (look at build.log there).