[ccache] build octave with ccache causes segfault when checkinstall

Kim Sun kim.sun at ericsson.com
Thu Jul 2 06:48:32 UTC 2015


Dear maintainers,

if I try to build the latest octave development source with ccache and
afterwards checkinstall, the process fails on checkinstall. The whole
procedure:

apt-get install git mercurial autoconf automake flex bison gperf gnuplot
libreadline5-dev libncurses5-dev zlib1g-dev libatlas-base-dev fftw3-dev
libglpk-dev libsuitesparse-dev libarpack2-dev libhdf5-mpich-dev
libpcre3-dev libcurl4-gnutls-dev libqhull-dev gfortran libfltk1.1-dev
libgraphicsmagick++1-dev transfig epstool libhdf5-serial-dev
libfontconfig1-dev texlive


export CXX="ccache g++"

export CC="ccache gcc"


/home/andy/src/build_octave/libtool: line 8970:  4125 Segmentation fault

     ccache g++ -fPIC -DPIC -shared -nostdlib

/usr/lib/x86_64-linux-gnu/crti.o

/usr/lib/gcc/x86_64-linux-gnu/4.6.1/crtbeginS.o

[removed lines]

.libs/liboctave_la-smx-scm-cm.o .libs/liboctave_la-smx-bm-sbm.o

.libs/liboctave_la-smx-sbm-bm.o -Wl,--whole-archive

../libcruft/.libs/libranlib.a ../libgnu/.libs/libgnu.a

-Wl,--no-whole-archive -Wl,-rpath -Wl,/usr/local/lib/octave/3.5.0+

-L/usr/local/lib/octave/3.5.0+ -lcruft -lcholmod -lumfpack -lamd -lcamd

-lcolamd -lccolamd -lcxsparse -lqrupdate -L/usr/lib -lfftw3 -lfftw3f

-llapack -lcblas -lf77blas -latlas -lreadline -lncurses -lpcre -ldl

-L/usr/lib/gcc/x86_64-linux-gnu/4.6.1

-L/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib -L/lib/../lib

-L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../..

-L/usr/lib/x86_64-linux-gnu -lgfortran -lquadmath -lstdc++ -lm -lc

-lgcc_s /usr/lib/gcc/x86_64-linux-gnu/4.6.1/crtendS.o

/usr/lib/x86_64-linux-gnu/crtn.o -O2 -O2 -pthread -O2 -Wl,-rpath

-Wl,/usr/local/lib/octave/3.5.0+ -pthread -Wl,-soname -Wl,liboctave.so.0

-o .libs/liboctave.so.0.0.0

libtool: install: error: relink `liboctave.la' with the above command

before installing it

make[4]: *** [install-octlibLTLIBRARIES] Fehler 1



This looks like ccache causes a segfault. I have reproduced this on

different machines over the last 4 months.



If I run checkinstall without ccache it completes without error.



So my big questions are:

Am I doing something wrong in building octave?

Do you have the same problems when using ccache and checkinstall.

Should I fill a bug report against ccache (my guess) or checkinstall?



BR
Kim



More information about the ccache mailing list