Summary: | dev-lang/perl-5.20.2 fails to build with undefined reference to glibc_main | ||
---|---|---|---|
Product: | Gentoo/Alt | Reporter: | Kim Nilsson <nilekurt> |
Component: | Prefix Support | Assignee: | Gentoo Prefix <prefix> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | James_McMechan |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | ARM | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Build log
patch for perl-5.22.1 |
Description
Kim Nilsson
2015-03-19 03:28:46 UTC
Created attachment 399226 [details]
Build log
Created attachment 420908 [details, diff]
patch for perl-5.22.1
This was a bit weird, perl was auto detecting linux-android as the OS under prefix and disabling gcc it would then barf due to not having a valid compiler.
This is a user patch I installed as
${EPREFIX}/etc/portage/patches/dev-lang/perl-5.22.1/test.patch
that disables the problematic auto-config test.
Alas perl does not have epatch_user in its builds so I changed the ebuild by replaceing
src_prepare() { eblit-run src_prepare v50160001 ; }
with
src_prepare() { epatch_user ; eblit-run src_prepare v50160001 ; }
and running
ebuild ${EPREFIX}/usr/portage/dev-lang/perl/perl-5.22.1.ebuild manifest
Then my emerge worked.
I am not sure what the correct method to do this would be though...
So, you have a /system/lib/libandroid.so on your system? (In reply to Fabian Groffen from comment #3) > So, you have a /system/lib/libandroid.so on your system? Yep, I am updating gentoo-prefix on a android tablet. Kim Nilsson had the same problem, if you look closely at the build log attached to this bug you will see that it auto-detected linux-android and then complained about the C compiler not working, I had almost the exact same build failure but this time I hacked it to a working state. It would be better if I understood how to turn off auto-detection via setting EXTRA_ECONF or something, but I did not see how to set perl's rather different config system to do that... Anyway this hack worked in my case so, I thought I would drop it here and hopefully help other people until a better fix is found :) this needs revisiting with latest setup |