can't compile for SGI Irix 6.2

Keith A. Fredericks keith at kellysoftware.com
Mon Mar 10 10:50:42 PST 1997


I am trying to build Kaffe version 0.8.2 for Irix 6.2 for the
R4400 using GNU make.  The C compiler does not like threads.h
and quits with the following message.  Does anyone have a fix
for this?:

cc -g  -I. -I. -I./../../config -I../../config -I../../include
-DINTERPRETER -I./intrp   -DKVER=\"0.82\" -c  thread.c
cfe: Warning 624: ./gtypes.h, line 68: Trailing comma in enumerator list
        true    = 1,
        ----    ---^
cfe: Error: thread.c, line 155: Syntax Error
        do
{                                                                   
void** ptr;                                                     int
i;                                                          asm("move
%0, $sp" : "=r"
(ptr));                                                                                              
((threadContext[(currentThread)->PrivateInfo]))->restorePoint =
0;                                             
((threadContext[(currentThread)->PrivateInfo]))->stackEnd =
(void*)ptr;                                
((threadContext[(currentThread)->PrivateInfo]))->stackBase =
((threadContext[(currentThread)->PrivateInfo]))->stackEnd -
threadStackSize;                      
((threadContext[(currentThread)->PrivateInfo]))->flags = 1 ;           
} while(0) ;
       
----                                                                   
-----------                                                    
------                                                         
-------------------^
cfe: Error: thread.c, line 155: Syntax Error
        do
{                                                                   
void** ptr;                                                     int
i;                                                          asm("move
%0, $sp" : "=r"
(ptr));                                                                                              
((threadContext[(currentThread)->PrivateInfo]))->restorePoint =
0;                                             
((threadContext[(currentThread)->PrivateInfo]))->stackEnd =
(void*)ptr;                                
((threadContext[(currentThread)->PrivateInfo]))->stackBase =
((threadContext[(currentThread)->PrivateInfo]))->stackEnd -
threadStackSize;                      
((threadContext[(currentThread)->PrivateInfo]))->flags = 1 ;           
} while(0) ;
       
----                                                                   
-----------                                                    
------                                                         
-------------------------------^
cfe: Error: thread.c, line 730: Syntax Error
        do
{                                                                   
void** ptr;                                                      count =
0;                                                     if (tid ==
currentThread) {                                             asm("move
$sp, %0" : "=r" (ptr));                      
}                                                               else
{                                                                  ptr =
((void***)(threadContext[(tid)->PrivateInfo])
->restorePoint)[2];                
}                                                               while
(*ptr != 0) {                                                     
count++;                                                              
ptr = (void**)ptr[2];                                  
}                                                       } while (0) ;
       
----                                                                   
-----------                                                    
-----------                                                    
---------------------------                                            
-------------------^
cfe: Error: thread.c, line 730: Syntax Error
        do
{                                                                   
void** ptr;                                                      count =
0;                                                     if (tid ==
currentThread) {                                             asm("move
$sp, %0" : "=r" (ptr));                      
}                                                               else
{                                                                  ptr =
((void***)(threadContext[(tid)->PrivateInfo])
->restorePoint)[2];                
}                                                               while
(*ptr != 0) {                                                     
count++;                                                              
ptr = (void**)ptr[2];                                  
}                                                       } while (0) ;
       
----                                                                   
-----------                                                    
-----------                                                    
---------------------------                                            
-------------------------------^
cfe: Error: thread.c, line 761: Syntax Error
 .... \n                sw      $23,23*4($sp)                          
\n              sw      $24,24*4($sp)                          
\n              sw      $25,25*4($sp)                          
\n              sw      $26,26*4($sp)            ... 
...
gmake: *** [thread.o] Error 1

-keith
-- 
Keith A. Fredericks                      keith at kellysoftware.com
Kelly Music & Entertainment           250 W. 57th St., Ste. 1101
NY, NY 10019                    212-547-6066    fax:212-265-3878


More information about the kaffe mailing list