Re: Is it still possible to compile LibreOffice 24 for Linux 32-bit? (part 2)
Sorry to break the original thread! I made a mistake when I initially selected the digest format on the mailing list. I could not figure out how to reply to a message in a thread when I had the digest format, so I turned it off. Thanks for the heads up! I was not aware that the latest version of LibreOffice was also available in the backports section. With that available, it really is a breeze to install the 24.2 binary packages into a stable Bookworm base without breaking any dependencies. Even though I had solved my problem by having recent LibreOffice 32-bit deb packages available using backports, I continued to try to figure out why I was not able to compile LibreOffice from source. It seems I was finally able to compile it, a process I documented in this very thread. Your suggestion to use the "-g1" parameter was very useful! Just one more question. Why are the Debian packages of LibreOffice so different from the packages produced by the LO source? LO produces a bunch of libobasis* packages, while Debian does not offer a single libobasis* package, and they do not even match in name or even apparent purpose with those produced by LO source. Perhaps Debian uses LO source as a base, but also manages a custom layer to build its deb packages differently? If so, what would be the advantages of the Debian packages over the ones generated by LO source? Thanks again for your support and attention!
Re: Is it still possible to compile LibreOffice 24 for Linux 32-bit? (part 2)
Dr. Gilbert, sorry about breaking the original thread! I made a mistake when I initially selected the digest format on the mailing list. I could not figure out how to reply to a message in a thread when I had the digest format, so I turned it off. It was very enlightening to know why a 32-bit system cannot handle more than 4GB even with PAE. I have already posted in this thread the process I followed to have a successful compilation and the exact command lines that caused some error messages. Thanks for your help!
Re: Is it still possible to compile LibreOffice 24 for Linux 32-bit? (part 2)
d coinor-libcoinmp-dev and its dependencies. Ran autogen.sh and make again. Compilation was also successful. El vie, 9 feb 2024 a las 17:53, Escuelas Linux () escribió: > Thanks to Dan Horák and Rene Engelhard for their answers! > > Dan said: > > > -"Because 32-bit system means max 4GB address space for a process and ld > runs as a single process". > > > I installed a PAE kernel, so it can effectively use more than 4 GB. > > > -"You can try disabling or reducing the size of debuginfo to reduce the > size of the *.o files if it's used, you can disable LTO and there are some > options for ld to reduce its memory usage a bit". > > > I tried several permutations to reduce the amount of memory used. One of > them was to reduce the number of processors in my autogen.input: > > > --with-parallelism=1 > > > Another one was to add this parameter when running make: > > > make LDFLAGS="-Wl,--reduce-memory-overheads" > > > I also increased the available memory on the VM from 12 to 15 GB. But no > results, always got the exhausted memory message. > > I also tried several other possible solutions, but it feels like going on > a wild goose chase without knowing exactly what to do, relying on some > general random advices found on the web. > > - > > Rene said: > > > -"Debian still ships LibreOffice on 32bit archs, as do other > distributions." > > > Oh! Thanks for the tip! I was not aware that Debian even has binary > LibreOffice 24.2 32-bit packages, albeit in the unstable branch. > > I was even able to build LibreOffice from source: > > > apt-get --build source libreoffice > > > This proves to me that the LibreOffice source code has not dropped 32-bit > support, but I still don't know why my own compilation attempts always > failed with a memory exhausted message, even with the same VM configuration. > > Would it be possible for me to just use the Debian LibreOffice 24.2 > binaries or its source packages? Not quite, as they also have a lot of > dependencies on packages that are only available in the unstable branch, so > they would not be suitable for a distribution intended for a stable Debian > 12 bookworm base. > > > -"I do -g1 in Debian. LTO works". > > > Where should I add the -g1 parameter? > > > -"make check fails. I do a minimal set (testtools bridgetest, smoketest, > sal, the other public libraries) to at least not get something > fundamentally broken". > > > My autogen.input file is: > > --with-parallelism=16 > > --with-distro=LibreOfficeLinux > > --with-lang=es > > --with-myspell-dicts > > --enable-release-build > > --with-package-format=deb > > --disable-dependency-tracking > > --with-jdk-home=/usr/lib/jvm/java-11-openjdk-i386/ > > --with-privacy-policy-url=NO-URL > > > -"And somehow the testtools bridgetest fails when building with gcc >= 13, > 12 works. Haven't found a solution yet.)" > > > I'm using gcc 13! Maybe this could be the cause of my compilation failures? > > I'll make some more attempts to compile LibreOffice 32-bit now using gcc > 12, any additional ideas or suggestions would be more than welcome. > > > Thanks again. >
Is it still possible to compile LibreOffice 24 for Linux 32-bit? (part 2)
Thanks to Dan Horák and Rene Engelhard for their answers! Dan said: -"Because 32-bit system means max 4GB address space for a process and ld runs as a single process". I installed a PAE kernel, so it can effectively use more than 4 GB. -"You can try disabling or reducing the size of debuginfo to reduce the size of the *.o files if it's used, you can disable LTO and there are some options for ld to reduce its memory usage a bit". I tried several permutations to reduce the amount of memory used. One of them was to reduce the number of processors in my autogen.input: --with-parallelism=1 Another one was to add this parameter when running make: make LDFLAGS="-Wl,--reduce-memory-overheads" I also increased the available memory on the VM from 12 to 15 GB. But no results, always got the exhausted memory message. I also tried several other possible solutions, but it feels like going on a wild goose chase without knowing exactly what to do, relying on some general random advices found on the web. - Rene said: -"Debian still ships LibreOffice on 32bit archs, as do other distributions." Oh! Thanks for the tip! I was not aware that Debian even has binary LibreOffice 24.2 32-bit packages, albeit in the unstable branch. I was even able to build LibreOffice from source: apt-get --build source libreoffice This proves to me that the LibreOffice source code has not dropped 32-bit support, but I still don't know why my own compilation attempts always failed with a memory exhausted message, even with the same VM configuration. Would it be possible for me to just use the Debian LibreOffice 24.2 binaries or its source packages? Not quite, as they also have a lot of dependencies on packages that are only available in the unstable branch, so they would not be suitable for a distribution intended for a stable Debian 12 bookworm base. -"I do -g1 in Debian. LTO works". Where should I add the -g1 parameter? -"make check fails. I do a minimal set (testtools bridgetest, smoketest, sal, the other public libraries) to at least not get something fundamentally broken". My autogen.input file is: --with-parallelism=16 --with-distro=LibreOfficeLinux --with-lang=es --with-myspell-dicts --enable-release-build --with-package-format=deb --disable-dependency-tracking --with-jdk-home=/usr/lib/jvm/java-11-openjdk-i386/ --with-privacy-policy-url=NO-URL -"And somehow the testtools bridgetest fails when building with gcc >= 13, 12 works. Haven't found a solution yet.)" I'm using gcc 13! Maybe this could be the cause of my compilation failures? I'll make some more attempts to compile LibreOffice 32-bit now using gcc 12, any additional ideas or suggestions would be more than welcome. Thanks again.
Is it still possible to compile LibreOffice 24 for Linux 32-bit?
The release notes for the latest version of LibreOffice (24.2) state that "The minimum requirements for building and running LibreOffice on Linux have been raised from Red Hat Enterprise Linux 7/CentOS 7 to Red Hat Enterprise Linux 8/CentOS 8 (or equivalent)". Since Red Hat/CentOS 8 does not have a 32-bit edition, I wonder if my problems compiling for 32-bit are due to a possible lack of support. I have been compiling LibreOffice for Linux 32-bit since the Foundation stopped releasing 32-bit binaries. I have been able to solve problems, sometimes on my own, sometimes with the generous help of people on this very mailing list. But now I'm stuck. I am using Debian 12 Bookworm 32-bit as my OS base. I downloaded all the dependencies asked for on the BuildingOnLinux Foundation wiki. Since trying to compile 24.2 with a simple 'make' treats all warnings as errors, I tried using make CFLAGS="-Wno-error" CXXFLAGS="-Wno-error" But this approach only resulted in some non-compileable modules. I was finally able to compile most of them using make -Wall -Wno-restrict But it stops at one of the last stages with this message: "/usr/bin/ld: Error: /tmp/ccDBatVc.ltrans0.ltrans.o(.data.rel.ro) is too big (0x3ef58 bytes) /usr/bin/ld: Could not set dynamic section sizes: memory exhausted collect2: Error: ld returned 1 exit state make[1]: *** [/home/linux/Downloads/libreoffice-24.2.0.3/Library_merged.mk:11: /home/linux/Downloads/libreoffice-24.2.0.3/instdir/program/libmergedlo.so] Error" Since I have allocated 12 GB of RAM in the virtual machine, I don't know why the memory is exhausted. Guys, have any idea what's going on? P.S. I get the same error message when I run 'make' alone.