Opened 4 years ago

Last modified 4 years ago

#61973 new defect

Pallet @1.1_1: Failed to open log store at /Users/macports/Library/Developer/Xcode/DerivedData/Pallet-hhxzvjfjvrmndgcreaswdfqwvhbd/Logs/Build

Reported by: ShadSterling (Shad Sterling) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: bigsur Cc:
Port: Pallet

Description

:info:build 2021-01-02 04:17:13.286 xcodebuild[5986:9131880] [MT] IDELogStore: Failed to open log store at /Users/macports/Library/Developer/Xcode/DerivedData/Pallet-hhxzvjfjvrmndgcreaswdfqwvhbd/Logs/Build
:info:build 2021-01-02 04:17:13.286 xcodebuild[5986:9131880] [MT] IDELogStore: Failed to open Build log store: Error Domain=IDEFoundationErrorDomain Code=1 "Unable to create log store directory at '/Users/macports/Library/Developer/Xcode/DerivedData/Pallet-hhxzvjfjvrmndgcreaswdfqwvhbd/Logs/Build': (513) You don’t have permission to save the file “Build” in the folder “Logs”." UserInfo={NSLocalizedDescription=Unable to create log store directory at '/Users/macports/Library/Developer/Xcode/DerivedData/Pallet-hhxzvjfjvrmndgcreaswdfqwvhbd/Logs/Build': (513) You don’t have permission to save the file “Build” in the folder “Logs”.}. User info: {
:info:build     NSLocalizedDescription = "Unable to create log store directory at '/Users/macports/Library/Developer/Xcode/DerivedData/Pallet-hhxzvjfjvrmndgcreaswdfqwvhbd/Logs/Build': (513) You don\U2019t have permission to save the file \U201cBuild\U201d in the folder \U201cLogs\U201d.";
:info:build }.
:info:build 2021-01-02 04:17:13.295 xcodebuild[5986:9131880] [MT] IDELogStore: Failed to open log store at /Users/macports/Library/Developer/Xcode/DerivedData/Pallet-hhxzvjfjvrmndgcreaswdfqwvhbd/Logs/Package
:info:build 2021-01-02 04:17:13.295 xcodebuild[5986:9131880] [MT] IDELogStore: Failed to open Package log store: Error Domain=IDEFoundationErrorDomain Code=1 "Unable to create log store directory at '/Users/macports/Library/Developer/Xcode/DerivedData/Pallet-hhxzvjfjvrmndgcreaswdfqwvhbd/Logs/Package': (513) You don’t have permission to save the file “Package” in the folder “Logs”." UserInfo={NSLocalizedDescription=Unable to create log store directory at '/Users/macports/Library/Developer/Xcode/DerivedData/Pallet-hhxzvjfjvrmndgcreaswdfqwvhbd/Logs/Package': (513) You don’t have permission to save the file “Package” in the folder “Logs”.}. User info: {
:info:build     NSLocalizedDescription = "Unable to create log store directory at '/Users/macports/Library/Developer/Xcode/DerivedData/Pallet-hhxzvjfjvrmndgcreaswdfqwvhbd/Logs/Package': (513) You don\U2019t have permission to save the file \U201cPackage\U201d in the folder \U201cLogs\U201d.";
:info:build }.
:info:build 2021-01-02 04:17:13.301 xcodebuild[5986:9131880] [MT] IDELogStore: Failed to open log store at /Users/macports/Library/Developer/Xcode/DerivedData/Pallet-hhxzvjfjvrmndgcreaswdfqwvhbd/Logs/Test
:info:build 2021-01-02 04:17:13.301 xcodebuild[5986:9131880] [MT] IDELogStore: Failed to open Test log store: Error Domain=IDEFoundationErrorDomain Code=1 "Unable to create log store directory at '/Users/macports/Library/Developer/Xcode/DerivedData/Pallet-hhxzvjfjvrmndgcreaswdfqwvhbd/Logs/Test': (513) You don’t have permission to save the file “Test” in the folder “Logs”." UserInfo={NSLocalizedDescription=Unable to create log store directory at '/Users/macports/Library/Developer/Xcode/DerivedData/Pallet-hhxzvjfjvrmndgcreaswdfqwvhbd/Logs/Test': (513) You don’t have permission to save the file “Test” in the folder “Logs”.}. User info: {
:info:build     NSLocalizedDescription = "Unable to create log store directory at '/Users/macports/Library/Developer/Xcode/DerivedData/Pallet-hhxzvjfjvrmndgcreaswdfqwvhbd/Logs/Test': (513) You don\U2019t have permission to save the file \U201cTest\U201d in the folder \U201cLogs\U201d.";
:info:build }.

This came up in reinstalling everything after moving to Big Sur

Attachments (1)

main.log (37.3 KB) - added by ShadSterling (Shad Sterling) 4 years ago.

Download all attachments as: .zip

Change History (9)

Changed 4 years ago by ShadSterling (Shad Sterling)

Attachment: main.log added

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

This looks like the well-known derived data path issue (#57137).

However, even if we fix that, there are still a dozen other open issues that probably prevent Pallet from working.

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

You appear to have an additional problem on your computer: Your macports user's home directory appears to be /Users/macports, which is not what it should be. This can happen if you upgrade to a new Mac and tell macOS to migrate your data from another computer, including migrating the macports user. Apple's migration process will relocate all user accounts' home directories into /Users; there is no option not to do this, but it is wrong for them to do this. You could manually fix the macports user's home directory entry using dscl and then move the actual directory from /Users/macports back to where it belongs. The same may apply to any other users you migrated that had been created by MacPorts ports.

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

I build this a few minutes ago on Catalina with a couple of minor patches. It runs, but then later on did crash.

Anyway, this PR <https://github.com/macports/macports-ports/pull/9602> gets it to the point where it will build at least, on Catalina with Xcode 12.3.

Version 0, edited 4 years ago by kencu (Ken) (next)

comment:4 Changed 4 years ago by kencu (Ken)

Getting it building was one thing; getting it to a fully functional state will be another project.

comment:5 Changed 4 years ago by kencu (Ken)

selecting the tcl directory is tricky, as the folder is hidden. I did it by making a symlink into my home directory:

ln -s /opt/local/libexec/macports/lib tcl

and selecting that.

Unfortunately, Pallet crashes soon after. There are other tickets about that, possibly different than my crash, but FWIW, here's the crash I saw:

Thread 6 Crashed:
0   Tcl                           	0x00007fff44755590 0x7fff446ce000 + 554384
1   Tcl                           	0x00007fff4475531d Tcl_ResetResult + 14
2   Tcl                           	0x00007fff446dd49a 0x7fff446ce000 + 62618
3   Tcl                           	0x00007fff446de2e0 Tcl_Eval + 39
4   org.macports.frameworks.macports	0x000000010034029b -[MPInterpreter setOptions:forTclInterpreter:] + 165
5   org.macports.frameworks.macports	0x0000000100340420 -[MPInterpreter initWithPkgPath:portOptions:] + 159
6   org.macports.frameworks.macports	0x000000010034061d +[MPInterpreter sharedInterpreterWithPkgPath:portOptions:] + 187
7   org.macports.frameworks.macports	0x00000001003416ec -[MPMacPorts initWithPkgPath:portOptions:] + 80
8   org.macports.frameworks.macports	0x0000000100341921 +[MPMacPorts sharedInstanceWithPkgPath:portOptions:] + 253
9   org.macports.Pallet           	0x000000010032357a 0x100320000 + 13690
10  com.apple.Foundation          	0x00007fff3934d7b2 __NSThread__start__ + 1064
11  libsystem_pthread.dylib       	0x00007fff70fbf109 _pthread_start + 148
12  libsystem_pthread.dylib       	0x00007fff70fbab8b thread_start + 15
Last edited 4 years ago by kencu (Ken) (previous) (diff)

comment:6 in reply to:  2 Changed 4 years ago by ShadSterling (Shad Sterling)

Replying to ryandesign:

Apple's migration process will relocate all user accounts' home directories into /Users; You could manually fix the macports user's home directory entry using dscl and then move the actual directory from /Users/macports back to where it belongs. The same may apply to any other users you migrated that had been created by MacPorts ports.

Where do those home directories belong? Is there a way to detect whether a particular user is a macports user that should be moved? Is this documented somewhere? I'm inclined make a script that automates going through the userlist and fixing all such users if it's easy enough.

comment:7 Changed 4 years ago by kencu (Ken)

the Pallet port is presently a lost cause; don't spend another second on it.

If you want to work on something at least close to usable, clone the MacPorts pallet repo and start from there. I got that building and not crashing (but not working either) with 15 minutes of effort.

comment:8 Changed 4 years ago by kencu (Ken)

The current best shot at building something would be to start with the github repo at <https://github.com/macports/pallet.git>

Note: See TracTickets for help on using tickets.