| All Forums | 
                                Register | 
                                Login | 
                                Search | 
                                Subscriptions | 
                                My Profile | 
                                Inbox | 
                               
                              
                                | Tool Warehouse | 
                                FAQs | 
                                Resources | 
                                Help | 
                                Member List | 
                                Address Book | 
                                Logout | 
                               
                            
                           
                         | 
                       
                    
                   
                 | 
               
            
           
          
          
          
            
              
                make hangs 
               | 
              Logged in as: Guest | 
             
           
          
            
              
                
                  
                    | Users viewing this topic: none | 
                   
                 
               | 
             
           
          
          
          
            
              
                
                  
                    Login   | 
                    
                      
                     | 
                   
                 
               | 
             
           
          
            
              
                
                  
                    
                      
                        
                          
                               make hangs - Feb. 10, '06, 2:16:15 PM   
                           | 
                          
                            
                           | 
                         
                       
                     | 
                   
                  
                    
                      ender 
                       
                      
                         
                        
                      Posts: 13 
                      Joined: Aug. 16, '05, 
                      Status: offline  
                     | 
                    
                      Recently while (cross)compiling GIMP, I noticed that compiling often hangs for no apparent reason (the CPU usage drops to 0, and it doesn't proceed even if I leave it alone a few minutes). If I Ctrl+C and run gmake again, compiling continues a bit further until it locks up again. It appears that the process that hangs is sometimes sed and other times grep. Every time I Ctrl+C, there seem to be a few more bash processes that stay around. Any idea what could be the cause of these things? 
                       
                      I also had a problem a few days ago, when almost every program would segfault (the only ones that didn't seemed to be those that were originally installed with SFU). This happened to me on 2 different machines (one running XPsp2, the other one 2003sp1), and coincided with me trying to install the gcc-4.0.2 package (which didn't succeed at first on neither machine). After I reinstalled SFU and reapplied all patches, everything started to work again (and I was able to install gcc 4). 
                       
                      The other thing that changed since I last compiled GIMP without problems is that I upgraded from Athlon64 3500+ to Athlon64 X2 4200+. 
                       
                      My system is Windows 2003sp1 Server Standard Edition, 3GB RAM, SFU 3.5 with the following hotfixes: 886655, 887531, 902074, 904358. I'm using bash 3.00.0(2)-release (i586-pc-interix3) as my shell; sed is GNU sed version 4.1.4; grep seems to be from SFU, it's properties give 8.0.1969.1 as version; GNU Make 3.80; I'm compiling GIMP with gcc-mingw 3.4.4, which was compiled with SFU's gcc 3.3.  
                       
                      < Message edited by ender -- Feb. 10, '06, 2:18:15 PM >
                      
                     | 
                   
                  
                    | 
                      
                     | 
                   
                 
               | 
             
           
          
            
              
                
                  
                    
                      
                        
                          
                               RE: make hangs - Feb. 10, '06, 2:52:06 PM   
                           | 
                          
                            
                           | 
                         
                       
                     | 
                   
                  
                    
                      Rodney 
                       
                      
                         
                        
                      Posts: 3714 
                      Joined: Jul. 9, '02, 
                      From: /Tools lab 
                      Status: offline  
                     | 
                    
                      Did you turn DEP off? (FAQ 2.07) 
                      Also mentioned in FAQ 2.07 is the patch level needed for 2003/SP1 for shell scrips working (Hotfix Q899522 minimum). 
                      
                     | 
                   
                  
                    | 
                      
                     | 
                   
                 
               | 
             
           
          
            
              
                
                  
                    
                      
                        
                          
                               RE: make hangs - Feb. 10, '06, 4:27:05 PM   
                           | 
                          
                            
                           | 
                         
                       
                     | 
                   
                  
                    
                      ender 
                       
                      
                         
                        
                      Posts: 13 
                      Joined: Aug. 16, '05, 
                      Status: offline  
                     | 
                    
                      DEP is AlwaysOff, and I have Q904358, which should be newer than Q899522 (posix.exe is version 8.0.1969.36), and I'm not having any problems with configure script (also, I don't seem to have problems compiling simpler things, eg. rockbox). 
                      
                     | 
                   
                  
                    | 
                      
                     | 
                   
                 
               | 
             
           
          
            
              
                
                  
                    
                      
                        
                          
                               RE: make hangs - Feb. 10, '06, 6:10:58 PM   
                           | 
                          
                            
                           | 
                         
                       
                     | 
                   
                  
                    
                      Rodney 
                       
                      
                         
                        
                      Posts: 3714 
                      Joined: Jul. 9, '02, 
                      From: /Tools lab 
                      Status: offline  
                     | 
                    
                      Are you compiling on a local drive or a network drive? 
                      If it's network then which is it: SMB, NFS, ... ? 
                      
                     | 
                   
                  
                    | 
                      
                     | 
                   
                 
               | 
             
           
          
            
              
                
                  
                    
                      
                        
                          
                               RE: make hangs - Feb. 12, '06, 1:47:41 PM   
                           | 
                          
                            
                           | 
                         
                       
                     | 
                   
                  
                    
                      ender 
                       
                      
                         
                        
                      Posts: 13 
                      Joined: Aug. 16, '05, 
                      Status: offline  
                     | 
                    
                      I'm compiling locally. 
                      
                     | 
                   
                  
                    | 
                      
                     | 
                   
                 
               | 
             
           
          
            
              
                
                  
                    
                      
                        
                          
                               RE: make hangs - Feb. 12, '06, 9:24:01 PM   
                           | 
                          
                            
                           | 
                         
                       
                     | 
                   
                  
                    
                      markfunk 
                       
                      
                         
                        
                      Posts: 670 
                      Joined: Mar. 31, '03, 
                      Status: offline  
                     | 
                    
                      My first guess would be a problem in the NT kernel and/or Interix subsystem due 
                      to the dual core Athlon X2 you are using. 
                      Multi-cpu issues are a recurring problem in Interix whenever a new 
                      multi-cpu architecture is introduced. 
                       
                      If this is the problem, then Microsoft will have to investigate 
                      and isolate the problem and issue a fix. 
                       
                      In the meantime, you could try one of the old multi-cpu fixes. 
                      For instance, create the registry key 
                      HKLM/Software/Microsoft/Services For Unix/ForkWait 
                      which is a DWORD. Set it to a value of 250 for starters. 
                      (valid values are between 0 and 2000). 
                      
                     | 
                   
                  
                    | 
                      
                     | 
                   
                 
               | 
             
           
          
            
              
                
                  
                    
                      
                        
                          
                               RE: make hangs - Feb. 13, '06, 10:21:34 AM   
                           | 
                          
                            
                           | 
                         
                       
                     | 
                   
                  
                    
                      jumphigh 
                       
                      
                         
                        
                      Posts: 61 
                      Joined: Jul. 10, '04, 
                      From: Germany 
                      Status: offline  
                     | 
                    
                      I also encountered problemes with make when building GCC 4.0.2 or other things. My first try is to use gmake instead! It always runs through where make hangs. 
                       
                      Andreas 
                      
                     | 
                   
                  
                    | 
                      
                     | 
                   
                 
               | 
             
           
          
            
              
                
                  
                    
                      
                        
                          
                               RE: make hangs - Feb. 13, '06, 2:28:19 PM   
                           | 
                          
                            
                           | 
                         
                       
                     | 
                   
                  
                    
                      Rodney 
                       
                      
                         
                        
                      Posts: 3714 
                      Joined: Jul. 9, '02, 
                      From: /Tools lab 
                      Status: offline  
                     | 
                    
                      When make or one of it's child processes are "stuck" try doing a "pstat pid" 
                      to see what call it's waiting on. It might point to a fix or at least narrow it down.  
                       
                      < Message edited by Rodney -- Feb. 14, '06, 1:47:41 PM >
                      
                     | 
                   
                  
                    | 
                      
                     | 
                   
                 
               | 
             
           
          
            
              
                
                  
                    
                      
                        
                          
                               RE: make hangs - Feb. 14, '06, 6:03:11 AM   
                           | 
                          
                            
                           | 
                         
                       
                     | 
                   
                  
                    
                      ender 
                       
                      
                         
                        
                      Posts: 13 
                      Joined: Aug. 16, '05, 
                      Status: offline  
                     | 
                    
                      Rodney: thanks, I'll try this. 
                       
                      jumphigh: I already am using gmake. 
                      
                     | 
                   
                  
                    | 
                      
                     | 
                   
                 
               | 
             
           
          
            
              
                
                  
                    
                      
                        
                          
                               RE: make hangs - Mar. 19, '06, 6:36:34 PM   
                           | 
                          
                            
                           | 
                         
                       
                     | 
                   
                  
                    
                      ender 
                       
                      
                         
                        
                      Posts: 13 
                      Joined: Aug. 16, '05, 
                      Status: offline  
                     | 
                    
                      I was compiling something again, and gmake hung. I'm not sure which process hung, so I did pstat on all make children. Here's the result (it's a bit long, so I didn't want to paste it in the forum). 
                      
                     | 
                   
                  
                    | 
                      
                     | 
                   
                 
               | 
             
           
          
            
              
                
                  
                    
                      
                        
                          
                               RE: make hangs - Apr. 30, '06, 1:12:45 PM   
                           | 
                          
                            
                           | 
                         
                       
                     | 
                   
                  
                    
                      ender 
                       
                      
                         
                        
                      Posts: 13 
                      Joined: Aug. 16, '05, 
                      Status: offline  
                     | 
                    
                      OK, upgrading to 2003-R2/SUA seems to have fixed this problem. 
                      
                     | 
                   
                  
                    | 
                      
                     | 
                   
                 
               | 
             
           
          
          
           
           
           
           
           
          
            
              
                
                  
                      New Messages | 
                      No New Messages | 
                   
                  
                      Hot Topic w/ New Messages | 
                      Hot Topic w/o New Messages | 
                   
                  
                     | 
                   
                  
                      Locked w/ New Messages | 
                      Locked w/o New Messages | 
                   
                 
               | 
              
                
                  
                      Post New Thread 
                      Reply to Message 
                      Post New Poll 
                      Submit Vote 
                      Delete My Own Post 
                      Delete My Own Thread 
                      Rate Posts | 
                   
                 
               | 
             
            
           
         | 
        
           
         |