Build fails on Loongnix-Server Linux (loongarch64 CPU)

Caolán McNamara caolanm at redhat.com
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-7.2.5.1]$ make
> mkdir -p /home/user1/libreoffice-7.2.5.1/instdir
> /home/user1/libreoffice-7.2.5.1/solenv/bin/install-gdb-printers -a
> /home/user1/libreoffice-7.2.5.1/instdir -c
> make -j 32 -rs -f /home/user1/libreoffice-7.2.5.1/Makefile.gbuild
> build
> /home/user1/libreoffice-7.2.5.1/solenv/gbuild/UnoApiTarget.mk:127:
> *** gb_UnoApiHeadersTarget_select_variant must be defined by
> platform. Stop.
> make: *** [Makefile:287: build] Error 2

solenv/gbuild/UnoApiTarget.mk 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))
endif

I expect that gets set by...

gb_UnoApiHeadersTarget_select_variant = $(if $(filter
udkapi,$(1)),comprehensive,$(2))

in solenv/gbuild/platform/unxgcc.mk

and for that to be included by

solenv/gbuild/platform/linux.mk

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

solenv/gbuild/platform/LINUX_GODSON64_GCC.mk

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



More information about the LibreOffice mailing list