Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 909310 - sys-process/procps fail to cross-compile with host mipsel-softfloat_openwrt-linux-musl
Summary: sys-process/procps fail to cross-compile with host mipsel-softfloat_openwrt-l...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: MIPS Linux
: Normal normal (vote)
Assignee: Cross compilation support
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-27 18:58 UTC by Mariusz Koniarz
Modified: 2023-06-28 13:19 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log,54.79 KB, text/x-log)
2023-06-27 18:58 UTC, Mariusz Koniarz
Details
environment (environment,87.17 KB, text/plain)
2023-06-27 18:59 UTC, Mariusz Koniarz
Details
output of `emerge --info '=sys-process/procps-3.3.17-r1::gentoo' (procps.emerge.info,5.82 KB, text/plain)
2023-06-27 19:00 UTC, Mariusz Koniarz
Details
output of `emerge -pqv '=sys-process/procps-3.3.17-r1::gentoo' (procps.emerge.pqv,265 bytes, text/plain)
2023-06-27 19:01 UTC, Mariusz Koniarz
Details

Note You need to log in before you can comment on or make changes to this bug.
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 :)