Solved FreeBSD 12.1-RELEASE-p3 - rust fails to build

FreeBSD dynamic35 12.1-RELEASE-p3 FreeBSD 12.1-RELEASE-p3 GENERIC amd64

Code:
command did not execute successfully: "/usr/ports/lang/rust/work/rustc-1.42.0-src/build/x86_64-unknown-freebsd/stage0/bin/cargo" "build" "-Zconfig-profile" "--target" "x86_64-unknown-freebsd" "-Zbinary-dep-depinfo" "-j" "1" "-v" "--release" "--frozen" "--manifest-path" "/usr/ports/lang/rust/work/rustc-1.42.0-src/src/tools/cargo/Cargo.toml" "--message-format" "json-render-diagnostics"
expected success, got: exit code: 101
Traceback (most recent call last):
  File "x.py", line 11, in <module>
      bootstrap.main()
  File "/usr/ports/lang/rust/work/rustc-1.42.0-src/src/bootstrap/bootstrap.py", line 951, in main
            bootstrap(help_triggered)
  File "/usr/ports/lang/rust/work/rustc-1.42.0-src/src/bootstrap/bootstrap.py", line 937, in bootstrap
    run(args, env=env, verbose=build.verbose)
  File "/usr/ports/lang/rust/work/rustc-1.42.0-src/src/bootstrap/bootstrap.py", line 141, in run
        raise RuntimeError(err)
RuntimeError: failed to run: /usr/ports/lang/rust/work/rustc-1.42.0-src/build/bootstrap/debug/bootstrap build --jobs=1
*** Error code 1
Stop.

Any ideas?
 
I have a very similar experience right now with rust:
Code:
command did not execute successfully: "/construction/xports/lang/rust/work/rustc-1.42.0-src/build/x86_64-unknown-freebsd/stage0-tools-bin/fabricate" "generate" "--product-name=Rust" "--rel-manifest-dir=rustlib" "--success-message=save-analysis-saved." "--image-dir" "/construction/xports/lang/rust/work/rustc-1.42.0-src/build/tmp/dist/rust-analysis-1.42.0-wasm32-unknown-unknown-image" "--work-dir" "/construction/xports/lang/rust/work/rustc-1.42.0-src/build/tmp/dist" "--output-dir" "/construction/xports/lang/rust/work/rustc-1.42.0-src/build/dist" "--package-name=rust-analysis-1.42.0-wasm32-unknown-unknown" "--component-name=rust-analysis-wasm32-unknown-unknown" "--legacy-manifest-dirs=rustlib,cargo"
expected success, got: signal: 9


Traceback (most recent call last):
  File "x.py", line 11, in <module>
    bootstrap.main()
  File "/construction/xports/lang/rust/work/rustc-1.42.0-src/src/bootstrap/bootstrap.py", line 951, in main
    bootstrap(help_triggered)
  File "/construction/xports/lang/rust/work/rustc-1.42.0-src/src/bootstrap/bootstrap.py", line 937, in bootstrap
    run(args, env=env, verbose=build.verbose)
  File "/construction/xports/lang/rust/work/rustc-1.42.0-src/src/bootstrap/bootstrap.py", line 141, in run
    raise RuntimeError(err)
RuntimeError: failed to run: /construction/xports/lang/rust/work/rustc-1.42.0-src/build/bootstrap/debug/bootstrap install --jobs=2
*** Error code 1

Stop.
However, the error occurs at a slightly different step. I'm using synth install rust, with the following rust build options:
Code:
rust - DOCS: on
rust - GDB: off
rust - SOURCES: on
rust - WASM: on
 
Probably insufficient memory/swap: PR 245759

The system has 16G of memory and 5G of swap. After the build failed, I found that PR and checked my swap usage - it was zero. I looked through /var/log/messages and there were no OOM kills (I'm familiar with such things from RPi tinkering).

However, I tried building it again yesterday and... it worked. <shrug />
 
Back
Top