unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#59519: LibreOffice 7.3.5.2 fails to build on i686-linux
@ 2022-11-23 16:43 Ludovic Courtès
  2022-11-24 18:37 ` Ricardo Wurmus
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Ludovic Courtès @ 2022-11-23 16:43 UTC (permalink / raw)
  To: 59519

The end of the log of the build for commit
2c9635cb47b0f52de635e93ebd137f1f7191c5fd looks like this:

--8<---------------cut here---------------start------------->8---
[build LNK] Executable/unopkg.bin
[build DEP] LNK:Library/libicglo.so
[build LNK] Library/libicglo.so
[build MOD] shell
[build BIN] toolkit
[build MOD] ucb
[build MOD] vcl
[build MOD] xmlhelp
[build MOD] toolkit
[build DEP] LNK:Library/libsimplecanvaslo.so
[build LNK] Library/libsimplecanvaslo.so
[build DEP] LNK:Library/libcairocanvaslo.so
[build LNK] Library/libcairocanvaslo.so
[build DEP] LNK:Library/liboglcanvaslo.so
[build LNK] Library/liboglcanvaslo.so
[build DEP] LNK:Library/libOGLTranslo.so
[build LNK] Library/libOGLTranslo.so
ld: /tmp/guix-build-libreoffice-7.3.5.2.drv-0/libreoffice-7.3.5.2/workdir/CxxObject/svtools/source/misc/imageresourceaccess.o: warning: relocation against `_ZThn20_N4cppu21ImplInheritanceHelperIN3utl19OInputStreamWrapperEJN3com3sun4star2io9XSeekableEEE7acquireEv' in read-only section `.text'
[build CMP] canvas/source/simplecanvas/simplecanvas
ld: /tmp/guix-build-libreoffice-7.3.5.2.drv-0/libreoffice-7.3.5.2/workdir/CxxObject/svtools/source/misc/imageresourceaccess.o: in function `svt::GraphicAccess::getImageStream(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&, rtl::OUString const&)':
imageresourceaccess.cxx:(.text+0xabb): undefined reference to `non-virtual thunk to cppu::ImplInheritanceHelper<utl::OInputStreamWrapper, com::sun::star::io::XSeekable>::acquire()'
ld: /tmp/guix-build-libreoffice-7.3.5.2.drv-0/libreoffice-7.3.5.2/workdir/CxxObject/svtools/source/misc/imageresourceaccess.o: in function `svt::GraphicAccess::getImageXStream(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&, rtl::OUString const&)':
imageresourceaccess.cxx:(.text+0x100e): undefined reference to `non-virtual thunk to cppu::ImplInheritanceHelper<utl::OInputStreamWrapper, com::sun::star::io::XSeekable>::acquire()'
[build CMP] slideshow/source/engine/opengl/ogltrans
[build CMP] canvas/source/opengl/oglcanvas
[build CMP] canvas/source/cairo/cairocanvas
ld: warning: creating DT_TEXTREL in a shared object
collect2: error: ld returned 1 exit status
make[1]: *** [/tmp/guix-build-libreoffice-7.3.5.2.drv-0/libreoffice-7.3.5.2/svtools/Library_svt.mk:20: /tmp/guix-build-libreoffice-7.3.5.2.drv-0/libreoffice-7.3.5.2/instdir/program/libsvtlo.so] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:289: build] Error 2
error: in phase 'build': uncaught exception:
%exception #<&invoke-error program: "make" arguments: ("-j" "24" "gtk_update_icon_cache=true") exit-status: 2 term-signal: #f stop-signal: #f> 
phase `build' failed after 1201.4 seconds
command "make" "-j" "24" "gtk_update_icon_cache=true" failed with status 2
builder for `/gnu/store/dcb1snan1sx0wdbdy7qq4jdn64is7mwf-libreoffice-7.3.5.2.drv' failed with exit code 1
@ build-failed /gnu/store/dcb1snan1sx0wdbdy7qq4jdn64is7mwf-libreoffice-7.3.5.2.drv - 1 builder for `/gnu/store/dcb1snan1sx0wdbdy7qq4jdn64is7mwf-libreoffice-7.3.5.2.drv' failed with exit code 1
--8<---------------cut here---------------end--------------->8---

Ludo’.




^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#59519: LibreOffice 7.3.5.2 fails to build on i686-linux
  2022-11-23 16:43 bug#59519: LibreOffice 7.3.5.2 fails to build on i686-linux Ludovic Courtès
@ 2022-11-24 18:37 ` Ricardo Wurmus
  2022-11-25  9:18   ` Ricardo Wurmus
  2022-11-25 19:50 ` Kaelyn via Bug reports for GNU Guix
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 7+ messages in thread
From: Ricardo Wurmus @ 2022-11-24 18:37 UTC (permalink / raw)
  To: 59519

I tried building with ld-gold-wrapper, but it didn’t fix it:

--8<---------------cut here---------------start------------->8---
ld: /tmp/guix-build-libreoffice-7.3.5.2.drv-0/libreoffice-7.3.5.2/workdir/CxxObject/svtools/source/misc/imageresourceaccess.o: warning: relocation against `_ZThn20_N4cppu21ImplInheritanceHelperIN3utl19OInputStreamWrapperEJN3com3sun4star2io9XSeekableEEE7acquireEv' in read-only section `.text'
[build CXX] reportdesign/source/ui/dlg/DateTime.cxx
ld: /tmp/guix-build-libreoffice-7.3.5.2.drv-0/libreoffice-7.3.5.2/workdir/CxxObject/svtools/source/misc/imageresourceaccess.o: in function `svt::GraphicAccess::getImageStream(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&, rtl::OUString const&)':
imageresourceaccess.cxx:(.text+0xabb): undefined reference to `non-virtual thunk to cppu::ImplInheritanceHelper<utl::OInputStreamWrapper, com::sun::star::io::XSeekable>::acquire()'
ld: /tmp/guix-build-libreoffice-7.3.5.2.drv-0/libreoffice-7.3.5.2/workdir/CxxObject/svtools/source/misc/imageresourceaccess.o: in function `svt::GraphicAccess::getImageXStream(com::sun::star
::uno::Reference<com::sun::star::uno::XComponentContext> const&, rtl::OUString const&)':
imageresourceaccess.cxx:(.text+0x100e): undefined reference to `non-virtual thunk to cppu::ImplInheritanceHelper<utl::OInputStreamWrapper, com::sun::star::io::XSeekable>::acquire()'
ld: warning: creating DT_TEXTREL in a shared object
collect2: error: ld returned 1 exit status
make[1]: *** [/tmp/guix-build-libreoffice-7.3.5.2.drv-0/libreoffice-7.3.5.2/svtools/Library_svt.mk:20: /tmp/guix-build-libreoffice-7.3.5.2.drv-0/libreoffice-7.3.5.2/instdir/program/libsvtlo.
so] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:289: build] Error 2
--8<---------------cut here---------------end--------------->8---

Here’s the command I used:

  guix build --system=i686-linux -e "(begin (import (guix)) (let ((p (@ (gnu packages libreoffice) libreoffice))) (package (inherit p) (native-inputs (modify-inputs (package-native-inputs p) (prepend (module-ref (resolve-interface '(gnu packages commencement)) 'ld-gold-wrapper)))))))"

-- 
Ricardo




^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#59519: LibreOffice 7.3.5.2 fails to build on i686-linux
  2022-11-24 18:37 ` Ricardo Wurmus
@ 2022-11-25  9:18   ` Ricardo Wurmus
  0 siblings, 0 replies; 7+ messages in thread
From: Ricardo Wurmus @ 2022-11-25  9:18 UTC (permalink / raw)
  To: 59519


I applied this patch:

  https://bug-attachments.documentfoundation.org/attachment.cgi?id=172646

And the error changed:

--8<---------------cut here---------------start------------->8---
ld: /tmp/guix-build-libreoffice-7.3.5.2.drv-0/libreoffice-7.3.5.2/workdir/CxxObject/xmloff/source/core/xmlimp.o: warning: relocation against `_ZThn20_N4cppu14WeakImplHelperIJN3com3sun4star3xml3sax18XFastAttributeListENS3_4util10XCloneableEEE7acquireEv' in read-only section `.text'
ld: /tmp/guix-build-libreoffice-7.3.5.2.drv-0/libreoffice-7.3.5.2/workdir/CxxObject/xmloff/source/core/xmlimp.o: in function `SvXMLImport::SetAutoStyles(SvXMLStylesContext*)':
xmlimp.cxx:(.text+0x86f2): undefined reference to `non-virtual thunk to cppu::WeakImplHelper<com::sun::star::xml::sax::XFastAttributeList, com::sun::star::util::XCloneable>::acquire()'
ld: warning: creating DT_TEXTREL in a shared object
collect2: error: ld returned 1 exit status
make[1]: *** [/tmp/guix-build-libreoffice-7.3.5.2.drv-0/libreoffice-7.3.5.2/xmloff/Library_xo.mk:20: /tmp/guix-build-libreoffice-7.3.5.2.drv-0/libreoffice-7.3.5.2/instdir/program/libxolo.so] Error 1
--8<---------------cut here---------------end--------------->8---

I think this is pretty good.  We got past the original error and have a
very similar error in xmlimp, so I guess we’ll just extend this patch.

-- 
Ricardo




^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#59519: LibreOffice 7.3.5.2 fails to build on i686-linux
  2022-11-23 16:43 bug#59519: LibreOffice 7.3.5.2 fails to build on i686-linux Ludovic Courtès
  2022-11-24 18:37 ` Ricardo Wurmus
@ 2022-11-25 19:50 ` Kaelyn via Bug reports for GNU Guix
  2022-11-25 19:54 ` Kaelyn via Bug reports for GNU Guix
  2022-11-26  2:02 ` Kaelyn via Bug reports for GNU Guix
  3 siblings, 0 replies; 7+ messages in thread
From: Kaelyn via Bug reports for GNU Guix @ 2022-11-25 19:50 UTC (permalink / raw)
  To: 59519@debbugs.gnu.org

Hi,

I was able to build libreoffice for i686-linux by adding "--enable-lto" and "--without-galleries" to the configure flags. The former seemed to resolve the linking issue, and the latter was to deal with the build failing because of 0 themes being found.

That error was:
[build GAL] backgrounds
[build GAL] sounds
[build MOD] postprocess
Work on gallery 'file:///tmp/guix-build-libreoffice-7.3.5.2.drv-0/libreoffice-7.3.5.2/workdir/Gallery/backgrounds'
Existing themes: 0
make[1]: *** [/tmp/guix-build-libreoffice-7.3.5.2.drv-0/libreoffice-7.3.5.2/solenv/gbuild/Gallery.mk:57: /tmp/guix-build-libreoffice-7.3.5.2.drv-0/libreoffice-7.3.5.2/workdir/Gallery/backgrounds.done] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [/tmp/guix-build-libreoffice-7.3.5.2.drv-0/libreoffice-7.3.5.2/solenv/gbuild/Gallery.mk:57: /tmp/guix-build-libreoffice-7.3.5.2.drv-0/libreoffice-7.3.5.2/workdir/Gallery/sounds.done] Error 1
make: *** [Makefile:289: build] Error 2
error: in phase 'build': uncaught exception:
%exception #<&invoke-error program: "make" arguments: ("-j" "24" "gtk_update_icon_cache=true") exit-status: 2 term-signal: #f stop-signal: #f> 
phase `build' failed after 954.9 seconds
command "make" "-j" "24" "gtk_update_icon_cache=true" failed with status 2

And a basic patch to add the two flags:
diff --git a/gnu/packages/libreoffice.scm b/gnu/packages/libreoffice.scm
index 8343f8ffc6..9ded4b5e5e 100644
--- a/gnu/packages/libreoffice.scm
+++ b/gnu/packages/libreoffice.scm
@@ -1235,6 +1235,8 @@ (define (install-appdata app)
          ;; when our default compiler is >=GCC 6.
          "--disable-pdfium"
          "--without-doxygen"
+         "--enable-lto"
+         ;; "--without-galleries"
          "--enable-build-opensymbol")))
     (native-inputs
      (list bison





^ permalink raw reply related	[flat|nested] 7+ messages in thread

* bug#59519: LibreOffice 7.3.5.2 fails to build on i686-linux
  2022-11-23 16:43 bug#59519: LibreOffice 7.3.5.2 fails to build on i686-linux Ludovic Courtès
  2022-11-24 18:37 ` Ricardo Wurmus
  2022-11-25 19:50 ` Kaelyn via Bug reports for GNU Guix
@ 2022-11-25 19:54 ` Kaelyn via Bug reports for GNU Guix
  2022-11-26  2:02 ` Kaelyn via Bug reports for GNU Guix
  3 siblings, 0 replies; 7+ messages in thread
From: Kaelyn via Bug reports for GNU Guix @ 2022-11-25 19:54 UTC (permalink / raw)
  To: 59519@debbugs.gnu.org

Sorry, I messed up the patch a little as I wanted to get the error message that prompted adding "--without-galleries". It should be:

diff --git a/gnu/packages/libreoffice.scm b/gnu/packages/libreoffice.scm
index 8343f8ffc6..7fb3fe1327 100644
--- a/gnu/packages/libreoffice.scm
+++ b/gnu/packages/libreoffice.scm
@@ -1235,6 +1235,8 @@ (define (install-appdata app)
          ;; when our default compiler is >=GCC 6.
          "--disable-pdfium"
          "--without-doxygen"
+         "--enable-lto"
+         "--without-galleries"
          "--enable-build-opensymbol")))
     (native-inputs
      (list bison





^ permalink raw reply related	[flat|nested] 7+ messages in thread

* bug#59519: LibreOffice 7.3.5.2 fails to build on i686-linux
  2022-11-23 16:43 bug#59519: LibreOffice 7.3.5.2 fails to build on i686-linux Ludovic Courtès
                   ` (2 preceding siblings ...)
  2022-11-25 19:54 ` Kaelyn via Bug reports for GNU Guix
@ 2022-11-26  2:02 ` Kaelyn via Bug reports for GNU Guix
  2022-11-26 22:15   ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
  3 siblings, 1 reply; 7+ messages in thread
From: Kaelyn via Bug reports for GNU Guix @ 2022-11-26  2:02 UTC (permalink / raw)
  To: 59519@debbugs.gnu.org

Here is a revised diff with comments added for the flags.

diff --git a/gnu/packages/libreoffice.scm b/gnu/packages/libreoffice.scm
index 8343f8ffc6..ea7f0f19e9 100644
--- a/gnu/packages/libreoffice.scm
+++ b/gnu/packages/libreoffice.scm
@@ -1235,6 +1235,12 @@ (define (install-appdata app)
          ;; when our default compiler is >=GCC 6.
          "--disable-pdfium"
          "--without-doxygen"
+         ;; Enable building with LTO to avoid linker errors about
+         ;; non-virtual thunks on i686-linux.
+         "--enable-lto"
+         ;; Disable galleries to avoid errors rebuilding the Gtk icon
+         ;; cache, at least on i686-linux.
+         "--without-galleries"
          "--enable-build-opensymbol")))
     (native-inputs
      (list bison





^ permalink raw reply related	[flat|nested] 7+ messages in thread

* bug#59519: LibreOffice 7.3.5.2 fails to build on i686-linux
  2022-11-26  2:02 ` Kaelyn via Bug reports for GNU Guix
@ 2022-11-26 22:15   ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
  0 siblings, 0 replies; 7+ messages in thread
From: Tobias Geerinckx-Rice via Bug reports for GNU Guix @ 2022-11-26 22:15 UTC (permalink / raw)
  To: Kaelyn; +Cc: 59519-done

[-- Attachment #1: Type: text/plain, Size: 770 bytes --]

Hi Kaelyn,

Kaelyn via Bug reports for GNU Guix 写道:
> Here is a revised diff with comments added for the flags.

Thanks again!  Pushed as 536adbd7cca1f257261645d9cfd7910a0055a60e, 
also with a commit message added.

> +         ;; Enable building with LTO to avoid linker errors 
> about
> +         ;; non-virtual thunks on i686-linux.
> +         "--enable-lto"
> +         ;; Disable galleries to avoid errors rebuilding the 
> Gtk icon
> +         ;; cache, at least on i686-linux.
> +         "--without-galleries"

The importance of comments is to document the ‘why’.  The ‘what’ 
is obvious from the flags themselves, so I removed the first few 
words of each comment to make them fit nicely on 1 line.

Kind regards,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-11-26 22:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-23 16:43 bug#59519: LibreOffice 7.3.5.2 fails to build on i686-linux Ludovic Courtès
2022-11-24 18:37 ` Ricardo Wurmus
2022-11-25  9:18   ` Ricardo Wurmus
2022-11-25 19:50 ` Kaelyn via Bug reports for GNU Guix
2022-11-25 19:54 ` Kaelyn via Bug reports for GNU Guix
2022-11-26  2:02 ` Kaelyn via Bug reports for GNU Guix
2022-11-26 22:15   ` Tobias Geerinckx-Rice via Bug reports for GNU Guix

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).