Opened 6 weeks ago

Closed 6 weeks ago

#71029 closed defect (duplicate)

Unable to install 'lzip'

Reported by: igielskv (Manoli) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.10.2
Keywords: sequoia arm64 Cc: peterpoe (Gregorio Magini)
Port: lzip

Description

After upgrading my macOS to Sequoia (official release 15.0) I'm not able to install 'lzip' which is requirement for 'nmap'

sudo port install lzip
--->  Fetching archive for lzip
--->  Attempting to fetch lzip-1.24.1_0.darwin_24.arm64.tbz2 from https://vie.at.packages.macports.org/lzip
--->  Attempting to fetch lzip-1.24.1_0.darwin_24.arm64.tbz2 from https://packages.macports.org/lzip
--->  Attempting to fetch lzip-1.24.1_0.darwin_24.arm64.tbz2 from https://fra.de.packages.macports.org/lzip
--->  Building lzip
Error: Failed to build lzip: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_lzip/lzip/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port lzip failed

I have uninstalled all macports and did clean install of macPorts Sequoia package. Unfortunately this is big problem for me, because I was using 'nmap' a lot on previous macOS version and I believe I'm not the only one affected.

Attachments (1)

main.log (7.5 KB) - added by peterpoe (Gregorio Magini) 6 weeks ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 6 weeks ago by ryandesign (Ryan Carsten Schmidt)

Priority: HighNormal

Please attach the main.log file so that we can begin to investigate the problem.

Changed 6 weeks ago by peterpoe (Gregorio Magini)

Attachment: main.log added

comment:2 Changed 6 weeks ago by peterpoe (Gregorio Magini)

I have the same problem with Sequoia 15.0.1, log attached

comment:3 Changed 6 weeks ago by ryandesign (Ryan Carsten Schmidt)

Cc: peterpoe added

Gregorio, your log says:

encoder_base.cc:20:10: fatal error: 'algorithm' file not found
   20 | #include <algorithm>
      |          ^~~~~~~~~~~

That's #70750 which can be fixed by following ProblemHotlist#clts16.

Still waiting for Manoli's log to see if it's the same thing.

comment:4 Changed 6 weeks ago by igielskv (Manoli)

I have found somewhere here a workaround - to remove Xcode Command-line Tools from macOS.

sudo rm -rfv /Library/Developer/CommandLineTools

After this 'lzip' and 'nmap' ports installed successfully.

So it really seems like a bug in Xcode Command-line Tools - because with libraries from /Applications/Xcode.app/Contents/Developer (which is main Xcode app path) it all works just fine.

Last edited 6 weeks ago by igielskv (Manoli) (previous) (diff)

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

Resolution: duplicate
Status: newclosed

If that worked, then that's exactly the problem described at ProblemHotlist#clts16.

Removing the entire command line tools is not required or recommended. It's just a leftover part of CLT 15.x that should be removed. If you removed the entire CLT, you should reinstall it using the installer for version 16 from the Apple Developer web site. If instead you reinstall using xcode-select --install you may get version 15.x, which software update will then update to 16.x and you'll have the same problem again until you follow the instructions at ProblemHotlist#clts16.

Note: See TracTickets for help on using tickets.