* [Buildroot] [PATCH] gnuradio: backport patch to fix gr-fec compilation
@ 2016-08-09 13:24 Gwenhael Goavec-Merou
2016-08-09 13:45 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Gwenhael Goavec-Merou @ 2016-08-09 13:24 UTC (permalink / raw)
To: buildroot
From: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
Fix:
http://autobuild.buildroot.net/results/f14/f14f4f62b5f23c652fa9411d9c569c2ab3394fb5
Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
---
.../gnuradio/0003-fix_compilation_in_gcc-6.patch | 36 ++++++++++++++++++++++
1 file changed, 36 insertions(+)
create mode 100644 package/gnuradio/0003-fix_compilation_in_gcc-6.patch
diff --git a/package/gnuradio/0003-fix_compilation_in_gcc-6.patch b/package/gnuradio/0003-fix_compilation_in_gcc-6.patch
new file mode 100644
index 0000000..e0ef855
--- /dev/null
+++ b/package/gnuradio/0003-fix_compilation_in_gcc-6.patch
@@ -0,0 +1,36 @@
+commit a1cf11937665392bcfa223a5095ff903eb44c69b
+Author: Jaroslav #karvada <jskarvad@redhat.com>
+Date: Fri Feb 12 18:29:13 2016 +0100
+
+Backport patch from
+http://gnuradio.org/redmine/projects/gnuradio/repository/revisions/a1cf11937665392bcfa223a5095ff903eb44c69b
+
+Fix compilation in gcc-6
+
+Signed-off-by: Jaroslav #karvada <jskarvad@redhat.com>
+Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
+---
+diff --git a/gr-fec/include/gnuradio/fec/polar_decoder_common.h b/gr-fec/include/gnuradio/fec/polar_decoder_common.h
+index b0ecb85..a39ee4f 100644
+--- a/gr-fec/include/gnuradio/fec/polar_decoder_common.h
++++ b/gr-fec/include/gnuradio/fec/polar_decoder_common.h
+@@ -28,6 +28,10 @@
+ #include <gnuradio/fec/generic_decoder.h>
+ #include <gnuradio/fec/polar_common.h>
+
++#ifndef BOOST_CONSTEXPR_OR_CONST
++#define BOOST_CONSTEXPR_OR_CONST const
++#endif
++
+ namespace gr {
+ namespace fec {
+ namespace code {
+@@ -64,7 +68,7 @@ namespace gr {
+ bool set_frame_size(unsigned int frame_size){return false;};
+
+ private:
+- static const float D_LLR_FACTOR = -2.19722458f;
++ static BOOST_CONSTEXPR_OR_CONST float D_LLR_FACTOR = -2.19722458f;
+ unsigned int d_frozen_bit_counter;
+
+ protected:
--
2.7.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] gnuradio: backport patch to fix gr-fec compilation
2016-08-09 13:24 [Buildroot] [PATCH] gnuradio: backport patch to fix gr-fec compilation Gwenhael Goavec-Merou
@ 2016-08-09 13:45 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-08-09 13:45 UTC (permalink / raw)
To: buildroot
Hello,
On Tue, 9 Aug 2016 15:24:31 +0200, Gwenhael Goavec-Merou wrote:
> From: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
>
> Fix:
> http://autobuild.buildroot.net/results/f14/f14f4f62b5f23c652fa9411d9c569c2ab3394fb5
>
> Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
> ---
> .../gnuradio/0003-fix_compilation_in_gcc-6.patch | 36 ++++++++++++++++++++++
> 1 file changed, 36 insertions(+)
> create mode 100644 package/gnuradio/0003-fix_compilation_in_gcc-6.patch
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-08-09 13:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-09 13:24 [Buildroot] [PATCH] gnuradio: backport patch to fix gr-fec compilation Gwenhael Goavec-Merou
2016-08-09 13:45 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox