[Openmcl-devel] CCL Self destructing with error: "Untitled" already exists

Gary Byers gb at clozure.com
Wed Oct 27 23:33:27 PDT 2010

Unless you've done something to change foreign object addresses (like rebooting,
possibly after an OS upgrade), you can't really tell whether the change worked;
the fact that the IDE otherwise builds and seems to run correctly - just as it
did for you and everyone else - doesn't say anything at all about that.

The error messages from make are saying that it can't install a new
"Clozure CL{32,64].app/Contents/Resources/AltConsole.app" bundle directory
because that directory already exists and it and/or the files it contains
can't be overwritten or deleted because you don't have appropriate permission.
(Someone else owns some/all of those files and/or someone changed their permissions.)
'make' - or any other program running as you - has exactly the same permissions
and restrictions that you do.)

It looks like the files in question are in


and especially in the .svn directory of that directory.  Strictly speaking,
the .svn files don't need to be copied into the bundle; they've already been
copied (in a way that tries to preserve their ownership and permissions) by
a previous invocation of make, which seems to suggest that you don't own and/or
can't write to the .svn files in the source directory.  Generally speaking,
those files are owned by whatever user ran "svn co", and the errors that you
see below suggest that that wasn't you.

You can do

$ cd CCL
$ sudo rm -rf Clozure\ CL64.app/Contents/Resources/AltConsole.app

and re-do the build and that should work, but unless you identify and fix
the underlying problem it's likely to recur.  (If we avoid copying the .svn
directories, it could happen with other files/directories.)

I don't think that CCL (running as you) or svn (running as you) could or would
have changed file ownership or permissions, so I'm tempted to assume that
one or more bipeds (humans) were involved.  I don't know that; I suppose that
some system installation/backup/migration tool could also be responsible.  Such
tools usually take care to preserve ownership/permission info (they'd be pretty
useless if they didn't), so I lean towards suspecting the biped(s).

On Wed, 27 Oct 2010, Alexander Repenning wrote:

> On Oct 27, 2010, at 2:06 PM, Gary Byers wrote:
>> This should be fixed in the trunk (it's only affected the trunk, for the last
>> month and a half or so) in r14377; see
>> <http://trac.clozure.com/ccl/ticket/768>
>> for the gory details.
> Gory details "if foreign addresses of classes change, there's a good chance that classes won't be found in that table and their instances won't be correctly initialized" make sense. The error did occur first time after a reboot.
> good news: the new CCL32/64 Cocoa apps launch and open listener
> bad news: AltConsole does not build. Did the script change? Details:
> Welcome to Clozure Common Lisp Version 1.6-dev-r14377M-trunk  (DarwinX8632)!
> ? (require :cocoa-application)
> 'make install' of AltConsole.app failed:
> gcc-4.0 -g -O -mmacosx-version-min=10.4 -m32 -Wno-protocol   -c -o main.o main.m
> gcc-4.0 -g -O -mmacosx-version-min=10.4 -m32 -Wno-protocol   -c -o AltConsoleDocument.o AltConsoleDocument.m
> gcc-4.0 -g -O -mmacosx-version-min=10.4 -m32 -Wno-protocol   -c -o AltConsoleDocumentController.o AltConsoleDocumentController.m
> gcc-4.0 -g -O -mmacosx-version-min=10.4 -m32 -Wno-protocol -o AltConsole main.o AltConsoleDocument.o AltConsoleDocumentController.o -framework Cocoa
> mkdir -p .
> rm -rf ./AltConsole.app
> mkdir -p ./AltConsole.app/Contents/Resources/English.lproj
> cp -r -p resource/MainMenu.nib resource/AltConsole.nib resource/Credits.rtf resource/InfoPlist.strings resource/Clear.tiff ./AltConsole.app/Contents/Resources/English.lproj
> AltConsoleDocument.m: In function ?-[AltConsoleDocument windowControllerDidLoadNib:]?:
> AltConsoleDocument.m:105: warning: class 'AltConsoleDocument' does not implement the 'NSToolbarDelegate' protocol
> AltConsoleDocument.m:120: warning: class 'AltConsoleDocument' does not implement the 'NSTextViewDelegate' protocol
> cp: ./AltConsole.app/Contents/Resources/English.lproj/MainMenu.nib: File exists
> cp: ./AltConsole.app/Contents/Resources/English.lproj/MainMenu.nib/.svn/all-wcprops: Permission denied
> cp: ./AltConsole.app/Contents/Resources/English.lproj/MainMenu.nib/.svn/text-base/classes.nib.svn-base: Permission denied
> cp: ./AltConsole.app/Contents/Resources/English.lproj/MainMenu.nib/.svn/text-base/keyedobjects.nib.svn-base: Permission denied
> cp: ./AltConsole.app/Contents/Resources/English.lproj/MainMenu.nib/.svn/tmp/text-base: File exists
> cp: ./AltConsole.app/Contents/Resources/English.lproj/AltConsole.nib/.svn/all-wcprops: Permission denied
> cp: ./AltConsole.app/Contents/Resources/English.lproj/AltConsole.nib/.svn/prop-base/keyedobjects.nib.svn-base: Permission denied
> cp: ./AltConsole.app/Contents/Resources/English.lproj/AltConsole.nib/.svn/text-base/classes.nib.svn-base: Permission denied
> make: *** [AltConsole.app] Error 1
> Alex
> Prof. Alexander Repenning
> University of Colorado
> Computer Science Department
> Boulder, CO 80309-430
> vCard: http://www.cs.colorado.edu/~ralex/AlexanderRepenning.vcf

More information about the Openmcl-devel mailing list