[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
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259799

            Bug ID: 259799
           Summary: devel/rust-cbindgen: armv6: build using "make" fails,
                    using "cargo build --release" works
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: gecko@FreeBSD.org
          Reporter: d8zNeCFG@aon.at
          Assignee: gecko@FreeBSD.org
             Flags: maintainer-feedback?(gecko@FreeBSD.org)

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

-- 
You are receiving this mail because:
You are the assignee for the bug.