Discussion:
[MacPorts] #57701: Install error about gcc8 with the latest MacPort on macOS Mojave
MacPorts
2018-11-30 00:38:52 UTC
Permalink
#57701: Install error about gcc8 with the latest MacPort on macOS Mojave
---------------------+--------------------
Reporter: LXuipp | Owner: (none)
Type: request | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Keywords: | Port:
---------------------+--------------------
I try to install gcc8 with latest MacPort on macOS Mojave (10.14.1) with
Xcode (10.1), and I got the following ERRORs:

"---> Computing dependencies for cctools
---> Building cctools
Error: Failed to build cctools: command execution failed
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cctools/cctools/main.log
for details.
Error: Unable to execute port: upgrade cctools failed"

How to fix it ?
--
Ticket URL: <https://trac.macports.org/ticket/57701>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-30 02:16:01 UTC
Permalink
#57701: cctools build failure
----------------------+----------------------
Reporter: LXuipp | Owner: jeremyhu
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: cctools |
----------------------+----------------------
Changes (by jmroot):

* status: new => assigned
* owner: (none) => jeremyhu
* type: request => defect
* port: => cctools
Post by MacPorts
I try to install gcc8 with latest MacPort on macOS Mojave (10.14.1) with
"---> Computing dependencies for cctools
---> Building cctools
Error: Failed to build cctools: command execution failed
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cctools/cctools/main.log
for details.
Error: Unable to execute port: upgrade cctools failed"
How to fix it ?
New description:

I try to install gcc8 with latest MacPort on macOS Mojave (10.14.1) with
Xcode (10.1), and I got the following ERRORs:
{{{
---> Computing dependencies for cctools
---> Building cctools
Error: Failed to build cctools: command execution failed
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cctools/cctools/main.log
for details.
Error: Unable to execute port: upgrade cctools failed
}}}
How to fix it ?

--

Comment:

Please attach the main.log mentioned in the error message.
--
Ticket URL: <https://trac.macports.org/ticket/57701#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-30 02:34:03 UTC
Permalink
#57701: cctools build failure
----------------------+----------------------
Reporter: LXuipp | Owner: jeremyhu
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: cctools |
----------------------+----------------------
Changes (by LXuipp):

* Attachment "main.log" added.

main.log file
--
Ticket URL: <https://trac.macports.org/ticket/57701>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-30 03:12:28 UTC
Permalink
#57701: cctools build failure
----------------------+----------------------
Reporter: LXuipp | Owner: jeremyhu
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: cctools |
----------------------+----------------------

Comment (by kencu):

Where is your Xcode located?
{{{
xcrun: error: active developer path
("/Applications/Xcode.app/Contents/Developer") does not exist
}}}
--
Ticket URL: <https://trac.macports.org/ticket/57701#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-30 06:44:41 UTC
Permalink
#57701: cctools build failure
----------------------+----------------------
Reporter: LXuipp | Owner: jeremyhu
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: cctools |
----------------------+----------------------
Changes (by LXuipp):

* Attachment "main.log" added.

See the new main.log file
--
Ticket URL: <https://trac.macports.org/ticket/57701>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-30 07:38:44 UTC
Permalink
#57701: cctools build failure
----------------------+----------------------
Reporter: LXuipp | Owner: jeremyhu
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: cctools |
----------------------+----------------------

Comment (by kencu):

The linker seems to be having trouble linking your objects.

Please show us what ld64 versions you have installed. The output of this
command should do it:
{{{
port -v installed | grep ld64
}}}
--
Ticket URL: <https://trac.macports.org/ticket/57701#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-30 07:41:36 UTC
Permalink
#57701: cctools build failure
----------------------+----------------------
Reporter: LXuipp | Owner: jeremyhu
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: cctools |
----------------------+----------------------

Comment (by kencu):

also, don't forget good housekeeping. Always clean out a failed build
directory before trying again, or you are starting from an uncertain
state, and will likely have unpredictable results:
{{{
sudo port clean cctools
sudo port -v install cctools
}}}
--
Ticket URL: <https://trac.macports.org/ticket/57701#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-30 07:56:50 UTC
Permalink
#57701: cctools build failure
----------------------+----------------------
Reporter: LXuipp | Owner: jeremyhu
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: cctools |
----------------------+----------------------

Comment (by LXuipp):

ld64 @3_0 platform='darwin 17' archs='x86_64'
date='2017-12-12T07:23:56+0800'
ld64 @3_1+ld64_xcode (active) platform='darwin 18' archs='x86_64'
date='2018-11-30T15:51:11+0800'
ld64-latest @274.2_2+llvm39 (active) platform='darwin 17' archs='x86_64'
date='2017-12-12T07:23:55+0800'
ld64-xcode @2_1 (active) platform='darwin 18' archs='x86_64'
date='2018-11-30T15:51:10+0800'

After

sudo port clean cctools
sudo port -v install cctools

Install gcc8, done.

Thanks very much.
--
Ticket URL: <https://trac.macports.org/ticket/57701#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-30 08:45:40 UTC
Permalink
#57701: cctools build failure
----------------------+----------------------
Reporter: LXuipp | Owner: jeremyhu
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: invalid | Keywords:
Port: cctools |
----------------------+----------------------
Changes (by kencu):

* status: assigned => closed
* resolution: => invalid


Comment:

excellent!
--
Ticket URL: <https://trac.macports.org/ticket/57701#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
Loading...