maintainer-feedback requested: [Bug 259799] devel/rust-cbindgen: armv6: build using "make" fails, using "cargo build --release" works

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 12 Nov 2021 16:55:51 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-gecko (Nobody)
<gecko@FreeBSD.org> for maintainer-feedback:
Bug 259799: devel/rust-cbindgen: armv6: build using "make" fails, using "cargo
build --release" works
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259799



--- Description ---
Scenario:
- FreeBSD 14 at 08b9cc316a319fba95af8bb13b262fe0d5526ec3
- Updating ports using portmaster
- Updating for armv6 using qemu-user-static in a filesystem holding a complete
armv6 installation (using chroot)
- Latest ports
- WRKDIRPREFIX=/usr/tmp
- Executing "portmaster rust-cbindgen-0.20.0_2"

Result:
- The build fails with "memory allocation of 1879048192 bytes failed"

Scenario (continued):
- "cd /usr/tmp/ports/devel/rust-cbindgen/work/cbindgen-0.20.0"

Result (continued):
- This build succeeds (but cannot be used for installing the port because it is
placed in a different directory)

Expected result:
- There should not be this huge memory allocation.

Note:
- Trying to build this on a real Raspberry Pi B+ exhausts the swap space,
leading to a deadlock of the system.
- There seems to be another issue on this armv6 machine in that "ulimit
datasize" is not honored, not even for a regular user.

-- Martin