Skip to contentSkip to conversation

Weird compile issue on sparc

DISCUSSION Josef Bacik 1 participant 1 message Jun 15, 2009 Btrfs file system

lore
Share & tools
lore
#0 lore raw

Hello,

When trying to rebuild fedora for sparc, the btrfs-progs package failed to compile. This is what it spit out in the build log

gcc -Wp,-MMD,./.convert.o.d,-MT,convert.o -Wall -fno-strict-aliasing -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mcpu=ultrasparc -c convert.c
In file included from /usr/include/ext2fs/ext2_types.h:23,

                 from /usr/include/ext2fs/ext2_fs.h:19,
                 from convert.c:41:

/usr/include/ext2fs/ext2_types-sparc64.h:97: error: conflicting types for '__u64'
/usr/include/asm-generic/int-ll64.h:28: note: previous declaration of '__u64' was here
/usr/include/ext2fs/ext2_types-sparc64.h:113: error: conflicting types for '__s64'
/usr/include/asm-generic/int-ll64.h:27: note: previous declaration of '__s64' was here

I assume its because we typedef in kerncompat.h and then it gets done elsewhere via the ext2 headers. This was just brought to my attention. I will look at it tomorrow unless somebody has an idea of how to fix this before then (like say Yan :) ) then I would be grateful. Thanks,

Josef