Thanks, it works fine now. I use an obsolete version? Strange. I downloaded the lastest version of VMMaker. By the way, the produced vm is fairly slow. I do not know whether there is an option somewhere for inline or something... Thanks, Alexandre On 7 Sep 2010, at 15:05, John M McIntosh wrote:
Ah well actually you are attempting to build an obsolete VM. However we might as well ensure you can do that for historical reasons.
I'm not sure why the setMicroSecondsandOffset does not resolve into a default setMicroSecondsandOffset in the interp.c since mine has /* A default substitute for unimplemented ioUtcWithOffset external function. */
sqInt setMicroSecondsandOffset(sqLong * microSeconds, int * utcOffset) { flag("toRemove"); return -1; }
However buried in a email message from last March is a slight error which prevented the ioUtcWithOffset() defined in sqMacTime.c from being used. Therefore I've altered sqMacTime.c & sqPlatformSpecific.h in the Mac OS carbon SVN tree. You should check out a new copy of that.
Ok, so building an obsolete VM might be fun and let's see if you can do it, but you should build a 5.x VM from the iOS tree.
See platform/iOS/vm/SqueakPureObjc.xcodeproj in order to build SqueakPureObjc The cocoa based 5.x VM for OSX 32bit & 64bit supporting a 32bit image format SqueakPureObjc64*64 The cocoa based 5.x VM for OSX 64bit supporting a 64bit image format SqueakNoOGLIPhone The cocoa based 2.x VM for the iOS devices
Also lurking in there is the SqueakPureObjcCogVM.xcodeproj which lets you build: SqueakNoOGLIPhone The cocoa based Cog Stack Based VM for iOS devices SqueakPureObjc The cocoa based Cog JIT VM for OSX 32bit. However that xcodeproj is still a work in progress and Eliot and I are still merging changes.
Later open SqueakPureObjc.xcodeproj compile link you'll find a pre-existing src file that is somewhat current. Swap in a newer one if needbe.
On 2010-09-07, at 10:00 AM, Alexandre Bergel wrote:
Undefined symbols: "_setMicroSecondsandOffset", referenced from: _primitiveUtcWithOffset in interp.o ld: symbol(s) not found collect2: ld returned 1 exit status -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Where this _setMicroSecondsandOffset is defined?
No idea whether this is related or not, but I had to leave TestOSAPlugin out when generating the vm code. This plugin cannot be produced apparently, a class is missing.
Cheers, Alexandre
-- =========================================================================== John M. McIntosh <johnmci@smalltalkconsulting.com> Twitter: squeaker68882 Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com ===========================================================================
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.