LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 11-01-2017, 07:38 PM   #16
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,382

Original Poster
Rep: Reputation: 91

I'll try
Code:
echo "Installing XML files because 'make distro-pack-install' fails to do so..."
+mkdir -p $PKG/usr/share/appdata/
install -m644 sysui/desktop/appstream-appdata/*.xml $PKG/usr/share/appdata/
in the SlackBuild.

Last edited by Linux.tar.gz; 11-02-2017 at 04:43 AM.
 
Old 11-02-2017, 08:10 AM   #17
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,382

Original Poster
Rep: Reputation: 91
New error :
Code:
Failed to install: No such file or directory at /tmp/build/tmp-libreoffice/libreoffice-5.4.2.2/solenv/bin/ooinstall line 92.
make: *** [Makefile:314: install] Error 2
Installing XML files because 'make distro-pack-install' fails to do so...
mv: cannot stat '/tmp/build/package-libreoffice/usr/lib/libreoffice/sdk/classes': No such file or directory
libreoffice.SlackBuild FAILED at line 1288
/tmp/install-libreoffice.log :
Code:
ERROR: Failure in installer.pm
ERROR: ERROR: Script setup_osl.ins not found! at /tmp/build/tmp-libreoffice/libreoffice-5.4.2.2/solenv/bin/modules/installer/setupscript.pm line 76.
...
: ERROR: Source for setup_osl.ins not found!
...
So I retry with :
Code:
#if [ ! -L $PKG/usr/lib${LIBDIRSUFFIX}/${PRGNAM}/sdk/classes ]; then                                                                                                                                                                
#  mkdir -p $PKG/usr/share/${PRGNAM}/sdk                                                                                                                                                                                            
#  mv $PKG/usr/lib${LIBDIRSUFFIX}/${PRGNAM}/sdk/classes \                                                                                                                                                                           
#    $PKG/usr/share/${PRGNAM}/sdk/                                                                                                                                                                                                  
#  ln -sf /usr/share/${PRGNAM}/sdk/classes \                                                                                                                                                                                        
#    $(readlink -f $PKG/usr/lib${LIBDIRSUFFIX}/${PRGNAM}/sdk)/                                                                                                                                                                      
#fi

Last edited by Linux.tar.gz; 11-02-2017 at 08:12 AM.
 
Old 11-02-2017, 07:22 PM   #18
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,382

Original Poster
Rep: Reputation: 91
Another error...
 
Old 11-04-2017, 04:49 PM   #19
abga
Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware x86 & ARM
Posts: 108

Rep: Reputation: 26
@Linux.tar.gz

I just started my own compilation on Slack 14.2 current HF on a Raspberry Pi2B and the only quick&dirty modifications I made so far to the build script were:

armv7hl) SLKCFLAGS="-O3 -march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -std=c++98"

arm*) TARGET=$ARCH-slackware-linux-gnueabihf ;;

make build-nocheck -j 3 VERBOSE=yes

What was your last "Another error..." ?
 
Old 11-05-2017, 08:24 AM   #20
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,382

Original Poster
Rep: Reputation: 91
Same kind as the previous.
Things not have been generated, and the SB script tries to copy them, then fail.
 
Old 11-06-2017, 08:40 AM   #21
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,382

Original Poster
Rep: Reputation: 91
I commented everything about the sdk, now it fails as the LO ./lib folder is missing.
So there's something going wrong during the compilation, and it's unnoticed by the SlackBuild.
 
Old 11-06-2017, 03:32 PM   #22
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,382

Original Poster
Rep: Reputation: 91
I tried the Slackbuild on x86_64, I have another error :
Code:
: SUCCESS: INSTDIR Source for reportbuilder.xcd: /tmp/build/tmp-libreoffice/libreoffice-5.4.2.2/instdir/./share/registry/reportbuilder.xcd
: ERROR: Source for services.rdb not found!
: 
: ERROR: Removing file libdbulo.so from file list.
...
: *****************************************************************
: ERROR: ERROR: Missing files at /tmp/build/tmp-libreoffice/libreoffice-5.4.2.2/solenv/bin/modules/installer/scriptitems.pm line 1197.
: *****************************************************************
...
mv can't find /tmp/build/package-libreoffice/usr/lib64/libreoffice/sdk/classes'
 
Old 11-06-2017, 05:02 PM   #23
abga
Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware x86 & ARM
Posts: 108

Rep: Reputation: 26
@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/
 
Old 11-06-2017, 07:40 PM   #24
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,382

Original Poster
Rep: Reputation: 91
You have to use the arobas to comment out assembly code.

I switched back to SBo LibreOffice, and I was able to generate a package (didn't test it) on x86_64.
I'm now testing it on ARM :
Code:
KDE4="no" JAVA="no" PARALLEL=2 sh LibreOffice.SlackBuild
 
Old 11-06-2017, 08:42 PM   #25
abga
Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware x86 & ARM
Posts: 108

Rep: Reputation: 26
Quote:
You have to use the arobas to comment out assembly code.
&
Quote:
KDE4="no" JAVA="no" PARALLEL=2 sh LibreOffice.SlackBuild
Oh dear ...
Sorry, I'm more into the cut the cra* approach when I get into modifying/adapting something, it's more efficient & effective, that's why I love Slack, it's KISS-ing everything.

Anyways, hope you'll get the built successful this time, whatever you switched back to, not sure why you turned against JAVA & ANT, while optional, they look to be needed in the LiberOffice internal build scripts, meanwhile I started the compilation again and will report tomorrow. Hope for a success too!
 
Old 11-07-2017, 04:30 AM   #26
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,382

Original Poster
Rep: Reputation: 91
It's still compiling, which is a good thing.
No, java isn't mandatory.
Yeah, let's cross fingers !
 
Old 11-07-2017, 09:11 AM   #27
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,382

Original Poster
Rep: Reputation: 91
Error :
Code:
[GAL] computers
[GAL] diagrams
/bin/sh: line 1: 30616 Segmentation fault      ( SAL_USE_VCLPLUGIN=svp LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"$I/program:$I/program" $I/program/gengal.bin --build-tree --destdir file://$S/extras/source/gallery --name "computers" --path $W/Gallery/computers --filenames file://$RESPONSEFILE ) > $W/Gallery/computers.done.log 2>&1
/bin/sh: line 1: 30613 Segmentation fault      ( SAL_USE_VCLPLUGIN=svp LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"$I/program:$I/program" $I/program/gengal.bin --build-tree --destdir file://$S/extras/source/gallery --name "arrows" --path $W/Gallery/arrows --filenames file://$RESPONSEFILE ) > $W/Gallery/arrows.done.log 2>&1
make[1]: *** [/tmp/SBo/libreoffice-5.4.2.2/solenv/gbuild/Gallery.mk:58: /tmp/SBo/libreoffice-5.4.2.2/workdir/Gallery/computers.done] Error 1
make[1]: *** Waiting for unfinished jobs....
Work on gallery 'file:///tmp/SBo/libreoffice-5.4.2.2/workdir/Gallery/arrows'
Existing themes: 0
make[1]: *** [/tmp/SBo/libreoffice-5.4.2.2/solenv/gbuild/Gallery.mk:58: /tmp/SBo/libreoffice-5.4.2.2/workdir/Gallery/arrows.done] Error 1
make: *** [Makefile:269: build] Error 2
 
Old 11-07-2017, 10:50 AM   #28
abga
Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware x86 & ARM
Posts: 108

Rep: Reputation: 26
After around 7 hours with only two make jobs I got again into an out of memory:
Code:
[build CXX] workdir/UnpackedTarball/opencollada/COLLADASaxFrameworkLoader/src/generated15/COLLADASaxFWLColladaParserAutoGen15PrivateFunctionMapFactory.cpp

cc1plus: out of memory allocating 39187680 bytes after a total of 33230848 bytes
make[1]: *** [/mnt/hd/libreoffice/tmp/SBo/libreoffice-5.4.2.2/solenv/gbuild/LinkTarget.mk:337: /mnt/hd/libreoffice/tmp/SBo/libreoffice-5.4.2.2/workdir/GenCxxObject/UnpackedTarba
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:269: build] Error 2
I'll dedicate a spare Raspberry Pi2 and run only one make job > export MAKEFLAGS="-j 1" . I hope it won't take a week.
 
Old 11-07-2017, 11:24 AM   #29
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,382

Original Poster
Rep: Reputation: 91
Keep the -j. Add more swap, in the form of another partition, or a swapfile.
 
Old 11-07-2017, 12:21 PM   #30
abga
Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware x86 & ARM
Posts: 108

Rep: Reputation: 26
That's why I'll dedicate a spare (got some prepared for some future projects and unused ATM) Pi2B board and indeed move the swap partition on the external harddrive avoiding to kill the internal SDCard. However, relying on the swap file for compilation is definitely a wrong approach, the fast RAM should suffice and it looks like it takes more than 900MB RAM with two make jobs and some java processes. I won't go your path not using Java / Apache ANT presuming that this could be the reason why you fail in your attempts.

Maybe a better ARM board with 2 GB RAM would be a more appropriate platform for this compilation, unfortunately I don't own such a device.

@drmozes - if you are so kind and obviously have some spare time can you please jump in and start a compilation on your build pool wonder machine by adapting the Slack 14.2 x86 LibreOffice?
https://slackbuilds.org/repository/1...e/LibreOffice/
Here's what I've butchered (basically KDE shouldn't be needed as I fear no ARM device will have enough power to run it):
https://www.linuxquestions.org/quest...ml#post5777657
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Alien libreoffice SlackBuild Digest::MD5 problem Linux.tar.gz Slackware - ARM 4 10-28-2017 09:50 AM
[Alien's LO 5.2.5] Strange bug/annoyance in Alien's LibreOffice 5.2.5 sombragris Slackware 3 02-05-2017 10:39 AM
Alien Bob's Libreoffice 4.3.0.4 slackbuild AlleyTrotter Slackware 1 08-06-2014 05:53 PM
[SOLVED] LibreOffice-4.2.3 slackbuild error on new KDE integration split off frushiyama Slackware 2 04-22-2014 07:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 03:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration