Opened 12 years ago

Closed 12 years ago

#36563 closed defect (fixed)

Bizarre Xcode permissions problem

Reported by: royliu@… Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: base Version: 2.1.99
Keywords: Cc: anddam (Andrea D'Amore)
Port:

Description

I recently upgraded to Xcode 4.5.1 (along with Command Line Tools), and I have been getting the following.

error: couldn't create directory /var/folders/d_/bpdgfp1n3z97kh7wl3m79lj00000gp/C/com.apple.Xcode.502/SharedPrecompiledHeaders/QuickLookPlugin-Prefix-gbcgytovtbjwlkfdpkqeuzxvcyey: Operation not permittedwarning: unable to open file /var/folders/d_/bpdgfp1n3z97kh7wl3m79lj00000gp/C/com.apple.Xcode.502/SharedPrecompiledHeaders/QuickLookPlugin-Prefix-gbcgytovtbjwlkfdpkqeuzxvcyey/QuickLookPlugin-Prefix.pch.dia for serializing diagnostics (Error opening output file '/var/folders/d_/bpdgfp1n3z97kh7wl3m79lj00000gp/C/com.apple.Xcode.502/SharedPrecompiledHeaders/QuickLookPlugin-Prefix-gbcgytovtbjwlkfdpkqeuzxvcyey/QuickLookPlugin-Prefix.pch.dia') [-Wserialized-diagnostics]
error: unable to open output file '/var/folders/d_/bpdgfp1n3z97kh7wl3m79lj00000gp/C/com.apple.Xcode.502/SharedPrecompiledHeaders/QuickLookPlugin-Prefix-gbcgytovtbjwlkfdpkqeuzxvcyey/QuickLookPlugin-Prefix.pch.pth': 'Error opening output file '/var/folders/d_/bpdgfp1n3z97kh7wl3m79lj00000gp/C/com.apple.Xcode.502/SharedPrecompiledHeaders/QuickLookPlugin-Prefix-gbcgytovtbjwlkfdpkqeuzxvcyey/QuickLookPlugin-Prefix.pch.pth''

I've observed this problem in the build processes of transmission and gimp-app. Please find the build log for transmission attached. It if helps, I am on 10.8.2.

Attachments (2)

main.log (308.9 KB) - added by royliu@… 12 years ago.
The transmission build log.
graphviz-gui-devel.log (107.0 KB) - added by anddam (Andrea D'Amore) 12 years ago.

Download all attachments as: .zip

Change History (7)

Changed 12 years ago by royliu@…

Attachment: main.log added

The transmission build log.

comment:1 Changed 12 years ago by anddam (Andrea D'Amore)

Cc: and.damore@… added

Cc Me!

comment:2 Changed 12 years ago by anddam (Andrea D'Amore)

I experienced the same with graphviz-gui-devel, the /var/folders/* paths seemed to have correct permissions, macports:macports owned from /var/folders/*/* downward. In my case changing working directory to $worksrcdir and manually issuing the build command succesfully built the package.

I reproduced the same issue several times with cleaning between port build runs, after a certain clean it built and I cannot reproduce anymore. Yes, this is weird.

edit: I still have the issue, it happens in destroot phase while I was searching it in build phase. I'm attaching log as well.

Last edited 12 years ago by anddam (Andrea D'Amore) (previous) (diff)

comment:3 Changed 12 years ago by neverpanic (Clemens Lang)

Owner: changed from macports-tickets@… to jmr@…

This is probably caused by sandboxing introduced in macports trunk.

Changed 12 years ago by anddam (Andrea D'Amore)

Attachment: graphviz-gui-devel.log added

comment:4 Changed 12 years ago by anddam (Andrea D'Amore)

Updating base to r98904 solved my issue.

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

Component: portsbase
Resolution: fixed
Status: newclosed
Version: 2.1.22.1.99

Assuming the version field was set wrong then.

Note: See TracTickets for help on using tickets.