[MacPorts] #57058: Failed to build rust

classic Classic list List threaded Threaded
15 messages Options
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