[MacPorts] #57058: Failed to build rust

classic Classic list List threaded Threaded
27 messages Options
12
Reply | Threaded
Open this post in threaded view
|

[MacPorts] #57058: Failed to build rust

MacPorts
#57058: Failed to build rust
-------------------------+--------------------
 Reporter:  mfacorcoran  |      Owner:  (none)
     Type:  defect       |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:
 Keywords:               |       Port:  rust
-------------------------+--------------------
 I just tried to selfupdate and upgrade outdated and go the following error
 when upgrading rust from rust@1.27.2_0 to rust@1.28.0:

 {{{
 --->  Computing dependencies for rust
 --->  Building rust
 Error: Failed to build rust: command execution failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_github
 .com_macports_macports-ports_lang_rust/rust/main.log for details.
 Error: Follow https://guide.macports.org/#project.tickets to report a bug.
 }}}

 I've attached rust/main.log

--
Ticket URL: <https://trac.macports.org/ticket/57058>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57058: Failed to build rust

MacPorts
#57058: Failed to build rust
--------------------------+--------------------
  Reporter:  mfacorcoran  |      Owner:  (none)
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:  rust         |
--------------------------+--------------------
Changes (by mfacorcoran):

 * Attachment "main.log" added.

 rust main.log

--
Ticket URL: <https://trac.macports.org/ticket/57058>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57058: Failed to build rust

MacPorts
In reply to this post by MacPorts
#57058: Failed to build rust
--------------------------+----------------------
  Reporter:  mfacorcoran  |      Owner:  g5pw
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:  rust         |
--------------------------+----------------------
Changes (by jmroot):

 * owner:  (none) => g5pw
 * status:  new => assigned


Comment:

 {{{
 :warn:clean Xcode does not appear to be installed; most ports will likely
 fail to build.
 }}}
 Do you in fact have Xcode installed? What does `xcodebuild -version` say?

--
Ticket URL: <https://trac.macports.org/ticket/57058#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57058: Failed to build rust

MacPorts
In reply to this post by MacPorts
#57058: Failed to build rust
--------------------------+----------------------
  Reporter:  mfacorcoran  |      Owner:  g5pw
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:  rust         |
--------------------------+----------------------

Comment (by mfacorcoran):

 I don't have the xcode app installed but do have the command line tools
 installed. Other ports build without issue. for example:


 {{{
 Warning: Xcode does not appear to be installed; most ports will likely
 fail to build.
 --->  Computing dependencies for py-healpy
 --->  Fetching archive for py-healpy
 --->  Attempting to fetch py-healpy-1.12.4_0.darwin_17.noarch.tbz2 from
 https://packages.macports.org/py-healpy
 --->  Attempting to fetch py-healpy-1.12.4_0.darwin_17.noarch.tbz2 from
 http://lil.fr.packages.macports.org/py-healpy
 --->  Attempting to fetch py-healpy-1.12.4_0.darwin_17.noarch.tbz2 from
 http://mse.uk.packages.macports.org/sites/packages.macports.org/py-healpy
 --->  Fetching distfiles for py-healpy
 --->  Verifying checksums for py-healpy
 --->  Extracting py-healpy
 --->  Configuring py-healpy
 --->  Building py-healpy
 --->  Staging py-healpy into destroot
 --->  Installing py-healpy @1.12.4_0
 --->  Cleaning py-healpy
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/57058#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57058: Failed to build rust

MacPorts
In reply to this post by MacPorts
#57058: Failed to build rust
--------------------------+----------------------
  Reporter:  mfacorcoran  |      Owner:  g5pw
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:  rust         |
--------------------------+----------------------
Changes (by zack112358):

 * Attachment "zjm-main.log" added.


--
Ticket URL: <https://trac.macports.org/ticket/57058>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57058: Failed to build rust

MacPorts
In reply to this post by MacPorts
#57058: Failed to build rust
--------------------------+----------------------
  Reporter:  mfacorcoran  |      Owner:  g5pw
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:  rust         |
--------------------------+----------------------

Comment (by zack112358):

 I have the same problem, and I'm attaching my log file as well as zjm-
 main.log

 ~ 0 $ sudo port install rust
 Password:
 --->  Computing dependencies for rust
 --->  Building rust
 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 to report a bug.
 Error: Processing of port rust failed

 ~ 64 $ xcodebuild -version
 Xcode 6.4
 Build version 6E35b

 I do have xcode.app.

--
Ticket URL: <https://trac.macports.org/ticket/57058#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57058: Failed to build rust

MacPorts
In reply to this post by MacPorts
#57058: Failed to build rust
--------------------------+----------------------
  Reporter:  mfacorcoran  |      Owner:  g5pw
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:  rust         |
--------------------------+----------------------

Comment (by zack112358):

 Ah, to clarify: I'm trying to install Rust for the first time. But I am
 also having a mysterious build failure, like original poster.

 main.log says

 {{{
 :info:build RuntimeError: failed to run:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_rust/rust/work/rustc-1.28.0-src/build/bootstrap/debug/bootstrap
 build -v -j4
 }}}

 Running that command manually

 {{{
 $ sudo
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_rust/rust/work/rustc-1.28.0-src/build/bootstrap/debug/bootstrap
 build -vv -j4
 $ echo $?
 139
 }}}

 doesn't produce any output, just exit status 139.


 Replying to [comment:3 zack112358]:
 > I have the same problem, and I'm attaching my log file as well as zjm-
 main.log
 >
 >
 > {{{
 > ~ 0 $ sudo port install rust
 > Password:
 > --->  Computing dependencies for rust
 > --->  Building rust
 > 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 to report a
 bug.
 > Error: Processing of port rust failed
 >
 > ~ 64 $ xcodebuild -version
 > Xcode 6.4
 > Build version 6E35b
 > }}}
 >
 >
 > I do have xcode.app.
 >

--
Ticket URL: <https://trac.macports.org/ticket/57058#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57058: Failed to build rust

MacPorts
In reply to this post by MacPorts
#57058: Failed to build rust
--------------------------+----------------------
  Reporter:  mfacorcoran  |      Owner:  g5pw
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:  rust         |
--------------------------+----------------------

Comment (by g5pw):

 That **is** a pretty mysterious build failure. What OS/hardware are you
 building this on? Does the build still fail with latest rust?

--
Ticket URL: <https://trac.macports.org/ticket/57058#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57058: Failed to build rust

MacPorts
In reply to this post by MacPorts
#57058: Failed to build rust
--------------------------+----------------------
  Reporter:  mfacorcoran  |      Owner:  g5pw
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:  rust         |
--------------------------+----------------------

Comment (by MartinBuchmann):

 I am seen this error on a Mid 2011 iMac (2,7GHz i5) running OS X 10.10.5.

--
Ticket URL: <https://trac.macports.org/ticket/57058#comment:9>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57058: Failed to build rust

MacPorts
In reply to this post by MacPorts
#57058: Failed to build rust
--------------------------+----------------------
  Reporter:  mfacorcoran  |      Owner:  g5pw
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:  rust         |
--------------------------+----------------------

Comment (by ryandesign):

 Replying to [comment:8 g5pw]:
 > Does the build still fail with latest rust?

 Yes, the latest rust fails to build on Yosemite. See also #56614.

--
Ticket URL: <https://trac.macports.org/ticket/57058#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57058: Failed to build rust

MacPorts
In reply to this post by MacPorts
#57058: Failed to build rust
--------------------------+----------------------
  Reporter:  mfacorcoran  |      Owner:  g5pw
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:  rust         |
--------------------------+----------------------
Changes (by physicsbeany):

 * Attachment "rust_install_failure_BJK.log" added.


--
Ticket URL: <https://trac.macports.org/ticket/57058>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57058: Failed to build rust

MacPorts
In reply to this post by MacPorts
#57058: Failed to build rust
--------------------------+----------------------
  Reporter:  mfacorcoran  |      Owner:  g5pw
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:  rust         |
--------------------------+----------------------

Comment (by physicsbeany):

 Having same problem on a 2018 Macbook Pro (running High Sierra 10.13.6)
 --- just uploaded log file ("rust_install_failure_BJK.log").

 I don't care about rust per se, but it's a dependency for FFMPEG, which I
 *do* want.

--
Ticket URL: <https://trac.macports.org/ticket/57058#comment:12>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57058: Failed to build rust

MacPorts
In reply to this post by MacPorts
#57058: Failed to build rust
--------------------------+----------------------
  Reporter:  mfacorcoran  |      Owner:  g5pw
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:  rust         |
--------------------------+----------------------

Comment (by kencu):

 I would suggest you:
 {{{
 sudo port clean rust
 sudo port clean librsvg
 sudo port clean ffmpeg
 }}}
 then change `librsvg` to the last version that didn't require `rust` to
 build:
 {{{
 port edit librsvg
 -or-
 bbedit `port file librsvg`
 }}}
 then find this block in the Portfile:
 {{{
 if {${os.platform} eq "darwin" && ${os.major} < 14} {
     # revert to latest pre-cargo version
     version         2.40.20
     epoch           1

     checksums       rmd160  e697e1220779f77e81a890718ef5cda5b5e6b740 \
                     sha256
 cff4dd3c3b78bfe99d8fcfad3b8ba1eee3289a0823c0e118d78106be6b84c92b \
                     size    1796376
 } else {
 }}}
 and change that test to something that includes your system:
 {{{
 if {${os.platform} eq "darwin" && ${os.major} < 18} {
     # revert to latest pre-cargo version
     version         2.40.20
     epoch           1

     checksums       rmd160  e697e1220779f77e81a890718ef5cda5b5e6b740 \
                     sha256
 cff4dd3c3b78bfe99d8fcfad3b8ba1eee3289a0823c0e118d78106be6b84c92b \
                     size    1796376
 } else {
 }}}
 then save that, and you should be good to go. Somebody might get rust
 sorted out one day. I dunno, it's a real bear to work with, IMHO. Can't
 believe that's the only way to build a simple `SVG` library. Maybe we can
 find another `SVG` library that doesn't use it.

 If you update MacPorts, your little tweak will get overwritten. If that
 gets boring after a while, you can
 [https://guide.macports.org/chunked/development.local-repositories.html
 set up your own local repository] to keep your changes.

--
Ticket URL: <https://trac.macports.org/ticket/57058#comment:14>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57058: Failed to build rust

MacPorts
In reply to this post by MacPorts
#57058: Failed to build rust
--------------------------+----------------------
  Reporter:  mfacorcoran  |      Owner:  g5pw
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:  rust         |
--------------------------+----------------------

Comment (by Dave-Allured):

 @physicsbeany, FWIW, I just installed FFMPEG with no problems, including
 rust.  I am on the same OS as you, High Sierra 10.13.6, and older Mac Pro.
 This was a full install starting with a clean empty build of MacPorts core
 2.5.4 into a private install directory, not /opt/local; and without root
 privileges.

 I did apply two known simple patches before starting port install ffmpeg:
 bash-completion and rust DESTROOT.  I don't think either are related to
 your problem.  Your rust build never got close to DESTROOT.

 I noticed this at the top of your main.log:
 {{{
 :debug:sysinfo Xcode none
 :warn:main Xcode does not appear to be installed; most ports will likely
 fail to build.
 }}}
 My Mac has the full XCode 10.0 installed, so I did not get these warnings.
 I am not a MacPorts expert, but I did find discussion that full XCode is
 not always needed, and command tools alone are sufficient for many ports.
 Other docs warn to always use the latest XCode version.  You might look
 into your current XCode status.  Also please check this FAQ about xcode-
 select:

 https://trac.macports.org/wiki/ProblemHotlist#xcode-select

--
Ticket URL: <https://trac.macports.org/ticket/57058#comment:15>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57058: Failed to build rust

MacPorts
In reply to this post by MacPorts
#57058: Failed to build rust
--------------------------+----------------------
  Reporter:  mfacorcoran  |      Owner:  g5pw
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:  rust         |
--------------------------+----------------------

Comment (by physicsbeany):

 Hi @kenku.

 Thanks! That worked (though I don't look forward to maintaining it).

 Replying to [comment:14 kencu]:
 > I would suggest you:
 > {{{
 > sudo port clean rust
 > sudo port clean librsvg
 > sudo port clean ffmpeg
 > }}}
 > then change `librsvg` to the last version that didn't require `rust` to
 build:
 > {{{
 > port edit librsvg
 > -or-
 > bbedit `port file librsvg`
 > }}}
 > then find this block in the Portfile:
 > {{{
 > if {${os.platform} eq "darwin" && ${os.major} < 14} {
 >     # revert to latest pre-cargo version
 >     version         2.40.20
 >     epoch           1
 >
 >     checksums       rmd160  e697e1220779f77e81a890718ef5cda5b5e6b740 \
 >                     sha256
 cff4dd3c3b78bfe99d8fcfad3b8ba1eee3289a0823c0e118d78106be6b84c92b \
 >                     size    1796376
 > } else {
 > }}}
 > and change that test to something that includes your system:
 > {{{
 > if {${os.platform} eq "darwin" && ${os.major} < 18} {
 >     # revert to latest pre-cargo version
 >     version         2.40.20
 >     epoch           1
 >
 >     checksums       rmd160  e697e1220779f77e81a890718ef5cda5b5e6b740 \
 >                     sha256
 cff4dd3c3b78bfe99d8fcfad3b8ba1eee3289a0823c0e118d78106be6b84c92b \
 >                     size    1796376
 > } else {
 > }}}
 > then save that, and you should be good to go. Somebody might get rust
 sorted out one day. I dunno, it's a real bear to work with, IMHO. Can't
 believe that's the only way to build a simple `SVG` library. Maybe we can
 find another `SVG` library that doesn't use it.
 >
 > If you update MacPorts, your little tweak will get overwritten. If that
 gets boring after a while, you can
 [https://guide.macports.org/chunked/development.local-repositories.html
 set up your own local repository] to keep your changes.

--
Ticket URL: <https://trac.macports.org/ticket/57058#comment:16>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57058: Failed to build rust

MacPorts
In reply to this post by MacPorts
#57058: Failed to build rust
--------------------------+----------------------
  Reporter:  mfacorcoran  |      Owner:  g5pw
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:  rust         |
--------------------------+----------------------
Changes (by MartinBuchmann):

 * Attachment "main.2.log" added.

 build log

--
Ticket URL: <https://trac.macports.org/ticket/57058>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57058: Failed to build rust

MacPorts
In reply to this post by MacPorts
#57058: Failed to build rust
--------------------------+----------------------
  Reporter:  mfacorcoran  |      Owner:  g5pw
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:  rust         |
--------------------------+----------------------

Comment (by MartinBuchmann):

 I have Xcode installed but still see this error with the latest version of
 rust which I need for other ports like ripgrep.


 {{{
 iBuchi:~ Martin$ xcodebuild -version
 Xcode 7.2.1
 Build version 7C1002
 }}}

 Any news regarding a fix?

--
Ticket URL: <https://trac.macports.org/ticket/57058#comment:18>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57058: rust@1.28.0: Failed to build (was: Failed to build rust)

MacPorts
In reply to this post by MacPorts
#57058: rust@1.28.0: Failed to build
--------------------------+----------------------
  Reporter:  mfacorcoran  |      Owner:  g5pw
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:  rust         |
--------------------------+----------------------

--
Ticket URL: <https://trac.macports.org/ticket/57058#comment:19>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57058: rust@1.28.0: Failed to build

MacPorts
In reply to this post by MacPorts
#57058: rust@1.28.0: Failed to build
--------------------------+----------------------
  Reporter:  mfacorcoran  |      Owner:  g5pw
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:  rust         |
--------------------------+----------------------

Comment (by bussdriver):

 on OS 10.10 (xcode 7.2.1) it still does not build:

 {{{
  Compiling chalk-engine v0.7.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:
 "/Volumes/raid/opt/var/macports/build/_Volumes_raid_opt_var_macports_sources_rsync.macports.org_release_tarballs_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"
 "/Volumes/raid/opt/var/macports/build/_Volumes_raid_opt_var_macports_sources_rsync.macports.org_release_tarballs_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
 "/Volumes/raid/opt/var/macports/build/_Volumes_raid_opt_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_rust/rust/work/rustc-1.30.1-src/src/bootstrap/bootstrap.py",
 line 867, in <module>
 :info:build     main()
 :info:build   File
 "/Volumes/raid/opt/var/macports/build/_Volumes_raid_opt_var_macports_sources_rsync.macports.org_release_tarballs_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
 "/Volumes/raid/opt/var/macports/build/_Volumes_raid_opt_var_macports_sources_rsync.macports.org_release_tarballs_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
 "/Volumes/raid/opt/var/macports/build/_Volumes_raid_opt_var_macports_sources_rsync.macports.org_release_tarballs_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:
 /Volumes/raid/opt/var/macports/build/_Volumes_raid_opt_var_macports_sources_rsync.macports.org_release_tarballs_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
 `/Volumes/raid/opt/var/macports/build/_Volumes_raid_opt_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_rust/rust/work/rustc-1.30.1-src'
 :info:build Command failed:  cd
 "/Volumes/raid/opt/var/macports/build/_Volumes_raid_opt_var_macports_sources_rsync.macports.org_release_tarballs_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
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/57058#comment:20>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57058: rust@1.28.0: Failed to build

MacPorts
In reply to this post by MacPorts
#57058: rust@1.28.0: Failed to build
--------------------------+----------------------
  Reporter:  mfacorcoran  |      Owner:  g5pw
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:  rust         |
--------------------------+----------------------

Comment (by bussdriver):

 next build:
 {{{
 :info:build    Compiling rustc_platform_intrinsics v0.0.0
 (file:///Volumes/raid/opt/var/macports/build/_Volumes_raid_opt_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_rust/rust/work/rustc-1.30.1-src/src/librustc_platform_intrinsics)
 :info:build    Compiling rustc_target v0.0.0
 (file:///Volumes/raid/opt/var/macports/build/_Volumes_raid_opt_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_rust/rust/work/rustc-1.30.1-src/src/librustc_target)
 :info:build    Compiling rustc-rayon v0.1.1
 :info:build thread 'main' has overflowed its stack
 :info:build fatal runtime error: stack overflow
 :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:
 "/Volumes/raid/opt/var/macports/build/_Volumes_raid_opt_var_macports_sources_rsync.macports.org_release_tarballs_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"
 "/Volumes/raid/opt/var/macports/build/_Volumes_raid_opt_var_macports_sources_rsync.macports.org_release_tarballs_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
 "/Volumes/raid/opt/var/macports/build/_Volumes_raid_opt_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_rust/rust/work/rustc-1.30.1-src/src/bootstrap/bootstrap.py",
 line 867, in <module>
 :info:build     main()
 :info:build   File
 "/Volumes/raid/opt/var/macports/build/_Volumes_raid_opt_var_macports_sources_rsync.macports.org_release_tarballs_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
 "/Volumes/raid/opt/var/macports/build/_Volumes_raid_opt_var_macports_sources_rsync.macports.org_release_tarballs_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
 "/Volumes/raid/opt/var/macports/build/_Volumes_raid_opt_var_macports_sources_rsync.macports.org_release_tarballs_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:
 /Volumes/raid/opt/var/macports/build/_Volumes_raid_opt_var_macports_sources_rsync.macports.org_release_tarballs_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
 `/Volumes/raid/opt/var/macports/build/_Volumes_raid_opt_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_rust/rust/work/rustc-1.30.1-src'
 :info:build Command failed:  cd
 "/Volumes/raid/opt/var/macports/build/_Volumes_raid_opt_var_macports_sources_rsync.macports.org_release_tarballs_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 12232 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"
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/57058#comment:21>
MacPorts <https://www.macports.org/>
Ports system for macOS
12