Hello Joe<br><br>Afer introducing the correction Brian suggested, I managed to compile osmesa libraries (vers 7.10.3) in a IBM Blue Gene/P<br><br>Maybe you could try this version and see if that works for you<br><br>best<br>
Daniel<br><br><div class="gmail_quote">2012/2/27 J. P. Bernstein <span dir="ltr"><<a href="mailto:astro@anl.gov">astro@anl.gov</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
OK, found the PYTHON2 variable. Set that to python2.6. That seems to have moved past the syntax error. Now I get:<br>
<br>
Regenerating builtin_function.cpp...<br>
/usr/bin/python2.6 -t -O -O builtins/tools/generate_builtins.py ./builtin_compiler > builtin_function.cpp || rm -f builtin_function.cpp<br>
Traceback (most recent call last):<br>
File "builtins/tools/generate_builtins.py", line 192, in <module><br>
write_profiles()<br>
File "builtins/tools/generate_builtins.py", line 103, in write_profiles<br>
write_profile(filename, profile)<br>
File "builtins/tools/generate_builtins.py", line 75, in write_profile<br>
(proto_ir, returncode) = run_compiler([filename])<br>
File "builtins/tools/generate_builtins.py", line 62, in run_compiler<br>
p = Popen(command, 1, stdout=PIPE, shell=False)<br>
File "/usr/lib64/python2.6/subprocess.py", line 633, in __init__<br>
errread, errwrite)<br>
File "/usr/lib64/python2.6/subprocess.py", line 1139, in _execute_child<br>
raise child_exception<br>
OSError: [Errno 2] No such file or directory<br>
<div class="im HOEnZb">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<br>
bgxlC_r: 1501-228 (W) input file builtin_function.cpp not found<br>
<br>
</div><div class="HOEnZb"><div class="h5">On Feb 27, 2012, at 2:15 PM, J. P. Bernstein wrote:<br>
<br>
> 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:<br>
><br>
> python -t -O -O builtins/tools/generate_builtins.py ./builtin_compiler > builtin_function.cpp || rm -f builtin_function.cpp<br>
> File "builtins/tools/generate_builtins.py", line 28<br>
> with open(filename) as f:<br>
> ^<br>
> SyntaxError: invalid syntax<br>
> 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<br>
> bgxlC_r: 1501-228 (W) input file builtin_function.cpp not found<br>
> make[3]: *** [builtin_function.o] Error 252<br>
> make[3]: Leaving directory `/gpfs/home/jpbernst/Code/Mesa-7.11.2/src/glsl'<br>
> make[2]: *** [subdirs] Error 1<br>
> make[2]: Leaving directory `/gpfs/home/jpbernst/Code/Mesa-7.11.2/src'<br>
> make[1]: *** [default] Error 1<br>
> make[1]: Leaving directory `/gpfs/home/jpbernst/Code/Mesa-7.11.2'<br>
> make: *** [bluegenep-xlc-osmesa] Error 2<br>
><br>
> 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?<br>
><br>
> Best,<br>
><br>
> Joe<br>
><br>
> P.S. The autoconf fails due to:<br>
><br>
> checking for GLPROTO... no<br>
> configure: error: Package requirements (glproto >= 1.4.11) were not met:<br>
><br>
> No package 'glproto' found<br>
><br>
> Consider adjusting the PKG_CONFIG_PATH environment variable if you<br>
> installed software in a non-standard prefix.<br>
><br>
> Alternatively, you may set the environment variables GLPROTO_CFLAGS<br>
> and GLPROTO_LIBS to avoid the need to call pkg-config.<br>
> See the pkg-config man page for more details.<br>
><br>
> Have yet to dig into that.<br>
><br>
><br>
> On Feb 27, 2012, at 2:03 PM, Brian Paul wrote:<br>
><br>
>> Try editing configs/bluegene-xlc-osmesa and change this line:<br>
>><br>
>> SRC_DIRS = mesa glu<br>
>><br>
>> to read:<br>
>><br>
>> SRC_DIRS = glsl mapi/glapi mesa glu<br>
>><br>
>> 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.<br>
>><br>
>> -Brian<br>
>><br>
>> On 02/27/2012 12:58 PM, J. P. Bernstein wrote:<br>
>>> Hello Brian,<br>
>>><br>
>>> 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:<br>
>>><br>
>>> python -t -O -O builtins/tools/generate_builtins.py ./builtin_compiler> builtin_function.cpp || rm -f builtin_function.cpp<br>
>>> File "builtins/tools/generate_builtins.py", line 28<br>
>>> with open(filename) as f:<br>
>>> ^<br>
>>> SyntaxError: invalid syntax<br>
>>> 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<br>
>>> bgxlC_r: 1501-228 (W) input file builtin_function.cpp not found<br>
>>> make: *** [builtin_function.o] Error 252<br>
>>> On Feb 27, 2012, at 1:40 PM, Brian Paul wrote:<br>
>>><br>
>>> 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.<br>
>>><br>
>>> Best,<br>
>>><br>
>>> Joe<br>
>>><br>
>>><br>
>>>> On 02/23/2012 03:12 PM, J. P. Bernstein wrote:<br>
>>>>> Greetings,<br>
>>>>><br>
>>>>> 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:<br>
>>>>><br>
>>>>> 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<br>
>>>>> make[3]: *** No rule to make target `../../src/glsl/libglsl.a', needed by `libmesa.a'. Stop.<br>
>>>>> make[3]: Leaving directory `/gpfs/home/jpbernst/Code/Mesa-7.11.2/src/mesa'<br>
>>>>> make[2]: *** [subdirs] Error 1<br>
>>>>> make[2]: Leaving directory `/gpfs/home/jpbernst/Code/Mesa-7.11.2/src'<br>
>>>>> make[1]: *** [default] Error 1<br>
>>>>> make[1]: Leaving directory `/gpfs/home/jpbernst/Code/Mesa-7.11.2'<br>
>>>>> make: *** [bluegenep-xlc-osmesa] Error 2<br>
>>>>> 222.520u 60.959s 4:53.06 96.7% 0+0k 40+307416io 0pf+0w<br>
>>>>><br>
>>>>> 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.<br>
>>>><br>
>>>> From the error, it looks like the glsl compiler didn't get built. Can you check if src/glsl/libglsl.a exists or not?<br>
>>>><br>
>>>> If not, were there errors earlier when the glsl compiler was being built?<br>
>>>><br>
>>>> -Brian<br>
>>><br>
>><br>
><br>
> _______________________________________________<br>
> mesa-users mailing list<br>
> <a href="mailto:mesa-users@lists.freedesktop.org">mesa-users@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/mesa-users" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-users</a><br>
<br>
_______________________________________________<br>
mesa-users mailing list<br>
<a href="mailto:mesa-users@lists.freedesktop.org">mesa-users@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/mesa-users" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><a href="http://www.danielfuster.com" target="_blank">www.danielfuster.com</a><br>