Created attachment 554599 [details] build.log powerpc-unknown-linux-gnu-gcc -o mkfs.btrfs mkfs/main.o mkfs/common.o mkfs/rootdir.o ctree.o disk-io.o kernel-lib/radix-tree.o extent-tree.o print-tree.o root-tree.o dir-item.o file-item.o inode-item.o inode-map.o extent-cache.o extent_io.o volumes.o utils.o repair.o qgroup.o free-space-cache.o kernel-lib/list_sort.o props.o kernel-shared/ulist.o qgroup-verify.o backref.o string-table.o task-utils.o inode.o file.o find-root.o free-space-tree.o help.o send-dump.o fsfeatures.o kernel-lib/tables.o kernel-lib/raid56.o transaction.o delayed-ref.o libbtrfs.a libbtrfsutil.a -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -rdynamic -L. -luuid -lblkid -L. -pthread ln -s -f libbtrfs.so.0.1 libbtrfs.so.0 [LN] libbtrfs.so ln -s -f libbtrfs.so.0.1 libbtrfs.so free-space-tree.o: In function `find_next_zero_bit_le': free-space-tree.c:(.text+0x498): multiple definition of `find_next_zero_bit_le' free-space-cache.o:free-space-cache.c:(.text+0x648): first defined here free-space-tree.o: In function `find_next_bit_le': free-space-tree.c:(.text+0x5e4): multiple definition of `find_next_bit_le' free-space-cache.o:free-space-cache.c:(.text+0x794): first defined here free-space-cache.o: In function `find_next_zero_bit_le': free-space-cache.c:(.text+0x6c4): undefined reference to `bswap32' free-space-cache.c:(.text+0x704): undefined reference to `bswap32' free-space-cache.o: In function `find_next_bit_le': free-space-cache.c:(.text+0x80c): undefined reference to `bswap32' free-space-cache.c:(.text+0x84c): undefined reference to `bswap32' free-space-tree.o: In function `find_next_zero_bit_le': free-space-tree.c:(.text+0x514): undefined reference to `bswap32' free-space-tree.o:free-space-tree.c:(.text+0x554): more undefined references to `bswap32' follow collect2: error: ld returned 1 exit status make: *** [Makefile:460: btrfs-map-logical] Error 1
Created attachment 554601 [details] emerge --info
*** Bug 670850 has been marked as a duplicate of this bug. ***
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2c6fa0a4d2c2e75aa2e76c9f6d3d68314f4d989 commit e2c6fa0a4d2c2e75aa2e76c9f6d3d68314f4d989 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2018-11-10 21:44:53 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2018-11-10 21:45:04 +0000 sys-fs/btrfs-progs: fix build failure on big-endian platforms Reported-by: ernsteiswuerfel Bug: https://bugs.gentoo.org/670741 Package-Manager: Portage-2.3.51, Repoman-2.3.12 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> sys-fs/btrfs-progs/btrfs-progs-4.19.ebuild | 4 ++++ .../files/btrfs-progs-4.19-be-bswap.patch | 24 ++++++++++++++++++++++ 2 files changed, 28 insertions(+)
Sent fix in #comment3 upstream and pushed to ::gentoo. Thanks for the report!
Thanks for the fix!