[ccache] A problem with headers (probably)

Thomas Kahle tom111 at gmx.de
Wed Feb 6 20:03:52 GMT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

i use ccache on Gentoo Linux and have a problem with a specific package.
When compiling it without ccache it works fine. When ccache is activated
the compile fails with an
error: nauty.h: No such file or directory
I attached part of the build log.

If i clear the cache, the first compile runs flawlessly, then if i
change some compiler options (i.e. -O3 instead of -O2) and compile again
the compile fails. Maybe there are some false positive hits ??

Is there anything nasty the makers of a program could do to trigger such
a problem?

Any hint is appreciated
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHqhKnrpEWPKIUt7MRAhQrAJ4sx+BCqdbyju+zsTKxWBOOjAJO+QCgkLuY
nf3Xi/d3Ks7V7cwzq4f+Ye4=
=Y4c+
-----END PGP SIGNATURE-----
-------------- next part --------------
g++ -c -o cdd_float_interface-tmp.o -I../../../external/cdd/lib-src  -O2 -march=pentium3m -pipe -fomit-frame-pointer -I../../../apps/polytope/include -I../../../modules/common/include -I../../../modules/graph/include -I../../../lib/poly_client/include -I../../../lib/PTL/include -I../../../lib/PTL/include/std -I../../../lib/gmp_wrapper/include -O2 -march=pentium3m -pipe -fomit-frame-pointer -Wall -ftemplate-depth-200 -Wno-strict-aliasing -DALL_PLAUSIBLE_CHECKS=0 -O2 -MD -MF cdd_float_interface-tmp.d -MT 'libpolytope.a(cdd_float_interface.o)' -MT 'cdd_float_interface.o' -MT 'cdd_float_interface-tmp.o' ../../../apps/polytope/src/cdd_float_interface.cc
ld -r -o cdd_float_interface.o cdd_float_interface-tmp.o ../../external/cdd/libcdd.a
rm cdd_float_interface-tmp.o
+ ar -rc libpolytope.a transform.o lrs_interface.o cdd_interface.o cdd_float_interface.o
+ rm transform.o lrs_interface.o cdd_interface.o cdd_float_interface.o
+ : libpolytope.a
g++ -c -o SpringEmbedder.o   -O2 -march=pentium3m -pipe -fomit-frame-pointer -I../../../apps/polytope/include -I../../../modules/common/include -I../../../modules/graph/include -I../../../lib/poly_client/include -I../../../lib/PTL/include -I../../../lib/PTL/include/std -I../../../lib/gmp_wrapper/include -O2 -march=pentium3m -pipe -fomit-frame-pointer -Wall -ftemplate-depth-200 -Wno-strict-aliasing -DALL_PLAUSIBLE_CHECKS=0 -I../../../modules/graph/include -I../../../lib/poly_client/include -I../../../lib/PTL/include -I../../../lib/PTL/include/std -I../../../lib/gmp_wrapper/include -O2 -march=pentium3m -pipe -fomit-frame-pointer -Wall -ftemplate-depth-200 -Wno-strict-aliasing -DALL_PLAUSIBLE_CHECKS=0 -O2 -MD -MF SpringEmbedder.d -MT 'libgraph.a(SpringEmbedder.o)' -MT 'SpringEmbedder.o' ../../../modules/graph/src/SpringEmbedder.cc
g++ -c -o graph_compare-tmp.o -DBIGNAUTY -I../../external/nauty  -O2 -march=pentium3m -pipe -fomit-frame-pointer -I../../../apps/polytope/include -I../../../modules/common/include -I../../../modules/graph/include -I../../../lib/poly_client/include -I../../../lib/PTL/include -I../../../lib/PTL/include/std -I../../../lib/gmp_wrapper/include -O2 -march=pentium3m -pipe -fomit-frame-pointer -Wall -ftemplate-depth-200 -Wno-strict-aliasing -DALL_PLAUSIBLE_CHECKS=0 -I../../../modules/graph/include -I../../../lib/poly_client/include -I../../../lib/PTL/include -I../../../lib/PTL/include/std -I../../../lib/gmp_wrapper/include -O2 -march=pentium3m -pipe -fomit-frame-pointer -Wall -ftemplate-depth-200 -Wno-strict-aliasing -DALL_PLAUSIBLE_CHECKS=0 -O2 -MD -MF graph_compare-tmp.d -MT 'libgraph.a(graph_compare.o)' -MT 'graph_compare.o' -MT 'graph_compare-tmp.o' ../../../modules/graph/src/graph_compare.cc
../../../modules/graph/src/graph_compare.cc:22:19: error: nauty.h: No such file or directory
../../../modules/graph/src/graph_compare.cc:25: error: expected initializer before ‘*’ token
../../../modules/graph/src/graph_compare.cc:27: error: ‘bytecount’ was not declared in this scope
../../../modules/graph/src/graph_compare.cc:27: error: ‘leftbit’ was not declared in this scope
make[3]: Entering directory `/var/tmp/portage/sci-mathematics/polymake-2.3/work/polymake-2.3/build/external/nauty'
../../../support/build.make:437: .dependences: No such file or directory
make[3]: Leaving directory `/var/tmp/portage/sci-mathematics/polymake-2.3/work/polymake-2.3/build/external/nauty'
make[3]: Entering directory `/var/tmp/portage/sci-mathematics/polymake-2.3/work/polymake-2.3/build/external/nauty'
gcc -c -o nauty.o -DBIGNAUTY -I.  -O2 -march=pentium3m -pipe -fomit-frame-pointer -I../../../apps/polytope/include -O2 -march=pentium3m -pipe -fomit-frame-pointer -Wall -I../../../modules/graph/include -O2 -march=pentium3m -pipe -fomit-frame-pointer -Wall  -O2 -march=pentium3m -pipe -fomit-frame-pointer -Wall -O2 -MD -MF nauty.d -MT 'libnauty.a(nauty.o)' -MT 'nauty.o' ../../../external/nauty/nauty.c
../../../external/nauty/nauty.c: In function ‘nauty’:
../../../external/nauty/nauty.c:381: warning: suggest explicit braces to avoid ambiguous ‘else’
../../../external/nauty/nauty.c: In function ‘othernode0’:
../../../external/nauty/nauty.c:725: warning: suggest parentheses around && within ||
../../../external/nauty/nauty.c: In function ‘processnode’:
../../../external/nauty/nauty.c:868: warning: suggest explicit braces to avoid ambiguous ‘else’
../../../external/nauty/nauty.c: At top level:
./nauty.h:967: warning: ‘bytecount’ defined but not used
./nauty.h:986: warning: ‘leftbit’ defined but not used
../../../external/nauty/nauty.c: In function ‘firstpathnode0’:
../../../external/nauty/nauty.c:515: warning: ‘childcount’ may be used uninitialized in this function
gcc -c -o naututil.o -DBIGNAUTY -I.  -O2 -march=pentium3m -pipe -fomit-frame-pointer -I../../../apps/polytope/include -O2 -march=pentium3m -pipe -fomit-frame-pointer -Wall -I../../../modules/graph/include -O2 -march=pentium3m -pipe -fomit-frame-pointer -Wall  -O2 -march=pentium3m -pipe -fomit-frame-pointer -Wall -O2 -MD -MF naututil.d -MT 'libnauty.a(naututil.o)' -MT 'naututil.o' ../../../external/nauty/naututil.c
../../../external/nauty/naututil.c: In function ‘readgraph’:
../../../external/nauty/naututil.c:364: warning: suggest parentheses around && within ||
../../../external/nauty/naututil.c:389: warning: suggest parentheses around && within ||
../../../external/nauty/naututil.c: At top level:
./nauty.h:986: warning: ‘leftbit’ defined but not used
gcc -c -o nautil.o -DBIGNAUTY -I.  -O2 -march=pentium3m -pipe -fomit-frame-pointer -I../../../apps/polytope/include -O2 -march=pentium3m -pipe -fomit-frame-pointer -Wall -I../../../modules/graph/include -O2 -march=pentium3m -pipe -fomit-frame-pointer -Wall  -O2 -march=pentium3m -pipe -fomit-frame-pointer -Wall -O2 -MD -MF nautil.d -MT 'libnauty.a(nautil.o)' -MT 'nautil.o' ../../../external/nauty/nautil.c
./nauty.h:967: warning: ‘bytecount’ defined but not used
gcc -c -o nautinv.o -DBIGNAUTY -I.  -O2 -march=pentium3m -pipe -fomit-frame-pointer -I../../../apps/polytope/include -O2 -march=pentium3m -pipe -fomit-frame-pointer -Wall -I../../../modules/graph/include -O2 -march=pentium3m -pipe -fomit-frame-pointer -Wall  -O2 -march=pentium3m -pipe -fomit-frame-pointer -Wall -O2 -MD -MF nautinv.d -MT 'libnauty.a(nautinv.o)' -MT 'nautinv.o' ../../../external/nauty/nautinv.c
../../../external/nauty/nautinv.c: In function ‘adjtriang’:
../../../external/nauty/nautinv.c:391: warning: suggest parentheses around && within ||
../../../external/nauty/nautinv.c: In function ‘getbigcells’:
../../../external/nauty/nautinv.c:460: warning: suggest parentheses around && within ||
gcc -c -o naugraph.o -DBIGNAUTY -I.  -O2 -march=pentium3m -pipe -fomit-frame-pointer -I../../../apps/polytope/include -O2 -march=pentium3m -pipe -fomit-frame-pointer -Wall -I../../../modules/graph/include -O2 -march=pentium3m -pipe -fomit-frame-pointer -Wall  -O2 -march=pentium3m -pipe -fomit-frame-pointer -Wall -O2 -MD -MF naugraph.d -MT 'libnauty.a(naugraph.o)' -MT 'naugraph.o' ../../../external/nauty/naugraph.c
./nauty.h:986: warning: ‘leftbit’ defined but not used
../../../external/nauty/naugraph.c: In function ‘refine1’:
../../../external/nauty/naugraph.c:341: warning: ‘maxpos’ may be used uninitialized in this function
../../../external/nauty/naugraph.c: In function ‘refine’:
../../../external/nauty/naugraph.c:185: warning: ‘maxpos’ may be used uninitialized in this function
gcc -c -o rng.o -DBIGNAUTY -I.  -O2 -march=pentium3m -pipe -fomit-frame-pointer -I../../../apps/polytope/include -O2 -march=pentium3m -pipe -fomit-frame-pointer -Wall -I../../../modules/graph/include -O2 -march=pentium3m -pipe -fomit-frame-pointer -Wall  -O2 -march=pentium3m -pipe -fomit-frame-pointer -Wall -O2 -MD -MF rng.d -MT 'libnauty.a(rng.o)' -MT 'rng.o' ../../../external/nauty/rng.c
+ ar -rc libnauty.a nauty.o naututil.o nautil.o nautinv.o naugraph.o rng.o
+ rm nauty.o naututil.o nautil.o nautinv.o naugraph.o rng.o
+ : libnauty.a
make[3]: Leaving directory `/var/tmp/portage/sci-mathematics/polymake-2.3/work/polymake-2.3/build/external/nauty'

../../../modules/graph/src/graph_compare.cc:40: error: expected constructor, destructor, or type conversion before ‘(’ token
../../../modules/graph/src/graph_compare.cc:47: error: ISO C++ forbids declaration of ‘nauty_graph’ with no type
../../../modules/graph/src/graph_compare.cc:47: error: expected ‘;’ before ‘*’ token
../../../modules/graph/src/graph_compare.cc:49: error: ‘optionblk’ does not name a type
../../../modules/graph/src/graph_compare.cc:74: error: ‘nauty_permutation’ has not been declared
../../../modules/graph/src/graph_compare.cc: In constructor ‘polymake::graph::NautyGraph::impl::impl(int)’:
../../../modules/graph/src/graph_compare.cc:52: error: ‘WORDSIZE’ was not declared in this scope
../../../modules/graph/src/graph_compare.cc:53: error: class ‘polymake::graph::NautyGraph::impl’ does not have any field named ‘src_graph’
../../../modules/graph/src/graph_compare.cc:53: error: class ‘polymake::graph::NautyGraph::impl’ does not have any field named ‘canon_graph’
../../../modules/graph/src/graph_compare.cc:56: error: ‘src_graph’ was not declared in this scope
../../../modules/graph/src/graph_compare.cc:56: error: expected type-specifier before ‘nauty_graph’
../../../modules/graph/src/graph_compare.cc:56: error: expected `;' before ‘nauty_graph’
../../../modules/graph/src/graph_compare.cc:57: error: ‘EMPTYSET’ was not declared in this scope
../../../modules/graph/src/graph_compare.cc:58: error: ‘canon_graph’ was not declared in this scope
../../../modules/graph/src/graph_compare.cc:58: error: expected type-specifier before ‘nauty_graph’
../../../modules/graph/src/graph_compare.cc:58: error: expected `;' before ‘nauty_graph’
../../../modules/graph/src/graph_compare.cc:62: error: ‘options’ was not declared in this scope
../../../modules/graph/src/graph_compare.cc:62: error: ‘default_options’ was not declared in this scope
../../../modules/graph/src/graph_compare.cc: In destructor ‘polymake::graph::NautyGraph::impl::~impl()’:
../../../modules/graph/src/graph_compare.cc:70: error: ‘canon_graph’ was not declared in this scope
../../../modules/graph/src/graph_compare.cc:71: error: ‘src_graph’ was not declared in this scope
../../../modules/graph/src/graph_compare.cc: In static member function ‘static polymake::graph::NautyGraph::impl* polymake::graph::NautyGraph::alloc_impl(int, bool)’:
../../../modules/graph/src/graph_compare.cc:84: error: ‘struct polymake::graph::NautyGraph::impl’ has no member named ‘options’
../../../modules/graph/src/graph_compare.cc:85: error: ‘struct polymake::graph::NautyGraph::impl’ has no member named ‘options’
../../../modules/graph/src/graph_compare.cc: In member function ‘void polymake::graph::NautyGraph::add_edge(int, int)’:
../../../modules/graph/src/graph_compare.cc:93: error: ‘nauty_set’ was not declared in this scope
../../../modules/graph/src/graph_compare.cc:93: error: ‘gv’ was not declared in this scope
../../../modules/graph/src/graph_compare.cc:93: error: ‘struct polymake::graph::NautyGraph::impl’ has no member named ‘src_graph’
../../../modules/graph/src/graph_compare.cc:93: error: ‘graph_row’ was not declared in this scope
../../../modules/graph/src/graph_compare.cc:94: error: ‘ADDELEMENT’ was not declared in this scope
../../../modules/graph/src/graph_compare.cc: In member function ‘void polymake::graph::NautyGraph::partition(int)’:
../../../modules/graph/src/graph_compare.cc:99: error: ‘struct polymake::graph::NautyGraph::impl’ has no member named ‘options’
../../../modules/graph/src/graph_compare.cc: In member function ‘int* polymake::graph::NautyGraph::partitions()’:
../../../modules/graph/src/graph_compare.cc:108: error: ‘struct polymake::graph::NautyGraph::impl’ has no member named ‘options’
../../../modules/graph/src/graph_compare.cc: In member function ‘void polymake::graph::NautyGraph::finalize(bool)’:
../../../modules/graph/src/graph_compare.cc:119: error: ‘statsblk’ was not declared in this scope
../../../modules/graph/src/graph_compare.cc:119: error: expected `;' before ‘stats’
../../../modules/graph/src/graph_compare.cc:121: error: ‘nauty_set’ was not declared in this scope
../../../modules/graph/src/graph_compare.cc:121: error: ‘workspace’ was not declared in this scope
../../../modules/graph/src/graph_compare.cc:121: error: expected type-specifier before ‘nauty_set’
../../../modules/graph/src/graph_compare.cc:121: error: expected `;' before ‘nauty_set’
../../../modules/graph/src/graph_compare.cc:123: error: ‘struct polymake::graph::NautyGraph::impl’ has no member named ‘options’
../../../modules/graph/src/graph_compare.cc:126: error: ‘struct polymake::graph::NautyGraph::impl’ has no member named ‘src_graph’
../../../modules/graph/src/graph_compare.cc:127: error: ‘struct polymake::graph::NautyGraph::impl’ has no member named ‘options’
../../../modules/graph/src/graph_compare.cc:127: error: ‘stats’ was not declared in this scope
../../../modules/graph/src/graph_compare.cc:127: error: ‘struct polymake::graph::NautyGraph::impl’ has no member named ‘canon_graph’
../../../modules/graph/src/graph_compare.cc:127: error: ‘nauty’ was not declared in this scope
../../../modules/graph/src/graph_compare.cc:128: error: type ‘<type error>’ argument given to ‘delete’, expected pointer
../../../modules/graph/src/graph_compare.cc: In member function ‘bool polymake::graph::NautyGraph::operator==(const polymake::graph::NautyGraph&) const’:
../../../modules/graph/src/graph_compare.cc:134: error: ‘nauty_set’ was not declared in this scope
../../../modules/graph/src/graph_compare.cc:134: error: ‘cg1’ was not declared in this scope
../../../modules/graph/src/graph_compare.cc:134: error: ‘struct polymake::graph::NautyGraph::impl’ has no member named ‘canon_graph’
../../../modules/graph/src/graph_compare.cc:134: error: ‘cg1_end’ was not declared in this scope
../../../modules/graph/src/graph_compare.cc:134: error: ‘cg2’ was not declared in this scope
../../../modules/graph/src/graph_compare.cc:134: error: ‘struct polymake::graph::NautyGraph::impl’ has no member named ‘canon_graph’
make[2]: *** [graph_compare.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/sci-mathematics/polymake-2.3/work/polymake-2.3/build/modules/graph'
make[1]: *** [_build_module_libs] Error 2
make[1]: Leaving directory `/var/tmp/portage/sci-mathematics/polymake-2.3/work/polymake-2.3/build/apps/polytope'
make: *** [all] Error 2
 * 
 * ERROR: sci-mathematics/polymake-2.3 failed.
 * Call stack:
 *             ebuild.sh, line 1701:  Called dyn_compile
 *             ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *             ebuild.sh, line   44:  Called src_compile
 *   polymake-2.3.ebuild, line   44:  Called die
 * The specific snippet of code:
 *   	emake || die "emake failed"
 *  The die message:
 *   emake failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sci-mathematics/polymake-2.3/temp/build.log'.
 * 


More information about the ccache mailing list