Opened 5 years ago

Closed 5 years ago

#59159 closed defect (duplicate)

cctools ranlib is not compatible with Xcode 11

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

Description (last modified by ryandesign (Ryan Carsten Schmidt))

ports attempts to pull: xz-5.2.4_0+universal.darwin_18.x86_64.tbz2

from : http://aus.us.packages.macports.org/macports/packages/xz/

which doesn't exist.

I did remove the i386 from the universal line because I was getting:

Error: xz cannot be installed for the configured universal_archs 'x86_64 i386' because the arch(s) 'i386' are not supported.
Error: rev-upgrade failed: Error rebuilding xz

The file: xz-5.2.4_0.darwin_18.x86_64.tbz2

exists but I don't know how to tell ports to pull that one instead.

Attachments (1)

main.log (302.9 KB) - added by hjlbs 5 years ago.
log when trying to install

Download all attachments as: .zip

Change History (8)

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

Owner: set to ryandesign
Port: xz added
Status: newassigned
Summary: macports is failing to install xz because it cannot find the tbz2xz is failing to install

Failing to fetch an archive shouldn't prevent a port from being installed, because MacPorts will simply build it from source in that case. However, there is no universal archive of xz because nothing can be built universal on Mojave. You'll have to install without the universal variant.

If that still fails, please attach the log.

comment:2 Changed 5 years ago by hjlbs

Turns out I was looking at the wrong spot in the error. It was able to pull the file but the build process is failing seemingly due to permissions.

--->  Fetching distfiles for db48
--->  Verifying checksums for db48
--->  Extracting db48
--->  Applying patches to db48
--->  Configuring db48
--->  Building db48
Error: Failed to build db48: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_db48/db48/main.log for details.
Error: Problem while installing db48
Error: Unable to execute port: upgrade cmake failed
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_db48/db48/work/db-4.8.30-x86_64/build_unix" && /usr/bin/make -j4 -w all
:info:build Exit code: 2
:error:build Failed to build db48: command execution failed
:debug:build Error code: NONE
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_db48/db48/main.log for details.

If I run the cd <dir> && make command manually with sudo then I can install it. Unfortunately, ports still doesn't see it as installed though.

Last edited 5 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:3 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Please attach the complete main.log file so that we can see what went wrong.

Changed 5 years ago by hjlbs

Attachment: main.log added

log when trying to install

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

This is something we have fixed before, but has come back around to haunt us again.

info:build /opt/local/bin/ranlib: object: .libs/libmpn.a(fib_table.o) malformed object (unknown load command 1)

please do this:

sudo port -f uninstall cctools
sudo port -v install cctools +xcode

and then try your build again.

comment:5 Changed 5 years ago by hjlbs

You are awesome. That seems to have fixed it. I had found a manual work around where I would fetch the port, then manually build it and frequently had to run export RANLIB=/usr/bin/ranlib

Thanks again

comment:6 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: changed from ryandesign to jeremyhu
Port: cctools added; xz removed
Summary: xz is failing to installcctools ranlib is not compatible with Xcode 11
Version: 2.6.1

comment:7 Changed 5 years ago by kencu (Ken)

Resolution: duplicate
Status: assignedclosed

#58749 tracks a request for cctools to be updated

Note: See TracTickets for help on using tickets.