Opened 2 years ago

Closed 21 months ago

#64983 closed defect (worksforme)

ccache fails to work correctly on Mac OS X 10.7.5

Reported by: lemzwerg (Werner Lemberg) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: lion Cc:
Port: ccache

Description

As discussed in the thread starting at

https://lists.macports.org/pipermail/macports-users/2022-April/050983.html

ccache (or something else?) creates directory /run/user/<UID>/ccache-tmp but can't create files in it. This happens on Mac OS X 10.7.5; note that ccache worked fine before updating to version 4.6.

For me, it looks wrong that ccache tries to generate this directory at all.

Attachments (1)

ccache-works-libarchive.log (225.2 KB) - added by kencu (Ken) 2 years ago.
ccache working properly on 10.7.5, being used to build libarchive

Download all attachments as: .zip

Change History (7)

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

I don't see any reason to believe that this is a MacPorts-specific problem. Since the use of this directory is within the ccache code, I would report it to the developers of ccache.

comment:2 Changed 2 years ago by lemzwerg (Werner Lemberg)

Well, yes. However, since I have zero clue about MacOS, I thought it would be prudent if a more knowledgeable person does this report upstream. At least this is what I usually experience as one of the maintainers of FreeType: Users with FreeType problems report to the distro package's maintainers, who in turn contact us.

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

I just installed ccache on the 10.7.5 system in front of me, and it works normally.

So it is therefore most likely something on your system that is messing you up.

ccache relies on:

  1. it's own settings, in config files
  2. the settings in macports.conf to control it when run under macports
  3. the directories having normal, non-messed-around-with layout and permissions

so delete all your ccache directories and config files that might exist here and there in your home folder, clean out all the previous macports builds using "sudo port -v reclaim", inspect macports.conf to make sure that there is no funny business going on in there, or just delete macports.conf and copy over the default, then enable the ccache option.

Then think about your disk, do you have wacky stuff going on? Symlinks to offline ZIP drives that are being used for surrogate macports directories, changes you might have made in the permissions in "/opt/local" at some point for some reason?

If none of this adds up to anything, completely uninstall macports including the macports user and group, blow out the "/opt/local" directory to remove any vestigates of it, remove anything in your home directory that might possibly have anything to do with ccache, and start over.

I often find starting over is 100x faster than debugging weird stuff, but YMMV.

Best of luck!

Changed 2 years ago by kencu (Ken)

Attachment: ccache-works-libarchive.log added

ccache working properly on 10.7.5, being used to build libarchive

comment:4 Changed 21 months ago by lemzwerg (Werner Lemberg)

Setting up MacPorts anew made the problem go away.

comment:5 Changed 21 months ago by lemzwerg (Werner Lemberg)

Priority: NormalHigh

Please close.

comment:6 in reply to:  4 Changed 21 months ago by mascguy (Christopher Nielsen)

Priority: HighNormal
Resolution: worksforme
Status: newclosed
Version: 2.7.2

Replying to lemzwerg:

Setting up MacPorts anew made the problem go away.

Great, glad the issue is resolved!

Note: See TracTickets for help on using tickets.