Opened 6 years ago

Closed 5 years ago

#57768 closed defect (fixed)

rust @1.30.1: fails to build

Reported by: petrrr Owned by: g5pw (Aljaž Srebrnič)
Priority: Normal Milestone:
Component: ports Version: 2.5.4
Keywords: Cc: MartinBuchmann (Martin Buchmann), Dave-Allured (Dave Allured)
Port: rust

Description

The problem is observed on a system with OS X 10.10.5, Xcode 6.4, Build version 6E35b

I have seen other tickets for rust reporting build issues for other versions but I have difficulties to understand if these are related.

:info:build thread 'main' has overflowed its stack
:info:build fatal runtime error: stack overflow
:info:build    Compiling rustc_cratesio_shim v0.0.0 (file:///opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_lang_rust/rust/work/rustc-1.30.1-src/src/librustc_cratesio_shim)
:info:build    Compiling ena v0.9.3
:info:build    Compiling jobserver v0.1.11
:info:build    Compiling polonius-engine v0.5.0
:info:build error: Could not compile `rustc_platform_intrinsics`.
:info:build warning: build failed, waiting for other jobs to finish...
:info:build error: build failed
:info:build command did not execute successfully: "/opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_lang_rust/rust/work/rustc-1.30.1-src/build/stage0-x86_64/bin/cargo" "build" "--target" "x86_64-apple-darwin" "-j" "8" "--release" "--frozen" "--features" " jemalloc" "--manifest-path" "/opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_lang_rust/rust/work/rustc-1.30.1-src/src/rustc/Cargo.toml" "--message-format" "json"
:info:build expected success, got: exit code: 101
:info:build thread 'main' panicked at 'cargo must succeed', bootstrap/compile.rs:1112:9
:info:build note: Run with `RUST_BACKTRACE=1` for a backtrace.
:info:build Traceback (most recent call last):
:info:build   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_lang_rust/rust/work/rustc-1.30.1-src/src/bootstrap/bootstrap.py", line 867, in <module>
:info:build     main()
:info:build   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_lang_rust/rust/work/rustc-1.30.1-src/src/bootstrap/bootstrap.py", line 850, in main
:info:build     bootstrap(help_triggered)
:info:build   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_lang_rust/rust/work/rustc-1.30.1-src/src/bootstrap/bootstrap.py", line 841, in bootstrap
:info:build     run(args, env=env, verbose=build.verbose)
:info:build   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_lang_rust/rust/work/rustc-1.30.1-src/src/bootstrap/bootstrap.py", line 151, in run
:info:build     raise RuntimeError(err)
:info:build RuntimeError: failed to run: /opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_lang_rust/rust/work/rustc-1.30.1-src/build/bootstrap/debug/bootstrap build -v -j8
:info:build make: *** [all] Error 1
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_lang_rust/rust/work/rustc-1.30.1-src'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_lang_rust/rust/work/rustc-1.30.1-src" && /usr/bin/make -j8 -w all VERBOSE=1 BOOTSTRAP_ARGS="-v -j8" 
:info:build Exit code: 2
:error:build Failed to build rust: command execution failed
:debug:build Error code: CHILDSTATUS 76465 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_github.com_macports_macports-ports_lang_rust/rust/main.log for details.

Attachments (2)

rust.main.log (119.1 KB) - added by petrrr 6 years ago.
log.log (62.3 KB) - added by mrkapqa 6 years ago.

Download all attachments as: .zip

Change History (8)

Changed 6 years ago by petrrr

Attachment: rust.main.log added

comment:1 Changed 6 years ago by MartinBuchmann (Martin Buchmann)

Cc: MartinBuchmann added

comment:2 Changed 6 years ago by Dave-Allured (Dave Allured)

Cc: Dave-Allured added

Changed 6 years ago by mrkapqa

Attachment: log.log added

comment:3 Changed 6 years ago by mrkapqa

Hello , i also have problem with Rust 1.30 when building mpv on Yosemite 10.10.0 (only command line tools installed, no full xcode). i don't even know why this rust is needed to build mpv...

comment:4 Changed 6 years ago by kencu (Ken)

Try this:

ulimit -Hs 8192; sudo port upgrade rust

From here <https://github.com/rust-lang/rust/issues/51838>

comment:5 Changed 6 years ago by MartinBuchmann (Martin Buchmann)

Works perfectly for me! rust builds without any errors. Thanks!

comment:6 Changed 5 years ago by g5pw (Aljaž Srebrnič)

Resolution: fixed
Status: assignedclosed

This was fixed in upstream, according to the ticket. Closing.

Note: See TracTickets for help on using tickets.