@Linux.tar.gz
I did the same yesterday evening and just wanted to ask you if there was a specific reason why you chose AlienBoB's slackbuild and why haven't you tried the Slack 14.2 x86-64 one instead. To late now
I tried AlienBoB's slackbuild first and got into exactly the same issues like you, did some investigation and modifications in his script and got lost, there's a lot of work that has been put in that script and I found it quite complex.
Moved then to the x86-64 slackbuild and unfortunately ran out of RAM (3 cc1 processes went over 900MB and filled my 200MB swap partition) after some 4 hours of successful compilation with 3 make jobs. I'm about to restart it now and leave it during the night with only 2 make jobs.
It went pretty far into the compilation without any issues and crashed as it filled up the available RAM+swap:
Code:
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
make[6]: *** [Makefile:777: TDParser.lo] Error 1
make[5]: *** [Makefile:592: all] Error 2
make[4]: *** [Makefile:386: all-recursive] Error 1
make[3]: *** [Makefile:493: all-recursive] Error 1
make[2]: *** [Makefile:403: all] Error 2
make[1]: *** [/mnt/hd/libreoffice/tmp/SBo/libreoffice-5.4.2.2/external/libebook/ExternalProject_libebook.mk:28: /mnt/hd/libreoffice/tmp/SBo/libreoffice-5.4.2.2/workdir/ExternalProject/libebook/build] Error 1
make[1]: *** Waiting for unfinished jobs....
____
Meanwhile, I would like to document a little bit what I've done with the LibreOffice x86-64 slackbuild, that's in case someone else is trying this in parallel. I'm building it on a Raspberry Pi2 B running Slack ARM current and having an external HardDrive attached and mounted in the standard /mnt/hd/
First, I only needed two dependencies JAVA and Apache ANT.
JAVA:
The Java precompiled package for armv7 HardFloat I took directly from Oracle and unpacked in /opt/java :
http://www.oracle.com/technetwork/ja...s-2133151.html
File:
Linux ARM 32 Hard Float ABI 77.9 MB jdk-8u151-linux-arm32-vfp-hflt.tar.gz
Due to a LibreOffice configure script check I had to create:
/etc/profile.d/openjdk.sh
- with the following content:
#!/bin/sh
export PATH="$PATH:/opt/java/bin"
export JAVA_HOME="/opt/java/"
- then make the file executable:
chmod +x /etc/profile.d/openjdk.sh
Apache ANT:
- I've used the build script and sources for Slack 14.2 x86-64 from:
https://slackbuilds.org/repository/1...nt/apache-ant/
- build script mods:
CWD=$(pwd)
TMP=${TMP:-/mnt/hd/apache-ant/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/mnt/hd/apache-ant/tmp}
- and after set -e I added my JAVA env definitions:
set -e
export PATH="$PATH:/opt/java/bin"
export JAVA_HOME="/opt/java/"
- compiled and installed the resulted slack-package.
LibreOffice build:
- took the build script and sources from:
https://slackbuilds.org/repository/1...e/LibreOffice/
- build script mods:
CWD=$(pwd)
TMP=${TMP:-/mnt/hd/libreoffice/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/mnt/hd/libreoffice/tmp}
- added the arm specific CFLAGS
else
SLKCFLAGS="-O3 -march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard"
LIBDIRSUFFIX=""
- then after set -e I added my JAVA / Apache ANT / MAKEFLAGS (3 make jobs) env definitions:
set -e
export PATH="$PATH:/opt/java/bin"
export JAVA_HOME="/opt/java/"
export ANT_HOME=/usr/share/ant
export MAKEFLAGS="-j 3"
- further down in the script I commented out:
#avahi="" ; [ "${AVAHI:-no}" != "no" ] && avahi="--enable-avahi"
#vlc="" ; [ "${VLC:-no}" != "no" ] && vlc="--enable-vlc"
#kde4="--enable-kde4" ; [ "${KDE4:-yes}" != "yes" ] && kde4="--disable-kde4"
- and then deleted/added the following in the configrue directives section:
delete:
$avahi \
$vlc \
$kde4 \
add:
--disable-kde4 \
- aditional to this I had to "patch" the:
/mnt/hd/libreoffice/tmp/SBo/libreoffice-5.4.2.2/bridges/source/cpp_uno/gcc3_linux_arm/armhelper.S
- commented out the following:
#ifdef __ARM_PCS_VFP
#<------>vpush {d0-d7} @ floating point parameter on stack
#endif
- saved the file in:
/mnt/hd/libreoffice/armhelper.S
- and added the substitution (sorry, I'm not really using diff for some simple mods)in the build file just after the unpacking of the source archive with:
#patch VFP ASM crap
rm /mnt/hd/libreoffice/tmp/SBo/libreoffice-5.4.2.2/bridges/source/cpp_uno/gcc3_linux_arm/armhelper.S
cp /mnt/hd/libreoffice/armhelper.S /mnt/hd/libreoffice/tmp/SBo/libreoffice-5.4.2.2/bridges/source/cpp_uno/gcc3_linux_arm/