Created attachment 507958 [details]
On my gentoo PPC box I tried building media-sound/cmus-2.8.0_rc0 and it failed when linking due to:
track_info.c(.text+0x34): undefined reference to `__atomic_fetch_add_8`
build.log attached, along with emerge --info.
It needs "-latomic" appended to CMUS_LIBS in the Makefile. This is probably necessary for any arch (like PPC64, ARM) also.
I was able to get it to successfully build by hand editing the Makefile and:
ebuild /usr/portage/media-sound/cmus/cmus-2.8.0_rc0.ebuild compile install qmerge
I don't know how to properly edit the ebuild to do this, but we would probably be able to conditionally pass it to ./configure line in src_configure() based on the ARCH.
I would appreciate learning how to do this properly, so I could contribute an ebuild to the bug report next time ;)
Created attachment 507960 [details]
Created attachment 507962 [details]
Created attachment 507964 [details]
hand edited Makefile
Did run into this on ppc too. A patch would be nice.
Created attachment 579634 [details, diff]
User patch to add -latomic to LD_FLAGS
This bug also affects me on an antique x86 arch. I presume using march=i486 in make.conf is why, although this arch is supposed to support atomics. My solution was to hand edit the Makefile and create a diff patch, which is then automatically applied (when running emerge normally) by placing it into /etc/portage/patches/media-sound/cmus/.
(In reply to James Madgwick from comment #5)
> Created attachment 579634 [details, diff] [details, diff]
> User patch to add -latomic to LD_FLAGS
Thanks! Your patch works for me perfectly on ppc too.