binaries continually rebuilt

Bug #1278834 reported by grobbelaar on 2014-02-11
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libmemcached
Low
Brian Aker

Bug Description

libmemcached 1.0.18

Second and subsequent make invocations continually rebuild some binaries:

$ make
make -j9 all-am
  CXXLD libtest/libtest.la
  CXXLD tests/cycle
  CXXLD libtest/unittest
  CXXLD tests/libmemcached-1.0/testapp
  CXXLD tests/libmemcached-1.0/sasl
  CXXLD tests/libmemcached-1.0/internals
  CXXLD tests/libmemcached-1.0/testsocket
  CXXLD libtest/skiptest
  CXXLD tests/atomsmasher
  CXXLD tests/testudp
  CXXLD tests/testplus
  CXXLD tests/parser
  CXXLD tests/failure
  CXXLD tests/testhashkit
  CXXLD tests/hash_plus
  CXXLD tests/memcapable
  CXXLD tests/memstat
  CXXLD tests/memcp
  CXXLD tests/memflush
  CXXLD tests/memrm
  CXXLD tests/memexist
  CXXLD tests/memtouch
  CXXLD tests/memcat
  CXXLD tests/memping
  CXXLD tests/memerror
  CXXLD tests/memslap
  CXXLD tests/memdump

$ make
make -j9 all-am
  CXXLD libtest/libtest.la
  CXXLD tests/cycle
  CXXLD libtest/unittest
  CXXLD tests/libmemcached-1.0/testapp
  CXXLD tests/libmemcached-1.0/sasl
  CXXLD tests/libmemcached-1.0/internals
  CXXLD tests/libmemcached-1.0/testsocket
  CXXLD libtest/skiptest
  CXXLD tests/atomsmasher
  CXXLD tests/testudp
  CXXLD tests/testplus
  CXXLD tests/parser
  CXXLD tests/failure
  CXXLD tests/testhashkit
  CXXLD tests/hash_plus
  CXXLD tests/memcapable
  CXXLD tests/memstat
  CXXLD tests/memcp
  CXXLD tests/memflush
  CXXLD tests/memrm
  CXXLD tests/memexist
  CXXLD tests/memtouch
  CXXLD tests/memcat
  CXXLD tests/memping
  CXXLD tests/memerror
  CXXLD tests/memslap
  CXXLD tests/memdump

(and so on ad nauseam)

There seems to be some dependency problem with stamp-h1:

__build $ make-400 --trace
Makefile:3741: update target 'mem_config.h' due to: stamp-h1
if test ! -f mem_config.h; then rm -f stamp-h1; else :; fi
if test ! -f mem_config.h; then make-400 -j9 stamp-h1; else :; fi
Makefile:3700: update target 'all' due to: libtest/version.h libhashkit-1.0/configure.h libmemcached-1.0/configure.h ../libmemcached/csl/parser.cc ../libmemcached/csl/parser.h ../libmemcached/csl/scanner.cc ../libmemcached/csl/scanner.h mem_config.h
make-400 -j9 all-am
make-400[1]: Entering directory '__build'
Makefile:3741: update target 'mem_config.h' due to: stamp-h1
if test ! -f mem_config.h; then rm -f stamp-h1; else :; fi
if test ! -f mem_config.h; then make-400 -j9 stamp-h1; else :; fi
Makefile:4619: update target 'libtest/libtest.la' due to: libtest_tmp_dir

Brian Aker (brianaker) wrote :

The problem is how dependencies for test cases is done (currently they always get rebuilt).

Honestly, I've never spent any time on trying to figure out why this is the case.

Changed in libmemcached:
importance: Undecided → Low
Brian Aker (brianaker) wrote :

Thank you for your bug report!

The last line of it caught my attention and I was able to figure out what was causing the rebuild. I'll push up a fix shortly.

Brian Aker (brianaker) on 2014-02-16
Changed in libmemcached:
status: New → Fix Committed
assignee: nobody → Brian Aker (brianaker)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers