[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Porting libreoffice to riscv64 arch


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 does not...)

- You didn't adapt any of the *_ARCHS variables in debian/rules. (And that one is a hand-edited list on architectures LO is supposed to work on/did in the past, see below)

The full log is here: https://github.com/yuzibo/debian_dev/blob/main/0003-libreoffice-configure-log
I don't actually see a serious error here?
When I try to fix the other error from the configure log, but I am lost in d/control file,

It's better to look at debian/rules and the variables/gazillions of ifs here. debian/control is generated.

Wrt your error..

You mean clang? Ideally you get a clang here and then it will be there. See also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=963109.

In this case it's a new architecture so I'd be less strict. You can set ALLOW_CLANG=n in rules and ignore the "error"...

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 have real riscv64 hardware by hand so I can do more

What happens in the further build?

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 need to know the ABI and calling conventions.

(And no, unfortunately I can't help you in that, only to get it to apply and (maybe) build system issues)



Reply to: