Opened 6 years ago

Closed 6 years ago

#57701 closed defect (invalid)

cctools build failure

Reported by: LXuipp Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.5.4
Keywords: Cc:
Port: cctools

Description (last modified by jmroot (Joshua Root))

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 ?

Attachments (1)

main.log (892.6 KB) - added by LXuipp 6 years ago.
See the new main.log file

Download all attachments as: .zip

Change History (7)

comment:1 Changed 6 years ago by jmroot (Joshua Root)

Description: modified (diff)
Owner: set to jeremyhu
Port: cctools added
Status: newassigned
Summary: Install error about gcc8 with the latest MacPort on macOS Mojavecctools build failure
Type: requestdefect

Please attach the main.log mentioned in the error message.

comment:2 Changed 6 years ago by kencu (Ken)

Where is your Xcode located?

xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist

Changed 6 years ago by LXuipp

Attachment: main.log added

See the new main.log file

comment:3 Changed 6 years ago by kencu (Ken)

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

comment:4 Changed 6 years ago by kencu (Ken)

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

comment:5 Changed 6 years ago 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.

comment:6 Changed 6 years ago by kencu (Ken)

Resolution: invalid
Status: assignedclosed

excellent!

Note: See TracTickets for help on using tickets.