Build fails on Loongnix-Server Linux (loongarch64 CPU)

Caolán McNamara caolanm at
Thu Jan 6 13:00:24 UTC 2022

On Thu, 2022-01-06 at 20:06 +0800, Kevin Suo wrote:
> Someone has reported that 'make' has failed on 
> System: Loongnix-Server Linux release 8.3 (as far as I know, this
> system is based on Fedora)
> CPU: loongarch64
> Error Message:
> [user1 at 514adae7f545 libreoffice-]$ make
> mkdir -p /home/user1/libreoffice-
> /home/user1/libreoffice- -a
> /home/user1/libreoffice- -c
> make -j 32 -rs -f /home/user1/libreoffice-
> build
> /home/user1/libreoffice-
> *** gb_UnoApiHeadersTarget_select_variant must be defined by
> platform. Stop.
> make: *** [Makefile:287: build] Error 2

solenv/gbuild/ at that location has

ifeq ($(origin gb_UnoApiHeadersTarget_select_variant),undefined)
$(eval $(call gb_Output_error,gb_UnoApiHeadersTarget_select_variant
must be defined by platform))

I expect that gets set by...

gb_UnoApiHeadersTarget_select_variant = $(if $(filter

in solenv/gbuild/platform/

and for that to be included by


and for this architecture that should (I think) be included by 


so to debug why that might not be happening I'd look into config.log
and search for the line that starts with
and see what that is to check that first

More information about the LibreOffice mailing list