Trying to build alien plugin in linux

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
36 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Trying to build alien plugin in linux

melkyades
Hi, I'm having some troubles with this. I don't know if the steps are correct. I'm using Pharo1.0RC2

First, I thought I could do

Gofer new
    squeaksource: 'MetacelloRepository';
    package: 'ConfigurationOfAlien';
    load.

ConfigurationOfAlien loadVMMaker.

but it responded:

This package depends on the following classes:
  ObjectMemory
  Interpreter
  InterpreterProxy

So I had to manually load VMMaker before. Shouldn't it load VMMaker automatically if it is a dependency when loading alien's VMMaker part?

Started with a pristine image again, loaded VMMaker:

Gofer new
    squeaksource: 'MetacelloRepository';
    package: 'ConfigurationOfVMMaker';
    load.

ConfigurationOfVMMaker load.

then again tried to load alien's VMMaker part. This time loaded but got an error on alienPostInstall because #Alien was not present. Should I have done loadCore before loadVMMaker? If yes, can't it be made to load automatically?

alienPostInstall
    (Smalltalk at: #ParseNode) initialize.
    (Smalltalk at: #Alien) initialize.  <- Failed here.
    (Smalltalk at: #AlienLibrary) initialize.
    (Smalltalk at: #FFICallbackThunk) initialize.
    (Smalltalk at: #Callback) initialize.
    (Smalltalk at: #UnsafeAlien) initialize


Then I did loadCore before loadVMMaker, and got this error, which I asume relates to not having an Alien-aware VM (I'm trying to compile it!):

Alien class>>#ensureInSpecialObjectsArray: "Index probably wrong". I hit proceed because I don't care and then I get almost all I need.

When browsing NewpeakIA32ABIPlugin I notice that there are some missing objects, like PrimErrBadArgument, PrimErrBadIndex or PrimErrNoModification, so that I'm going to have trouble later.

I generate C code and then I get:

Scanning dependencies of target IA32ABI                                                                                                                                           
[  3%] Building C object IA32ABI/CMakeFiles/IA32ABI.dir/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c.o                                          
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘isAlien’:                                                                           
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:154: error: ‘struct VirtualMachine’ has no member named ‘classAlien’                              
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primAddressFieldPut’:                                                               
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:191: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:191: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:191: error: (Each undeclared identifier is reported only once                                     
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:191: error: for each function it appears in.)                                                     
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:193: error: ‘struct VirtualMachine’ has no member named ‘internalIsImmutable’                     
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:194: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:194: error: ‘PrimErrNoModification’ undeclared (first use in this function)                       
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primAlienReplace’:                                                                  
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:237: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:237: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:239: error: ‘struct VirtualMachine’ has no member named ‘classAlien’                              
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:255: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:255: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                             
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:259: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:266: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:269: error: ‘struct VirtualMachine’ has no member named ‘classAlien’                              
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:282: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:288: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:292: error: ‘struct VirtualMachine’ has no member named ‘internalIsImmutable’                     
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:293: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:293: error: ‘PrimErrNoModification’ undeclared (first use in this function)                       
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primAllocateExecutablePage’:                                                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:313: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:313: error: ‘PrimErrNoCMemory’ undeclared (first use in this function)                            
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:315: error: ‘struct VirtualMachine’ has no member named ‘classAlien’                              
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:317: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:317: error: ‘PrimErrNoMemory’ undeclared (first use in this function)                             
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primBoxedFree’:                                                                     
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:338: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:338: error: ‘PrimErrBadReceiver’ undeclared (first use in this function)                          
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:347: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:347: error: ‘PrimErrInappropriate’ undeclared (first use in this function)                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primCallOutDoubleReturn’:                                                           
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:367: error: ‘struct VirtualMachine’ has no member named ‘getStackPointer’                         
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:372: error: ‘nil’ undeclared (first use in this function)                                         
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:374: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primCallOutDoubleReturnWithFloatParms’:                                             
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:393: error: ‘struct VirtualMachine’ has no member named ‘getStackPointer’                         
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:400: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primCallOutFloatReturn’:                                                            
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:419: error: ‘struct VirtualMachine’ has no member named ‘getStackPointer’                         
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:424: error: ‘nil’ undeclared (first use in this function)                                         
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:426: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primCallOutFloatReturnWithFloatParms’:                                              
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:445: error: ‘struct VirtualMachine’ has no member named ‘getStackPointer’                         
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:452: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primCallOutIntegralReturn’:                                                         
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:471: error: ‘struct VirtualMachine’ has no member named ‘getStackPointer’                         
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:476: error: ‘nil’ undeclared (first use in this function)                                         
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:478: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primCallOutIntegralReturnWithFloatParms’:                                           
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:497: error: ‘struct VirtualMachine’ has no member named ‘getStackPointer’                         
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:504: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primCalloc’:                                                                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:521: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:521: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:525: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:525: error: ‘PrimErrNoCMemory’ undeclared (first use in this function)                            
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primDoubleAt’:                                                                      
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:544: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:544: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:547: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:547: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                             
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primDoubleAtPut’:                                                                   
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:576: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:576: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:579: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:579: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                             
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:581: error: ‘struct VirtualMachine’ has no member named ‘internalIsImmutable’                     
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:582: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:582: error: ‘PrimErrNoModification’ undeclared (first use in this function)                       
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primFloatAt’:                                                                       
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:604: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:604: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:607: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:607: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                             
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primFloatAtPut’:                                                                    
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:636: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:636: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:639: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:639: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                             
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:641: error: ‘struct VirtualMachine’ has no member named ‘internalIsImmutable’                     
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:642: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:642: error: ‘PrimErrNoModification’ undeclared (first use in this function)                       
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primFree’:                                                                          
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:659: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:659: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:662: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:662: error: ‘PrimErrInappropriate’ undeclared (first use in this function)                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primInIOProcessEventsFlagAddress’:                                                  
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:683: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:683: error: ‘PrimErrInappropriate’ undeclared (first use in this function)                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primInLibraryFindSymbol’:                                                           
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:704: error: ‘struct VirtualMachine’ has no member named ‘classAlien’                              
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:705: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:705: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:709: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:709: error: ‘PrimErrNotFound’ undeclared (first use in this function)                             
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primLoadLibrary’:                                                                   
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:726: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:726: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:730: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:730: error: ‘PrimErrNotFound’ undeclared (first use in this function)                             
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primMalloc’:                                                                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:746: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:746: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:750: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:750: error: ‘PrimErrNoCMemory’ undeclared (first use in this function)                            
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primReturnFromContextThrough’:                                                      
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:769: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:769: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:787: error: ‘struct VirtualMachine’ has no member named ‘reestablishContextPriorToCallback’       
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:788: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primSignedByteAt’:                                                                  
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:808: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:808: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:811: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:811: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                             
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primSignedByteAtPut’:                                                               
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:836: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:836: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:839: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:839: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                             
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:841: error: ‘struct VirtualMachine’ has no member named ‘internalIsImmutable’                     
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:842: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:842: error: ‘PrimErrNoModification’ undeclared (first use in this function)                       
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primSignedLongAt’:                                                                  
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:864: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:864: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:867: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:867: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                             
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primSignedLongAtPut’:                                                               
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:892: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:892: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:895: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:895: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                             
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:897: error: ‘struct VirtualMachine’ has no member named ‘internalIsImmutable’                     
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:898: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:898: error: ‘PrimErrNoModification’ undeclared (first use in this function)                       
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primSignedLongLongAt’:                                                              
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:923: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:923: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:926: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:926: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                             
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primSignedLongLongAtPut’:                                                           
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:956: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:956: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:959: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:959: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                             
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:961: error: ‘struct VirtualMachine’ has no member named ‘internalIsImmutable’                     
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:962: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:962: error: ‘PrimErrNoModification’ undeclared (first use in this function)                       
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primSignedShortAt’:                                                                 
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:985: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:985: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:988: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:988: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                             
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primSignedShortAtPut’:                                                              
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1013: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                       
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1013: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                         
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1016: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                       
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1016: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                            
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1018: error: ‘struct VirtualMachine’ has no member named ‘internalIsImmutable’                    
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1019: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                       
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1019: error: ‘PrimErrNoModification’ undeclared (first use in this function)                      
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primSizeFieldPut’:                                                                  
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1056: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                       
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1056: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                         
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1058: error: ‘struct VirtualMachine’ has no member named ‘internalIsImmutable’                    
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1059: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                       
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1059: error: ‘PrimErrNoModification’ undeclared (first use in this function)                      
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primStrlenFromStartIndex’:                                                          
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1083: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                       
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1083: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                         
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1086: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                       
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1086: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                            
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primStrlenThroughPointerAtIndex’:                                                   
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1117: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                       
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1117: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                         
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1120: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                       
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1120: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                            
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primUnsignedByteAt’:                                                                
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1155: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                       
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1155: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                         
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1158: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                       
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1158: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                            
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primUnsignedByteAtPut’:                                                             
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1183: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                       
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1183: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                         
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1186: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                       
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1186: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                            
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1188: error: ‘struct VirtualMachine’ has no member named ‘internalIsImmutable’                    
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1189: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                       
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1189: error: ‘PrimErrNoModification’ undeclared (first use in this function)                      
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primUnsignedLongAt’:                                                                
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1211: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                       
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1211: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                         
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1214: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                       
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1214: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                            
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primUnsignedLongAtPut’:                                                             
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1239: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                       
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1239: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                         
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1242: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                       
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1242: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                            
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1244: error: ‘struct VirtualMachine’ has no member named ‘internalIsImmutable’                    
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1245: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                       
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1245: error: ‘PrimErrNoModification’ undeclared (first use in this function)                      
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primUnsignedLongLongAt’:                                                            
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1270: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                       
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1270: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                         
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1273: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                       
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1273: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                            
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primUnsignedLongLongAtPut’:                                                         
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1303: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                       
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1303: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                         
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1306: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                       
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1306: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                            
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1308: error: ‘struct VirtualMachine’ has no member named ‘internalIsImmutable’                    
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1309: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                       
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1309: error: ‘PrimErrNoModification’ undeclared (first use in this function)                      
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primUnsignedShortAt’:                                                               
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1332: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                       
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1332: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                         
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1335: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                       
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1335: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                            
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primUnsignedShortAtPut’:                                                            
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1360: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1360: error: ‘PrimErrBadArgument’ undeclared (first use in this function)
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1363: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1363: error: ‘PrimErrBadIndex’ undeclared (first use in this function)
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1365: error: ‘struct VirtualMachine’ has no member named ‘internalIsImmutable’
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1366: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1366: error: ‘PrimErrNoModification’ undeclared (first use in this function)
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primVarArgsCallOutDoubleReturn’:
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1387: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1387: error: ‘PrimErrBadArgument’ undeclared (first use in this function)
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1394: error: ‘nil’ undeclared (first use in this function)
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1396: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primVarArgsCallOutDoubleReturnWithFloatParms’:
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1416: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1416: error: ‘PrimErrBadArgument’ undeclared (first use in this function)
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1425: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primVarArgsCallOutFloatReturn’:
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1445: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1445: error: ‘PrimErrBadArgument’ undeclared (first use in this function)
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1452: error: ‘nil’ undeclared (first use in this function)
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1454: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primVarArgsCallOutFloatReturnWithFloatParms’:
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1474: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1474: error: ‘PrimErrBadArgument’ undeclared (first use in this function)
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1483: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primVarArgsCallOutIntegralReturn’:
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1503: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1503: error: ‘PrimErrBadArgument’ undeclared (first use in this function)
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1510: error: ‘nil’ undeclared (first use in this function)
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1512: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primVarArgsCallOutIntegralReturnWithFloatParms’:
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1532: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1532: error: ‘PrimErrBadArgument’ undeclared (first use in this function)
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1541: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’
make[2]: *** [IA32ABI/CMakeFiles/IA32ABI.dir/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c.o] Error 1
make[1]: *** [IA32ABI/CMakeFiles/IA32ABI.dir/all] Error 2
make: *** [all] Error 2

Which is probably caused by those missing objects. What else doI have to load? Any help will be appreciated!

Regards,
        Javier.

--
Javier Pimás
Ciudad de Buenos Aires

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Trying to build alien plugin in linux

Stéphane Ducasse
Jean-baptiste is regularly building new vm so I hope that he will reply to you soon.

Stef

On Feb 20, 2010, at 4:59 PM, Javier Pimás wrote:

> Hi, I'm having some troubles with this. I don't know if the steps are correct. I'm using Pharo1.0RC2
>
> First, I thought I could do
>
> Gofer new
>     squeaksource: 'MetacelloRepository';
>     package: 'ConfigurationOfAlien';
>     load.
>
> ConfigurationOfAlien loadVMMaker.
>
> but it responded:
>
> This package depends on the following classes:
>   ObjectMemory
>   Interpreter
>   InterpreterProxy
>
> So I had to manually load VMMaker before. Shouldn't it load VMMaker automatically if it is a dependency when loading alien's VMMaker part?
>
> Started with a pristine image again, loaded VMMaker:
>
> Gofer new
>     squeaksource: 'MetacelloRepository';
>     package: 'ConfigurationOfVMMaker';
>     load.
>
> ConfigurationOfVMMaker load.
>
> then again tried to load alien's VMMaker part. This time loaded but got an error on alienPostInstall because #Alien was not present. Should I have done loadCore before loadVMMaker? If yes, can't it be made to load automatically?
>
> alienPostInstall
>     (Smalltalk at: #ParseNode) initialize.
>     (Smalltalk at: #Alien) initialize.  <- Failed here.
>     (Smalltalk at: #AlienLibrary) initialize.
>     (Smalltalk at: #FFICallbackThunk) initialize.
>     (Smalltalk at: #Callback) initialize.
>     (Smalltalk at: #UnsafeAlien) initialize
>
>
> Then I did loadCore before loadVMMaker, and got this error, which I asume relates to not having an Alien-aware VM (I'm trying to compile it!):
>
> Alien class>>#ensureInSpecialObjectsArray: "Index probably wrong". I hit proceed because I don't care and then I get almost all I need.
>
> When browsing NewpeakIA32ABIPlugin I notice that there are some missing objects, like PrimErrBadArgument, PrimErrBadIndex or PrimErrNoModification, so that I'm going to have trouble later.
>
> I generate C code and then I get:
>
> Scanning dependencies of target IA32ABI                                                                                                                                            
> [  3%] Building C object IA32ABI/CMakeFiles/IA32ABI.dir/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c.o                                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘isAlien’:                                                                            
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:154: error: ‘struct VirtualMachine’ has no member named ‘classAlien’                              
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primAddressFieldPut’:                                                                
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:191: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:191: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:191: error: (Each undeclared identifier is reported only once                                      
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:191: error: for each function it appears in.)                                                      
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:193: error: ‘struct VirtualMachine’ has no member named ‘internalIsImmutable’                      
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:194: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:194: error: ‘PrimErrNoModification’ undeclared (first use in this function)                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primAlienReplace’:                                                                  
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:237: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:237: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:239: error: ‘struct VirtualMachine’ has no member named ‘classAlien’                              
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:255: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:255: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                              
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:259: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:266: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:269: error: ‘struct VirtualMachine’ has no member named ‘classAlien’                              
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:282: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:288: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:292: error: ‘struct VirtualMachine’ has no member named ‘internalIsImmutable’                      
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:293: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:293: error: ‘PrimErrNoModification’ undeclared (first use in this function)                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primAllocateExecutablePage’:                                                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:313: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:313: error: ‘PrimErrNoCMemory’ undeclared (first use in this function)                            
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:315: error: ‘struct VirtualMachine’ has no member named ‘classAlien’                              
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:317: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:317: error: ‘PrimErrNoMemory’ undeclared (first use in this function)                              
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primBoxedFree’:                                                                      
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:338: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:338: error: ‘PrimErrBadReceiver’ undeclared (first use in this function)                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:347: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:347: error: ‘PrimErrInappropriate’ undeclared (first use in this function)                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primCallOutDoubleReturn’:                                                            
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:367: error: ‘struct VirtualMachine’ has no member named ‘getStackPointer’                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:372: error: ‘nil’ undeclared (first use in this function)                                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:374: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primCallOutDoubleReturnWithFloatParms’:                                              
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:393: error: ‘struct VirtualMachine’ has no member named ‘getStackPointer’                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:400: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primCallOutFloatReturn’:                                                            
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:419: error: ‘struct VirtualMachine’ has no member named ‘getStackPointer’                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:424: error: ‘nil’ undeclared (first use in this function)                                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:426: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primCallOutFloatReturnWithFloatParms’:                                              
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:445: error: ‘struct VirtualMachine’ has no member named ‘getStackPointer’                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:452: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primCallOutIntegralReturn’:                                                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:471: error: ‘struct VirtualMachine’ has no member named ‘getStackPointer’                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:476: error: ‘nil’ undeclared (first use in this function)                                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:478: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primCallOutIntegralReturnWithFloatParms’:                                            
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:497: error: ‘struct VirtualMachine’ has no member named ‘getStackPointer’                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:504: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primCalloc’:                                                                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:521: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:521: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:525: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:525: error: ‘PrimErrNoCMemory’ undeclared (first use in this function)                            
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primDoubleAt’:                                                                      
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:544: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:544: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:547: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:547: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                              
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primDoubleAtPut’:                                                                    
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:576: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:576: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:579: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:579: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                              
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:581: error: ‘struct VirtualMachine’ has no member named ‘internalIsImmutable’                      
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:582: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:582: error: ‘PrimErrNoModification’ undeclared (first use in this function)                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primFloatAt’:                                                                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:604: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:604: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:607: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:607: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                              
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primFloatAtPut’:                                                                    
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:636: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:636: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:639: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:639: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                              
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:641: error: ‘struct VirtualMachine’ has no member named ‘internalIsImmutable’                      
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:642: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:642: error: ‘PrimErrNoModification’ undeclared (first use in this function)                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primFree’:                                                                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:659: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:659: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:662: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:662: error: ‘PrimErrInappropriate’ undeclared (first use in this function)                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primInIOProcessEventsFlagAddress’:                                                  
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:683: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:683: error: ‘PrimErrInappropriate’ undeclared (first use in this function)                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primInLibraryFindSymbol’:                                                            
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:704: error: ‘struct VirtualMachine’ has no member named ‘classAlien’                              
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:705: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:705: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:709: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:709: error: ‘PrimErrNotFound’ undeclared (first use in this function)                              
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primLoadLibrary’:                                                                    
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:726: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:726: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:730: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:730: error: ‘PrimErrNotFound’ undeclared (first use in this function)                              
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primMalloc’:                                                                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:746: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:746: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:750: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:750: error: ‘PrimErrNoCMemory’ undeclared (first use in this function)                            
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primReturnFromContextThrough’:                                                      
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:769: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:769: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:787: error: ‘struct VirtualMachine’ has no member named ‘reestablishContextPriorToCallback’        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:788: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primSignedByteAt’:                                                                  
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:808: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:808: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:811: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:811: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                              
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primSignedByteAtPut’:                                                                
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:836: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:836: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:839: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:839: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                              
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:841: error: ‘struct VirtualMachine’ has no member named ‘internalIsImmutable’                      
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:842: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:842: error: ‘PrimErrNoModification’ undeclared (first use in this function)                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primSignedLongAt’:                                                                  
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:864: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:864: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:867: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:867: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                              
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primSignedLongAtPut’:                                                                
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:892: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:892: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:895: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:895: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                              
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:897: error: ‘struct VirtualMachine’ has no member named ‘internalIsImmutable’                      
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:898: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:898: error: ‘PrimErrNoModification’ undeclared (first use in this function)                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primSignedLongLongAt’:                                                              
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:923: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:923: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:926: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:926: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                              
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primSignedLongLongAtPut’:                                                            
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:956: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:956: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:959: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:959: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                              
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:961: error: ‘struct VirtualMachine’ has no member named ‘internalIsImmutable’                      
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:962: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:962: error: ‘PrimErrNoModification’ undeclared (first use in this function)                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primSignedShortAt’:                                                                  
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:985: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:985: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:988: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:988: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                              
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primSignedShortAtPut’:                                                              
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1013: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1013: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1016: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1016: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                            
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1018: error: ‘struct VirtualMachine’ has no member named ‘internalIsImmutable’                    
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1019: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1019: error: ‘PrimErrNoModification’ undeclared (first use in this function)                      
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primSizeFieldPut’:                                                                  
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1056: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1056: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1058: error: ‘struct VirtualMachine’ has no member named ‘internalIsImmutable’                    
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1059: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1059: error: ‘PrimErrNoModification’ undeclared (first use in this function)                      
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primStrlenFromStartIndex’:                                                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1083: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1083: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1086: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1086: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                            
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primStrlenThroughPointerAtIndex’:                                                    
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1117: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1117: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1120: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1120: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                            
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primUnsignedByteAt’:                                                                
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1155: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1155: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1158: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1158: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                            
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primUnsignedByteAtPut’:                                                              
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1183: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1183: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1186: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1186: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                            
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1188: error: ‘struct VirtualMachine’ has no member named ‘internalIsImmutable’                    
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1189: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1189: error: ‘PrimErrNoModification’ undeclared (first use in this function)                      
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primUnsignedLongAt’:                                                                
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1211: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1211: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1214: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1214: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                            
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primUnsignedLongAtPut’:                                                              
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1239: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1239: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1242: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1242: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                            
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1244: error: ‘struct VirtualMachine’ has no member named ‘internalIsImmutable’                    
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1245: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1245: error: ‘PrimErrNoModification’ undeclared (first use in this function)                      
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primUnsignedLongLongAt’:                                                            
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1270: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1270: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1273: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1273: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                            
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primUnsignedLongLongAtPut’:                                                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1303: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1303: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1306: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1306: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                            
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1308: error: ‘struct VirtualMachine’ has no member named ‘internalIsImmutable’                    
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1309: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1309: error: ‘PrimErrNoModification’ undeclared (first use in this function)                      
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primUnsignedShortAt’:                                                                
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1332: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1332: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1335: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1335: error: ‘PrimErrBadIndex’ undeclared (first use in this function)                            
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primUnsignedShortAtPut’:                                                            
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1360: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1360: error: ‘PrimErrBadArgument’ undeclared (first use in this function)
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1363: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1363: error: ‘PrimErrBadIndex’ undeclared (first use in this function)
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1365: error: ‘struct VirtualMachine’ has no member named ‘internalIsImmutable’
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1366: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1366: error: ‘PrimErrNoModification’ undeclared (first use in this function)
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primVarArgsCallOutDoubleReturn’:
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1387: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1387: error: ‘PrimErrBadArgument’ undeclared (first use in this function)
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1394: error: ‘nil’ undeclared (first use in this function)
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1396: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primVarArgsCallOutDoubleReturnWithFloatParms’:
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1416: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1416: error: ‘PrimErrBadArgument’ undeclared (first use in this function)
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1425: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primVarArgsCallOutFloatReturn’:
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1445: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1445: error: ‘PrimErrBadArgument’ undeclared (first use in this function)
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1452: error: ‘nil’ undeclared (first use in this function)
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1454: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primVarArgsCallOutFloatReturnWithFloatParms’:
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1474: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1474: error: ‘PrimErrBadArgument’ undeclared (first use in this function)
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1483: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primVarArgsCallOutIntegralReturn’:
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1503: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1503: error: ‘PrimErrBadArgument’ undeclared (first use in this function)
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1510: error: ‘nil’ undeclared (first use in this function)
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1512: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primVarArgsCallOutIntegralReturnWithFloatParms’:
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1532: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1532: error: ‘PrimErrBadArgument’ undeclared (first use in this function)
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1541: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’
> make[2]: *** [IA32ABI/CMakeFiles/IA32ABI.dir/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c.o] Error 1
> make[1]: *** [IA32ABI/CMakeFiles/IA32ABI.dir/all] Error 2
> make: *** [all] Error 2
>
> Which is probably caused by those missing objects. What else doI have to load? Any help will be appreciated!
>
> Regards,
>         Javier.
>
> --
> Javier Pimás
> Ciudad de Buenos Aires
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Trying to build alien plugin in linux

johnmci
In reply to this post by melkyades
In the 

Cross/plugins/IA32ABI  folder you will find a 
sqVirtualMachine.h
sqVirtualMachine.c 

Use those to replace the *standard* ones which aren't Alien plugin aware. 

On 2010-02-20, at 7:59 AM, Javier Pimás wrote:

I generate C code and then I get:

Scanning dependencies of target IA32ABI                                                                                                                                           
[  3%] Building C object IA32ABI/CMakeFiles/IA32ABI.dir/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c.o                                          
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘isAlien’:                                                                           
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:154: error: ‘struct VirtualMachine’ has no member named ‘classAlien’                              
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primAddressFieldPut’:                                                               
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:191: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:191: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:191: error: (Each undeclared identifier is reported only once              

--
===========================================================================
John M. McIntosh <[hidden email]>   Twitter:  squeaker68882
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===========================================================================





_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Trying to build alien plugin in linux

melkyades
nice! this is way better, but I still have this:

/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primCallOutDoubleReturn’:
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:372: error: ‘nil’ undeclared (first use in this function)
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:372: error: (Each undeclared identifier is reported only once
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:372: error: for each function it appears in.)
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primCallOutFloatReturn’:
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:424: error: ‘nil’ undeclared (first use in this function)
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primCallOutIntegralReturn’:
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:476: error: ‘nil’ undeclared (first use in this function)
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primVarArgsCallOutDoubleReturn’:
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1394: error: ‘nil’ undeclared (first use in this function)
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primVarArgsCallOutFloatReturn’:
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1452: error: ‘nil’ undeclared (first use in this function)
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primVarArgsCallOutIntegralReturn’:
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1510: error: ‘nil’ undeclared (first use in this function)
make[2]: *** [IA32ABI/CMakeFiles/IA32ABI.dir/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c.o] Error 1
make[1]: *** [IA32ABI/CMakeFiles/IA32ABI.dir/all] Error 2
make: *** [all] Error 2


any clue?

Thanks!
            Javier.

2010/2/20 John M McIntosh <[hidden email]>
In the 

Cross/plugins/IA32ABI  folder you will find a 
sqVirtualMachine.h
sqVirtualMachine.c 

Use those to replace the *standard* ones which aren't Alien plugin aware. 

On 2010-02-20, at 7:59 AM, Javier Pimás wrote:

I generate C code and then I get:

Scanning dependencies of target IA32ABI                                                                                                                                           
[  3%] Building C object IA32ABI/CMakeFiles/IA32ABI.dir/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c.o                                          
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘isAlien’:                                                                           
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:154: error: ‘struct VirtualMachine’ has no member named ‘classAlien’                              
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primAddressFieldPut’:                                                               
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:191: error: ‘struct VirtualMachine’ has no member named ‘primitiveFailFor’                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:191: error: ‘PrimErrBadArgument’ undeclared (first use in this function)                          
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:191: error: (Each undeclared identifier is reported only once              

--
===========================================================================
John M. McIntosh <[hidden email]>   Twitter:  squeaker68882
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===========================================================================





_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project



--
Javier Pimás
Ciudad de Buenos Aires

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Trying to build alien plugin in linux

johnmci
Oh fine, stupid tool sets,  update your VMMaker image with: 

Name: Alien-VMMaker-Plugins-John M McIntosh.8
Author: John M McIntosh
Time: 20 February 2010, 1:16:02 pm
UUID: a8e7e044-bf22-4013-85b7-c70d2081cd4e
Ancestors: Alien-VMMaker-Plugins-John M McIntosh.7

nil is null is (void*) 0 YES? Well not in non macintosh build chains since nil is UNDEFINED. Fine change nil to null that is in sq.h


On 2010-02-20, at 11:20 AM, Javier Pimás wrote:

nice! this is way better, but I still have this:

/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primCallOutDoubleReturn’:
--
===========================================================================
John M. McIntosh <[hidden email]>   Twitter:  squeaker68882
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===========================================================================





_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Trying to build alien plugin in linux

johnmci
In reply to this post by melkyades
PS, still looking for the rare fabled? windows developer who can build the plugin for windows.


On 2010-02-20, at 11:20 AM, Javier Pimás wrote:

nice! this is way better, but I still have this:

/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primCallOutDoubleReturn’:

--
===========================================================================
John M. McIntosh <[hidden email]>   Twitter:  squeaker68882
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===========================================================================





_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Trying to build alien plugin in linux

Levente Uzonyi-2
On Sat, 20 Feb 2010, John M McIntosh wrote:

> PS, still looking for the rare fabled? windows developer who can build the plugin for windows.

I'll try if the linux version works.


Levente

>
>
> On 2010-02-20, at 11:20 AM, Javier Pimás wrote:
>
>> nice! this is way better, but I still have this:
>>
>> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ?primCallOutDoubleReturn?:
>
> --
> ===========================================================================
> John M. McIntosh <[hidden email]>   Twitter:  squeaker68882
> Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
> ===========================================================================
>
>
>
>
>
_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Trying to build alien plugin in linux

Hockenberry
In reply to this post by melkyades
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Trying to build alien plugin in linux

melkyades
In reply to this post by johnmci
take it easy man, you look a bit nervous ;) . It is compiling now!!! but....

Alien compiled fine, but here I'm having some other problems, not related to alien itself, but to the vm building.

I had to add B3DAccelerator plugin because there were some errors, and now these errors mutated to:

Linking C executable squeakvm                                                                                                                                                     
B3DAcceleratorPlugin/libB3DAcceleratorPlugin.a(sqOpenGLRenderer.c.o): In function `glRenderVertexBuffer':                                                                         
/home/javier/st/squeak-svn/platforms/Cross/plugins/B3DAcceleratorPlugin/sqOpenGLRenderer.c:846: undefined reference to `glColorMaterial'                                          
/home/javier/st/squeak-svn/platforms/Cross/plugins/B3DAcceleratorPlugin/sqOpenGLRenderer.c:847: undefined reference to `glGetError'                                               
/home/javier/st/squeak-svn/platforms/Cross/plugins/B3DAcceleratorPlugin/sqOpenGLRenderer.c:848: undefined reference to `glEnable'                                                 
/home/javier/st/squeak-svn/platforms/Cross/plugins/B3DAcceleratorPlugin/sqOpenGLRenderer.c:849: undefined reference to `glGetError'

...

/home/javier/st/squeak-svn/platforms/unix/plugins/B3DAcceleratorPlugin/sqUnixOpenGL.c:159: undefined reference to `glLightModelfv'
/home/javier/st/squeak-svn/platforms/unix/plugins/B3DAcceleratorPlugin/sqUnixOpenGL.c:160: undefined reference to `glGetError'
collect2: ld returned 1 exit status
make[2]: *** [squeakvm] Error 1
make[1]: *** [CMakeFiles/squeakvm.dir/all] Error 2
make: *** [all] Error 2


I think it should be linking to opengl lib but it isn't, maybe?. I also read in other thread that SocketPlugin is necesary but it didn't compile either. It said:

[ 34%] Building C object SocketPlugin/CMakeFiles/SocketPlugin.dir/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c.o                      
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c: In function ‘netAddressToInt’:                                                         
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c:206: error: ‘nil’ undeclared (first use in this function)                               
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c:206: error: (Each undeclared identifier is reported only once                           
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c:206: error: for each function it appears in.)                                           
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c: In function ‘primitiveResolverGetAddressInfo’:                                         
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c:324: error: ‘nil’ undeclared (first use in this function)                               
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c: In function ‘primitiveResolverGetAddressInfoResult’:                                   
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c:380: error: ‘nil’ undeclared (first use in this function)                               
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c: In function ‘primitiveResolverGetNameInfoHostResult’:                                  
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c:461: error: ‘nil’ undeclared (first use in this function)                               
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c: In function ‘primitiveResolverGetNameInfoServiceResult’:                               
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c:500: error: ‘nil’ undeclared (first use in this function)                               
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c: In function ‘primitiveResolverHostNameResult’:                                         
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c:539: error: ‘nil’ undeclared (first use in this function)                               
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c: In function ‘primitiveResolverStartNameLookup’:                                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c:626: error: ‘nil’ undeclared (first use in this function)                               
make[2]: *** [SocketPlugin/CMakeFiles/SocketPlugin.dir/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c.o] Error 1                        
make[1]: *** [SocketPlugin/CMakeFiles/SocketPlugin.dir/all] Error 2                                                                                                               
make: *** [all] Error 2 


To solve this I tryied adding a

#define nil ((void*)0L)

as Marco said (for alien plugin) and almost worked, but gave errors, so I used:

#define nil 0L

I have to say that I've compiled some Pharo and Squeak VMs before and didn't get those errors. It may be related to loading VMMaker with ConfigurationOfVMMaker (I always did it manually before), or because of an updated version.

I'm very close to be able to test it, any ideas??

Regards,
           Javier.


On Sat, Feb 20, 2010 at 6:17 PM, John M McIntosh <[hidden email]> wrote:
Oh fine, stupid tool sets,  update your VMMaker image with: 

Name: Alien-VMMaker-Plugins-John M McIntosh.8
Author: John M McIntosh
Time: 20 February 2010, 1:16:02 pm
UUID: a8e7e044-bf22-4013-85b7-c70d2081cd4e
Ancestors: Alien-VMMaker-Plugins-John M McIntosh.7

nil is null is (void*) 0 YES? Well not in non macintosh build chains since nil is UNDEFINED. Fine change nil to null that is in sq.h


On 2010-02-20, at 11:20 AM, Javier Pimás wrote:

nice! this is way better, but I still have this:

/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primCallOutDoubleReturn’:
--
===========================================================================
John M. McIntosh <[hidden email]>   Twitter:  squeaker68882
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===========================================================================







--
Javier Pimás
Ciudad de Buenos Aires

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Trying to build alien plugin in linux

johnmci

On 2010-02-20, at 3:02 PM, Javier Pimás wrote:

take it easy man, you look a bit nervous ;) . It is compiling now!!! but....


It must be all the objective-c compiling i'm doing at the moment..... 


Alien compiled fine, but here I'm having some other problems, not related to alien itself, but to the vm building.

I had to add B3DAccelerator plugin because there were some errors, and now these errors mutated to:

Linking C executable squeakvm                                                                                                                                                     
B3DAcceleratorPlugin/libB3DAcceleratorPlugin.a(sqOpenGLRenderer.c.o): In function `glRenderVertexBuffer':                                                                         
/home/javier/st/squeak-svn/platforms/Cross/plugins/B3DAcceleratorPlugin/sqOpenGLRenderer.c:846: undefined reference to `glColorMaterial'                                          
/home/javier/st/squeak-svn/platforms/Cross/plugins/B3DAcceleratorPlugin/sqOpenGLRenderer.c:847: undefined reference to `glGetError'                                               
/home/javier/st/squeak-svn/platforms/Cross/plugins/B3DAcceleratorPlugin/sqOpenGLRenderer.c:848: undefined reference to `glEnable'                                                 
/home/javier/st/squeak-svn/platforms/Cross/plugins/B3DAcceleratorPlugin/sqOpenGLRenderer.c:849: undefined reference to `glGetError'

...

/home/javier/st/squeak-svn/platforms/unix/plugins/B3DAcceleratorPlugin/sqUnixOpenGL.c:159: undefined reference to `glLightModelfv'
/home/javier/st/squeak-svn/platforms/unix/plugins/B3DAcceleratorPlugin/sqUnixOpenGL.c:160: undefined reference to `glGetError'
collect2: ld returned 1 exit status
make[2]: *** [squeakvm] Error 1
make[1]: *** [CMakeFiles/squeakvm.dir/all] Error 2
make: *** [all] Error 2



[ 34%] Building C object SocketPlugin/CMakeFiles/SocketPlugin.dir/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c.o                       
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c: In function ‘netAddressToInt’:                                                          
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c:206: error: ‘nil’ undeclared (first use in this function)                                
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c:206: error: (Each undeclared identifier is reported only once                            
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c:206: error: for each function it appears in.)                                            

Odd I wonder what is wrong since somewhere *most* of humanity has nil defined somewhere in some header. But you don't seem to. 
Toss a #define nil (void*) 0   in your sq.h 

However in looking at primitiveResolverGetAddressInfoResult  there is no 'nil', it has 'null'  
Could we see your since I don't see any 'nil' 


EXPORT(sqInt) primitiveResolverGetAddressInfoResult(void) {
sqInt addrSize;
char *socketAddress;

interpreterProxy->success(interpreterProxy->isBytes(interpreterProxy->stackValue(0)));
socketAddress = ((char *) (interpreterProxy->firstIndexableField(interpreterProxy->stackValue(0))));
if (interpreterProxy->failed()) {
return null;
}
if (!(interpreterProxy->failed())) {
addrSize = interpreterProxy->byteSizeOf((oopForPointer( socketAddress ) - 4));
sqResolverGetAddressInfoResultSize(socketAddress, addrSize);
}
if (interpreterProxy->failed()) {
return null;
}
interpreterProxy->pop(1);
return null;
}



--
===========================================================================
John M. McIntosh <[hidden email]>   Twitter:  squeaker68882
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===========================================================================





_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Trying to build alien plugin in linux

melkyades
mine uses it. I generated this from an image that I crated this afternoon, with RC2 and latest VMMaker from monticello. It says:

EXPORT(sqInt) primitiveResolverGetAddressInfoResult(void) {
    sqInt addrSize;
    char *socketAddress;

    interpreterProxy->success(interpreterProxy->isBytes(interpreterProxy->stackValue(0)));
    socketAddress = ((char *) (interpreterProxy->firstIndexableField(interpreterProxy->stackValue(0))));
    if (interpreterProxy->failed()) {
        return null;
    }
    if (!(interpreterProxy->failed())) {
        addrSize = interpreterProxy->byteSizeOf((oopForPointer( socketAddress ) - nil));
        sqResolverGetAddressInfoResultSize(socketAddress, addrSize);
    }
    if (interpreterProxy->failed()) {
        return null;
    }
    interpreterProxy->pop(1);
    return null;
}

Regards,
             Javier.

On Sat, Feb 20, 2010 at 8:34 PM, John M McIntosh <[hidden email]> wrote:

On 2010-02-20, at 3:02 PM, Javier Pimás wrote:

take it easy man, you look a bit nervous ;) . It is compiling now!!! but....


It must be all the objective-c compiling i'm doing at the moment..... 


Alien compiled fine, but here I'm having some other problems, not related to alien itself, but to the vm building.

I had to add B3DAccelerator plugin because there were some errors, and now these errors mutated to:

Linking C executable squeakvm                                                                                                                                                     
B3DAcceleratorPlugin/libB3DAcceleratorPlugin.a(sqOpenGLRenderer.c.o): In function `glRenderVertexBuffer':                                                                         
/home/javier/st/squeak-svn/platforms/Cross/plugins/B3DAcceleratorPlugin/sqOpenGLRenderer.c:846: undefined reference to `glColorMaterial'                                          
/home/javier/st/squeak-svn/platforms/Cross/plugins/B3DAcceleratorPlugin/sqOpenGLRenderer.c:847: undefined reference to `glGetError'                                               
/home/javier/st/squeak-svn/platforms/Cross/plugins/B3DAcceleratorPlugin/sqOpenGLRenderer.c:848: undefined reference to `glEnable'                                                 
/home/javier/st/squeak-svn/platforms/Cross/plugins/B3DAcceleratorPlugin/sqOpenGLRenderer.c:849: undefined reference to `glGetError'

...

/home/javier/st/squeak-svn/platforms/unix/plugins/B3DAcceleratorPlugin/sqUnixOpenGL.c:159: undefined reference to `glLightModelfv'
/home/javier/st/squeak-svn/platforms/unix/plugins/B3DAcceleratorPlugin/sqUnixOpenGL.c:160: undefined reference to `glGetError'
collect2: ld returned 1 exit status
make[2]: *** [squeakvm] Error 1
make[1]: *** [CMakeFiles/squeakvm.dir/all] Error 2
make: *** [all] Error 2



[ 34%] Building C object SocketPlugin/CMakeFiles/SocketPlugin.dir/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c.o                       
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c: In function ‘netAddressToInt’:                                                          
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c:206: error: ‘nil’ undeclared (first use in this function)                                
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c:206: error: (Each undeclared identifier is reported only once                            
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c:206: error: for each function it appears in.)                                            

Odd I wonder what is wrong since somewhere *most* of humanity has nil defined somewhere in some header. But you don't seem to. 
Toss a #define nil (void*) 0   in your sq.h 

However in looking at primitiveResolverGetAddressInfoResult  there is no 'nil', it has 'null'  
Could we see your since I don't see any 'nil' 


EXPORT(sqInt) primitiveResolverGetAddressInfoResult(void) {
sqInt addrSize;
char *socketAddress;

interpreterProxy->success(interpreterProxy->isBytes(interpreterProxy->stackValue(0)));
socketAddress = ((char *) (interpreterProxy->firstIndexableField(interpreterProxy->stackValue(0))));
if (interpreterProxy->failed()) {
return null;
}
if (!(interpreterProxy->failed())) {
addrSize = interpreterProxy->byteSizeOf((oopForPointer( socketAddress ) - 4));
sqResolverGetAddressInfoResultSize(socketAddress, addrSize);
}
if (interpreterProxy->failed()) {
return null;
}
interpreterProxy->pop(1);
return null;
}



--
===========================================================================
John M. McIntosh <[hidden email]>   Twitter:  squeaker68882
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===========================================================================







--
Javier Pimás
Ciudad de Buenos Aires

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Trying to build alien plugin in linux

johnmci
Ok, well that looks like a problem with VMMaker, so I'll cc the vm-dev list

Note the 
        addrSize = interpreterProxy->byteSizeOf((oopForPointer( socketAddress ) - nil));
where as I have 
addrSize = interpreterProxy->byteSizeOf((oopForPointersocketAddress ) - 4));

So I think the current VMMaker build process is broken? 

Fortunately it won't compile so the person can't get to the point of having the VM crash. 



On 2010-02-20, at 3:47 PM, Javier Pimás wrote:

mine uses it. I generated this from an image that I crated this afternoon, with RC2 and latest VMMaker from monticello. It says:

EXPORT(sqInt) primitiveResolverGetAddressInfoResult(void) {
    sqInt addrSize;
    char *socketAddress;

    interpreterProxy->success(interpreterProxy->isBytes(interpreterProxy->stackValue(0)));
    socketAddress = ((char *) (interpreterProxy->firstIndexableField(interpreterProxy->stackValue(0))));
    if (interpreterProxy->failed()) {
        return null;
    }
    if (!(interpreterProxy->failed())) {
        addrSize = interpreterProxy->byteSizeOf((oopForPointer( socketAddress ) - nil));
        sqResolverGetAddressInfoResultSize(socketAddress, addrSize);
    }
    if (interpreterProxy->failed()) {
        return null;
    }
    interpreterProxy->pop(1);
    return null;
}

Regards,
             Javier.

On Sat, Feb 20, 2010 at 8:34 PM, John M McIntosh <[hidden email]> wrote:

On 2010-02-20, at 3:02 PM, Javier Pimás wrote:

take it easy man, you look a bit nervous ;) . It is compiling now!!! but....


It must be all the objective-c compiling i'm doing at the moment..... 


Alien compiled fine, but here I'm having some other problems, not related to alien itself, but to the vm building.

I had to add B3DAccelerator plugin because there were some errors, and now these errors mutated to:

Linking C executable squeakvm                                                                                                                                                     
B3DAcceleratorPlugin/libB3DAcceleratorPlugin.a(sqOpenGLRenderer.c.o): In function `glRenderVertexBuffer':                                                                         
/home/javier/st/squeak-svn/platforms/Cross/plugins/B3DAcceleratorPlugin/sqOpenGLRenderer.c:846: undefined reference to `glColorMaterial'                                          
/home/javier/st/squeak-svn/platforms/Cross/plugins/B3DAcceleratorPlugin/sqOpenGLRenderer.c:847: undefined reference to `glGetError'                                               
/home/javier/st/squeak-svn/platforms/Cross/plugins/B3DAcceleratorPlugin/sqOpenGLRenderer.c:848: undefined reference to `glEnable'                                                 
/home/javier/st/squeak-svn/platforms/Cross/plugins/B3DAcceleratorPlugin/sqOpenGLRenderer.c:849: undefined reference to `glGetError'

...

/home/javier/st/squeak-svn/platforms/unix/plugins/B3DAcceleratorPlugin/sqUnixOpenGL.c:159: undefined reference to `glLightModelfv'
/home/javier/st/squeak-svn/platforms/unix/plugins/B3DAcceleratorPlugin/sqUnixOpenGL.c:160: undefined reference to `glGetError'
collect2: ld returned 1 exit status
make[2]: *** [squeakvm] Error 1
make[1]: *** [CMakeFiles/squeakvm.dir/all] Error 2
make: *** [all] Error 2



[ 34%] Building C object SocketPlugin/CMakeFiles/SocketPlugin.dir/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c.o                       
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c: In function ‘netAddressToInt’:                                                          
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c:206: error: ‘nil’ undeclared (first use in this function)                                
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c:206: error: (Each undeclared identifier is reported only once                            
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c:206: error: for each function it appears in.)                                            

Odd I wonder what is wrong since somewhere *most* of humanity has nil defined somewhere in some header. But you don't seem to. 
Toss a #define nil (void*) 0   in your sq.h 

However in looking at primitiveResolverGetAddressInfoResult  there is no 'nil', it has 'null'  
Could we see your since I don't see any 'nil' 


EXPORT(sqInt) primitiveResolverGetAddressInfoResult(void) {
sqInt addrSize;
char *socketAddress;

interpreterProxy->success(interpreterProxy->isBytes(interpreterProxy->stackValue(0)));
socketAddress = ((char *) (interpreterProxy->firstIndexableField(interpreterProxy->stackValue(0))));
if (interpreterProxy->failed()) {
return null;
}
if (!(interpreterProxy->failed())) {
addrSize = interpreterProxy->byteSizeOf((oopForPointer( socketAddress ) - 4));
sqResolverGetAddressInfoResultSize(socketAddress, addrSize);
}
if (interpreterProxy->failed()) {
return null;
}
interpreterProxy->pop(1);
return null;
}



--
===========================================================================
John M. McIntosh <[hidden email]>   Twitter:  squeaker68882
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===========================================================================







--
Javier Pimás
Ciudad de Buenos Aires

--
===========================================================================
John M. McIntosh <[hidden email]>   Twitter:  squeaker68882
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===========================================================================





_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: [Vm-dev] Re: Trying to build alien plugin in linux

Levente Uzonyi-2
On Sat, 20 Feb 2010, John M McIntosh wrote:

> So I think the current VMMaker build process is broken?

In Squeak I get the expected line (using SlangBrowser and VMMaker-ar.158):
  addrSize = interpreterProxy->byteSizeOf((oopForPointer( socketAddress ) - 4));

So I guess it's a Pharo issue.


Levente

>
> Fortunately it won't compile so the person can't get to the point of
> having the VM crash.


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: [Vm-dev] Re: Trying to build alien plugin in linux

Stéphane Ducasse
May be a dab initialize of the variable "WordPer..."
On Feb 21, 2010, at 1:19 AM, Levente Uzonyi wrote:

> On Sat, 20 Feb 2010, John M McIntosh wrote:
>
>> So I think the current VMMaker build process is broken?
>
> In Squeak I get the expected line (using SlangBrowser and VMMaker-ar.158):
> addrSize = interpreterProxy->byteSizeOf((oopForPointer( socketAddress ) - 4));
>
> So I guess it's a Pharo issue.
>
>
> Levente
>
>>
>> Fortunately it won't compile so the person can't get to the point of
>> having the VM crash.
>
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: [Vm-dev] Re: Trying to build alien plugin in linux

David T. Lewis
In reply to this post by Levente Uzonyi-2
On Sun, Feb 21, 2010 at 01:19:36AM +0100, Levente Uzonyi wrote:
> On Sat, 20 Feb 2010, John M McIntosh wrote:
>
> > So I think the current VMMaker build process is broken?
>
> In Squeak I get the expected line (using SlangBrowser and VMMaker-ar.158):
>   addrSize = interpreterProxy->byteSizeOf((oopForPointer( socketAddress ) - 4));
>
> So I guess it's a Pharo issue.

It is definitely Pharo-related, but I can't quite spot the source of the
problem.

In a Pharo image:

  ObjectMemory baseHeaderSize ==> nil
  ObjectMemory bytesPerWord ==> nil

That is the reason for the incorrect code generation.

If you evaluate this, the object memory constants will be set up properly:

  ObjectMemory initializeWithBytesToWord: Smalltalk wordSize

At that point, I expect that the code generation problem will be probably
be fixed.

What I can't figure out is why this is not being initialized properly
in a Pharo image. I'm fumbling my way through this with a borrowed
computer (out of town this weekend, forgot to bring my laptop) and
limited expertise with Pharo, so maybe someone can figure it out from
the above clues.

HTH,
Dave


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: [Vm-dev] Re: Trying to build alien plugin in linux

melkyades
Thanks! That did the trick!

Regards,
             Javier.

On Sun, Feb 21, 2010 at 1:20 PM, David T. Lewis <[hidden email]> wrote:

On Sun, Feb 21, 2010 at 01:19:36AM +0100, Levente Uzonyi wrote:
> On Sat, 20 Feb 2010, John M McIntosh wrote:
>
> > So I think the current VMMaker build process is broken?
>
> In Squeak I get the expected line (using SlangBrowser and VMMaker-ar.158):
>               addrSize = interpreterProxy->byteSizeOf((oopForPointer( socketAddress ) - 4));
>
> So I guess it's a Pharo issue.

It is definitely Pharo-related, but I can't quite spot the source of the
problem.

In a Pharo image:

 ObjectMemory baseHeaderSize ==> nil
 ObjectMemory bytesPerWord ==> nil

That is the reason for the incorrect code generation.

If you evaluate this, the object memory constants will be set up properly:

 ObjectMemory initializeWithBytesToWord: Smalltalk wordSize

At that point, I expect that the code generation problem will be probably
be fixed.

What I can't figure out is why this is not being initialized properly
in a Pharo image. I'm fumbling my way through this with a borrowed
computer (out of town this weekend, forgot to bring my laptop) and
limited expertise with Pharo, so maybe someone can figure it out from
the above clues.

HTH,
Dave




--
Javier Pimás
Ciudad de Buenos Aires

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Trying to build alien plugin in linux

melkyades
In reply to this post by melkyades
Solved the other problem, now I'm back to Alien. There are more issues.

There are some missing functions:

Linking C executable squeakvm
CMakeFiles/squeakvm.dir/home/javier/st/squeak-svn/platforms/Cross/vm/sqVirtualMachine.c.o: In function `sqGetInterpreterProxy':
/home/javier/st/squeak-svn/platforms/Cross/vm/sqVirtualMachine.c:358: undefined reference to `internalIsImmutable'
/home/javier/st/squeak-svn/platforms/Cross/vm/sqVirtualMachine.c:359: undefined reference to `internalIsMutable'
/home/javier/st/squeak-svn/platforms/Cross/vm/sqVirtualMachine.c:360: undefined reference to `primitiveFailFor'
/home/javier/st/squeak-svn/platforms/Cross/vm/sqVirtualMachine.c:361: undefined reference to `classAlien'
/home/javier/st/squeak-svn/platforms/Cross/vm/sqVirtualMachine.c:362: undefined reference to `getStackPointer'
/home/javier/st/squeak-svn/platforms/Cross/vm/sqVirtualMachine.c:363: undefined reference to `sendInvokeCallbackStackRegistersJmpbuf'
/home/javier/st/squeak-svn/platforms/Cross/vm/sqVirtualMachine.c:364: undefined reference to `reestablishContextPriorToCallback'
/home/javier/st/squeak-svn/platforms/Cross/vm/sqVirtualMachine.c:365: undefined reference to `classUnsafeAlien'
collect2: ld returned 1 exit status
make[2]: *** [squeakvm] Error 1
make[1]: *** [CMakeFiles/squeakvm.dir/all] Error 2
make: *** [all] Error 2


I'm so close...

Thanks,
           Javier.


On Sat, Feb 20, 2010 at 8:02 PM, Javier Pimás <[hidden email]> wrote:
take it easy man, you look a bit nervous ;) . It is compiling now!!! but....

Alien compiled fine, but here I'm having some other problems, not related to alien itself, but to the vm building.

I had to add B3DAccelerator plugin because there were some errors, and now these errors mutated to:

Linking C executable squeakvm                                                                                                                                                     
B3DAcceleratorPlugin/libB3DAcceleratorPlugin.a(sqOpenGLRenderer.c.o): In function `glRenderVertexBuffer':                                                                         
/home/javier/st/squeak-svn/platforms/Cross/plugins/B3DAcceleratorPlugin/sqOpenGLRenderer.c:846: undefined reference to `glColorMaterial'                                          
/home/javier/st/squeak-svn/platforms/Cross/plugins/B3DAcceleratorPlugin/sqOpenGLRenderer.c:847: undefined reference to `glGetError'                                               
/home/javier/st/squeak-svn/platforms/Cross/plugins/B3DAcceleratorPlugin/sqOpenGLRenderer.c:848: undefined reference to `glEnable'                                                 
/home/javier/st/squeak-svn/platforms/Cross/plugins/B3DAcceleratorPlugin/sqOpenGLRenderer.c:849: undefined reference to `glGetError'

...

/home/javier/st/squeak-svn/platforms/unix/plugins/B3DAcceleratorPlugin/sqUnixOpenGL.c:159: undefined reference to `glLightModelfv'
/home/javier/st/squeak-svn/platforms/unix/plugins/B3DAcceleratorPlugin/sqUnixOpenGL.c:160: undefined reference to `glGetError'
collect2: ld returned 1 exit status
make[2]: *** [squeakvm] Error 1
make[1]: *** [CMakeFiles/squeakvm.dir/all] Error 2
make: *** [all] Error 2


I think it should be linking to opengl lib but it isn't, maybe?. I also read in other thread that SocketPlugin is necesary but it didn't compile either. It said:

[ 34%] Building C object SocketPlugin/CMakeFiles/SocketPlugin.dir/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c.o                      
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c: In function ‘netAddressToInt’:                                                         
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c:206: error: ‘nil’ undeclared (first use in this function)                               
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c:206: error: (Each undeclared identifier is reported only once                           
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c:206: error: for each function it appears in.)                                           
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c: In function ‘primitiveResolverGetAddressInfo’:                                         
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c:324: error: ‘nil’ undeclared (first use in this function)                               
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c: In function ‘primitiveResolverGetAddressInfoResult’:                                   
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c:380: error: ‘nil’ undeclared (first use in this function)                               
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c: In function ‘primitiveResolverGetNameInfoHostResult’:                                  
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c:461: error: ‘nil’ undeclared (first use in this function)                               
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c: In function ‘primitiveResolverGetNameInfoServiceResult’:                               
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c:500: error: ‘nil’ undeclared (first use in this function)                               
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c: In function ‘primitiveResolverHostNameResult’:                                         
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c:539: error: ‘nil’ undeclared (first use in this function)                               
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c: In function ‘primitiveResolverStartNameLookup’:                                        
/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c:626: error: ‘nil’ undeclared (first use in this function)                               
make[2]: *** [SocketPlugin/CMakeFiles/SocketPlugin.dir/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/SocketPlugin/SocketPlugin.c.o] Error 1                        
make[1]: *** [SocketPlugin/CMakeFiles/SocketPlugin.dir/all] Error 2                                                                                                               
make: *** [all] Error 2 


To solve this I tryied adding a

#define nil ((void*)0L)

as Marco said (for alien plugin) and almost worked, but gave errors, so I used:

#define nil 0L

I have to say that I've compiled some Pharo and Squeak VMs before and didn't get those errors. It may be related to loading VMMaker with ConfigurationOfVMMaker (I always did it manually before), or because of an updated version.

I'm very close to be able to test it, any ideas??

Regards,
           Javier.



On Sat, Feb 20, 2010 at 6:17 PM, John M McIntosh <[hidden email]> wrote:
Oh fine, stupid tool sets,  update your VMMaker image with: 

Name: Alien-VMMaker-Plugins-John M McIntosh.8
Author: John M McIntosh
Time: 20 February 2010, 1:16:02 pm
UUID: a8e7e044-bf22-4013-85b7-c70d2081cd4e
Ancestors: Alien-VMMaker-Plugins-John M McIntosh.7

nil is null is (void*) 0 YES? Well not in non macintosh build chains since nil is UNDEFINED. Fine change nil to null that is in sq.h


On 2010-02-20, at 11:20 AM, Javier Pimás wrote:

nice! this is way better, but I still have this:

/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c: In function ‘primCallOutDoubleReturn’:
--
===========================================================================
John M. McIntosh <[hidden email]>   Twitter:  squeaker68882
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===========================================================================







--
Javier Pimás
Ciudad de Buenos Aires



--
Javier Pimás
Ciudad de Buenos Aires

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: [Vm-dev] Re: Trying to build alien plugin in linux

Adrian Lienhard
In reply to this post by David T. Lewis
I've loaded VMMaker into a new Pharo image and it produces an interpreter that I can successfully compile. After loading VMMaker, ObjectMemory baseHeaderSize is nil as expected: BaseHeaderSize and BytesPerWord are initialized through #initializeWithBytesToWord:, which is called by #generateInterpreterFile. Hence, both variables are nil until VMMaker is run the first time.

Cheers,
Adrian

On Feb 21, 2010, at 17:20 , David T. Lewis wrote:

> On Sun, Feb 21, 2010 at 01:19:36AM +0100, Levente Uzonyi wrote:
>> On Sat, 20 Feb 2010, John M McIntosh wrote:
>>
>>> So I think the current VMMaker build process is broken?
>>
>> In Squeak I get the expected line (using SlangBrowser and VMMaker-ar.158):
>> addrSize = interpreterProxy->byteSizeOf((oopForPointer( socketAddress ) - 4));
>>
>> So I guess it's a Pharo issue.
>
> It is definitely Pharo-related, but I can't quite spot the source of the
> problem.
>
> In a Pharo image:
>
>  ObjectMemory baseHeaderSize ==> nil
>  ObjectMemory bytesPerWord ==> nil
>
> That is the reason for the incorrect code generation.
>
> If you evaluate this, the object memory constants will be set up properly:
>
>  ObjectMemory initializeWithBytesToWord: Smalltalk wordSize
>
> At that point, I expect that the code generation problem will be probably
> be fixed.
>
> What I can't figure out is why this is not being initialized properly
> in a Pharo image. I'm fumbling my way through this with a borrowed
> computer (out of town this weekend, forgot to bring my laptop) and
> limited expertise with Pharo, so maybe someone can figure it out from
> the above clues.
>
> HTH,
> Dave
>
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Trying to build alien plugin in linux

johnmci
In reply to this post by melkyades
You've not loaded 
Name: Alien-VMMaker-Support-John M McIntosh.8
Author: John M McIntosh
Time: 11 January 2010, 12:53:14 am
UUID: 6953c7ab-4924-48b0-9984-f15ec7fb7d2b

into your vmmaker image

so it's not build the interp.c pieces.


On 2010-02-22, at 8:18 AM, Javier Pimás wrote:

internalIsImmutable

--
===========================================================================
John M. McIntosh <[hidden email]>   Twitter:  squeaker68882
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===========================================================================





_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Trying to build alien plugin in linux

melkyades
Nice!!!!!!!! It's compiling now. Now, I loaded tests, and here are the results:

37 run, 17 passed, 0 failures, 20 errors.

TestCallingSequenceChar10Long2
TestCallingSequenceChar2LongLong2
TestCallingSequenceChar8Long2
TestCallingSequenceChar9Long2
TestCallingSequenceCharLongLong2
TestCallingSequenceChars
TestCallingSequenceDoubles14
TestCallingSequenceDoubles2
TestCallingSequenceFloats13
TestCallingSequenceFloats14
TestCallingSequenceFloats2
TestCallingSequenceFloats2WithInteger
TestCallingSequenceFloats2WithInteger2
TestCallingSequenceFloats7
TestCallingSequenceInt
TestCallingSequenceInt8
TestCallingSequenceIntWithFloatArgs
TestCallingSequenceLongLong2
TestCallingSequenceShort
TestCallingSequenceString


It is failing in places where it does primLoadLibrary: 'IA32ABI'. Why should it try to load itself, if it's compiled as an internal plugin? I compiled it as external too but didn't work either.

Other question, can classic FFI and Alien live nicely together (I mean have x plugin use classic FFI while y uses Alien)?

One more: should I use IA32ABIPlugin or IA32ABIPluginAttic? You can't have both in, right?

Syntax highligthing is broken for Alien primitive methods like these:

<primitive: 'primUnsignedShortAtPut' error: errorCode module: 'IA32ABI'>

Lastly, as I said when I loaded Alien Core the first time, I got this error while loading it:

Alien class>>#ensureInSpecialObjectsArray: "Index probably wrong".

What should I do about that? ignore it?


That's all for now, thanks!

Javier.

On Mon, Feb 22, 2010 at 4:32 PM, John M McIntosh <[hidden email]> wrote:
You've not loaded 
Name: Alien-VMMaker-Support-John M McIntosh.8
Author: John M McIntosh
Time: 11 January 2010, 12:53:14 am
UUID: 6953c7ab-4924-48b0-9984-f15ec7fb7d2b

into your vmmaker image

so it's not build the interp.c pieces.


On 2010-02-22, at 8:18 AM, Javier Pimás wrote:

internalIsImmutable

--
===========================================================================
John M. McIntosh <[hidden email]>   Twitter:  squeaker68882
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===========================================================================







--
Javier Pimás
Ciudad de Buenos Aires

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
12