[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 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: ge...@freebsd.org Reporter: d8zne...@aon.at Assignee: ge...@freebsd.org Flags: maintainer-feedback?(ge...@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.
[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 Martin Birgmeier changed: What|Removed |Added Attachment #229450|text/x-log |text/plain mime type|| --- Comment #1 from Martin Birgmeier --- Created attachment 229450 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=229450&action=edit log file of building rust-cbindgen Attached a logfile created using "script /usr/tmp/cbindgen.log". It shows both the failed portmaster build as well as the successful build using "cargo build --release". It also shows that the second build had to be interrupted because it hung. When continued without parallelism (-j 1), it succeeded. This seems to be the issue described in bug #221185. n.b. The same method allows building rust itself - run using parallelism as long as it does not hang, then continue with "make MAKE_JOBS_NUMBER_LIMIT=1". -- Martin -- You are receiving this mail because: You are the assignee for the bug.
[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 Jan Beich changed: What|Removed |Added CC||jbe...@freebsd.org Resolution|--- |DUPLICATE Status|New |Closed --- Comment #2 from Jan Beich --- *** This bug has been marked as a duplicate of bug 257419 *** -- You are receiving this mail because: You are the assignee for the bug.
[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 --- Comment #3 from Martin Birgmeier --- Created attachment 229451 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=229451&action=edit armv6 installed ports How can this be a duplicate of bug #257419 if that one is closed as fixed, while using fully updated ports does not allow to build rust-cbindgen? See the attached list of currently installed ports for armv6. Please explain what needs to be done to get this to build. -- You are receiving this mail because: You are the assignee for the bug.
[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 Mark Millard changed: What|Removed |Added CC||marklmi26-f...@yahoo.com --- Comment #4 from Mark Millard --- (In reply to Jan Beich from comment #2) > *** This bug has been marked as a duplicate of bug 257419 *** 259799 is not a duplicate of 257419: the only report in 257419 of: memory allocation of 1879048192 bytes failed was my report of: The following failed for other reasons -- You are receiving this mail because: You are the assignee for the bug.
[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 Martin Birgmeier changed: What|Removed |Added Status|Closed |New Resolution|DUPLICATE |--- --- Comment #5 from Martin Birgmeier --- Also note that in fact that building using "cargo build" succeeds. Only building using the standard ports build infrastructure fails. I'll reopen this issue. -- Martin -- You are receiving this mail because: You are the assignee for the bug.
[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 Martin Birgmeier changed: What|Removed |Added Attachment #229452|text/x-log |text/plain mime type|| --- Comment #6 from Martin Birgmeier --- Created attachment 229452 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=229452&action=edit log file of running portmaster to build rust-cbindgen Log file showing failed build when using portmaster to update rust-cbindgen. I re-ran the builds to capture new logs using tee because the script output is hard to read. -- Martin -- You are receiving this mail because: You are the assignee for the bug.
[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 Martin Birgmeier changed: What|Removed |Added Attachment #229453|text/x-log |text/plain mime type|| --- Comment #7 from Martin Birgmeier --- Created attachment 229453 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=229453&action=edit succeeding build when going into the port build dir and manually running "cargo build --release" -- You are receiving this mail because: You are the assignee for the bug.
[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 --- Comment #8 from Martin Birgmeier --- Note regarding the cargo build: I actually ran "cargo build --release -j 1" in order not to trip on the indefinite wait. -- You are receiving this mail because: You are the assignee for the bug.
[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 --- Comment #9 from Mark Millard --- My report in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 of: The following failed for other reasons . . . memory allocation of 1879048192 bytes failed suggests that the problem is not armv6 specific as it was a armv7 example, built under poudriere. There is some chance that it generaizes to 32-bit archotectures generally (such as 32-bit powerpc variants). (My report of that was, at the time, just indicating what build problems were vs. were-not examples of that submittals problem in my test build. I did not submit it as a separate issue.) -- You are receiving this mail because: You are the assignee for the bug.
[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 --- Comment #10 from Mark Millard --- (In reply to Martin Birgmeier from comment #8) You may want to edit the bugzilla submittal's summary line to have the: "-j 1" as well. -- You are receiving this mail because: You are the assignee for the bug.
maintainer-feedback requested: [Bug 259799] devel/rust-cbindgen: armv6: build using "make" fails, using "cargo build --release" works
Bugzilla Automation has asked freebsd-gecko (Nobody) 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