Ken Moffat wrote:
  For the moment, I'm still on the 7.6 versions of everything, while
I try to complete my build on my netbook.

  Using 'make build', libreoffice failed on this machine after more
than 42 hours :-(

  I thought 'make build' was supposed to turn off the unit tests ?

  The log shows nothing particularly useful:

File tested,Execution Time (ms)
fdo76741.docx,800
File tested,Execution Time (ms)
fdo76741.docx,1561
File tested,Execution Time (ms)
You need gdb in your path to show backtraces

Error: a unit test failed, please do one of:

export DEBUGCPPUNIT=TRUE            # for exception catching
export CPPUNITTRACE="gdb --args"    # for interactive debugging on Linux
export CPPUNITTRACE="\"[full path to devenv.exe]\" /debugexe" # for interactive 
debugging in Visual Studio
export VALGRIND=memcheck            # for memory checking

and retry using: make CppunitTest_sw_ooxmlexport

/usr/src/libreoffice-4.3.1.2/solenv/gbuild/CppunitTest.mk:70: recipe for target 
'/usr/src/libreoffice-4.3.1.2/workdir/CppunitTest/sw_ooxmlexport.test' failed
make[1]: *** 
[/usr/src/libreoffice-4.3.1.2/workdir/CppunitTest/sw_ooxmlexport.test] Error 1
make[1]: *** Waiting for unfinished jobs....
Makefile:224: recipe for target 'build' failed
make: *** [build] Error 2

I didn't do 4.3.1.2, but I did do 4.3.2.2. The log is about 35K lines, but the word 'tested' is not in there at all.

Attached is the script I used. Change the value of base_sbu as appropriate.

Did you by by chance run out of disk space?

  -- Bruce
#!/bin/bash

#source /usr/src/stats

#!/bin/bash

function stats()
{
  log=$1
  tarball=$2
  b4=$3

  base_sbu=129

  free_now=`df -k /usr/src | grep / | sed -e "s/ \{2,\}/ /g" | cut -d" " -f3`

  buildtime=`tail -n1 $log|cut -f1 -d" "`
  sbu=`echo "scale=3; $buildtime / $base_sbu" | bc`

  psizeK=`du -k $tarball | cut -f1`
  psizeM=`echo "scale=3; $psizeK / 1024"   | bc`

  bsizeK=`echo "$free_now - $b4"           | bc`
  bsizeM=`echo "scale=3; $bsizeK / 1024"   | bc`

  echo "SBU=$sbu"                                  | tee -a $log
  echo "$psizeK $tarball size ($psizeM MB)"        | tee -a $log
  echo "$bsizeK kilobytes build size ($bsizeM MB)" | tee -a $log
  (echo -n "md5sum : "; md5sum $tarball)           | tee -a $log
  (echo -n "sha1sum: "; sha1sum $tarball)          | tee -a $log

  echo "`date` $tarball" >> /usr/src/packages-$(lsb_release -r|cut -f2).log
}

TIMEFMT='%1R Elapsed Time - '
SUDO=sudo

#######################

DIR=`pwd`
VER=4.3.2.2
PROGRAM=libreoffice-$VER
LOG=$DIR/$PROGRAM.log
TITLE=$PROGRAM
TIMEFORMAT="$TIMEFMT $TITLE"

BUILDDIR=$DIR/libreoffice
#DEST=$BUILDDIR/install

rm -f  $LOG
sudo rm -rf $BUILDDIR
mkdir  $BUILDDIR
cd     $BUILDDIR

before=`df -k /usr/src | grep / | sed -e "s/ \{2,\}/ /g" | cut -d' ' -f3`

tar -xf $DIR/$PROGRAM.tar.?z* --no-overwrite-dir || exit 1

cd $PROGRAM
{ time \
  {
    echo Making $TITLE
    date

    install -dm755 external/tarballs &&
    tar -xf $DIR/libreoffice-dictionaries-$VER.tar.xz --no-overwrite-dir 
--strip-components=1 &&

    ln -sv $DIR/libreoffice-dictionaries-$VER.tar.xz external/tarballs/ &&
    ln -sv $DIR/libreoffice-help-$VER.tar.xz         external/tarballs/ &&
    ln -sv $DIR/libreoffice-translations-$VER.tar.xz external/tarballs/ &&

    export LO_PREFIX=/opt/libreoffice-$VER  &&
    patch -Np1 -i $DIR/$PROGRAM-gcc_4_9_0-1.patch &&
    patch -Np1 -i $DIR/$PROGRAM-boost_1_56_0-1.patch &&

    sed -e "/gzip -f/d"   \
        -e "s|.1.gz|.1|g" \
        -i bin/distro-install-desktop-integration        &&

    sed -e "/distro-install-file-lists/d" -i Makefile.in &&
    chmod -v +x bin/unpack-sources                       &&

    sed -e "s/target\.mk/langlist\.mk/"                \
        -e "s/tar -xf/tar -x --strip-components=1 -f/" \
        -e "/tar -x/s/lo_src_dir/start_dir/"           \
        -i bin/unpack-sources                          &&

    unset ACLOCAL    &&

    ./autogen.sh --prefix=$LO_PREFIX     \
             --sysconfdir=/etc           \
             --with-vendor="BLFS"        \
             --with-lang="en-US"         \
             --with-help                 \
             --with-alloc=system         \
             --without-java              \
             --disable-gconf             \
             --disable-odk               \
             --disable-postgresql-sdbc   \
             --enable-release-build=yes  \
             --enable-python=system      \
             --with-system-boost         \
             --with-system-clucene       \
             --with-system-cairo         \
             --with-system-curl          \
             --with-system-expat         \
             --with-system-graphite      \
             --with-system-harfbuzz      \
             --with-system-icu           \
             --with-system-jpeg          \
             --with-system-lcms2         \
             --with-system-libpng        \
             --with-system-libxml        \
             --with-system-mesa-headers  \
             --with-system-neon          \
             --with-system-npapi-headers \
             --with-system-nss           \
             --with-system-odbc          \
             --with-system-openldap      \
             --with-system-openssl       \
             --with-system-poppler       \
             --with-system-redland       \
             --with-system-zlib          \
             --with-parallelism=4 &&

             #--with-parallelism=$(getconf _NPROCESSORS_ONLN)

    make build &&

    echo "BLFS Start INSTALL"  &&
    $SUDO make distro-pack-install                                  &&
    $SUDO install -v -m755 -d $LO_PREFIX/share/appdata              &&
    $SUDO install -v -m644    sysui/desktop/appstream-appdata/*.xml \
                              $LO_PREFIX/share/appdata              &&

    $SUDO chown -cR 0:0 dictionaries/                                           
             &&
    $SUDO mkdir -pv $LO_PREFIX/lib/libreoffice/share/extensions/dict-en         
             &&
    $SUDO cp -vR dictionaries/en/*    
$LO_PREFIX/lib/libreoffice/share/extensions/dict-en    &&
    #mkdir -pv $LO_PREFIX/lib/libreoffice/share/extensions/dict-pt-BR           
        &&
    #cp -vR dictionaries/pt_BR/* 
$LO_PREFIX/lib/libreoffice/share/extensions/dict-pt-BR

    $SUDO mkdir -pv /usr/share/pixmaps &&
    for i in writer base calc draw impress math startcenter writer; do
       $SUDO ln -svf 
/opt/$PROGRAM/share/icons/hicolor/32x32/apps/libreoffice-$i.png \
                 /usr/share/pixmaps/
    done
  }
} 2>&1 | tee -a $LOG

if [ $PIPESTATUS -ne 0 ]; then exit 1; fi;

stats $LOG $DIR/$PROGRAM.tar.?z* $before

exit 0

-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to