[Mesa-dev] scons: name 'graw' is not defined

José Fonseca jfonseca at vmware.com
Thu May 6 05:05:29 PDT 2010


On Thu, 2010-05-06 at 04:43 -0700, Michal Krol wrote:
> W dniu 2010-05-06 13:21, Michal Krol pisze:
> > I am getting that error with HEAD on master building with scons on windows.
> >
> >   >  scons
> > scons: Reading SConscript files ...
> > Checking for C header file udis86.h... (cached) no
> > warning: LLVM disabled: not building llvmpipe
> > NameError: name 'graw' is not defined:
> >     File "C:\src\mesa\SConstruct", line 203:
> >       duplicate = 0 #
> > http://www.scons.org/doc/0.97/HTML/scons-user/x2261.html
> >     File
> > "c:\Python26\Lib\site-packages\scons-1.2.0.d20100117\SCons\Script\SConscr
> > ipt.py", line 616:
> >       return apply(method, args, kw)
> >     File
> > "c:\Python26\Lib\site-packages\scons-1.2.0.d20100117\SCons\Script\SConscr
> > ipt.py", line 553:
> >       return apply(_SConscript, [self.fs,] + files, subst_kw)
> >     File
> > "c:\Python26\Lib\site-packages\scons-1.2.0.d20100117\SCons\Script\SConscr
> > ipt.py", line 262:
> >       exec _file_ in call_stack[-1].globals
> >     File "C:\src\mesa\src\SConscript", line 8:
> >       SConscript('gallium/SConscript')
> >     File
> > "c:\Python26\Lib\site-packages\scons-1.2.0.d20100117\SCons\Script\SConscr
> > ipt.py", line 616:
> >       return apply(method, args, kw)
> >     File
> > "c:\Python26\Lib\site-packages\scons-1.2.0.d20100117\SCons\Script\SConscr
> > ipt.py", line 553:
> >       return apply(_SConscript, [self.fs,] + files, subst_kw)
> >     File
> > "c:\Python26\Lib\site-packages\scons-1.2.0.d20100117\SCons\Script\SConscr
> > ipt.py", line 262:
> >       exec _file_ in call_stack[-1].globals
> >     File "C:\src\mesa\src\gallium\SConscript", line 28:
> >       SConscript('tests/raw/SConscript')
> >     File
> > "c:\Python26\Lib\site-packages\scons-1.2.0.d20100117\SCons\Script\SConscr
> > ipt.py", line 616:
> >       return apply(method, args, kw)
> >     File
> > "c:\Python26\Lib\site-packages\scons-1.2.0.d20100117\SCons\Script\SConscr
> > ipt.py", line 553:
> >       return apply(_SConscript, [self.fs,] + files, subst_kw)
> >     File
> > "c:\Python26\Lib\site-packages\scons-1.2.0.d20100117\SCons\Script\SConscr
> > ipt.py", line 262:
> >       exec _file_ in call_stack[-1].globals
> >     File "C:\src\mesa\src\gallium\tests\raw\SConscript", line 8:
> >       env.Prepend(LIBPATH = [graw.dir])
> >
> >
> > Any ideas?
> >    
> Builds start breaking with commit 
> b2e343daab4a7621e2bd9bc4b2cbd2709370089c: tests/raw: Get it building 
> with scons

I'll do a proper fix, but until than don't pass winsys=graw-xlib to
scons.  

The proper fix is having a graw_null or graw_bmp target to guarantee
that all platforms have a graw available, and remove this broken option
magic.

Jose



More information about the mesa-dev mailing list