Skip to contentSkip to conversation

dvb-apps: fix avr32 build failure

PATCH New spdawson at gmail.com 2 participants 2 messages Dec 13, 2013 – Dec 15, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dvb-apps: fix avr32 build failure

From: Simon Dawson <[email protected]>

When building for avr32, the build fails as follows.

cc1: error: unrecognized command line option "-Wno-packed-bitfield-compat"

An example of an autobuild failure arising from this is the following.

http://autobuild.buildroot.net/results/92e/92e472004812a3616f62d766a9ea07a997a66e89/

Clearly, not all toolchains provide a gcc that understands the -Wno-packed-bitfield-compat flag; remove usage of this flag.

---
 .../dvb-apps-0002-Fix-compiler-warning-flags.patch | 25 ++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 package/dvb-apps/dvb-apps-0002-Fix-compiler-warning-flags.patch
package/dvb-apps/dvb-apps-0002-Fix-compiler-warning-flags.patch new file +25 -0
new file mode 100644
index 0000000..9da0408
@@ -0,0 +1,25 @@
+When building for avr32, the build fails as follows.
+
+  cc1: error: unrecognized command line option "-Wno-packed-bitfield-compat"
+
+An example of an autobuild failure arising from this is the following.
+
+  http://autobuild.buildroot.net/results/92e/92e472004812a3616f62d766a9ea07a997a66e89/
+
+Clearly, not all toolchains provide a gcc that understands
+the -Wno-packed-bitfield-compat flag; remove usage of this flag.
+
+Signed-off-by: Simon Dawson <[email protected]>
+
+diff -Nurp a/util/scan/Makefile b/util/scan/Makefile
+--- a/util/scan/Makefile	2013-11-24 17:04:10.000000000 +0000
++++ b/util/scan/Makefile	2013-12-13 09:37:11.967975173 +0000
+@@ -14,7 +14,7 @@ inst_bin = $(binaries)
+ 
+ removing = atsc_psip_section.c atsc_psip_section.h
+ 
+-CPPFLAGS += -Wno-packed-bitfield-compat -D__KERNEL_STRICT_NAMES
++CPPFLAGS += -D__KERNEL_STRICT_NAMES
+ 
+ .PHONY: all
+ 
Signature · 1 line
1.8.3.2
#1 lore raw

PATCH 1/1 dvb-apps: fix avr32 build failure

Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"spdawson" == spdawson <[email protected]> writes:

From: Simon Dawson <[email protected]>
When building for avr32, the build fails as follows.

cc1: error: unrecognized command line option "-Wno-packed-bitfield-compat"

Quoted 8 lines

An example of an autobuild failure arising from this is the following.

http://autobuild.buildroot.net/results/92e/92e472004812a3616f62d766a9ea07a997a66e89/

Clearly, not all toolchains provide a gcc that understands the -Wno-packed-bitfield-compat flag; remove usage of this flag.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard