pkgsrc-Bugs archive

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

pkg/58739: pkgsrc/www/firefox does not compile on NetBSD/aarch64



	Note: There was a bad value `' for the field `Class'.
	It was set to the default value of `sw-bug'.

>Number:         58739
>Category:       pkg
>Synopsis:       pkgsrc/www/firefox does not compile on NetBSD/aarch64
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 10 23:25:00 +0000 2024
>Originator:     John Klos
>Release:        NetBSD 10.0_STABLE
>Organization:
	
>Environment:
	
	
System: NetBSD shamshu.zia.io 10.0_STABLE NetBSD 10.0_STABLE (GENERIC64) #0: Thu Aug 1 20:53:39 UTC 2024 john%shamshu.zia.io@localhost:/usr/obj-evbarm/sys/arch/evbarm/compile/GENERIC64 evbarm
Architecture: aarch64
Machine: evbarm
>Description:
	
When attempting to compile recent (130 and greater) firefox on aarch64, 
the compile fails with:

ld: ../../../media/libyuv/libyuv/libyuv_libyuv/convert.o: in function `ARGBToI420':
convert.cc:(.text.ARGBToI420+0xf0): undefined reference to `ARGBToUVRow_SVE2'
ld: convert.cc:(.text.ARGBToI420+0xf8): undefined reference to `ARGBToUVRow_SVE2'
ld: ../../../media/libyuv/libyuv/libyuv_libyuv/convert.o: in function `BGRAToI420':
convert.cc:(.text.BGRAToI420+0xf0): undefined reference to `BGRAToUVRow_SVE2'
ld: convert.cc:(.text.BGRAToI420+0xf8): undefined reference to `BGRAToUVRow_SVE2'
ld: ../../../media/libyuv/libyuv/libyuv_libyuv/convert.o: in function `ABGRToI420':

and so on.
>How-To-Repeat:
	
Attempt to compile www/firefox on NetBSD/aarch64
>Fix:
	
SVE2 is not available on my machines, and I don't know why the SVE2 
versions of functions is being referred to here.

Swapping the SVE2 functions with NEON ones works, though, and would work for 
all aarch64 since NEON is a requirement for aarch64:

sed -i 's/_SVE2/_NEON/g' work/firefox-130.0.1/media/libyuv/libyuv/source/convert.cc
sed -i 's/_SVE2/_NEON/g' work/firefox-130.0.1/media/libyuv/libyuv/source/scale_argb.cc
sed -i 's/_SVE2/_NEON/g' work/firefox-130.0.1/media/libyuv/libyuv/source/convert_argb.cc

>Unformatted:
 	
 	


Home | Main Index | Thread Index | Old Index