Article View: linux.debian.bugs.dist
Article #901Bug#1150946: open-ath9k-htc-firmware: FTBFS when the qa=framepointer build feature is enabled
From: Sebastien Bacher
Date: Wed, 14 Oct 2026 22:30
Date: Wed, 14 Oct 2026 22:30
76 lines
4502 bytes
4502 bytes
This is a multi-part MIME message sent by reportbug. --===============4835993091040128804== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline Source: open-ath9k-htc-firmware Severity: normal Tags: patch ftbfs X-Debbugs-Cc: seb128@ubuntu.com User: ubuntu-devel@lists.ubuntu.com Usertags: origin-ubuntu stonking ubuntu-patch Hi, open-ath9k-htc-firmware fails to build in Ubuntu, where dpkg enables the qa=framepointer build feature by default: xtensa-elf-gcc: error: unrecognized command-line option '-mno-omit-leaf-frame-pointer'; did you mean '-fno-omit-frame-pointer'? debian/rules exports the dpkg build flags (DPKG_EXPORT_BUILDFLAGS), and they reach the firmware build done with the xtensa-elf cross-compiler. The package already disables hardening for that reason; -mno-omit-leaf-frame-pointer, added by qa=framepointer, is another host-only option that the Xtensa compiler doesn't accept. In Debian the feature is off by default, so the current build works. But it fails the same way with DEB_BUILD_MAINT_OPTIONS=qa=+framepointer, or if the default changes. The attached patch adds qa=-framepointer next to the existing hardening=-all. It's a no-op for the current Debian defaults. We are carrying it in Ubuntu as 1.4.0-110-ge888634+dfsg1-0.4ubuntu1. Cheers, Sebastien -- System Information: Debian Release: forky/sid APT prefers resolute-updates APT policy: (500, 'resolute-updates'), (500, 'resolute-security'), (500, 'resolute'), (100, 'resolute-backports') Architecture: amd64 (x86_64) Kernel: Linux 7.0.0-38-generic (SMP w/16 CPU threads; PREEMPT) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled --===============4835993091040128804== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="rules-framepointer.patch" --- a/debian/rules +++ b/debian/rules @@ -5,7 +5,9 @@ # Stack protector needs to be disabled since that entails linking to libssp. # Other hardening flags likewise cause more problems than they solve. -export DEB_BUILD_MAINT_OPTIONS=hardening=-all +# The exported build flags also reach the xtensa-elf firmware build, so +# drop host-only options the cross-compiler does not understand. +export DEB_BUILD_MAINT_OPTIONS=hardening=-all qa=-framepointer export DEB_CFLAGS_MAINT_APPEND=-Wno-error=discarded-qualifiers -Wno-error=incompatible-pointer-types FW_FILENAME_VER = 1.4.0 --===============4835993091040128804==--
Technical Details
Message-ID:
<NOfDX-5xOp-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod From: Sebastien Bacher <seb128@ubuntu.com> Newsgroups: linux.debian.bugs.dist Subject: Bug#1150946: open-ath9k-htc-firmware: FTBFS when the qa=framepointer build feature is enabled Date: Thu, 15 Oct 2026 00:30:01 +0200 Message-ID: <NOfDX-5xOp-1@gated-at.bofh.it> X-Original-To: Debian Bug Tracking System <submit@bugs.debian.org> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Wed Oct 14 22:23:09 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.651 Reply-To: Sebastien Bacher <seb128@ubuntu.com>, 1150946@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: seb128@ubuntu.com, jscott@posteo.net X-Debian-Pr-Message: report 1150946 X-Debian-Pr-Package: src:open-ath9k-htc-firmware X-Debian-Pr-Keywords: ftbfs patch X-Debian-Pr-Source: open-ath9k-htc-firmware Content-Type: multipart/mixed; boundary="===============4835993091040128804==" MIME-Version: 1.0 X-Mailer: reportbug 13.2.0+ubuntu1 X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1996852 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 76 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Thu, 15 Oct 2026 00:21:56 +0200 X-Original-Message-ID: <179201651615.511324.6015167933062418561.reportbug@seb128-ThinkPad-T16>