After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 722098 - autotools: after a distclean configure needs to happen before build
autotools: after a distclean configure needs to happen before build
Status: RESOLVED FIXED
Product: jhbuild
Classification: Infrastructure
Component: general
3.10.x
Other Linux
: Normal normal
: ---
Assigned To: Jhbuild maintainers
Jhbuild QA
Depends on:
Blocks:
 
 
Reported: 2014-01-13 11:44 UTC by Alban Browaeys
Modified: 2014-01-29 11:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
autotools: after a distclean configure needs to happen before build (1.46 KB, patch)
2014-01-13 11:44 UTC, Alban Browaeys
committed Details | Review

Description Alban Browaeys 2014-01-13 11:44:33 UTC
Created attachment 266150 [details] [review]
autotools: after a distclean configure needs to happen before build

Therefor check for srcdir/configure exists. If not run configure.

After a configure related error at build step, a distclean is required. But this distclean is followed by a checkout then a build. The configure step is skipped even though the configure file was not rebuilt. If I choose configure after this build failure, configure happens then distclean anew , then checkout + build which fails as configure file is mlissing. same steps in an infinite loop.

* Checking out harfbuzz * [5/78]
git remote set-url origin git://anongit.freedesktop.org/harfbuzz
git remote update origin
Récupération de origin
remote: Counting objects: 184, done.
remote: Compressing objects: 100% (144/144), done.
remote: Total 144 (delta 113), reused 0 (delta 0)
Réception d'objets: 100% (144/144), 23.14 KiB | 0 bytes/s, done.
Résolution des deltas: 100% (113/113), complété avec 39 objets locaux.
Depuis git://anongit.freedesktop.org/harfbuzz
   2646aec..8fc1f7f  master     -> origin/master
git rebase origin/master
Premièrement, rembobinons head pour rejouer votre travail par-dessus...
master mise à jour en avance rapide sur origin/master.
* Building harfbuzz * [5/78]
make -j2
make  all-recursive
make[1] : on entre dans le répertoire « /home/prahal/Projects/Devel/Gnome/jhbuild/build/harfbuzz »
Making all in src
make[2] : on entre dans le répertoire « /home/prahal/Projects/Devel/Gnome/jhbuild/build/harfbuzz/src »
 cd /home/prahal/Projects/Devel/Gnome/jhbuild/gnome/harfbuzz && /bin/bash /home/prahal/Projects/Devel/Gnome/jhbuild/gnome/harfbuzz/missing automake-1.14 --gnits src/Makefile
configure.ac:12: error: version mismatch.  This is Automake 1.14.1,
configure.ac:12: but the definition used by this AM_INIT_AUTOMAKE
configure.ac:12: comes from Automake 1.14.  You should recreate
configure.ac:12: aclocal.m4 with aclocal and run automake again.
WARNING: 'automake-1.14' is probably too old.
         You should only need it if you modified 'Makefile.am' or
         'configure.ac' or m4 files included by 'configure.ac'.
         The 'automake' program is part of the GNU Automake package:
         <http://www.gnu.org/software/automake>
         It also requires GNU Autoconf, GNU m4 and Perl in order to run:
         <http://www.gnu.org/software/autoconf>
         <http://www.gnu.org/software/m4/>
         <http://www.perl.org/>
make[2]: *** [/home/prahal/Projects/Devel/Gnome/jhbuild/gnome/harfbuzz/src/Makefile.in] Erreur 63
make[2] : on quitte le répertoire « /home/prahal/Projects/Devel/Gnome/jhbuild/build/harfbuzz/src »
make[1]: *** [all-recursive] Erreur 1
make[1] : on quitte le répertoire « /home/prahal/Projects/Devel/Gnome/jhbuild/build/harfbuzz »
make: *** [all] Erreur 2


  [1] Rerun phase build
  [2] Ignore error and continue to install
  [3] Give up on module
  [4] Start shell
  [5] Reload configuration
  [6] Go to phase "wipe directory and start over"
  [7] Go to phase "configure"
  [8] Go to phase "clean"
  [9] Go to phase "distclean"
choice: 9
* Distcleaning harfbuzz * [5/78]
git clean -d -f -x
Suppression de .gitignore
Suppression de INSTALL
Suppression de Makefile.in
Suppression de aclocal.m4
Suppression de ar-lib
Suppression de autom4te.cache/
Suppression de compile
Suppression de config.guess
Suppression de config.h.in
Suppression de config.h.in~
Suppression de config.sub
Suppression de configure
Suppression de depcomp
Suppression de docs/Makefile.in
Suppression de docs/reference/.gitignore
Suppression de docs/reference/Makefile.in
Suppression de gtk-doc.make
Suppression de install-sh
Suppression de ltmain.sh
Suppression de m4/gtk-doc.m4
Suppression de m4/libtool.m4
Suppression de m4/ltoptions.m4
Suppression de m4/ltsugar.m4
Suppression de m4/ltversion.m4
Suppression de m4/lt~obsolete.m4
Suppression de missing
Suppression de src/.gitignore
Suppression de src/Makefile.in
Suppression de src/hb-icu-le/
Suppression de src/hb-old/
Suppression de src/hb-ucdn/.gitignore
Suppression de src/hb-ucdn/Makefile.in
Suppression de test-driver
Suppression de test/.gitignore
Suppression de test/Makefile.in
Suppression de test/api/.gitignore
Suppression de test/api/Makefile.in
Suppression de test/shaping/.gitignore
Suppression de test/shaping/Makefile.in
Suppression de util/.gitignore
Suppression de util/Makefile.in
* Checking out harfbuzz * [5/78]
git remote set-url origin git://anongit.freedesktop.org/harfbuzz
git remote update origin
Récupération de origin
git rebase origin/master
La branche courante master est à jour.
* Building harfbuzz * [5/78]
make -j2
CDPATH="${ZSH_VERSION+.}:" && cd /home/prahal/Projects/Devel/Gnome/jhbuild/gnome/harfbuzz && /bin/bash /home/prahal/Projects/Devel/Gnome/jhbuild/gnome/harfbuzz/missing aclocal-1.14 -I m4
/bin/bash: /home/prahal/Projects/Devel/Gnome/jhbuild/gnome/harfbuzz/missing: Aucun fichier ou dossier de ce type
make: *** [/home/prahal/Projects/Devel/Gnome/jhbuild/gnome/harfbuzz/aclocal.m4] Erreur 127
* Error during phase build of harfbuzz: ########## Error running make -j2 * [5/78]

  [1] Rerun phase build
  [2] Ignore error and continue to build
  [3] Give up on module
  [4] Start shell
  [5] Reload configuration
  [6] Go to phase "wipe directory and start over"
  [7] Go to phase "configure"
  [8] Go to phase "clean"
  [9] Go to phase "distclean"

choice: 7
*** Configuring harfbuzz *** [5/78]
/home/prahal/Projects/Devel/Gnome/jhbuild/gnome/harfbuzz/autogen.sh --prefix /opt/gnome --libdir '/opt/gnome/lib64'  --with-systemdsystemunitdir=/opt/gnome/lib/systemd/system 
checking for ragel... /opt/gnome/bin/ragel
checking for pkg-config... /usr/bin/pkg-config
checking for gtkdocize... /opt/gnome/bin/gtkdocize
checking for autoreconf... /usr/bin/autoreconf
running autoreconf --force --install --verbose
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:17: installing './ar-lib'
configure.ac:17: installing './compile'
configure.ac:19: installing './config.guess'
configure.ac:19: installing './config.sub'
configure.ac:12: installing './install-sh'
configure.ac:12: installing './missing'
Makefile.am: installing './INSTALL'
src/Makefile.am: installing './depcomp'
parallel-tests: installing './test-driver'
autoreconf: Leaving directory `.'
running configure --prefix /opt/gnome --libdir /opt/gnome/lib64 --with-systemdsystemunitdir=/opt/gnome/lib/systemd/system
configure: WARNING: unrecognized options: --with-systemdsystemunitdir
checking for a BSD-compatible install... /home/prahal/.local/bin/install-check
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking how to create a pax tar archive... gnutar
checking whether make supports nested variables... (cached) yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for ar... ar
checking the archiver (ar) interface... ar
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.20... yes
checking for gtkdoc-check... gtkdoc-check.test
checking for gtkdoc-check... /opt/gnome/bin/gtkdoc-check
checking for gtkdoc-rebase... /opt/gnome/bin/gtkdoc-rebase
checking for gtkdoc-mkpdf... /opt/gnome/bin/gtkdoc-mkpdf
checking whether to build gtk-doc documentation... no
checking for atexit... yes
checking for mprotect... yes
checking for sysconf... yes
checking for getpagesize... yes
checking for mmap... yes
checking for isatty... yes
checking for unistd.h... (cached) yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for native Win32... no
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
checking for GLIB... yes
checking for CAIRO... yes
checking for CAIRO_FT... yes
checking for ICU... yes
checking for FREETYPE... yes
checking for FT_Face_GetCharVariantIndex... yes
checking for Intel atomic primitives... true
checking for Solaris atomic operations... false
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/hb-version.h
config.status: creating src/hb-ucdn/Makefile
config.status: creating util/Makefile
config.status: creating test/Makefile
config.status: creating test/api/Makefile
config.status: creating test/shaping/Makefile
config.status: creating docs/Makefile
config.status: creating docs/reference/Makefile
config.status: creating docs/reference/version.xml
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
configure: WARNING: unrecognized options: --with-systemdsystemunitdir
configure:

Build configuration:

Unicode callbacks (you want at least one):
	Glib:			true
	ICU:			true
	UCDN:			false

Font callbacks (the more the better):
	FreeType:		true

Tools used for command-line utilities:
	Cairo:			true

Additional shapers (the more the better):
	Graphite2:		false

Platform shapers (not normally needed):
	CoreText:		false
	Uniscribe:		false

Other features:
	Documentation:		false
	GObject bindings:	false
	Introspection:		false

*** Distcleaning harfbuzz *** [5/78]
git clean -d -f -x
Suppression de INSTALL
Suppression de Makefile.in
Suppression de aclocal.m4
Suppression de ar-lib
Suppression de autom4te.cache/
Suppression de compile
Suppression de config.guess
Suppression de config.h.in
Suppression de config.sub
Suppression de configure
Suppression de depcomp
Suppression de docs/Makefile.in
Suppression de docs/reference/Makefile.in
Suppression de gtk-doc.make
Suppression de install-sh
Suppression de ltmain.sh
Suppression de m4/gtk-doc.m4
Suppression de m4/libtool.m4
Suppression de m4/ltoptions.m4
Suppression de m4/ltsugar.m4
Suppression de m4/ltversion.m4
Suppression de m4/lt~obsolete.m4
Suppression de missing
Suppression de src/Makefile.in
Suppression de src/hb-ucdn/Makefile.in
Suppression de test-driver
Suppression de test/Makefile.in
Suppression de test/api/Makefile.in
Suppression de test/shaping/Makefile.in
Suppression de util/Makefile.in
*** Checking out harfbuzz *** [5/78]
(...)
build without configure also fails and so forth
Comment 1 Frederic Peters 2014-01-29 11:10:48 UTC
Great, thanks.

Attachment 266150 [details] pushed as aaead91 - autotools: after a distclean configure needs to happen before build