1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unable to build libreoffice-3.5.2.2

Discussion in 'Installation and Maintenance of Ports or Packages' started by alie, May 3, 2012.

  1. alie

    alie Member

    Messages:
    576
    Thanks Received:
    50
    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?
     
  2. zeissoctopus

    zeissoctopus Member

    Messages:
    149
    Thanks Received:
    29
    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.
     
  3. alie

    alie Member

    Messages:
    576
    Thanks Received:
    50
    I didn't add any non-default feature, just plain make.conf with clang for the kernel.
     
  4. Drohne

    Drohne New Member

    Messages:
    5
    Thanks Received:
    0
    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
     
  5. bsdpit

    bsdpit New Member

    Messages:
    1
    Thanks Received:
    0
    Hi,

    Same problem here. Any ideas?
    Thank you!
     
  6. Drohne

    Drohne New Member

    Messages:
    5
    Thanks Received:
    0
    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.
     
  7. overmind

    overmind Member

    Messages:
    332
    Thanks Received:
    29
    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.
     
  8. Grell

    Grell New Member

    Messages:
    79
    Thanks Received:
    3
    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.
     
  9. overmind

    overmind Member

    Messages:
    332
    Thanks Received:
    29
    Remove those two line from /etc/make.conf then recompile and reinstall kernel and world and then try to compile libreoffice.
     
  10. tim-m89

    tim-m89 New Member

    Messages:
    123
    Thanks Received:
    0
    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.
     
  11. tim-m89

    tim-m89 New Member

    Messages:
    123
    Thanks Received:
    0
    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?
     
  12. wblock@

    wblock@ Administrator Staff Member Administrator Moderator Developer

    Messages:
    11,541
    Thanks Received:
    2,222
    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.
     
  13. overmind

    overmind Member

    Messages:
    332
    Thanks Received:
    29
    Just build and install kernel and world without clang and see if then libreoffice will compile.
     
  14. Junkie

    Junkie New Member

    Messages:
    18
    Thanks Received:
    4
    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
     
  15. Grell

    Grell New Member

    Messages:
    79
    Thanks Received:
    3
    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.
     
  16. srivo

    srivo New Member

    Messages:
    65
    Thanks Received:
    6
    Same problem for me!
     
  17. roddierod

    roddierod Member

    Messages:
    702
    Thanks Received:
    80
    Did anyone figure this out as I am having the same problem now?
     
  18. pkubaj

    pkubaj Member

    Messages:
    455
    Thanks Received:
    51
    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
     
  19. roddierod

    roddierod Member

    Messages:
    702
    Thanks Received:
    80
    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.
     
    wblock@ thanks for this.
  20. pkubaj

    pkubaj Member

    Messages:
    455
    Thanks Received:
    51
    I've found another, easier workaround: install editors/openoffice-3
    It also works quite well, considering that there's 3.4 already.
     
  21. tim-m89

    tim-m89 New Member

    Messages:
    123
    Thanks Received:
    0
    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.
     
  22. pkubaj

    pkubaj Member

    Messages:
    455
    Thanks Received:
    51
    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.
     
  23. Mage

    Mage New Member

    Messages:
    47
    Thanks Received:
    10
    Same here. And since I upgraded png- first the already installed version of LibreOffice doesn't work.
     
  24. wblock@

    wblock@ Administrator Staff Member Administrator Moderator Developer

    Messages:
    11,541
    Thanks Received:
    2,222
    Mine eventually built but did not run.
     
  25. roddierod

    roddierod Member

    Messages:
    702
    Thanks Received:
    80
    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.