Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 858665

Summary: net-wireless/gnuradio-3.10.3.0: error: ‘HUGE_VAL’ was not declared in this scope
Product: Gentoo Linux Reporter: Sergey 'L29Ah' Alirzaev <zl29ah>
Component: Current packagesAssignee: Gentoo Radio project <radio>
Status: RESOLVED FIXED    
Severity: normal Keywords: PATCH, PullRequest
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gnuradio/gnuradio/pull/6002
https://github.com/gentoo/gentoo/pull/26775
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 839906    
Attachments: emerge --info
build log

Description Sergey 'L29Ah' Alirzaev 2022-07-17 22:38:08 UTC
Created attachment 792023 [details]
emerge --info

/var/tmp/portage/net-wireless/gnuradio-3.10.3.0/work/gnuradio-3.10.3.0/gr-qtgui/lib/FrequencyDisplayPlot.cc: In constructor ‘FrequencyDisplayPlot::FrequencyDisplayPlot(int, QWidget*)’:
/var/tmp/portage/net-wireless/gnuradio-3.10.3.0/work/gnuradio-3.10.3.0/gr-qtgui/lib/FrequencyDisplayPlot.cc:173:25: error: ‘HUGE_VAL’ was not declared in this scope
  173 |     d_peak_amplitude = -HUGE_VAL;
      |                         ^~~~~~~~
/var/tmp/portage/net-wireless/gnuradio-3.10.3.0/work/gnuradio-3.10.3.0/gr-qtgui/lib/FrequencyDisplayPlot.cc: In member function ‘void FrequencyDisplayPlot::setFrequencyRange(double, double, double, const string&)’:
/var/tmp/portage/net-wireless/gnuradio-3.10.3.0/work/gnuradio-3.10.3.0/gr-qtgui/lib/FrequencyDisplayPlot.cc:271:41: error: ‘log10’ was not declared in this scope
  271 |             double display_units = ceil(log10(units) / 2.0);
      |                                         ^~~~~
/var/tmp/portage/net-wireless/gnuradio-3.10.3.0/work/gnuradio-3.10.3.0/gr-qtgui/lib/FrequencyDisplayPlot.cc:271:36: error: ‘ceil’ was not declared in this scope; did you mean ‘std::chrono::ceil’?
  271 |             double display_units = ceil(log10(units) / 2.0);
      |                                    ^~~~
      |                                    std::chrono::ceil
Comment 1 Sergey 'L29Ah' Alirzaev 2022-07-17 22:38:45 UTC
Created attachment 792026 [details]
build log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-17 22:55:40 UTC
Missing <cmath> include?
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-18 00:10:23 UTC
https://github.com/gnuradio/gnuradio/pull/6002
Comment 4 Larry the Git Cow gentoo-dev 2022-08-17 12:33:14 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=801713036d2f629e3fd6fae8b9e812a6038d9705

commit 801713036d2f629e3fd6fae8b9e812a6038d9705
Author:     Huang Rui <vowstar@gmail.com>
AuthorDate: 2022-08-07 15:02:38 +0000
Commit:     Thomas Beierlein <tomjbe@gentoo.org>
CommitDate: 2022-08-17 12:32:51 +0000

    net-wireless/gnuradio: fix 3.10.3.0 build problems
    
    Fix static assertion failed : Cannot format an argument
    Fix error: ‘HUGE_VAL’ was not declared in this scope
    
    Signed-off-by: Huang Rui <vowstar@gmail.com>
    Closes: https://bugs.gentoo.org/858659
    Closes: https://bugs.gentoo.org/858665
    Closes: https://github.com/gentoo/gentoo/pull/26775
    Signed-off-by: Thomas Beierlein <tomjbe@gentoo.org>

 .../files/gnuradio-3.10.3.0-fix-fmt-v9.patch       | 145 +++++++++++++++++++++
 .../files/gnuradio-3.10.3.0-fix-gcc12.patch        |  50 +++++++
 net-wireless/gnuradio/gnuradio-3.10.3.0.ebuild     |   5 +
 3 files changed, 200 insertions(+)