Created attachment 556228 [details] emerge --info /usr/include/bits/strings_fortified.h:25:3: warning: ‘__builtin___memmove_chk’ writing 276 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=] (void) __builtin___memmove_chk (__dest, __src, __len, __bos0 (__dest)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ powerpc-unknown-linux-gnu-gcc -Os -mcpu=7450 -mtune=7450 -pipe -c -o dump.o dump.c powerpc-unknown-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed fdisk.o fdisklabel.o -o fdisk fdisk.o: In function `check_consistency': fdisk.c:(.text+0x70): undefined reference to `__swap32' fdisk.c:(.text+0x7c): undefined reference to `__swap32' fdisk.o: In function `set_partition': fdisk.c:(.text+0x5ac): undefined reference to `__swap32' fdisk.c:(.text+0x5bc): undefined reference to `__swap32' fdisk.o: In function `read_extended': fdisk.c:(.text+0x974): undefined reference to `__swap32' fdisk.o:fdisk.c:(.text+0x994): more undefined references to `__swap32' follow collect2: error: ld returned 1 exit status make: *** [<builtin>: fdisk] Error 1 emake failed * ERROR: sys-fs/mac-fdisk-0.1-r7::gentoo failed (compile phase):
Created attachment 556230 [details] build.log
io.c:447:11: warning: implicit declaration of function ‘lseek64’; did you mean ‘lseek’? [-Wimplicit-function-declaration] I think it really fails because of this one. Weird GCC.
mac-fdisk-0.1_p16 and mac-fdisk-0.1_p18 build fine.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51ea732868abe708e2fb20bfe4f6190e065847d6 commit 51ea732868abe708e2fb20bfe4f6190e065847d6 Author: Jeroen Roovers <jer@gentoo.org> AuthorDate: 2018-11-25 20:07:53 +0000 Commit: Jeroen Roovers <jer@gentoo.org> CommitDate: 2018-11-25 20:08:15 +0000 sys-fs/mac-fdisk: Define lseek64 properly Bug: https://bugs.gentoo.org/671860 Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Jeroen Roovers <jer@gentoo.org> .../files/mac-fdisk-0.1_p18-lseek64.patch | 43 ++++++++++++++++++++++ sys-fs/mac-fdisk/mac-fdisk-0.1_p18.ebuild | 9 +++-- 2 files changed, 48 insertions(+), 4 deletions(-)
(In reply to ernsteiswuerfel from comment #3) > mac-fdisk-0.1_p16 and mac-fdisk-0.1_p18 build fine. I only just added _p18 and it doesn't do much useful compared to _p16, so maybe _p16 ought to go stable.
(In reply to Jeroen Roovers from comment #5) > I only just added _p18 and it doesn't do much useful compared to _p16, so > maybe _p16 ought to go stable. Affirmative.
Fixed in sys-fs/mac-fdisk-0.1_p18 which has gone stable.