[ccache] build octave with ccache causes segfault when checkinstall

Andreas Weber info at tech-chat.de
Mon Jul 4 06:44:50 MDT 2011


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

wget
http://sourceforge.net/projects/qrupdate/files/qrupdate/1.1/qrupdate-1.1.1.tar.gz
tar xzf qrupdate-1.1.1.tar.gz
cd qrupdate-1.1.1/
make lib
sudo make install
cd ..

export CXX="ccache g++"
export CC="ccache gcc"

hg clone http://www.octave.org/hg/octave
cd octave
[remove depth=2 in bootstrap line 500, to fix git+gnulib problem]
./autogen.sh
cd ..
mkdir build_octave && cd build_octave
../octave/configure --enable-shared --disable-static
--build=x86_64-pc-linux-gnu
...
make -j5
...
andy at PhenomBabe:~/src/build_octave$ make check
...
Summary:
  PASS   7166
  FAIL      0

There was 1 expected failure (see fntests.log for details).
...
andy at PhenomBabe:~/src/build_octave$ checkinstall
...
/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?

Some infos and versions:

andy at PhenomBabe:~/src/build_octave$ hg id ../octave/
ec6c52496485+
andy at PhenomBabe:~/src/build_octave$ uname -a
Linux PhenomBabe 2.6.39-2-amd64 #1 SMP Wed Jun 8 11:01:04 UTC 2011
x86_64 GNU/Linux
andy at PhenomBabe:~/src/build_octave$ cat /etc/debian_version
wheezy/sid
andy at PhenomBabe:~/src/build_octave$ apt-cache policy g++
g++:
  Installiert: 4:4.6.0-6
  Kandidat:    4:4.6.0-6
  Versionstabelle:
 *** 4:4.6.0-6 0
        500 http://192.168.2.3/debian/ wheezy/main amd64 Packages
        100 /var/lib/dpkg/status
andy at PhenomBabe:~/src/build_octave$ apt-cache policy gcc
gcc:
  Installiert: 4:4.6.0-6
  Kandidat:    4:4.6.0-6
  Versionstabelle:
 *** 4:4.6.0-6 0
        500 http://192.168.2.3/debian/ wheezy/main amd64 Packages
        100 /var/lib/dpkg/status
andy at PhenomBabe:~/src/build_octave$ apt-cache policy ccache
ccache:
  Installiert: 3.1.5-1
  Kandidat:    3.1.5-1
  Versionstabelle:
 *** 3.1.5-1 0
        500 http://192.168.2.3/debian/ wheezy/main amd64 Packages
        100 /var/lib/dpkg/status

Best regards
Andy




More information about the ccache mailing list