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

Bug 909310

Summary: sys-process/procps fail to cross-compile with host mipsel-softfloat_openwrt-linux-musl
Product: Gentoo Linux Reporter: Mariusz Koniarz <mkoniarz>
Component: Current packagesAssignee: Cross compilation support <cross>
Status: RESOLVED INVALID    
Severity: normal CC: floppym, mkoniarz
Priority: Normal    
Version: unspecified   
Hardware: MIPS   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log
environment
output of `emerge --info '=sys-process/procps-3.3.17-r1::gentoo'
output of `emerge -pqv '=sys-process/procps-3.3.17-r1::gentoo'

Description Mariusz Koniarz 2023-06-27 18:58:48 UTC
Created attachment 864737 [details]
build log

I'm compiling in chroot-qemu mipsel-softfloat-linux-musl

pwdx.c:(.text.startup+0x158): undefined reference to `rpl_malloc'

I used this workaround to add in ebuild:
src_prepare() {
	export ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes

...
but not sure if it is correct location? and propably this should be added conditionally only for mipsel-musl

After this addition, package builds and works OK.
Comment 1 Mariusz Koniarz 2023-06-27 18:59:27 UTC
Created attachment 864738 [details]
environment
Comment 2 Mariusz Koniarz 2023-06-27 19:00:07 UTC
Created attachment 864739 [details]
output of `emerge --info '=sys-process/procps-3.3.17-r1::gentoo'
Comment 3 Mariusz Koniarz 2023-06-27 19:01:03 UTC
Created attachment 864740 [details]
output of `emerge -pqv '=sys-process/procps-3.3.17-r1::gentoo'
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-27 19:02:55 UTC
Hm, why isn't it picking up the stuff from https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=51dfd93c5122df670d2753070807e5a172727ded?

We provide cache variables for sys-apps/config-site in sys-devel/crossdev.

Could you describe your setup exactly?
Comment 5 Mariusz Koniarz 2023-06-28 05:04:40 UTC
(In reply to Sam James from comment #4)
 
> We provide cache variables for sys-apps/config-site in sys-devel/crossdev.
> 
> Could you describe your setup exactly?
Yes. When I cross-compile, everything goes OK, but when compiling inside qemu-chroot this error apperar. (qemu-mipsel static)
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-28 06:08:36 UTC
(In reply to Mariusz Koniarz from comment #5)
> (In reply to Sam James from comment #4)
>  
> > We provide cache variables for sys-apps/config-site in sys-devel/crossdev.
> > 
> > Could you describe your setup exactly?
> Yes. When I cross-compile, everything goes OK, but when compiling inside
> qemu-chroot this error apperar. (qemu-mipsel static)

Ah! I think you need to comment out CBUILD in make.conf when you're inside the qemu chroot. When you're using qemu, it's "not cross compiling".
Comment 7 Mariusz Koniarz 2023-06-28 12:01:08 UTC
Ok, when I commented out CBUILD inside chroot it works OK, so bug should be closed, I forgot about CBUILD inside make.conf :)