[Mesa-users] Cross-compiling on IBM Blue Gene/P

J. P. Bernstein astro at anl.gov
Mon Feb 27 12:34:18 PST 2012


OK, found the PYTHON2 variable. Set that to python2.6. That seems to have moved past the syntax error. Now I get:

Regenerating builtin_function.cpp...
/usr/bin/python2.6 -t -O -O builtins/tools/generate_builtins.py ./builtin_compiler > builtin_function.cpp || rm -f builtin_function.cpp
Traceback (most recent call last):
  File "builtins/tools/generate_builtins.py", line 192, in <module>
    write_profiles()
  File "builtins/tools/generate_builtins.py", line 103, in write_profiles
    write_profile(filename, profile)
  File "builtins/tools/generate_builtins.py", line 75, in write_profile
    (proto_ir, returncode) = run_compiler([filename])
  File "builtins/tools/generate_builtins.py", line 62, in run_compiler
    p = Popen(command, 1, stdout=PIPE, shell=False)
  File "/usr/lib64/python2.6/subprocess.py", line 633, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.6/subprocess.py", line 1139, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
mpixlcxx_r  -c -I. -I../mesa -I../mapi -I../../include  -g -O2 -DIBM -DNOUNDERSCORE -c -qarch=450 -qtune=auto -qcache=auto -qmaxmem=16384 -D_FILE_OFFSET_BITS=64   builtin_function.cpp -o builtin_function.o
bgxlC_r: 1501-228 (W) input file builtin_function.cpp not found

On Feb 27, 2012, at 2:15 PM, J. P. Bernstein wrote:

> That helped in that the mesa build is now trying to make the glsl lib. Now I get the built-in failure that I sent before when I tried the manual glsl make:
> 
> python -t -O -O builtins/tools/generate_builtins.py ./builtin_compiler > builtin_function.cpp || rm -f builtin_function.cpp
>  File "builtins/tools/generate_builtins.py", line 28
>    with open(filename) as f:
>            ^
> SyntaxError: invalid syntax
> mpixlcxx_r  -c -I. -I../mesa -I../mapi -I../../include  -g -O2 -DIBM -DNOUNDERSCORE -c -qarch=450 -qtune=auto -qcache=auto -qmaxmem=16384 -D_FILE_OFFSET_BITS=64   builtin_function.cpp -o builtin_function.o
> bgxlC_r: 1501-228 (W) input file builtin_function.cpp not found
> make[3]: *** [builtin_function.o] Error 252
> make[3]: Leaving directory `/gpfs/home/jpbernst/Code/Mesa-7.11.2/src/glsl'
> make[2]: *** [subdirs] Error 1
> make[2]: Leaving directory `/gpfs/home/jpbernst/Code/Mesa-7.11.2/src'
> make[1]: *** [default] Error 1
> make[1]: Leaving directory `/gpfs/home/jpbernst/Code/Mesa-7.11.2'
> make: *** [bluegenep-xlc-osmesa] Error 2
> 
> I suspect this is because python2.4 is being used, but have not been able to figure out how to tell the build to use the non-default python2.6. How does one do that?
> 
> Best,
> 
> Joe
> 
> P.S. The autoconf fails due to:
> 
> checking for GLPROTO... no
> configure: error: Package requirements (glproto >= 1.4.11) were not met:
> 
> No package 'glproto' found
> 
> Consider adjusting the PKG_CONFIG_PATH environment variable if you
> installed software in a non-standard prefix.
> 
> Alternatively, you may set the environment variables GLPROTO_CFLAGS
> and GLPROTO_LIBS to avoid the need to call pkg-config.
> See the pkg-config man page for more details.
> 
> Have yet to dig into that.
> 
> 
> On Feb 27, 2012, at 2:03 PM, Brian Paul wrote:
> 
>> Try editing configs/bluegene-xlc-osmesa and change this line:
>> 
>> SRC_DIRS = mesa glu
>> 
>> to read:
>> 
>> SRC_DIRS = glsl mapi/glapi mesa glu
>> 
>> Note that the static configuration files in the configs/ directory will probably be going away in the future.  The bluegen configs haven't been touched in years.  You might also try building with autoconf (i.e. "./configure ; make") but specifying your compiler, etc.
>> 
>> -Brian
>> 
>> On 02/27/2012 12:58 PM, J. P. Bernstein wrote:
>>> Hello Brian,
>>> 
>>> The library you referenced does not exist. I thought I was build as part of the mesa build. Is that not correct? In any case, I tried a manual make in src/glsl/ and got the following error:
>>> 
>>> python -t -O -O builtins/tools/generate_builtins.py ./builtin_compiler>  builtin_function.cpp || rm -f builtin_function.cpp
>>>  File "builtins/tools/generate_builtins.py", line 28
>>>    with open(filename) as f:
>>>            ^
>>> SyntaxError: invalid syntax
>>> mpixlcxx_r  -c -I. -I../mesa -I../mapi -I../../include  -g -O2 -DIBM -DNOUNDERSCORE -c -qarch=450 -qtune=auto -qcache=auto -qmaxmem=16384 -D_FILE_OFFSET_BITS=64   builtin_function.cpp -o builtin_function.o
>>> bgxlC_r: 1501-228 (W) input file builtin_function.cpp not found
>>> make: *** [builtin_function.o] Error 252
>>> On Feb 27, 2012, at 1:40 PM, Brian Paul wrote:
>>> 
>>> Might that be due to the fact that the default python on my system is 2.4 and the tool above needs 2.6? If so, can you please tell me how to set the version of python used? Can't seem to find it.
>>> 
>>> Best,
>>> 
>>> Joe
>>> 
>>> 
>>>> On 02/23/2012 03:12 PM, J. P. Bernstein wrote:
>>>>> Greetings,
>>>>> 
>>>>> I am trying to cross-compile mesa for the compute nodes on a IBM Blue Gene/P. I got around a build failure in querymatrix.c by commenting out the fpclassify code. The build is now failing as follows:
>>>>> 
>>>>> mpixlcxx_r  -c -o program/sampler.o program/sampler.cpp   -I../../include -I../../src/glsl -I../../src/mesa -I../../src/mapi -I../../src/gallium/include -I../../src/gallium/auxiliary  -g -O2 -DIBM -DNOUNDERSCORE -c -qarch=450 -qtune=auto -qcache=auto -qmaxmem=16384 -D_FILE_OFFSET_BITS=64
>>>>> make[3]: *** No rule to make target `../../src/glsl/libglsl.a', needed by `libmesa.a'.  Stop.
>>>>> make[3]: Leaving directory `/gpfs/home/jpbernst/Code/Mesa-7.11.2/src/mesa'
>>>>> make[2]: *** [subdirs] Error 1
>>>>> make[2]: Leaving directory `/gpfs/home/jpbernst/Code/Mesa-7.11.2/src'
>>>>> make[1]: *** [default] Error 1
>>>>> make[1]: Leaving directory `/gpfs/home/jpbernst/Code/Mesa-7.11.2'
>>>>> make: *** [bluegenep-xlc-osmesa] Error 2
>>>>> 222.520u 60.959s 4:53.06 96.7%    0+0k 40+307416io 0pf+0w
>>>>> 
>>>>> My config is file is attached (it is based on the Blue Gene/L config file named bluegene-xlc-osmesa that came with the src; I just updated the compiler and flags). I added glsl to SRC_DIRS in an attempt to solve the error above to no avail. My other attempts at a fix failed as well. Any help would be much appreciated.
>>>> 
>>>> From the error, it looks like the glsl compiler didn't get built. Can you check if src/glsl/libglsl.a exists or not?
>>>> 
>>>> If not, were there errors earlier when the glsl compiler was being built?
>>>> 
>>>> -Brian
>>> 
>> 
> 
> _______________________________________________
> mesa-users mailing list
> mesa-users at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-users



More information about the mesa-users mailing list