#68018 closed defect (duplicate)

rust @1.71.1: Unable to Build on High Sierra

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

Description (last modified by RobK88)

It looks like the buildbot was not able to build rust @1.71.1 on High Sierra. (i.e. MacPorts first tried to download and install the rust-1.71.1_0.darwin_17.x86_64.tbz2 package but it was not found on the MacPorts servers).

Instead, I tried to build it from source but it failed:

bash-3.2$ port outdated
The following installed ports are outdated:
cargo                          0.71.0_0 < 0.72.2_0       
rust                           1.70.0_0 < 1.71.1_0       
bash-3.2$ port clean rust
--->  Cleaning rust
bash-3.2$ 
bash-3.2$ sudo port -v upgrade outdated

....

[144/3146] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Program.cpp.o
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/Program.cpp.o 
/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.71.1-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.71.1-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.71.1-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.71.1-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.71.1-src/src/llvm-project/llvm/lib/Support/Program.cpp
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_rust/rust/work/rustc-1.71.1-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'
        PI, SecondsToWait == 0 ? std::nullopt : std::optional(SecondsToWait),
                                                ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:684:41: note: candidate template ignored: couldn't infer template argument '_Tp'
    _LIBCPP_INLINE_VISIBILITY constexpr optional(nullopt_t) noexcept {}
                                        ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:690:24: note: candidate template ignored: couldn't infer template argument '_Tp'
    constexpr explicit optional(in_place_t, _Args&&... __args)
                       ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:704:15: note: candidate template ignored: couldn't infer template argument '_Tp'
    constexpr optional(_Up&& __v)
              ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:711:24: note: candidate template ignored: couldn't infer template argument '_Tp'
    constexpr explicit optional(_Up&& __v)
                       ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:580:7: note: candidate template ignored: could not match 'optional<_Tp>' against 'unsigned int'
class optional
      ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:682:41: note: candidate template ignored: could not match 'optional<_Tp>' against 'unsigned int'
    _LIBCPP_INLINE_VISIBILITY constexpr optional(const optional&) = default;
                                        ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:683:41: note: candidate template ignored: could not match 'optional<_Tp>' against 'unsigned int'
    _LIBCPP_INLINE_VISIBILITY constexpr optional(optional&&) = default;
                                        ^
/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'
    optional(const optional<_Up>& __v)
    ^
/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'
    explicit optional(const optional<_Up>& __v)
             ^
/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'
    optional(optional<_Up>&& __v)
    ^
/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'
    explicit optional(optional<_Up>&& __v)
             ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:681:41: note: candidate function template not viable: requires 0 arguments, but 1 was provided
    _LIBCPP_INLINE_VISIBILITY constexpr optional() noexcept {}
                                        ^
/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
    constexpr explicit optional(in_place_t, initializer_list<_Up> __il, _Args&&... __args)
                       ^
1 error generated.
[145/3146] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Signals.cpp.o
ninja: build stopped: subcommand failed.
thread 'main' panicked at '
command did not execute successfully, got: exit status: 1

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
stack backtrace:
   0: rust_begin_unwind
             at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/panicking.rs:578:5
   1: core::panicking::panic_fmt
             at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/panicking.rs:67:14
   2: cmake::fail
   3: cmake::run
   4: cmake::Config::build
   5: <bootstrap::llvm::Llvm as bootstrap::builder::Step>::run
             at ./src/bootstrap/llvm.rs:489:9
   6: bootstrap::builder::Builder::ensure
             at ./src/bootstrap/builder.rs:2069:23
   7: bootstrap::compile::rustc_llvm_env
             at ./src/bootstrap/compile.rs:894:48
   8: bootstrap::compile::rustc_cargo_env
             at ./src/bootstrap/compile.rs:881:13
   9: bootstrap::compile::rustc_cargo
             at ./src/bootstrap/compile.rs:818:5
  10: <bootstrap::compile::Rustc as bootstrap::builder::Step>::run
             at ./src/bootstrap/compile.rs:703:9
  11: bootstrap::builder::Builder::ensure
             at ./src/bootstrap/builder.rs:2069:23
  12: <bootstrap::compile::Assemble as bootstrap::builder::Step>::run
             at ./src/bootstrap/compile.rs:1419:9
  13: bootstrap::builder::Builder::ensure
             at ./src/bootstrap/builder.rs:2069:23
  14: bootstrap::builder::Builder::compiler
             at ./src/bootstrap/builder.rs:967:9
  15: <bootstrap::compile::Assemble as bootstrap::builder::Step>::run
             at ./src/bootstrap/compile.rs:1403:30
  16: bootstrap::builder::Builder::ensure
             at ./src/bootstrap/builder.rs:2069:23
  17: bootstrap::builder::Builder::compiler
             at ./src/bootstrap/builder.rs:967:9
  18: <bootstrap::compile::Std as bootstrap::builder::Step>::make_run
             at ./src/bootstrap/compile.rs:72:23
  19: bootstrap::builder::StepDescription::maybe_run
             at ./src/bootstrap/builder.rs:302:13
  20: bootstrap::builder::StepDescription::run
             at ./src/bootstrap/builder.rs:339:21
  21: bootstrap::builder::Builder::run_step_descriptions
             at ./src/bootstrap/builder.rs:959:9
  22: bootstrap::builder::Builder::execute_cli
             at ./src/bootstrap/builder.rs:940:9
  23: bootstrap::Build::build
             at ./src/bootstrap/lib.rs:690:13
  24: bootstrap::main
             at ./src/bootstrap/bin/main.rs:60:5
  25: core::ops::function::FnOnce::call_once
             at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
	finished in 172.819 seconds
Build completed unsuccessfully in 0:07:19
make: *** [all] Error 1
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.71.1-src'
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.71.1-src" && /usr/bin/make -j2 -w all BOOTSTRAP_ARGS="-j2" 
Exit code: 2
Error: Failed to build rust: command execution failed
Error: 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.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.

Attachments (1)

main.log (2.0 MB) - added by RobK88 15 months ago.

Download all attachments as: .zip

Change History (4)

Changed 15 months ago by RobK88

Attachment: main.log added

comment:1 Changed 15 months ago by RobK88

Description: modified (diff)

comment:2 Changed 15 months ago by RobK88

Description: modified (diff)

comment:3 Changed 15 months ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: duplicate
Status: newclosed

Duplicate of #67597.

Note: See TracTickets for help on using tickets.