GNOME Bugzilla – Bug 674365
Race during parallel build in tests/interactive/
Last modified: 2012-05-28 15:01:40 UTC
We sometimes get this build failure when building the openSUSE package for clutter. It seems that this happens when test-unit-names.h is not fully built first (?) (at least manually building test-unit-names.h before seems to fix it). make[3]: Entering directory `/home/abuild/rpmbuild/BUILD/clutter-1.10.2/tests/interactive' gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../clutter -I../../clutter -DTESTS_DATADIR=\""/home/abuild/rpmbuild/BUILD/clutter-1.10.2/tests/data"\" -DG_DISABLE_SINGLE_INCLUDES -DGLIB_DISABLE_DEPRECATION_WARNINGS -DCLUTTER_DISABLE_DEPRECATION_WARNINGS -pthread -I/usr/include/cogl -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libdrm -I/usr/include/libpng14 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/json-glib-1.0 -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -pthread -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng14 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -c -o test_interactive-test-main.o `test -f 'test-main.c' || echo './'`test-main.c gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../clutter -I../../clutter -DTESTS_DATADIR=\""/home/abuild/rpmbuild/BUILD/clutter-1.10.2/tests/data"\" -DG_DISABLE_SINGLE_INCLUDES -DGLIB_DISABLE_DEPRECATION_WARNINGS -DCLUTTER_DISABLE_DEPRECATION_WARNINGS -pthread -I/usr/include/cogl -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libdrm -I/usr/include/libpng14 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/json-glib-1.0 -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -pthread -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng14 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -c -o test_interactive-test-texture-slicing.o `test -f 'test-texture-slicing.c' || echo './'`test-texture-slicing.c GEN test-texture-slicing GEN test-texture-async GEN test-texture-material GEN test-events GEN test-scale GEN test-actors GEN test-shader-effects GEN test-depth GEN test-threads GEN test-script GEN test-grab GEN test-cogl-shader-arbfp GEN test-cogl-shader-glsl GEN test-animator GEN test-state GEN test-state-animator GEN test-fbo GEN test-multistage GEN test-cogl-primitives GEN test-cogl-tex-tile GEN test-cogl-tex-convert GEN test-cogl-tex-foreign GEN test-cogl-tex-getset GEN test-cogl-offscreen GEN test-cogl-tex-polygon GEN test-cogl-multitexture GEN test-stage-read-pixels GEN test-clip GEN test-paint-wrapper GEN test-texture-quality GEN test-layout GEN test-animation GEN test-easing test-main.c:10:1: error: expected expression before 'static' GEN test-binding-pool GEN test-text GEN test-text-field make[3]: *** [test_interactive-test-main.o] Error 1 make[3]: *** Waiting for unfinished jobs....
Ah, could it be because test-unit-names.h is in the tarball, but is getting updated when building the tarball (because Makefile has changed)?
I guess we could try and make test-unit-names.h part of nodist_* or BUILT_SOURCES and see if it happens still.
Created attachment 215129 [details] [review] build: Move test-unit-names.h out of the dist Let it be generated at build time, as it should.
Attachment 215129 [details] pushed as f9c29d5 - build: Move test-unit-names.h out of the dist