[ccache] build octave with ccache causes segfault when checkinstall

Joel Rosdahl joel at rosdahl.net
Sat Jul 4 15:05:06 UTC 2015


Hi Kim,

You forgot to say which version of ccache and checkinstall you are using.

There was a bug fix in ccache 3.1.6 related to this, but I guess you
already know that since you chose to continue the mail thread started in
2011 and reuse formulations from Andreas Weber's original mail? :-) See
http://www.mail-archive.com/ccache%40lists.samba.org/msg00687.html for the
thread start.

I just checked the latest checkinstall code in
http://checkinstall.izto.org/checkinstall.git and it seems like its wrapped
getcwd still has the bug I described in
http://www.mail-archive.com/ccache%40lists.samba.org/msg00701.html, so a
bug report against checkinstall would be in order.

If you are using ccache 3.1.6 and newer, there is still something that
should be fixed in ccache.

-- Joel


On 2 July 2015 at 08:48, Kim Sun <kim.sun at ericsson.com> wrote:

> 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
>
> _______________________________________________
> ccache mailing list
> ccache at lists.samba.org
> https://lists.samba.org/mailman/listinfo/ccache
>


More information about the ccache mailing list