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
+ ;;
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)
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/l
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] backgroun
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/xmlim
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_N4cp
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]