Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#60034 closed defect (worksforme)

dyld: Library not loaded: /opt/local/lib/liblz4.1.dylib

Reported by: aliktab (Alik) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), michaelld (Michael Dickens)
Port: lz4 libarchive cmake

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

When I run port upgrade outdated the two ports wants to update

The following ports will be rebuilt:
 llvm-9.0 @9.0.1
 gcc9 @9.2.0

With a result:

Failed to configure llvm-9.0: configure failure: command execution failed

Attachments (1)

main.log (29.0 KB) - added by aliktab (Alik) 4 years ago.
Log file

Download all attachments as: .zip

Change History (8)

Changed 4 years ago by aliktab (Alik)

Attachment: main.log added

Log file

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

Cc: ryandesign michaelld added
Port: lz4 libarchive cmake added
Summary: Unable to upgrade llvm-9.0dyld: Library not loaded: /opt/local/lib/liblz4.1.dylib

You seem to be missing a library that should be provided by the lz4 port, which is a dependency of libarchive, which is a dependency of cmake.

comment:2 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

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

Right. So the solution is to sudo port install lz4. The only way I can see for this situation to have arisen is if you forcibly uninstalled lz4, bypassing the warning MacPorts printed letting you know that would break things; if so, then the breakage you are now encountering is to be expected.

Secondly, there is another message in the log:

sh: pkg-config: command not found

This appears to be a bug in the llvm-9.0 port for which I filed a separate ticket #60035.

comment:4 Changed 4 years ago by aliktab (Alik)

I've installed macports from scratch and tried to install gcc9 at first and got this problem. I didn't uninstall anything.

Now I've installed lz4myself, thanks for suggestion

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

Resolution: worksforme
Status: newclosed

I don't know how that would have been able to happen if installing from scratch; the dependencies are all correctly declared. If you can reproduce lz4 not being installed as a dependency of cmake, please reopen and show the log of that happening.

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

:debug:archivefetch Didn't find receipt, going to depspec regex for: cmake
:debug:archivefetch Found Dependency: path: /opt/local/bin filename: cmake regex: ^cmake$

What does port provides /opt/local/bin/cmake say? I suspect that you didn't actually start from scratch, but had a number of files present in /opt/local that weren't registered with MacPorts.

comment:7 Changed 4 years ago by aliktab (Alik)

You are right. I've deleted everything including opt/local and tried again with no errors. Thanks.

Note: See TracTickets for help on using tickets.