[Mesa-dev] Mesa-9.0: generate_builtins.py hangs and uses 100% CPU when generating from *.glsl files

Stephan Raue mailinglists at openelec.tv
Sun Oct 21 19:50:01 PDT 2012


i try to (cross)compile Mesa-9.0. builtin_compiler is compiled for host 
with a second hostbuild before i build Mesa for target.

if i build Mesa for target the buildprocess hangs at:
python2  ./builtins/tools/generate_builtins.py 
 > builtin_function.cpp || rm -f builtin_function.cpp
with no output and uses 100% CPU.

i get the same issue running manually this command manually. With Mesa-8.0.4
  this was working and the problem was introduced by this commit:


if i comment out the line:


the above command works. so something with the read_glsl_files(fs) 
function seems wrong here.

if i run the above command with python -vvv it hangs after:

# trying 
# trying 
# trying 
# trying /usr/lib64/python2.7/StringIO.so
# trying /usr/lib64/python2.7/StringIOmodule.so
# trying /usr/lib64/python2.7/StringIO.py
# /usr/lib64/python2.7/StringIO.pyo matches /usr/lib64/python2.7/StringIO.py
import StringIO # precompiled from /usr/lib64/python2.7/StringIO.pyo

until i break with ctrl+c:

^CTraceback (most recent call last):
   File "./builtins/tools/generate_builtins.py", line 220, in <module>
   File "./builtins/tools/generate_builtins.py", line 68, in 
     fs = get_builtin_definitions()
   File "./builtins/tools/generate_builtins.py", line 48, in 
   File "./builtins/tools/generate_builtins.py", line 35, in read_glsl_files
     (output, returncode) = run_compiler([filename])
   File "./builtins/tools/generate_builtins.py", line 76, in run_compiler
     output = p.communicate()[0]
   File "/usr/lib64/python2.7/subprocess.py", line 746, in communicate
     stdout = _eintr_retry_call(self.stdout.read)
   File "/usr/lib64/python2.7/subprocess.py", line 478, in _eintr_retry_call
     return func(*args)
# clear __builtin__._
# clear sys.path

what you need for infos to track down the problem?

thanks for your help


More information about the mesa-dev mailing list