Re: [Mesa-dev] [PATCH v2] swr: automake: don't ship LLVM version specific generated sources
So, I can confirm that with this patch applied to the rc3 tag, I can generate a tarball on Arch with make dist, and then use said tarball to build with SWR enabled on fedora. So: Tested-by: Chuck Atkins- Chuck On Tue, Jun 14, 2016 at 1:14 PM, Emil Velikov wrote: > On 14 June 2016 at 18:06, Rowley, Timothy O > wrote: > > > >> On Jun 13, 2016, at 8:03 PM, Rowley, Timothy O < > timothy.o.row...@intel.com> wrote: > >> > >> A clean tree build works with this version, but distcheck fails: > >> > >> ... > >> rm -f config.status config.cache config.log configure.lineno > config.status.lineno > >> rm -f Makefile > >> ERROR: files left in build directory after distclean: > >> ./src/gallium/drivers/swr/rasterizer/jitter/builder_gen.cpp > >> ./src/gallium/drivers/swr/rasterizer/jitter/builder_x86.cpp > >> ./src/gallium/drivers/swr/rasterizer/jitter/builder_gen.h > >> make[1]: *** [distcleancheck] Error 1 > >> make[1]: Leaving directory > `/home/torowley/work/mesa-opt/mesa-12.1.0-devel/_build' > >> make: *** [distcheck] Error 1 > >> > >> Not sure how builder_x86.cpp managed to change its status. > > > > To answer my own question: the reason for builder_x86.cpp being > regenerated is because of its dependency on builder_gen.h (through > builder.h). > > > I thought that one was mentioned is the big comment in the patch. > Perhaps my wording could be improved - any suggestions ? > > And yes, due to the missing dependency the file will be (re)generated > at a later stage thus we'll need to add yet another workaround for > that. Just listing the whole lot in CLEANFILES should be enough. > > Feel free to give it a try, or I'll do at some point later on today. > > Thanks, > Emil > ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev
Re: [Mesa-dev] [PATCH v2] swr: automake: don't ship LLVM version specific generated sources
On 14 June 2016 at 18:06, Rowley, Timothy Owrote: > >> On Jun 13, 2016, at 8:03 PM, Rowley, Timothy O >> wrote: >> >> A clean tree build works with this version, but distcheck fails: >> >> ... >> rm -f config.status config.cache config.log configure.lineno >> config.status.lineno >> rm -f Makefile >> ERROR: files left in build directory after distclean: >> ./src/gallium/drivers/swr/rasterizer/jitter/builder_gen.cpp >> ./src/gallium/drivers/swr/rasterizer/jitter/builder_x86.cpp >> ./src/gallium/drivers/swr/rasterizer/jitter/builder_gen.h >> make[1]: *** [distcleancheck] Error 1 >> make[1]: Leaving directory >> `/home/torowley/work/mesa-opt/mesa-12.1.0-devel/_build' >> make: *** [distcheck] Error 1 >> >> Not sure how builder_x86.cpp managed to change its status. > > To answer my own question: the reason for builder_x86.cpp being regenerated > is because of its dependency on builder_gen.h (through builder.h). > I thought that one was mentioned is the big comment in the patch. Perhaps my wording could be improved - any suggestions ? And yes, due to the missing dependency the file will be (re)generated at a later stage thus we'll need to add yet another workaround for that. Just listing the whole lot in CLEANFILES should be enough. Feel free to give it a try, or I'll do at some point later on today. Thanks, Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev
Re: [Mesa-dev] [PATCH v2] swr: automake: don't ship LLVM version specific generated sources
> On Jun 13, 2016, at 8:03 PM, Rowley, Timothy O> wrote: > > A clean tree build works with this version, but distcheck fails: > > ... > rm -f config.status config.cache config.log configure.lineno > config.status.lineno > rm -f Makefile > ERROR: files left in build directory after distclean: > ./src/gallium/drivers/swr/rasterizer/jitter/builder_gen.cpp > ./src/gallium/drivers/swr/rasterizer/jitter/builder_x86.cpp > ./src/gallium/drivers/swr/rasterizer/jitter/builder_gen.h > make[1]: *** [distcleancheck] Error 1 > make[1]: Leaving directory > `/home/torowley/work/mesa-opt/mesa-12.1.0-devel/_build' > make: *** [distcheck] Error 1 > > Not sure how builder_x86.cpp managed to change its status. To answer my own question: the reason for builder_x86.cpp being regenerated is because of its dependency on builder_gen.h (through builder.h). >> On Jun 13, 2016, at 6:46 PM, Emil Velikov wrote: >> >> From: Emil Velikov >> >> Otherwise things will fail to build, if the builder is using another >> version of LLVM. >> >> v2: annotate all the dependencies of builder_gen.h >> >> Cc: "12.0" >> Cc: Tim Rowley >> Cc: Chuck Atkins >> Reported-by: Chuck Atkins >> Signed-off-by: Emil Velikov >> --- >> Unlike v1, this ones seems to work. Please give it a try and let me know >> how it fares on your end. >> >> Thanks >> Emil >> --- >> src/gallium/drivers/swr/Makefile.am | 37 >> +++-- >> 1 file changed, 35 insertions(+), 2 deletions(-) >> >> diff --git a/src/gallium/drivers/swr/Makefile.am >> b/src/gallium/drivers/swr/Makefile.am >> index 8151e4a..63dadbf 100644 >> --- a/src/gallium/drivers/swr/Makefile.am >> +++ b/src/gallium/drivers/swr/Makefile.am >> @@ -52,8 +52,6 @@ BUILT_SOURCES = \ >> rasterizer/scripts/gen_knobs.cpp \ >> rasterizer/scripts/gen_knobs.h \ >> rasterizer/jitter/state_llvm.h \ >> -rasterizer/jitter/builder_gen.h \ >> -rasterizer/jitter/builder_gen.cpp \ >> rasterizer/jitter/builder_x86.h \ >> rasterizer/jitter/builder_x86.cpp >> >> @@ -122,6 +120,23 @@ COMMON_LDFLAGS = \ >> $(NO_UNDEFINED) \ >> $(LLVM_LDFLAGS) >> >> + >> +# XXX: As we cannot use BUILT_SOURCES (the files will end up in the dist >> +# tarball) just annotate the dependency directly. >> +# As the single direct user of builder_gen.h is a header (builder.h) trace >> all >> +# the translusive users (one that use the latter header). >> +# >> +# Note: one should really clean the includes a bit, according to Tim there's >> +# only 4 users of the builder_gen methods/API. >> +rasterizer/jitter/blend_jit.cpp: rasterizer/jitter/builder_gen.h >> +rasterizer/jitter/builder.cpp: rasterizer/jitter/builder_gen.h >> +rasterizer/jitter/builder_gen.cpp: rasterizer/jitter/builder_gen.h >> +rasterizer/jitter/builder_x86.cpp: rasterizer/jitter/builder_gen.h >> +rasterizer/jitter/builder_misc.cpp: rasterizer/jitter/builder_gen.h >> +rasterizer/jitter/fetch_jit.cpp: rasterizer/jitter/builder_gen.h >> +rasterizer/jitter/streamout_jit.cpp: rasterizer/jitter/builder_gen.h >> +swr_shader.cpp: rasterizer/jitter/builder_gen.h >> + >> lib_LTLIBRARIES = libswrAVX.la libswrAVX2.la >> >> libswrAVX_la_CXXFLAGS = \ >> @@ -132,6 +147,15 @@ libswrAVX_la_CXXFLAGS = \ >> libswrAVX_la_SOURCES = \ >> $(COMMON_SOURCES) >> >> +# XXX: Don't ship these generated sources for now, since they are specific >> +# to the LLVM version they are generated from. Thus a release tarball >> +# containing the said files, generated against eg. LLVM 3.8 will fail to >> build >> +# on systems with other versions of LLVM eg. 3.7 or 3.6. >> +# Move these back to BUILT_SOURCES once that is resolved. >> +nodist_libswrAVX_la_SOURCES = \ >> +rasterizer/jitter/builder_gen.h \ >> +rasterizer/jitter/builder_gen.cpp >> + >> libswrAVX_la_LIBADD = \ >> $(COMMON_LIBADD) >> >> @@ -146,6 +170,15 @@ libswrAVX2_la_CXXFLAGS = \ >> libswrAVX2_la_SOURCES = \ >> $(COMMON_SOURCES) >> >> +# XXX: Don't ship these generated sources for now, since they are specific >> +# to the LLVM version they are generated from. Thus a release tarball >> +# containing the said files, generated against eg. LLVM 3.8 will fail to >> build >> +# on systems with other versions of LLVM eg. 3.7 or 3.6. >> +# Move these back to BUILT_SOURCES once that is resolved. >> +nodist_libswrAVX2_la_SOURCES = \ >> +rasterizer/jitter/builder_gen.h \ >> +rasterizer/jitter/builder_gen.cpp >> + >> libswrAVX2_la_LIBADD = \ >> $(COMMON_LIBADD) >> >> -- >> 2.8.2 >> > ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev
Re: [Mesa-dev] [PATCH v2] swr: automake: don't ship LLVM version specific generated sources
A clean tree build works with this version, but distcheck fails: ... rm -f config.status config.cache config.log configure.lineno config.status.lineno rm -f Makefile ERROR: files left in build directory after distclean: ./src/gallium/drivers/swr/rasterizer/jitter/builder_gen.cpp ./src/gallium/drivers/swr/rasterizer/jitter/builder_x86.cpp ./src/gallium/drivers/swr/rasterizer/jitter/builder_gen.h make[1]: *** [distcleancheck] Error 1 make[1]: Leaving directory `/home/torowley/work/mesa-opt/mesa-12.1.0-devel/_build' make: *** [distcheck] Error 1 Not sure how builder_x86.cpp managed to change its status. > On Jun 13, 2016, at 6:46 PM, Emil Velikovwrote: > > From: Emil Velikov > > Otherwise things will fail to build, if the builder is using another > version of LLVM. > > v2: annotate all the dependencies of builder_gen.h > > Cc: "12.0" > Cc: Tim Rowley > Cc: Chuck Atkins > Reported-by: Chuck Atkins > Signed-off-by: Emil Velikov > --- > Unlike v1, this ones seems to work. Please give it a try and let me know > how it fares on your end. > > Thanks > Emil > --- > src/gallium/drivers/swr/Makefile.am | 37 +++-- > 1 file changed, 35 insertions(+), 2 deletions(-) > > diff --git a/src/gallium/drivers/swr/Makefile.am > b/src/gallium/drivers/swr/Makefile.am > index 8151e4a..63dadbf 100644 > --- a/src/gallium/drivers/swr/Makefile.am > +++ b/src/gallium/drivers/swr/Makefile.am > @@ -52,8 +52,6 @@ BUILT_SOURCES = \ > rasterizer/scripts/gen_knobs.cpp \ > rasterizer/scripts/gen_knobs.h \ > rasterizer/jitter/state_llvm.h \ > - rasterizer/jitter/builder_gen.h \ > - rasterizer/jitter/builder_gen.cpp \ > rasterizer/jitter/builder_x86.h \ > rasterizer/jitter/builder_x86.cpp > > @@ -122,6 +120,23 @@ COMMON_LDFLAGS = \ > $(NO_UNDEFINED) \ > $(LLVM_LDFLAGS) > > + > +# XXX: As we cannot use BUILT_SOURCES (the files will end up in the dist > +# tarball) just annotate the dependency directly. > +# As the single direct user of builder_gen.h is a header (builder.h) trace > all > +# the translusive users (one that use the latter header). > +# > +# Note: one should really clean the includes a bit, according to Tim there's > +# only 4 users of the builder_gen methods/API. > +rasterizer/jitter/blend_jit.cpp: rasterizer/jitter/builder_gen.h > +rasterizer/jitter/builder.cpp: rasterizer/jitter/builder_gen.h > +rasterizer/jitter/builder_gen.cpp: rasterizer/jitter/builder_gen.h > +rasterizer/jitter/builder_x86.cpp: rasterizer/jitter/builder_gen.h > +rasterizer/jitter/builder_misc.cpp: rasterizer/jitter/builder_gen.h > +rasterizer/jitter/fetch_jit.cpp: rasterizer/jitter/builder_gen.h > +rasterizer/jitter/streamout_jit.cpp: rasterizer/jitter/builder_gen.h > +swr_shader.cpp: rasterizer/jitter/builder_gen.h > + > lib_LTLIBRARIES = libswrAVX.la libswrAVX2.la > > libswrAVX_la_CXXFLAGS = \ > @@ -132,6 +147,15 @@ libswrAVX_la_CXXFLAGS = \ > libswrAVX_la_SOURCES = \ > $(COMMON_SOURCES) > > +# XXX: Don't ship these generated sources for now, since they are specific > +# to the LLVM version they are generated from. Thus a release tarball > +# containing the said files, generated against eg. LLVM 3.8 will fail to > build > +# on systems with other versions of LLVM eg. 3.7 or 3.6. > +# Move these back to BUILT_SOURCES once that is resolved. > +nodist_libswrAVX_la_SOURCES = \ > + rasterizer/jitter/builder_gen.h \ > + rasterizer/jitter/builder_gen.cpp > + > libswrAVX_la_LIBADD = \ > $(COMMON_LIBADD) > > @@ -146,6 +170,15 @@ libswrAVX2_la_CXXFLAGS = \ > libswrAVX2_la_SOURCES = \ > $(COMMON_SOURCES) > > +# XXX: Don't ship these generated sources for now, since they are specific > +# to the LLVM version they are generated from. Thus a release tarball > +# containing the said files, generated against eg. LLVM 3.8 will fail to > build > +# on systems with other versions of LLVM eg. 3.7 or 3.6. > +# Move these back to BUILT_SOURCES once that is resolved. > +nodist_libswrAVX2_la_SOURCES = \ > + rasterizer/jitter/builder_gen.h \ > + rasterizer/jitter/builder_gen.cpp > + > libswrAVX2_la_LIBADD = \ > $(COMMON_LIBADD) > > -- > 2.8.2 > ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev
[Mesa-dev] [PATCH v2] swr: automake: don't ship LLVM version specific generated sources
From: Emil VelikovOtherwise things will fail to build, if the builder is using another version of LLVM. v2: annotate all the dependencies of builder_gen.h Cc: "12.0" Cc: Tim Rowley Cc: Chuck Atkins Reported-by: Chuck Atkins Signed-off-by: Emil Velikov --- Unlike v1, this ones seems to work. Please give it a try and let me know how it fares on your end. Thanks Emil --- src/gallium/drivers/swr/Makefile.am | 37 +++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/swr/Makefile.am b/src/gallium/drivers/swr/Makefile.am index 8151e4a..63dadbf 100644 --- a/src/gallium/drivers/swr/Makefile.am +++ b/src/gallium/drivers/swr/Makefile.am @@ -52,8 +52,6 @@ BUILT_SOURCES = \ rasterizer/scripts/gen_knobs.cpp \ rasterizer/scripts/gen_knobs.h \ rasterizer/jitter/state_llvm.h \ - rasterizer/jitter/builder_gen.h \ - rasterizer/jitter/builder_gen.cpp \ rasterizer/jitter/builder_x86.h \ rasterizer/jitter/builder_x86.cpp @@ -122,6 +120,23 @@ COMMON_LDFLAGS = \ $(NO_UNDEFINED) \ $(LLVM_LDFLAGS) + +# XXX: As we cannot use BUILT_SOURCES (the files will end up in the dist +# tarball) just annotate the dependency directly. +# As the single direct user of builder_gen.h is a header (builder.h) trace all +# the translusive users (one that use the latter header). +# +# Note: one should really clean the includes a bit, according to Tim there's +# only 4 users of the builder_gen methods/API. +rasterizer/jitter/blend_jit.cpp: rasterizer/jitter/builder_gen.h +rasterizer/jitter/builder.cpp: rasterizer/jitter/builder_gen.h +rasterizer/jitter/builder_gen.cpp: rasterizer/jitter/builder_gen.h +rasterizer/jitter/builder_x86.cpp: rasterizer/jitter/builder_gen.h +rasterizer/jitter/builder_misc.cpp: rasterizer/jitter/builder_gen.h +rasterizer/jitter/fetch_jit.cpp: rasterizer/jitter/builder_gen.h +rasterizer/jitter/streamout_jit.cpp: rasterizer/jitter/builder_gen.h +swr_shader.cpp: rasterizer/jitter/builder_gen.h + lib_LTLIBRARIES = libswrAVX.la libswrAVX2.la libswrAVX_la_CXXFLAGS = \ @@ -132,6 +147,15 @@ libswrAVX_la_CXXFLAGS = \ libswrAVX_la_SOURCES = \ $(COMMON_SOURCES) +# XXX: Don't ship these generated sources for now, since they are specific +# to the LLVM version they are generated from. Thus a release tarball +# containing the said files, generated against eg. LLVM 3.8 will fail to build +# on systems with other versions of LLVM eg. 3.7 or 3.6. +# Move these back to BUILT_SOURCES once that is resolved. +nodist_libswrAVX_la_SOURCES = \ + rasterizer/jitter/builder_gen.h \ + rasterizer/jitter/builder_gen.cpp + libswrAVX_la_LIBADD = \ $(COMMON_LIBADD) @@ -146,6 +170,15 @@ libswrAVX2_la_CXXFLAGS = \ libswrAVX2_la_SOURCES = \ $(COMMON_SOURCES) +# XXX: Don't ship these generated sources for now, since they are specific +# to the LLVM version they are generated from. Thus a release tarball +# containing the said files, generated against eg. LLVM 3.8 will fail to build +# on systems with other versions of LLVM eg. 3.7 or 3.6. +# Move these back to BUILT_SOURCES once that is resolved. +nodist_libswrAVX2_la_SOURCES = \ + rasterizer/jitter/builder_gen.h \ + rasterizer/jitter/builder_gen.cpp + libswrAVX2_la_LIBADD = \ $(COMMON_LIBADD) -- 2.8.2 ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev