From: Xavier C. <cha...@gm...> - 2010-02-21 19:29:35
|
Since commit c6509f89 , scons dri=no drivers=softpipe (or llvmpipe) no longer works. It does show a warning at the beginning : warning: trace pipe driver disabled: skipping build of xlib libGL.so But it does not stop there, instead it goes on and build almost everything, It's hard to see and not very intuitive. Before the above command worked because there was no check for trace, trace was always put by default to the driver list, and the current SConscript still does that : line 39 : drivers = [trace] I have two suggestions that are not exclusive, and either of them would make me happy : 1) Replace all warning by error , and Return() by Exit() 2) remove the check for trace, it's already added by default anyway A side question : line 21 : if not set(('softpipe', 'llvmpipe', 'trace')).intersection(env['drivers']): print 'warning: no supported pipe driver: skipping build of xlib libGL.so' Return() But below in the script (line 41-58), the drivers used are softpipe , llvmpipe and cell. Should trace be replaced by cell in the above check ? |
From: José F. <jfo...@vm...> - 2010-02-23 09:18:34
|
Hi Xavier, On Sun, 2010-02-21 at 11:29 -0800, Xavier Chantry wrote: > Since commit c6509f89 , scons dri=no drivers=softpipe (or llvmpipe) no > longer works. > It does show a warning at the beginning : > warning: trace pipe driver disabled: skipping build of xlib libGL.so > > But it does not stop there, instead it goes on and build almost > everything, It's hard to see and not very intuitive. > > Before the above command worked because there was no check for trace, > trace was always put by default to the driver list, and the current > SConscript still does that : > line 39 : drivers = [trace] > > I have two suggestions that are not exclusive, and either of them > would make me happy : > 1) Replace all warning by error , and Return() by Exit() This is is a double edge source. I'd like to move away from having to specify everything in command line and let plain scons without options "just work". The only way I see to achieve that goal is to have stacketrackers=all drivers=all winsys=all by default, and fail gracefully. > 2) remove the check for trace, it's already added by default anyway If you pass drivers=softpipe then trace is *not* built. But there is another thing that we can do: take out trace from the scons options and always built it, as there are so many state trackers and winsys that rely on it for debug building, and trace can really build anywhere and is thin so there's no point is making it an option. > A side question : > line 21 : if not set(('softpipe', 'llvmpipe', > 'trace')).intersection(env['drivers']): > print 'warning: no supported pipe driver: skipping build of xlib libGL.so' > Return() > > But below in the script (line 41-58), the drivers used are softpipe , > llvmpipe and cell. > Should trace be replaced by cell in the above check ? Yes, I think so. Jose |
From: Xavier C. <cha...@gm...> - 2010-02-23 21:09:52
Attachments:
0001-scons-always-build-trace-driver.patch
|
On Tue, Feb 23, 2010 at 10:18 AM, José Fonseca <jfo...@vm...> wrote: > But there is another thing that we can do: take out trace from the scons > options and always built it, as there are so many state trackers and > winsys that rely on it for debug building, and trace can really build > anywhere and is thin so there's no point is making it an option. > I like this a lot, see attached patch. This is my first time editing scons files so I hope I got it right. >> A side question : >> line 21 : if not set(('softpipe', 'llvmpipe', >> 'trace')).intersection(env['drivers']): >> print 'warning: no supported pipe driver: skipping build of xlib libGL.so' >> Return() >> >> But below in the script (line 41-58), the drivers used are softpipe , >> llvmpipe and cell. >> Should trace be replaced by cell in the above check ? > > Yes, I think so. > Also changed in attached patch. |
From: José F. <jfo...@vm...> - 2010-02-25 17:12:23
|
On Tue, 2010-02-23 at 13:09 -0800, Xavier Chantry wrote: > On Tue, Feb 23, 2010 at 10:18 AM, José Fonseca <jfo...@vm...> wrote: > > But there is another thing that we can do: take out trace from the scons > > options and always built it, as there are so many state trackers and > > winsys that rely on it for debug building, and trace can really build > > anywhere and is thin so there's no point is making it an option. > > > > I like this a lot, see attached patch. > This is my first time editing scons files so I hope I got it right. > > >> A side question : > >> line 21 : if not set(('softpipe', 'llvmpipe', > >> 'trace')).intersection(env['drivers']): > >> print 'warning: no supported pipe driver: skipping build of xlib libGL.so' > >> Return() > >> > >> But below in the script (line 41-58), the drivers used are softpipe , > >> llvmpipe and cell. > >> Should trace be replaced by cell in the above check ? > > > > Yes, I think so. > > > > Also changed in attached patch. Thanks. Commited, with just a change: I still allow drivers=trace to avoid breaking all build infrastructure that's already using that option. I'll eventually remove the option once I've updated everywhere not to use it. Jose |
From: Xavier C. <cha...@gm...> - 2010-02-25 19:31:16
|
On Thu, Feb 25, 2010 at 6:12 PM, José Fonseca <jfo...@vm...> wrote: > > Thanks. Commited, with just a change: I still allow drivers=trace to > avoid breaking all build infrastructure that's already using that > option. I'll eventually remove the option once I've updated everywhere > not to use it. > I did wonder about keeping backward compatibility, so that sounds perfectly sane to me ! |