Opened 4 weeks ago

Last modified 4 weeks ago

#73106 accepted defect

ccache @4.12.1_1+doc: errors building when ccache is installed and broken

Reported by: thetrial (alabay) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.11.5
Keywords: legacy-os, sierra Cc:
Port: ccache

Description

I haven’t found out, what exactly the errors are and will add the logfile.

Attachments (1)

main.log (44.0 KB) - added by thetrial (alabay) 4 weeks ago.

Download all attachments as: .zip

Change History (3)

Changed 4 weeks ago by thetrial (alabay)

Attachment: main.log added

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

Status: assignedaccepted
Summary: ccache @4.12.1_1+doc: errors buildingccache @4.12.1_1+doc: errors building when ccache is installed and broken

The log says:

:warn:configure ccache_dir /opt/local/var/macports/build/.ccache could not be initialized; disabling ccache: dyld: Library not loaded: /opt/local/lib/libhiredis.1.1.0.dylib
:warn:configure   Referenced from: /opt/local/bin/ccache
:warn:configure   Reason: image not found

So, your existing ccache is broken because it links with an old version of the hiredis library that's no longer available. MacPorts has detected this and says it's disabling the use of ccache. But it doesn't seem to have actually done so, since the build then fails with the same error. I see the same problem on my system. I'll investigate.

The goal is to rebuild ccache so it uses the new hiredis library, which you're trying to do, but it's failing because it's trying to use the old broken ccache.

An easy way to tell MacPorts not to use the broken ccache is to deactivate it:

sudo port clean ccache
sudo port -f deactivate ccache
sudo port upgrade ccache

comment:2 Changed 4 weeks ago by sunoterra (Michael Stilson)

Hey, big thanks for working on this. 🙂 Offering my experience, fwiw.

Did a reclaim and deleted everything, including ccache dir contents, and then tried the clean/deactivate/upgrade steps. Got same errors.

Not locating any instances of libhiredis, tried building the hiredis. After that the ccache port built without errors. Removed hiredis from requested ports. Everything seems to be working now. 🤷‍♂️

Note: See TracTickets for help on using tickets.