LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-14-2016, 09:46 PM   #16
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,434

Original Poster
Rep: Reputation: Disabled

Alright, my slackbuild now works again without python3 installed, but it will no longer try to build against Slackware's python2 which doesn't work anymore. By default if python3 is installed it will use "--enable-python=system" and if its not it will use "--enable-python=internal" which apparently is a lot faster... (Edit: Probably was just the ccache.) Of course its still possible to disable python or to force using an internal or fully internal python3 (I'm not sure the exact difference).

https://notabug.org/orbea/Slackbuild...ce/libreoffice
Code:
Slackware package /tmp/libreoffice-5.1.0.3-i486-2_SBo.tgz created.


real    73m53.145s
user    36m25.703s
sys     8m54.947s
Additionally, if anyone is trying to build libreoffice in a chroot or ssh environment, make sure $DISPLAY is not set. "echo $DISPLAY" should print nothing and if it does use "unset DISPLAY" before running the script, or you will likely end up with something like this...
Code:
[CUT] cppcanvas_emfplus
S=/tmp/SBo/libreoffice-5.1.0.3 && I=$S/instdir && W=$S/workdir &&  mkdir -p $W/CppunitTest/ && rm -fr $W/CppunitTest/cppcanvas_emfplus.test.user && mkdir $W/CppunitTest/cppcanvas_emfplus.test.user &&    rm -fr $W/CppunitTest/cppcanvas_emfplus.test.core && mkdir $W/CppunitTest/cppcanvas_emfplus.test.core && cd $W/CppunitTest/cppcanvas_emfplus.test.core && (LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"$I/program:$I/program":$W/UnpackedTarball/cppunit/src/cppunit/.libs   VCL_HIDE_WINDOWS=1 MALLOC_CHECK_=2 MALLOC_PERTURB_=153     $W/LinkTarget/Executable/cppunittester $W/LinkTarget/CppunitTest/libtest_cppcanvas_emfplus.so  "-env:BRAND_BASE_DIR=file://$S/instdir" "-env:BRAND_SHARE_SUBDIR=share" "-env:UserInstallation=file://$W/CppunitTest/cppcanvas_emfplus.test.user"   "-env:CONFIGURATION_LAYERS=xcsxcu:file://$I/share/registry xcsxcu:file://$W/unittest/registry"  "-env:UNO_TYPES=file://$I/program/types/offapi.rdb file://$I/program/types.rdb"  "-env:UNO_SERVICES=file://$W/Rdb/ure/services.rdb file://$W/ComponentTarget/canvas/source/cairo/cairocanvas.component file://$W/ComponentTarget/canvas/source/factory/canvasfactory.component file://$W/ComponentTarget/cppcanvas/source/uno/mtfrenderer.component file://$W/ComponentTarget/configmgr/source/configmgr.component file://$W/ComponentTarget/extensions/source/scanner/scn.component file://$W/ComponentTarget/filter/source/config/cache/filterconfig1.component file://$W/ComponentTarget/framework/util/fwk.component file://$W/ComponentTarget/i18npool/util/i18npool.component file://$W/ComponentTarget/package/util/package2.component file://$W/ComponentTarget/sax/source/expatwrap/expwrap.component file://$W/ComponentTarget/sfx2/util/sfx.component file://$W/ComponentTarget/sd/util/sd.component file://$W/ComponentTarget/sd/util/sdd.component file://$W/ComponentTarget/svl/source/fsstor/fsstorage.component file://$W/ComponentTarget/toolkit/util/tk.component file://$W/ComponentTarget/ucb/source/core/ucb1.component file://$W/ComponentTarget/ucb/source/ucp/file/ucpfile1.component file://$W/ComponentTarget/unoxml/source/service/unoxml.component file://$W/ComponentTarget/svtools/util/svt.component"  -env:URE_INTERNAL_LIB_DIR=file://$I/program -env:LO_LIB_DIR=file://$I/program -env:LO_JAVA_DIR=file://$I/program/classes --protector $W/LinkTarget/Library/unoexceptionprotector.so unoexceptionprotector --protector $W/LinkTarget/Library/unobootstrapprotector.so unobootstrapprotector   --protector $W/LinkTarget/Library/libvclbootstrapprotector.so vclbootstrapprotector   "-env:CPPUNITTESTTARGET=$W/CppunitTest/cppcanvas_emfplus.test"  > $W/CppunitTest/cppcanvas_emfplus.test.log 2>&1 || ( RET=$?; $S/solenv/bin/gdb-core-bt.sh $W/LinkTarget/Executable/cppunittester $W/CppunitTest/cppcanvas_emfplus.test.core $RET >> $W/CppunitTest/cppcanvas_emfplus.test.log 2>&1; cat $W/CppunitTest/cppcanvas_emfplus.test.log; $S/solenv/gbuild/platform/unittest-failed-default.sh Cppunit cppcanvas_emfplus))
No protocol specified
No protocol specified
unknown:0:Test::testFdo77229
An uncaught exception of type com.sun.star.uno.RuntimeException
- PresenterCanvas: invalid number of arguments


##Failure Location unknown## : Error
Test name: Test::testFdo77229
An uncaught exception of type com.sun.star.uno.RuntimeException
- PresenterCanvas: invalid number of arguments

Failures !!!
Run: 1   Failure total: 1   Failures: 0   Errors: 1

Error: a unit test failed, please do one of:
make CppunitTest_cppcanvas_emfplus CPPUNITTRACE="gdb --args"
    # for interactive debugging on Linux
make CppunitTest_cppcanvas_emfplus VALGRIND=memcheck
    # for memory checking
make CppunitTest_cppcanvas_emfplus DEBUGCPPUNIT=TRUE
    # for exception catching

/tmp/SBo/libreoffice-5.1.0.3/solenv/gbuild/CppunitTest.mk:90: recipe for target '/tmp/SBo/libreoffice-5.1.0.3/workdir/CppunitTest/cppcanvas_emfplus.test' failed
make[1]: *** [/tmp/SBo/libreoffice-5.1.0.3/workdir/CppunitTest/cppcanvas_emfplus.test] Error 1
rm /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/dict_word_he.txt /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/dict_word_nodash.brk /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/sent.txt /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/dict_word_hu.brk /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/line.brk /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/dict_word.brk /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/edit_word.brk /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/dict_word_he.brk /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/dict_word.txt /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/edit_word.txt /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/edit_word_he.brk /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/dict_word_prepostdash.txt /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/char.txt /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/count_word.txt /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/line.txt /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/dict_word_hu.txt /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/edit_word_he.txt /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/sent.brk /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/edit_word_hu.txt /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/edit_word_hu.brk /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/count_word.brk /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/dict_word_nodash.txt /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/char_in.brk /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/char_in.txt /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/char.brk /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/dict_word_prepostdash.brk
make[1]: Leaving directory '/tmp/SBo/libreoffice-5.1.0.3'
Makefile:244: recipe for target 'build' failed
make: *** [build] Error 2

real    79m40.793s
user    41m21.669s
sys     10m24.672s

Last edited by orbea; 02-15-2016 at 09:20 AM.
 
Old 02-15-2016, 01:22 PM   #17
keithpeter
Member
 
Registered: Nov 2015
Location: 52:30N 1:55W
Distribution: Slackware 14.2 and Current
Posts: 104

Rep: Reputation: Disabled
Hello all

Fresh install of 32 bit -current, added Perl Zip module. Ran the new libreoffice.Slackbuild with newly downloaded supporting files. I got the error below part way through. I was running the compilation on tty2 outside of the GUI and echo $DISPLAY was returning empty.

Code:
creating Modules/Setup
creating Modules/Setup.local
creating Makefile
make[2]: Entering directory '/home/keith/tmp/libreoffice-5.1.0.3/workdir/UnpackedTarball/python3'
/usr/bin/ccache gcc -pthread -c -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG yes  -O2 -march=i486 -mtune=i686   -Werror=declaration-after-statement   -I. -IInclude -I./Include   -fPIC -DPy_BUILD_CORE -o Programs/python.o ./Programs/python.c
gcc: error: yes: No such file or directory
Makefile:753: recipe for target 'Programs/python.o' failed
make[2]: *** [Programs/python.o] Error 1
make[2]: Leaving directory '/home/keith/tmp/libreoffice-5.1.0.3/workdir/UnpackedTarball/python3'
/home/keith/tmp/libreoffice-5.1.0.3/external/python3/ExternalProject_python3.mk:59: recipe for target '/home/keith/tmp/libreoffice-5.1.0.3/workdir/ExternalProject/python3/build' failed
The file at /home/keith/tmp/libreoffice-5.1.0.3/workdir/UnpackedTarball/python3 was there and had about 20 lines with some error code in it.

Deleted ~/tmp and installed Python3 binary package from slackonly and after about 4 hours got a package that installed fine using this command line...

Code:
#TMP="/home/keith/tmp" OPT="yes" DICT="yes" HELP="yes" NUMJOBS="2" KDE="yes" ./libreoffice.SlackBuild
I can restore a clean system quickly if anyone wants another run.
 
Old 02-15-2016, 02:09 PM   #18
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,434

Original Poster
Rep: Reputation: Disabled
Did you try to build it the same way both times? I think the important line is:
Code:
gcc: error: yes: No such file or directory
Was this a full install? Is your coreutils package installed correctly? What does the command "which yes" return? You should have both /bin/yes and a symlink to it, /usr/bin/yes. Can you compile the python3 from SBo without any issues?

Also I don't use kde or even install it so I haven't tested that functionality personally.
 
Old 02-15-2016, 02:26 PM   #19
keithpeter
Member
 
Registered: Nov 2015
Location: 52:30N 1:55W
Distribution: Slackware 14.2 and Current
Posts: 104

Rep: Reputation: Disabled
Quote:
Originally Posted by orbea View Post
Did you try to build it the same way both times? I think the important line is:
Code:
gcc: error: yes: No such file or directory
Was this a full install?
Yes, fresh install from the -current DVD including everything (even kdei) dated 8th Feb with updates applied today. I beleive it was same system both times. Only change was installation of python3 from slackonly and reboot.

Quote:
Originally Posted by orbea View Post
Is your coreutils package installed correctly? What does the command "which yes" return? You should have both /bin/yes and a symlink to it, /usr/bin/yes.
See below - 'which yes' only shows /usr/bin/yes.

Code:
root@illy:~# ls /bin/y*
/bin/yes*  /bin/ypdomainname@
Code:
root@illy:~# which yes
/usr/bin/yes
Quote:
Originally Posted by orbea View Post
Can you compile the python3 from SBo without any issues?
I just downloaded the binary from slackonly/current. I'll do a fresh install and post 'which yes' command output and try actually compiling python3 on Wednesday (UK timezone, busy tomorrow Tuesday). The error message reported above was seen before installing python3 though and I took it that the earlier compile aborted because of an issue with the *internal* python3. When compiling *after* installing python3 from slackbuild, the compilation completed fine.

Quote:
Originally Posted by orbea View Post
Also I don't use kde or even install it so I haven't tested that functionality personally.
Oddly enough, I usually use xfce4 and don't install the kde or kdei package sets but I decided to keep to a full install on this occasion so that we had a common reference point. The KDE="yes" option allows correct behaviour in some of the Tools | Options dialogs which I did not see on previous compiles: specifically being able to pick options from lists with the mouse instead of using up/down arrows.

Last edited by keithpeter; 02-15-2016 at 03:06 PM. Reason: clarification of earlier errors
 
Old 02-15-2016, 03:19 PM   #20
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,434

Original Poster
Rep: Reputation: Disabled
My understanding is that its failing to find yes during the compilation of the internal python3 provided by libreoffice, which I didn't run into here. This makes me curious if compiling python3 itself works or if its only the one provided by libreoffice. I can try to sabotage 'yes' in a chroot and see if that reproduces the issue...

As I am using a minimal tiling wm I don't really need any of that desktop integration and I am seeing no issues with my build using the mouse in Tools | Options, though perhaps that is different in a desktop environment? As libreoffice doesn't enable kde4 by default I decided to not either. Also, in case anyone is curious this is the version of libreoffice that finally removed the kde3 support.

Last edited by orbea; 02-15-2016 at 03:20 PM.
 
Old 02-15-2016, 03:48 PM   #21
keithpeter
Member
 
Registered: Nov 2015
Location: 52:30N 1:55W
Distribution: Slackware 14.2 and Current
Posts: 104

Rep: Reputation: Disabled
Code:
bash-4.3$ which yes
/usr/bin/yes
bash-4.3$ ls /bin/y*
/bin/yes*  /bin/ypdomainname
Above is what I get on a fresh default (i.e. full) install from -current DVD and updated to today. I get that from the command line after logging in before issuing a startx command.

I shall try compiling with the default internal python3 and *without* the KDE="yes" option with only the perl ZIP module installed when I next get some time to have this chugging away.

Last edited by keithpeter; 02-15-2016 at 03:51 PM.
 
Old 02-15-2016, 05:58 PM   #22
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,287

Rep: Reputation: 5435Reputation: 5435Reputation: 5435Reputation: 5435Reputation: 5435Reputation: 5435Reputation: 5435Reputation: 5435Reputation: 5435Reputation: 5435Reputation: 5435
The close proximity of "yes -O2 -march=i486 -mtune=i686" makes me wonder if perhaps you did something weird to the definition of the CFLAGS variable?
 
1 members found this post helpful.
  


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
LXer: LibreOffice 4.4.3 Officially Released with 80 Fixes, LibreOffice 5.0 on Its Way LXer Syndicated Linux News 0 05-07-2015 08:54 PM
LXer: LibreOffice 4.4 Released as the Most Beautiful LibreOffice Ever LXer Syndicated Linux News 0 01-30-2015 02:10 AM
How to install only Writer from Libreoffice package"libreoffice-4.0.3-i486-1alien.txz just.srad Slackware 10 05-30-2013 03:37 PM
LXer: Build Your Business Around LibreOffice, LibreOffice Certification Program Announced LXer Syndicated Linux News 0 05-07-2012 01:10 PM
LXer: LibreOffice Tips: Inserting QurĂ¢??an text in LibreOffice Writer LXer Syndicated Linux News 0 04-16-2012 03:50 PM

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

All times are GMT -5. The time now is 09:20 AM.

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