Opened 16 months ago

Last modified 11 months ago

#67597 accepted defect

Unable to upgrade rust to 1.70.0_0 — at Version 2

Reported by: RobK88 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc: mcalhoun@…
Port: rust

Description (last modified by RobK88)

I am unable to upgrade rust from 1.69.0_1 to 1.70.0_0 on High Sierra (x86_64).

It looks like a problem with the bootstrap.

See attached main.log for more details.

:info:build [144/3146] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Program.cpp.o
:info:build FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/Program.cpp.o 
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_rust/rust/work/compwrap/cxx/usr/bin/clang++ -DGTEST_HAS_RTTI=0 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_rust/rust/work/rustc-1.70.0-src/build/x86_64-apple-darwin/llvm/build/lib/Support -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_rust/rust/work/rustc-1.70.0-src/src/llvm-project/llvm/lib/Support -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_rust/rust/work/rustc-1.70.0-src/build/x86_64-apple-darwin/llvm/build/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_rust/rust/work/rustc-1.70.0-src/src/llvm-project/llvm/include -isystem /opt/local/include -ffunction-sections -fdata-sections -fPIC --target=x86_64-apple-darwin -stdlib=libc++  -Os -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -w -fdiagnostics-color  -O3 -DNDEBUG -mmacosx-version-min=10.13 -std=c++17  -fno-exceptions -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/Program.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/Program.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/Program.cpp.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_rust/rust/work/rustc-1.70.0-src/src/llvm-project/llvm/lib/Support/Program.cpp
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_rust/rust/work/rustc-1.70.0-src/src/llvm-project/llvm/lib/Support/Program.cpp:46:49: error: no viable constructor or deduction guide for deduction of template arguments of 'optional'
:info:build         PI, SecondsToWait == 0 ? std::nullopt : std::optional(SecondsToWait),
:info:build                                                 ^
:info:build /Library/Developer/CommandLineTools/usr/include/c++/v1/optional:684:41: note: candidate template ignored: couldn't infer template argument '_Tp'
:info:build     _LIBCPP_INLINE_VISIBILITY constexpr optional(nullopt_t) noexcept {}
:info:build                                         ^
:info:build /Library/Developer/CommandLineTools/usr/include/c++/v1/optional:690:24: note: candidate template ignored: couldn't infer template argument '_Tp'
:info:build     constexpr explicit optional(in_place_t, _Args&&... __args)
:info:build                        ^
:info:build /Library/Developer/CommandLineTools/usr/include/c++/v1/optional:704:15: note: candidate template ignored: couldn't infer template argument '_Tp'
:info:build     constexpr optional(_Up&& __v)
:info:build               ^
:info:build /Library/Developer/CommandLineTools/usr/include/c++/v1/optional:711:24: note: candidate template ignored: couldn't infer template argument '_Tp'
:info:build     constexpr explicit optional(_Up&& __v)
:info:build                        ^
:info:build /Library/Developer/CommandLineTools/usr/include/c++/v1/optional:580:7: note: candidate template ignored: could not match 'optional<_Tp>' against 'unsigned int'
:info:build class optional
:info:build       ^
:info:build /Library/Developer/CommandLineTools/usr/include/c++/v1/optional:682:41: note: candidate template ignored: could not match 'optional<_Tp>' against 'unsigned int'
:info:build     _LIBCPP_INLINE_VISIBILITY constexpr optional(const optional&) = default;
:info:build                                         ^
:info:build /Library/Developer/CommandLineTools/usr/include/c++/v1/optional:683:41: note: candidate template ignored: could not match 'optional<_Tp>' against 'unsigned int'
:info:build     _LIBCPP_INLINE_VISIBILITY constexpr optional(optional&&) = default;
:info:build                                         ^
:info:build /Library/Developer/CommandLineTools/usr/include/c++/v1/optional:719:5: note: candidate template ignored: could not match 'optional<type-parameter-0-1>' against 'unsigned int'
:info:build     optional(const optional<_Up>& __v)
:info:build     ^
:info:build /Library/Developer/CommandLineTools/usr/include/c++/v1/optional:727:14: note: candidate template ignored: could not match 'optional<type-parameter-0-1>' against 'unsigned int'
:info:build     explicit optional(const optional<_Up>& __v)
:info:build              ^
:info:build /Library/Developer/CommandLineTools/usr/include/c++/v1/optional:737:5: note: candidate template ignored: could not match 'optional<type-parameter-0-1>' against 'unsigned int'
:info:build     optional(optional<_Up>&& __v)
:info:build     ^
:info:build /Library/Developer/CommandLineTools/usr/include/c++/v1/optional:745:14: note: candidate template ignored: could not match 'optional<type-parameter-0-1>' against 'unsigned int'
:info:build     explicit optional(optional<_Up>&& __v)
:info:build              ^
:info:build /Library/Developer/CommandLineTools/usr/include/c++/v1/optional:681:41: note: candidate function template not viable: requires 0 arguments, but 1 was provided
:info:build     _LIBCPP_INLINE_VISIBILITY constexpr optional() noexcept {}
:info:build                                         ^
:info:build /Library/Developer/CommandLineTools/usr/include/c++/v1/optional:697:24: note: candidate function template not viable: requires at least 2 arguments, but 1 was provided
:info:build     constexpr explicit optional(in_place_t, initializer_list<_Up> __il, _Args&&... __args)
:info:build                        ^
:info:build 1 error generated.
:info:build [145/3146] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Signals.cpp.o
:info:build ninja: build stopped: subcommand failed.
:info:build thread 'main' panicked at '
:info:build command did not execute successfully, got: exit status: 1
:info:build build script failed, must exit now', /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_rust/rust/work/.home/.cargo/macports/cmake-0.1.48/src/lib.rs:975:5
:info:build stack backtrace:
:info:build    0: rust_begin_unwind
:info:build              at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/panicking.rs:579:5
:info:build    1: core::panicking::panic_fmt
:info:build              at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/core/src/panicking.rs:64:14
:info:build    2: cmake::fail
:info:build    3: cmake::run
:info:build    4: cmake::Config::build
:info:build    5: <bootstrap::llvm::Llvm as bootstrap::builder::Step>::run
:info:build              at ./src/bootstrap/llvm.rs:488:9
:info:build    6: bootstrap::builder::Builder::ensure
:info:build              at ./src/bootstrap/builder.rs:2039:23
:info:build    7: bootstrap::compile::rustc_llvm_env
:info:build              at ./src/bootstrap/compile.rs:898:48
:info:build    8: bootstrap::compile::rustc_cargo_env
:info:build              at ./src/bootstrap/compile.rs:885:13
:info:build    9: bootstrap::compile::rustc_cargo
:info:build              at ./src/bootstrap/compile.rs:822:5
:info:build   10: <bootstrap::compile::Rustc as bootstrap::builder::Step>::run
:info:build              at ./src/bootstrap/compile.rs:699:9
:info:build   11: bootstrap::builder::Builder::ensure
:info:build              at ./src/bootstrap/builder.rs:2039:23
:info:build   12: <bootstrap::compile::Assemble as bootstrap::builder::Step>::run
:info:build              at ./src/bootstrap/compile.rs:1398:9
:info:build   13: bootstrap::builder::Builder::ensure
:info:build              at ./src/bootstrap/builder.rs:2039:23
:info:build   14: bootstrap::builder::Builder::compiler
:info:build              at ./src/bootstrap/builder.rs:952:9
:info:build   15: <bootstrap::compile::Assemble as bootstrap::builder::Step>::run
:info:build              at ./src/bootstrap/compile.rs:1382:30
:info:build   16: bootstrap::builder::Builder::ensure
:info:build              at ./src/bootstrap/builder.rs:2039:23
:info:build   17: bootstrap::builder::Builder::compiler
:info:build              at ./src/bootstrap/builder.rs:952:9
:info:build   18: <bootstrap::compile::Std as bootstrap::builder::Step>::make_run
:info:build              at ./src/bootstrap/compile.rs:71:23
:info:build   19: bootstrap::builder::StepDescription::maybe_run
:info:build              at ./src/bootstrap/builder.rs:301:13
:info:build   20: bootstrap::builder::StepDescription::run
:info:build              at ./src/bootstrap/builder.rs:338:21
:info:build   21: bootstrap::builder::Builder::run_step_descriptions
:info:build              at ./src/bootstrap/builder.rs:944:9
:info:build   22: bootstrap::builder::Builder::execute_cli
:info:build              at ./src/bootstrap/builder.rs:924:9
:info:build   23: bootstrap::Build::build
:info:build              at ./src/bootstrap/lib.rs:693:13
:info:build   24: bootstrap::main
:info:build              at ./src/bootstrap/bin/main.rs:58:5
:info:build   25: core::ops::function::FnOnce::call_once
:info:build              at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/core/src/ops/function.rs:250:5
:info:build note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
:info:build 	finished in 177.939 seconds
:info:build Build completed unsuccessfully in 0:07:03
:info:build make: *** [all] Error 1
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_rust/rust/work/rustc-1.70.0-src'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_rust/rust/work/rustc-1.70.0-src" && /usr/bin/make -j2 -w all BOOTSTRAP_ARGS="-j2" 
:info:build Exit code: 2
:error:build Failed to build rust: command execution failed
:debug:build Error code: CHILDSTATUS 50073 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec -callback portprogress::target_progress_callback 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_rsync.macports.org_macports_release_tarballs_ports_lang_rust/rust/main.log for details.

Change History (3)

Changed 16 months ago by RobK88

Attachment: main.log added

main.log

comment:1 Changed 16 months ago by RobK88

Description: modified (diff)

comment:2 Changed 16 months ago by RobK88

Description: modified (diff)
Note: See TracTickets for help on using tickets.