[Vm-dev] Building Unix 3.9-8 Squeak VM On Intel Mac
Ken G. Brown
kbrown at mac.com
Mon Apr 16 16:50:21 UTC 2007
Further:
The trace sample from Activity Monitor below was taken when Squeak3.9-8.app shows 100% cpu, trying to run with squeak-dev-beta-107.image. Can anyone shed some light on what is happening?
Thx,
Ken
-------------
2007-04-16 10:40:53.063 sample[1457] thread_read_stack: stack appears to be in inconsistent state to trace. Truncating stack.
Analysis of sampling pid 1445 every 10.000000 milliseconds
Call graph:
299 Thread_0f07
299 -[NSApplication run]
299 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
299 _DPSNextEvent
299 AEProcessAppleEvent
299 aeProcessAppleEvent
299 dispatchEventAndSendReply(AEDesc const*, AEDesc*)
299 aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned long, unsigned char*)
299 _NSAppleEventManagerGenericHandler
299 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:]
299 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:]
299 -[NSApplication(NSAppleEventHandling) _handleAEOpen:]
299 -[NSApplication _sendFinishLaunchingNotification]
299 -[NSApplication _postDidFinishNotification]
299 -[NSNotificationCenter postNotificationName:object:]
299 -[NSNotificationCenter postNotificationName:object:userInfo:]
299 _CFXNotificationPostNotification
299 __CFXNotificationPost
299 setUpWindow
299 -[SqueakView setFrame:]
299 -[SqueakView setFrame:]
299 Thread_1003
299 _pthread_body
299 PrivateMPEntryPoint
297 kevent
297 kevent
2 _sigtramp
2 _sigtramp
299 Thread_1103
299 _pthread_body
299 PrivateMPEntryPoint
299 TNodeSyncTask::SyncTaskProc(void*)
299 MPWaitOnQueue
299 semaphore_wait_signal_trap
299 semaphore_wait_signal_trap
299 Thread_1203
299 _pthread_body
299 forkThreadForFunction
299 -[NSUIHeartBeat _heartBeatThread:]
297 syscall_thread_switch
297 syscall_thread_switch
2 -[NSUIHeartBeat _heartBeatThread:]
Total number in stack (recursive counted multiple, when >=5):
Sort by top of stack, same collapsed (when >= 5):
-[SqueakView setFrame:] 299
semaphore_wait_signal_trap 299
kevent 297
syscall_thread_switch 297
Sample analysis of process 1445 written to file /dev/stdout
Sampling process 1445 each 10 msecs 300 times
-------------
> Working with Craig to get the Spoon stuff working on MacIntel (MacPro 10.4.9). I installed Xcode 2.4.1 to get gdb and compilers but did the following from Terminal:
>
>Tried compiling the Unix sources from Squeak-3.9-8.src.tar.gz at <http://squeakvm.org/unix/> according to the HowToBuildFromSource.pdf and incorporated Todd's instructions below, and tried opening Sq-dev-beta-107.image but it hangs with 100% cpu. Have the 3.9 sources.
>Also tried an older image Squeak3.7a-5905.image and V3 sources with same results.
>Ideas anyone?
> Ken
>
>>SUCCESS!
>>
>>For those who come after and might search the archives - I got a build of the Unix VM working on an Intel MacBook.
>>
>>Untar the source, cd to Squeak-3.7-7/platforms/unix
>>config/configure --without-x (unless you want to fiddle with not found gl.h files in the X11 display lib)
>>
>>vi vm-display-Quartz/sqUnixQuartz.m
>>change #define USE_SPINLOCK 1 to 0
>>
>>make INTERP=interp
>>make INTERP=interp Squeak.app
>>
>>drag the resulting Squeak-3.7-7.app into /Applications
> >
>>On Mar 28, 2006, at 11:50 PM, Todd Blanchard wrote:
>>
>>>I've got a new MacBook and want to build a native version of the Unix VM.
>>>
>>>I'm stymied by the existence of powerpc assembly in sqUnixQuartz.m
>>>
>>>Any hints on how to work around this?
>>>
>>>Thanks,
>>>Todd Blanchard
More information about the Vm-dev
mailing list