Opened 3 months ago
Last modified 3 months ago
#71456 assigned defect
audacious-plugins @4.4.2: error: constexpr function never produces a constant expression [-Winvalid-constexpr]
Reported by: | punkcakez13 (Camilla) | Owned by: | Ionic (Mihai Moldovan) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.10.5 |
Keywords: | catalina | Cc: | mohd-akram (Mohamed Akram) |
Port: | audacious-plugins |
Description
Hello, I'm trying to install audacious on MacOS 10.15.7, when building audacious-plugins i get this error:
---> Building audacious-plugins Error: Failed to build audacious-plugins: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_audacious-plugins/audacious-plugins/main.log for details. Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug. Error: Processing of port audacious failed
The log file is attached
Attachments (1)
Change History (3)
Changed 3 months ago by punkcakez13 (Camilla)
comment:1 Changed 3 months ago by ryandesign (Ryan Carsten Schmidt)
Cc: | mohd-akram added; ionic@… makr@… removed |
---|---|
Keywords: | catalina added |
Owner: | set to Ionic |
Port: | aduacious removed |
Status: | new → assigned |
Summary: | audacious-plugins 4.4.2: fails to build, command execuction failed → audacious-plugins @4.4.2: error: constexpr function never produces a constant expression [-Winvalid-constexpr] |
The log says the problem is:
In file included from ../audacious-plugins-4.4.2/src/background_music/background_music.cc:19: In file included from ../audacious-plugins-4.4.2/src/background_music/FrameBasedEffectPlugin.h:21: In file included from ../audacious-plugins-4.4.2/src/background_music/LoudnessFrameProcessor.h:22: ../audacious-plugins-4.4.2/src/background_music/Loudness.h:46:28: error: constexpr function never produces a constant expression [-Winvalid-constexpr] static constexpr float get_weight(const float seconds) ^ ../audacious-plugins-4.4.2/src/background_music/Loudness.h:51:16: note: non-constexpr function 'powf' cannot be used in a constant expression return powf(relative, perception_weight_power); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/math.h:428:14: note: declared here extern float powf(float, float); ^ 1 error generated.
It probably needs to be reported to the developers so they can fix it.
comment:2 Changed 3 months ago by punkcakez13 (Camilla)
I reported the issue to the developers who looks like they fixed it (at least it worked by building from source). I assume the fix will be in the next stable release. Thanks to everyone
Note: See
TracTickets for help on using
tickets.
log file