Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 830437

Summary: app-emulation/aranym-1.1.0 fails to compile: gencpu.c:757: undefined reference to memcpy@GLIBC_2.2.5
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: James Le Cuirot <chewi>
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: build.log
Patch to fix Linux without glibc
Patch to fix Linux without glibc

Description Agostino Sarubbo gentoo-dev 2022-01-02 07:24:01 UTC

Issue: app-emulation/aranym-1.1.0 fails to compile.
Discovered on: amd64 (internal ref: tinderbox_musl)

This machine uses MUSL libc
Comment 1 Agostino Sarubbo gentoo-dev 2022-01-02 07:24:03 UTC
Created attachment 761054 [details]

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-01-02 07:24:04 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:

/var/tmp/portage/app-emulation/aranym-1.1.0/work/aranym-1.1.0/src/uae_cpu/gencpu.c:757: undefined reference to `memcpy@GLIBC_2.2.5'
collect2: error: ld returned 1 exit status
Comment 3 James Le Cuirot gentoo-dev 2022-01-02 09:39:05 UTC
Created attachment 761058 [details, diff]
Patch to fix Linux without glibc

Please could you try this patch. If it works, I'll take it upstream.
Comment 4 James Le Cuirot gentoo-dev 2022-01-02 09:49:00 UTC
Created attachment 761059 [details, diff]
Patch to fix Linux without glibc
Comment 5 Larry the Git Cow gentoo-dev 2022-04-16 14:37:29 UTC
The bug has been closed via the following commit(s):

commit e8ba90674eb9321d64f79d341b7aede07c5a8bd5
Author:     James Le Cuirot <>
AuthorDate: 2022-04-16 14:37:06 +0000
Commit:     James Le Cuirot <>
CommitDate: 2022-04-16 14:37:06 +0000

    app-emulation/aranym: Patch to fix musl build
    Signed-off-by: James Le Cuirot <>

 app-emulation/aranym/aranym-1.1.0.ebuild           |  1 +
 .../aranym/files/aranym-1.1.0-libcwrap.patch       | 24 ++++++++++++++++++++++
 2 files changed, 25 insertions(+)