Your message dated Fri, 13 Nov 2026 10:00:46 +0800
with message-id <[email protected]>
and subject line d/rules: Prefer -O1 on armhf for now
has caused the Debian Bug report #1021237,
regarding JPEGXL_FORCE_NEON:BOOL=ON
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1021237: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1021237
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: jpeg-xl
Version: 0.7.0-1

It would be nice to check JPEGXL_FORCE_NEON:BOOL=ON is supposed to
work on armhf.

For now it gives:

/usr/bin/c++ 
-DHWY_DISABLED_TARGETS="(HWY_SVE|HWY_SVE2|HWY_SVE_256|HWY_SVE2_128|HWY_RVV)"
-DJPEGXL_MAJOR_VERSION=0 -DJPEGXL_MINOR_VERSION=7
-DJPEGXL_PATCH_VERSION=0 -DJXL_INTERNAL_LIBRARY_BUILD
-D__DATE__=\"redacted\" -D__TIMESTAMP__=\"redacted\"
-D__TIME__=\"redacted\" -I/home/malat/jpeg-xl-0.7.0
-I/home/malat/jpeg-xl-0.7.0/lib/include
-I/home/malat/jpeg-xl-0.7.0/obj-arm-linux-gnueabihf/lib/include -g -O2
-ffile-prefix-map=/home/malat/jpeg-xl-0.7.0=. -fstack-protector-strong
-Wformat -Werror=format-security -fno-tree-vectorize -Wno-psabi
-DJXL_DEBUG_WARNING -DJXL_DEBUG_ON_ERROR -Wdate-time
-D_FORTIFY_SOURCE=2 -fno-rtti -funwind-tables -fno-omit-frame-pointer
  -mfpu=neon-vfpv4 -mfloat-abi=hard -fPIC -fvisibility=hidden
-fvisibility-inlines-hidden
-fmacro-prefix-map=/home/malat/jpeg-xl-0.7.0=.
-Wno-builtin-macro-redefined -Wall -fmerge-all-constants
-fno-builtin-fwrite -fno-builtin-fread -Wextra -Wc++17-compat
-Warray-bounds -Wformat-security -Wimplicit-fallthrough -Wno-register
-Wno-unused-function -Wno-unused-parameter -Wnon-virtual-dtor
-Woverloaded-virtual -Wvla -fsized-deallocation -fno-exceptions
-fmath-errno -std=c++17 -MD -MT
lib/CMakeFiles/jxl_dec-obj.dir/jxl/aux_out.cc.o -MF
lib/CMakeFiles/jxl_dec-obj.dir/jxl/aux_out.cc.o.d -o
lib/CMakeFiles/jxl_dec-obj.dir/jxl/aux_out.cc.o -c
/home/malat/jpeg-xl-0.7.0/lib/jxl/aux_out.cc
In file included from /home/malat/jpeg-xl-0.7.0/lib/jxl/field_encodings.h:16,
                 from /home/malat/jpeg-xl-0.7.0/lib/jxl/fields.h:29,
                 from /home/malat/jpeg-xl-0.7.0/lib/jxl/frame_header.h:26,
                 from /home/malat/jpeg-xl-0.7.0/lib/jxl/codec_in_out.h:19,
                 from /home/malat/jpeg-xl-0.7.0/lib/jxl/aux_out.h:25,
                 from /home/malat/jpeg-xl-0.7.0/lib/jxl/aux_out.cc:6:
/usr/include/hwy/base.h:259:19: error: '__fp16' does not name a type;
did you mean '__bf16'?
  259 | using float16_t = __fp16;
      |                   ^~~~~~
      |                   __bf16

--- End Message ---
--- Begin Message ---
Version: 0.7.0-3

From jpeg-xl (0.7.0-3) changelog:

* d/rules: Prefer -O1 on armhf for now

+ifeq ($(DEB_BUILD_ARCH),$(filter $(DEB_BUILD_ARCH),armhf))
+  # gcc-12 12.2.0-3 produces wrong code with -O2:
+  # 
https://buildd.debian.org/status/fetch.php?pkg=jpeg-xl&arch=armhf&ver=0.7.0-2&stamp=1664702466&raw=0
+  DEB_CXXFLAGS_MAINT_APPEND += -O1
+endif

armhf build success on 0.7.0-3.

then: 

commit 9e2663f93e30315c44328897560b2c109359d558
Author: Mathieu Malaterre <[email protected]>
Date:   Tue Oct 4 10:05:37 2022 +0200

d/rules: Be more specific about gcc wrong-code issue

diff --git a/debian/rules b/debian/rules
index a867542..97a4ed1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -20,7 +20,7 @@ endif
ifeq ($(DEB_BUILD_ARCH),$(filter $(DEB_BUILD_ARCH),armhf))
# gcc-12 12.2.0-3 produces wrong code with -O2:
# 
https://buildd.debian.org/status/fetch.php?pkg=jpeg-xl&arch=armhf&ver=0.7.0-2&stamp=1664702466&raw=0
-  DEB_CXXFLAGS_MAINT_APPEND += -O1
+  DEB_CXXFLAGS_MAINT_APPEND += -fno-tree-vectorize
endif

ifneq (,$(filter $(DEB_BUILD_ARCH), arm64 armel armhf ppc64el))



commit bdfe6ec4175958a05a43c8369d9f7f3a394e0597
Author: Mathieu Malaterre <[email protected]>
Date:   Tue Jun 11 08:12:25 2024 +0200

d/rules: Remove gcc-12/armhf workaround

diff --git a/debian/rules b/debian/rules
index 7647841..b15f522 100755
--- a/debian/rules
+++ b/debian/rules
@@ -21,12 +21,6 @@ else
ENABLE_JNI=OFF
endif

-ifneq (,$(filter $(DEB_HOST_ARCH), armhf))
-  # gcc-12 12.2.0-3 produces wrong code with -O2:
-  # 
https://buildd.debian.org/status/fetch.php?pkg=jpeg-xl&arch=armhf&ver=0.7.0-2&stamp=1664702466&raw=0
-  DEB_CXXFLAGS_MAINT_APPEND += -fno-tree-vectorize
-endif
-
# Temp fix for 0.7.0-10.x i386/s390x build; see https://bugs.debian.org/1053641
DEB_CXXFLAGS_MAINT_APPEND += -fexcess-precision=fast


Regards,

-- 
肖盛文 xiao sheng wen -- Debian Developer(atzlinux)
Debian QA page: https://qa.debian.org/developer.php?login=atzlinux%40debian.org
GnuPG Public Key: 0x00186602339240CB

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


--- End Message ---

Reply via email to