Re: Porting libreoffice to riscv64 arch

2022-05-26 Thread Caolán McNamara
On Thu, 2022-05-26 at 10:50 +0800, Bo YU wrote: > To build libreoffice package on riscv64 arch, you need apply the > *patch*[0]... > > The code under bridges/source/cpp_uno/gcc3_linux_riscv64/ is the core > of libreoffice supporting riscv, which will support riscv native for > libreoffice. > >

Re: Porting libreoffice to riscv64 arch

2022-05-26 Thread Bo YU
Hi, On Thu, May 26, 2022 at 09:43:28AM +0100, Caol�n McNamara wrote: On Thu, 2022-05-26 at 10:50 +0800, Bo YU wrote: To build libreoffice package on riscv64 arch, you need apply the *patch*[0]... The code under bridges/source/cpp_uno/gcc3_linux_riscv64/ is the core of libreoffice supporting

Re: Porting libreoffice to riscv64 arch

2022-05-25 Thread Bo YU
Hi, On Tue, May 24, 2022 at 06:28:06AM +0200, Rene Engelhard wrote: Hi, Am 24.05.22 um 02:37 schrieb Bo YU: Hi, On Mon, May 23, 2022 at 06:34:38PM +0200, Rene Engelhard wrote: You can set ENABLE_LTO=n to get it built without LTO, though. Ok, my fix is very buggly: ``` ifeq

Re: Porting libreoffice to riscv64 arch

2022-05-23 Thread Rene Engelhard
Hi, Am 24.05.22 um 02:37 schrieb Bo YU: Hi, On Mon, May 23, 2022 at 06:34:38PM +0200, Rene Engelhard wrote: Hi, Am 23.05.22 um 09:24 schrieb Bo YU: Thank you. And we now go a step further: ``` ifeq ($(ENABLE_LTO),TRUE) ifeq ($(COM_IS_CLANG),TRUE) gb_LTOFLAGS := -flto=thin Yes, this is

Re: Porting libreoffice to riscv64 arch

2022-05-23 Thread Bo YU
Hi, On Mon, May 23, 2022 at 06:34:38PM +0200, Rene Engelhard wrote: Hi, Am 23.05.22 um 09:24 schrieb Bo YU: Thank you. And we now go a step further: ``` ifeq ($(ENABLE_LTO),TRUE) ifeq ($(COM_IS_CLANG),TRUE) gb_LTOFLAGS := -flto=thin Yes, this is somehow misleading. It seems that COM_IS_CLANG

Re: Porting libreoffice to riscv64 arch

2022-05-23 Thread Bo YU
Hi, On Mon, May 23, 2022 at 07:16:03PM +0200, John Paul Adrian Glaubitz wrote: Hi Bo! On 5/12/22 15:35, Bo YU wrote: I am trying to build libreoffice packages on riscv64 arch. With the attached patches, I can run LibreOffice building configuration partly. The full log is here:

Re: Porting libreoffice to riscv64 arch

2022-05-23 Thread Rene Engelhard
Am 22.05.22 um 19:13 schrieb Rene Engelhard: (Note that this file is gone in 7.4: https://cgit.freedesktop.org/libreoffice/core/commit/?id=71b952340726190d1f178ef0dadfa89677f2c1dd, so patching this in 7.4 will be more interesting, I assume. I just checked: #elif defined(__riscv) &&

Re: Porting libreoffice to riscv64 arch

2022-05-23 Thread Rene Engelhard
Hi, Am 23.05.22 um 19:16 schrieb John Paul Adrian Glaubitz: I think it would be more wisely to discuss this issue with LibreOffice upstream and get your patches merged upstream. Yeah, I would have submitted it upstream if we had a patch in a sensible state. Without any bridges' code matching

Re: Porting libreoffice to riscv64 arch

2022-05-23 Thread John Paul Adrian Glaubitz
Hi Bo! On 5/12/22 15:35, Bo YU wrote: > I am trying to build libreoffice packages on riscv64 arch. > With the attached patches, I can run LibreOffice building configuration > partly. > > The full log is here: > https://github.com/yuzibo/debian_dev/blob/main/0003-libreoffice- > configure-log >

Re: Porting libreoffice to riscv64 arch

2022-05-23 Thread Rene Engelhard
Hi, Am 23.05.22 um 09:24 schrieb Bo YU: Thank you. And we now go a step further: ``` [build CXX] workdir/UnpackedTarball/skia/src/codec/SkBmpBaseCodec.cpp S=/<> && I=$S/instdir && W=$S/workdir &&  mkdir -p $W/GenCxxObject/UnpackedTarball/skia/src/codec/

Re: Porting libreoffice to riscv64 arch

2022-05-23 Thread Bo YU
On Sun, May 22, 2022 at 07:13:03PM +0200, Rene Engelhard wrote: Hi, Am 22.05.22 um 16:06 schrieb Bo YU: It seems it was passed for riscv64 bridge "build check". But it stops #elif defined(__m68k__) #define ARCH_CPU_M68K 1 #define ARCH_CPU_32_BITS 1 +#define ARCH_CPU_RISCV64 1 +#define

Re: Porting libreoffice to riscv64 arch

2022-05-22 Thread Rene Engelhard
Hi, Am 22.05.22 um 16:06 schrieb Bo YU: It seems it was passed for riscv64 bridge "build check". But it stops at pdfium here: ``` In file included from /<>/workdir/UnpackedTarball/pdfium/core/fpdfapi/font/cpdf_font.h:16,     from

Re: Porting libreoffice to riscv64 arch

2022-05-22 Thread Bo YU
Hi, On Thu, May 12, 2022 at 08:28:26PM +0200, Rene Engelhard wrote: Hi, You should definitely get a failure at bridges I guess ;-): You definitely have porting work before you. See e.g. https://cgit.freedesktop.org/libreoffice/core/tree/bridges/source/cpp_uno/gcc3_linux_aarch64 for arm64. You

Re: Porting libreoffice to riscv64 arch

2022-05-22 Thread Bo YU
Hi, On Thu, May 12, 2022 at 08:28:26PM +0200, Rene Engelhard wrote: Hi, Besides that I don't see an error here. I think the dependences of libreoffice had been met but need reduce or exclude some build-deps such others arch. But I am not sure how to deal with it. Could you have a look? I

Re: Porting libreoffice to riscv64 arch

2022-05-17 Thread Rene Engelhard
Hi, Am 18.05.22 um 03:39 schrieb Bo YU: Unfortunately, the libreoffice has dependences unmet issue from a few days ago to now: The following packages have unmet dependencies: libkf5bookmarks5 : Depends: libkf5bookmarks-data (= 5.90.0-1) but it is not going to be installed libkf5xmlgui5 :

Re: Porting libreoffice to riscv64 arch

2022-05-17 Thread Bo YU
hi, On Fri, May 13, 2022 at 5:22 PM Rene Engelhard wrote: > > > > Hi, > > Am 13. Mai 2022 08:26:10 MESZ schrieb Bo YU : > >Oh, Opps, my bad, sorry again. The key informations is missing in the log > >file: > >``` > >... > >* WARNING : OpenSSL has been disabled. No code compiled here will make

Re: Porting libreoffice to riscv64 arch

2022-05-13 Thread Rene Engelhard
Hi, Am 13. Mai 2022 08:26:10 MESZ schrieb Bo YU : >Oh, Opps, my bad, sorry again. The key informations is missing in the log file: >``` >... >* WARNING : OpenSSL has been disabled. No code compiled here will make use of >it but system libraries may create indirect dependencies

Re: Porting libreoffice to riscv64 arch

2022-05-13 Thread Bo YU
Hi, On Thu, May 12, 2022 at 08:28:26PM +0200, Rene Engelhard wrote: Hi, Am 12.05.22 um 15:35 schrieb Bo YU: I am trying to build libreoffice packages on riscv64 arch. With the attached patches, I can run LibreOffice building configuration partly. - You patch configure. Why? It is a generated

Re: Porting libreoffice to riscv64 arch

2022-05-12 Thread Rene Engelhard
Hi, Am 12.05.22 um 15:35 schrieb Bo YU: I am trying to build libreoffice packages on riscv64 arch. With the attached patches, I can run LibreOffice building configuration partly. - You patch configure. Why? It is a generated file. (and it contains some Windows thingies while configure.ac

Porting libreoffice to riscv64 arch

2022-05-12 Thread Bo YU
Hi, I am trying to build libreoffice packages on riscv64 arch. With the attached patches, I can run LibreOffice building configuration partly. The full log is here: https://github.com/yuzibo/debian_dev/blob/main/0003-libreoffice-configure-log When I try to fix the other error from the configure