273ff [Solved] Unable to build libreoffice-3.5.2.2 - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Ports & Packages > Installation and Maintenance of FreeBSD Ports or Packages

Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

Reply
 
Thread Tools Display Modes
  #1  
Old May 3rd, 2012, 08:56
alie's Avatar
alie alie is offline
Member
 
Join Date: Dec 2008
Location: Somewhere in the world
Posts: 549
Thanks: 173
Thanked 41 Times in 34 Posts
Default Unable to build libreoffice-3.5.2.2

Code:
oovbaapi deliver
Module 'oovbaapi' delivered successfully. 0 files copied, 0 files unchanged

-----------------------------------------------------------------------
        Oh dear - something failed during the build - sorry !
  For more help with debugging build errors, please see the section in:
            http://wiki.documentfoundation.org/Development

  internal build errors:

ERROR: error 65280 occurred while making /usr/ports/editors/libreoffice/work/libreoffice-core-3.5.2.2/cppuhelper/qa/unourl

 it seems that the error is inside 'cppuhelper', please re-run build
 inside this module to isolate the error and/or test your fix:
-----------------------------------------------------------------------

/usr/local/bin/bash
cd /usr/ports/editors/libreoffice/work/libreoffice-core-3.5.2.2
source ./Env.Host.sh
cd cppuhelper
rm -Rf /usr/ports/editors/libreoffice/work/libreoffice-core-3.5.2.2/cppuhelper/unxfbsd.pro # optional module 'clean'
build

when the problem is isolated and fixed exit and re-run 'make' from the top-level
gmake[1]: *** [build] Error 1
gmake[1]: Leaving directory `/usr/ports/editors/libreoffice/work/libreoffice-core-3.5.2.2'
gmake: *** [source-env-and-recurse] Error 2
*** Error code 1

Stop in /usr/ports/editors/libreoffice.
*** Error code 1

Stop in /usr/ports/editors/libreoffice.

Anyone facing same issue with FreeBSD 9-STABLE?
__________________
www.alielee.com
FreeBSD FreeBSD 9.1-PRERELEASE #0 r243320 /usr/obj/usr/src/sys/EZYCLIE amd64

Last edited by wblock@; June 8th, 2012 at 18:59. Reason: solved
Reply With Quote
  #2  
Old May 3rd, 2012, 16:19
zeissoctopus zeissoctopus is offline
Member
 
Join Date: Aug 2009
Location: Hong Kong
Posts: 112
Thanks: 149
Thanked 21 Times in 14 Posts
Default

Do you enable any non-default features such as DTrace userland in /etc/make.conf or
Code:
WITH_ICONV=yes
in /etc/src.conf in base/kernel configuration files?
My FreeBSD 9-STABLE built libreoffice 3.5.2_2 + openjdk6 without any error.

Last edited by DutchDaemon; May 4th, 2012 at 00:02. Reason: Proper formatting: http://forums.freebsd.org/showthread.php?t=8816
Reply With Quote
  #3  
Old May 4th, 2012, 02:11
alie's Avatar
alie alie is offline
Member
 
Join Date: Dec 2008
Location: Somewhere in the world
Posts: 549
Thanks: 173
Thanked 41 Times in 34 Posts
Default

Quote:
Originally Posted by zeissoctopus View Post
Do you enable any non-default features such as DTrace userland in /etc/make.conf or
Code:
WITH_ICONV=yes
in /etc/src.conf in base/kernel configuration files?
My FreeBSD 9-STABLE built libreoffice 3.5.2_2 + openjdk6 without any error.
I didn't add any non-default feature, just plain make.conf with clang for the kernel.
__________________
www.alielee.com
FreeBSD FreeBSD 9.1-PRERELEASE #0 r243320 /usr/obj/usr/src/sys/EZYCLIE amd64

Last edited by DutchDaemon; May 4th, 2012 at 18:02. Reason: Formatting.
Reply With Quote
  #4  
Old May 6th, 2012, 13:45
Drohne Drohne is offline
Junior Member
 
Join Date: Mar 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The same problem here on both FreeBSD 9-STABLE/amd64 (SVN tag r235056, buildworld today) and FreeBSD 10-CURRENT/amd64 (SVN tag r235072, buildworld today), there error is on all systems (three of them) the same:

Code:
[ build CHK ] loaded modules: cppcanvas

cppcanvas deliver
Module 'cppcanvas' delivered successfully. 0 files copied, 0 files unchanged

-----------------------------------------------------------------------
        Oh dear - something failed during the build - sorry !
  For more help with debugging build errors, please see the section in:
            http://wiki.documentfoundation.org/Development

  internal build errors:

ERROR: error 65280 occurred while making /usr/ports/editors/libreoffice/work/libreoffice-core-3.5.2.2/ucb/source/ucp/cmis

 it seems that the error is inside 'ucb', please re-run build
 inside this module to isolate the error and/or test your fix:

-----------------------------------------------------------------------

/usr/local/bin/bash
cd /usr/ports/editors/libreoffice/work/libreoffice-core-3.5.2.2
source ./Env.Host.sh
cd ucb
rm -Rf /usr/ports/editors/libreoffice/work/libreoffice-core-3.5.2.2/ucb/unxfbsd.pro # optional module 'clean'
build

when the problem is isolated and fixed exit and re-run 'make' from the top-level
gmake[1]: *** [build] Error 1
gmake[1]: Leaving directory `/usr/ports/editors/libreoffice/work/libreoffice-core-3.5.2.2'
gmake: *** [source-env-and-recurse] Error 2
*** [do-build] Error code 1

Stop in /usr/ports/editors/libreoffice.
*** [install] Error code 1

Stop in /usr/ports/editors/libreoffice.
*** [run-depends] Error code 1

Stop in /usr/ports/german/libreoffice.
*** [/usr/ports/german/libreoffice/work/.install_done.libreoffice._usr_local] Error code 1

Stop in /usr/ports/german/libreoffice.
*** [run-depends] Error code 1

Stop in /usr/ports/editors/libreoffice-i18n.
*** [install] Error code 1
__________________
E c c A Bque e d

Last edited by DutchDaemon; May 6th, 2012 at 20:45. Reason: Proper formatting: http://forums.freebsd.org/showthread.php?t=8816
Reply With Quote
  #5  
Old May 17th, 2012, 09:13
bsdpit bsdpit is offline
Junior Member
 
Join Date: May 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

Same problem here. Any ideas?
Thank you!

Last edited by DutchDaemon; May 18th, 2012 at 00:01.
Reply With Quote
  #6  
Old May 18th, 2012, 08:08
Drohne Drohne is offline
Junior Member
 
Join Date: Mar 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, there is a solution, but I forgot the details.

The reason was that I compiled some ports prerequiste for LibreOffice with GCC 4.6 (or the system's legacy gcc 4.2.1). This seems to confuse the build with CLANG.

You may see where or on what your compile process stops when you follow the instructions given at the stage of disruption of the compilation process. Do it, follow the advice! If the error is still persistent, you will get a hint on what library the compilation will terminate errorful - as it did in my attempt. I recompiled that faulty port with CLANG and the error went away.

I forgot what library I had to recompile, sorry about this.
__________________
E c c A Bque e d
Reply With Quote
  #7  
Old May 18th, 2012, 12:12
overmind overmind is offline
Member
 
Join Date: Nov 2008
Posts: 263
Thanks: 54
Thanked 20 Times in 14 Posts
Default

I had the same problem. I've just recompiled the kernel and world without clang support and then I was able to compile LibreOffice.

Just remove from /etc/make.conf:
Code:
CC?=clang
CXX?=clang++
Then rebuild your kernel and world and you should be able to compile LibreOffice.

Last edited by DutchDaemon; May 18th, 2012 at 19:48.
Reply With Quote
  #8  
Old May 20th, 2012, 18:35
Grell Grell is offline
Junior Member
 
Join Date: Mar 2011
Location: New Jersey, US
Posts: 58
Thanks: 4
Thanked 2 Times in 2 Posts
Default

I seem to be having the same problem. While compiling libreoffice it continuously fails building certain modules, I go into the work directory and successfully build them, then retry compiling libreoffice. Inevitably another module fails building and I must start the process over again, only to be followed by another module failing to build. I have tried adding
Code:
CC?=clang
CXX?=clang++
to make.conf, as well as compiling without those options. I seem to be stuck . Anyway, if anyone has a solution I'm all ears.

Last edited by DutchDaemon; May 20th, 2012 at 21:30.
Reply With Quote
  #9  
Old May 20th, 2012, 18:38
overmind overmind is offline
Member
 
Join Date: Nov 2008
Posts: 263
Thanks: 54
Thanked 20 Times in 14 Posts
Default

Remove those two line from /etc/make.conf then recompile and reinstall kernel and world and then try to compile libreoffice.
Reply With Quote
  #10  
Old May 21st, 2012, 08:55
tim-m89 tim-m89 is offline
Member
 
Join Date: Mar 2009
Posts: 115
Thanks: 10
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by overmind View Post
I had the same problem. I've just recompiled the kernel and world without clang support and then I was able to compile LibreOffice.

Just remove from /etc/make.conf:
Code:
CC?=clang
CXX?=clang++
Then rebuild your kernel and world and you should be able to compile LibreOffice.
This was never part of my /etc/make.conf:
Code:
WITH_QT_PHONON=yes

RUBY_DEFAULT_VER=1.9

WITH_GTK2=yes

# added by use.perl 2012-03-11 00:51:13
PERL_VERSION=5.14.2
And I have exact same error as alie.

Edit not exactly the same. Mine failed on vcl rather than cppuhelper.

Last edited by tim-m89; May 21st, 2012 at 09:00.
Reply With Quote
  #11  
Old May 22nd, 2012, 06:53
tim-m89 tim-m89 is offline
Member
 
Join Date: Mar 2009
Posts: 115
Thanks: 10
Thanked 0 Times in 0 Posts
Default

My theory based on it failing on different modules randomly then working is that it perhaps is related to parallel builds. A quick look in the makefiles:
/usr/ports/editors/libreoffice/Makefile:
Code:
MAKE_JOBS_UNSAFE= yes
/usr/ports/editors/openoffice-3/Makefile:
Code:
MAKE_JOBS_SAFE= yes
Maybe changing the line in libreoffice's Makefile from
Code:
MAKE_JOBS_UNSAFE= yes
to
Code:
MAKE_JOBS_SAFE= yes
will work?
Reply With Quote
  #12  
Old May 22nd, 2012, 16:19
wblock@'s Avatar
wblock@ wblock@ is offline
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,701
Thanks: 429
Thanked 1,757 Times in 1,456 Posts
Default

MAKE_JOBS_UNSAFE=yes is saying that parallel build jobs don't work with that port. Changing that will allow parallel jobs, which is not likely to help.
Reply With Quote
  #13  
Old May 22nd, 2012, 21:21
overmind overmind is offline
Member
 
Join Date: Nov 2008
Posts: 263
Thanks: 54
Thanked 20 Times in 14 Posts
Default

Just build and install kernel and world without clang and see if then libreoffice will compile.

Last edited by DutchDaemon; May 22nd, 2012 at 22:33.
Reply With Quote
  #14  
Old May 23rd, 2012, 15:58
Junkie Junkie is offline
Junior Member
 
Join Date: Oct 2010
Location: Kyev, Ukraine
Posts: 10
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Here is a hint
Code:
/usr/local/bin/bash
cd /usr/ports/editors/libreoffice/work/libreoffice-core-3.5.2.2
source ./Env.Host.sh
cd ucb
rm -Rf /usr/ports/editors/libreoffice/work/libreoffice-core-3.5.2.2/ucb/unxfbsd.pro # optional module 'clean'
build
Just follow it

Last edited by DutchDaemon; May 24th, 2012 at 01:57. Reason: Another hint -> Proper formatting: http://forums.freebsd.org/showthread.php?t=8816
Reply With Quote
  #15  
Old May 23rd, 2012, 22:52
Grell Grell is offline
Junior Member
 
Join Date: Mar 2011
Location: New Jersey, US
Posts: 58
Thanks: 4
Thanked 2 Times in 2 Posts
Default

Yeah I have tried that, building the modules manually. What inevitably happens though is another module will fail later on. I go build it and down the road another will fail. It also has nothing to do with having clang and all that in make.conf as I have compiled my userland and kernel without specifying it to use clang.

Last edited by DutchDaemon; May 24th, 2012 at 01:58.
Reply With Quote
  #16  
Old May 31st, 2012, 13:25
srivo srivo is offline
Junior Member
 
Join Date: Dec 2009
Location: Canada
Posts: 55
Thanks: 15
Thanked 3 Times in 1 Post
Default

Same problem for me!
Reply With Quote
  #17  
Old June 3rd, 2012, 15:47
roddierod's Avatar
roddierod roddierod is offline
Member
 
Join Date: Nov 2008
Location: On my Slingerlands!
Posts: 637
Thanks: 29
Thanked 72 Times in 62 Posts
Default

Did anyone figure this out as I am having the same problem now?
Reply With Quote
  #18  
Old June 4th, 2012, 06:53
pkubaj pkubaj is offline
Member
 
Join Date: Jun 2010
Posts: 298
Thanks: 21
Thanked 40 Times in 30 Posts
Default editors/libreoffice doesn't compile

I'm trying to update libreoffice-3.5.2_2 to 3.5.2_4. Unfortunately, it seems I can't. The error is:
Code:
-----------------------------------------------------------------------
        Oh dear - something failed during the build - sorry !
  For more help with debugging build errors, please see the section in:
            http://wiki.documentfoundation.org/Development

  internal build errors:

ERROR: error 65280 occurred while making /usr/obj/usr/ports/editors/libreoffice/work/libreoffice-core-3.5.2.2/vcl/prj

 it seems that the error is inside 'vcl', please re-run build
 inside this module to isolate the error and/or test your fix:
-----------------------------------------------------------------------

/usr/local/bin/bash
cd /usr/obj/usr/ports/editors/libreoffice/work/libreoffice-core-3.5.2.2
source ./Env.Host.sh
cd vcl
gmake clean # optional
gmake -r

when the problem is isolated and fixed exit and re-run 'make' from the top-level
gmake[1]: *** [build] Error 1
gmake[1]: Leaving directory `/usr/obj/usr/ports/editors/libreoffice/work/libreoffice-core-3.5.2.2'
gmake: *** [source-env-and-recurse] Error 2
*** Error code 1
As I use a recent 9.0-STABLE, I also have Clang 3.1. That's why, having thought that it may not work with 3.1 and after reading libreoffice's Makefile, I confirmed that compilation with GCC 4.6 is supported. I decided to try it out and that's what I saw later:
Code:
-----------------------------------------------------------------------
        Oh dear - something failed during the build - sorry !
  For more help with debugging build errors, please see the section in:
            http://wiki.documentfoundation.org/Development

  internal build errors:

ERROR: error 65280 occurred while making /usr/obj/usr/ports/editors/libreoffice/work/libreoffice-core-3.5.2.2/cppunit

 it seems that the error is inside 'cppunit', please re-run build
 inside this module to isolate the error and/or test your fix:
-----------------------------------------------------------------------

/usr/local/bin/bash
cd /usr/obj/usr/ports/editors/libreoffice/work/libreoffice-core-3.5.2.2
source ./Env.Host.sh
cd cppunit
rm -Rf /usr/obj/usr/ports/editors/libreoffice/work/libreoffice-core-3.5.2.2/cppunit/unxfbsd.pro # optional module 'clean'
build

when the problem is isolated and fixed exit and re-run 'make' from the top-level
gmake[1]: *** [build] Error 1
gmake[1]: Leaving directory `/usr/obj/usr/ports/editors/libreoffice/work/libreoffice-core-3.5.2.2'
gmake: *** [source-env-and-recurse] Error 2
*** Error code 1
Of course, I had run make clean before attempting to compile with GCC. In both cases, I tried to run make in those directories, with Clang the compilation continues on, only to exit with similar error later, although in different directory. I suspect that the same also happens when using GCC, but I haven't tried it.

In order to be sure that it's not my misconfiguration, I've recompiled the world with an empty /etc/src.conf, which didn't help. I've also confirmed that the very same error is also present on my another PC, but the installed ports and their configuration are mostly the same. It seems that some ports interfere with editors/libreoffice.

At last, options I use for compilation are:
Code:
朮碓pkubaj@DESKTOP1朮碓 Mon Jun 04 07:51:41P 
_cwd}/usr/ports/editors/libreoffice/ make showconfig
===> The following configuration options are available for libreoffice-3.5.2_4:
     DEBUG=off: Enable debug flags
     GNOME=off: Enable GNOME Desktop support
     GTK2=on: Enable GTK2 gui toolkit support
     GTK3=off: Enable GTK3 gui toolkit support
     JAVA=on: Add java support (XML Filters, macros)
     KDE4=off: Enable KDE4 Desktop support
     MMEDIA=on: Enable multimedia backend for impress
     PGSQL=off: Build with PostgreSQL-SDBC driver
     SDK=off: Build with SDK
     SVG=on: Enable SVG image support
     SYSTRAY=off: Enable systemtray quickstarter
     WEBDAV=off: Enable webdav protocol
===> Use 'make config' to modify these settings
They worked before, except that I compiled when PGSQL option wasn't present.

My /etc/make.conf is as following:

Code:
CPUTYPE?=core2
WITH_NEW_XORG="YES"
DISTDIR=/tmp
WRKDIRPREFIX=/usr/obj
.if (!empty(.CURDIR:M/usr/src*) || !empty(.CURDIR:M/usr/obj*))
.if !defined(NOCCACHE)
CC:=${CC:C,^cc,/usr/local/libexec/ccache/world/cc,1}
CXX:=${CXX:C,^c\+\+,/usr/local/libexec/ccache/world/c++,1}
.endif
.endif

.if ${CC:T} == "clang"
CFLAGS+=        -Qunused-arguments
.endif
# added by use.perl 2012-05-11 02:51:01
PERL_VERSION=5.14.2

Last edited by DutchDaemon; June 4th, 2012 at 10:57.
Reply With Quote
  #19  
Old June 4th, 2012, 16:51
roddierod's Avatar
roddierod roddierod is offline
Member
 
Join Date: Nov 2008
Location: On my Slingerlands!
Posts: 637
Thanks: 29
Thanked 72 Times in 62 Posts
Default

This fixed my problem

http://marc.info/?l=freebsd-ports&m=133850915813844&w=2

I still need to go into each individual module and fix the errors when the popped up, but the last one was descripted in the post above and the patch included allowed me to successfully finish the build.
Reply With Quote
The Following User Says Thank You to roddierod For This Useful Post:
wblock@ (June 5th, 2012)
  #20  
Old June 4th, 2012, 23:49
pkubaj pkubaj is offline
Member
 
Join Date: Jun 2010
Posts: 298
Thanks: 21
Thanked 40 Times in 30 Posts
Default

I've found another, easier workaround: install editors/openoffice-3
It also works quite well, considering that there's 3.4 already.
Reply With Quote
  #21  
Old June 5th, 2012, 03:39
tim-m89 tim-m89 is offline
Member
 
Join Date: Mar 2009
Posts: 115
Thanks: 10
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by pkubaj View Post
I've found another, easier workaround: install editors/openoffice-3
It also works quite well, considering that there's 3.4 already.
That's not a workaround, that's just giving up. I would like to take libreoffice for a spin but I'm just going to make do with openoffice for now too though.

Last edited by DutchDaemon; June 5th, 2012 at 13:41.
Reply With Quote
  #22  
Old June 5th, 2012, 11:03
pkubaj pkubaj is offline
Member
 
Join Date: Jun 2010
Posts: 298
Thanks: 21
Thanked 40 Times in 30 Posts
Default

Quote:
Originally Posted by tim-m89 View Post
That's not a workaround, that's just giving up. I would like to take libreoffice for a spin but I'm just gona make do with openoffice for now too though.
Frankly, I find OpenOffice better than LibreOffice (at least ATM). It works way faster than LO. I don't think I would switch back to LO, even if I could. Maybe LO is more standard-compliant, but it doesn't matter for me, OO is enough for me.
Reply With Quote
  #23  
Old June 5th, 2012, 12:18
Mage Mage is offline
Junior Member
 
Join Date: Dec 2011
Posts: 47
Thanks: 0
Thanked 9 Times in 2 Posts
Default

Quote:
Originally Posted by pkubaj View Post
I'm trying to update libreoffice-3.5.2_2 to 3.5.2_4. Unfortunately, it seems I can't. The error is:
Code:
-----------------------------------------------------------------------
        Oh dear - something failed during the build - sorry !
...
Same here. And since I upgraded png- first the already installed version of LibreOffice doesn't work.

Last edited by DutchDaemon; June 5th, 2012 at 13:41.
Reply With Quote
  #24  
Old June 5th, 2012, 14:29
wblock@'s Avatar
wblock@ wblock@ is offline
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,701
Thanks: 429
Thanked 1,757 Times in 1,456 Posts
Default

Quote:
Originally Posted by roddierod View Post
This fixed my problem

http://marc.info/?l=freebsd-ports&m=133850915813844&w=2

I still need to go into each individual module and fix the errors when the popped up, but the last one was descripted in the post above and the patch included allowed me to successfully finish the build.
Mine eventually built but did not run.
Reply With Quote
  #25  
Old June 5th, 2012, 14:37
roddierod's Avatar
roddierod roddierod is offline
Member
 
Join Date: Nov 2008
Location: On my Slingerlands!
Posts: 637
Thanks: 29
Thanked 72 Times in 62 Posts
Default

Yes...I didn't get to follow up on this, thinking maybe I did miss something. I got a splash screen but nothing else. Running from the terminal gave no errors either.

Still a bit of chatter about this on the mailing list, as you know. I'm attempting to build apache-openoffice now, as I need something to open my important spreadsheets and such.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] Unable to build php extensions. nitro7 Installation and Maintenance of FreeBSD Ports or Packages 14 July 7th, 2012 15:43
Unable to launch LibreOffice 3.4 alie Installation and Maintenance of FreeBSD Ports or Packages 1 February 29th, 2012 11:26
[Solved] Unable to build devel/icu digrouz Installation and Maintenance of FreeBSD Ports or Packages 4 December 27th, 2011 16:25
Libreoffice Issues (3.4.4 build 402) aorchid Installation and Maintenance of FreeBSD Ports or Packages 5 December 16th, 2011 06:15
libreoffice-legacy build error alphachi Installation and Maintenance of FreeBSD Ports or Packages 1 September 9th, 2011 06:59


All times are GMT +1. The time now is 10:27.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0