Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 670741 - sys-fs/btrfs-progs-4.19: free-space-cache.c:(.text+0x6c4): undefined reference to `bswap32'
Summary: sys-fs/btrfs-progs-4.19: free-space-cache.c:(.text+0x6c4): undefined referenc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: Normal normal
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords:
: 670850 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-11-09 12:05 UTC by ernsteiswuerfel
Modified: 2018-11-11 09:13 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (btrfs-progs-4.19:20181109-115458.log,101.28 KB, text/plain)
2018-11-09 12:05 UTC, ernsteiswuerfel
Details
emerge --info (file_670741.txt,5.88 KB, text/plain)
2018-11-09 12:06 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2018-11-09 12:05:12 UTC
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
Comment 1 ernsteiswuerfel archtester 2018-11-09 12:06:18 UTC
Created attachment 554601 [details]
emerge --info
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2018-11-10 19:31:37 UTC
*** Bug 670850 has been marked as a duplicate of this bug. ***
Comment 3 Larry the Git Cow gentoo-dev 2018-11-10 21:45:12 UTC
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(+)
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2018-11-10 22:30:21 UTC
Sent fix in #comment3 upstream and pushed to ::gentoo.

Thanks for the report!
Comment 5 ernsteiswuerfel archtester 2018-11-11 09:13:36 UTC
Thanks for the fix!