Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 858665 - net-wireless/gnuradio-3.10.3.0: error: ‘HUGE_VAL’ was not declared in this scope
Summary: net-wireless/gnuradio-3.10.3.0: error: ‘HUGE_VAL’ was not declared in this scope
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Radio project
URL:
Whiteboard:
Keywords: PATCH, PullRequest
Depends on:
Blocks: gcc-12
  Show dependency tree
 
Reported: 2022-07-17 22:38 UTC by Sergey 'L29Ah' Alirzaev
Modified: 2022-08-17 12:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,17.62 KB, text/plain)
2022-07-17 22:38 UTC, Sergey 'L29Ah' Alirzaev
Details
build log (build.log.xz,35.63 KB, application/x-xz)
2022-07-17 22:38 UTC, Sergey 'L29Ah' Alirzaev
Details

Note You need to log in before you can comment on or make changes to this bug.
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(+)