[CM] compilation problem, ubuntu 20.04

Forrest Curo treegestalt at gmail.com
Fri Jul 10 15:39:49 PDT 2020


premake 4 is happy -- but then the trouble sets in:
------------
forrest at beefurr:~/cm$ premake4
Building configurations...
Running action 'gmake'...
Generating Makefile...
Generating juce.make...
Generating Grace.make...
Done.
forrest at beefurr:~/cm$ make
==== Building juce (debug) ====
Creating lib
Creating obj/juce/Debug
juce_audio_basics.cpp
juce_audio_devices.cpp
juce_audio_formats.cpp
In file included from
juce/modules/juce_audio_formats/juce_audio_formats.cpp:110:
juce/modules/juce_audio_formats/codecs/juce_FlacAudioFormat.cpp:64:
warning: "__STDC_LIMIT_MACROS" redefined
   64 |  #define __STDC_LIMIT_MACROS 1
      |
In file included from /usr/include/c++/9/cstdint:41,
                 from /usr/include/c++/9/bits/char_traits.h:621,
                 from /usr/include/c++/9/string:40,
                 from /usr/include/c++/9/stdexcept:39,
                 from
juce/modules/juce_audio_formats/../juce_audio_basics/../juce_core/system/juce_StandardHeader.h:68,
                 from
juce/modules/juce_audio_formats/../juce_audio_basics/../juce_core/juce_core.h:143,
                 from
juce/modules/juce_audio_formats/../juce_audio_basics/juce_audio_basics.h:28,
                 from
juce/modules/juce_audio_formats/juce_audio_formats.h:28,
                 from
juce/modules/juce_audio_formats/juce_audio_formats.cpp:39:
/usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h:5: note: this is the
location of the previous definition
    5 | #  define __STDC_LIMIT_MACROS
      |
In file included from
juce/modules/juce_audio_formats/codecs/juce_FlacAudioFormat.cpp:76,
                 from
juce/modules/juce_audio_formats/juce_audio_formats.cpp:110:
juce/modules/juce_audio_formats/codecs/flac/libFLAC/lpc_flac.c:65:39:
error: ‘long int juce::FlacNamespace::lround(double)’ conflicts with a
previous declaration
   65 | static inline long int lround(double x) {
      |                                       ^
In file included from /usr/include/features.h:461,
                 from /usr/include/sched.h:22,
                 from
juce/modules/juce_audio_formats/../juce_core/native/juce_BasicNativeHeaders.h:168,
                 from
juce/modules/juce_audio_formats/juce_audio_formats.cpp:38:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:320:1: note: previous
declaration ‘long int lround(double)’
  320 | __MATHDECL (long int,lround,, (_Mdouble_ __x));
      | ^~~~~~~~~~
In file included from
juce/modules/juce_audio_formats/codecs/juce_FlacAudioFormat.cpp:76,
                 from
juce/modules/juce_audio_formats/juce_audio_formats.cpp:110:
juce/modules/juce_audio_formats/codecs/flac/libFLAC/lpc_flac.c: In function
‘int juce::FlacNamespace::FLAC__lpc_quantize_coefficients(const
FLAC__real*, unsigned int, unsigned int, juce::FlacNamespace::FLAC__int32*,
int*)’:
juce/modules/juce_audio_formats/codecs/flac/libFLAC/lpc_flac.c:218:20:
error: call of overloaded ‘lround(juce::FlacNamespace::FLAC__double&)’ is
ambiguous
  218 |    q = lround(error);
      |                    ^
In file included from
juce/modules/juce_audio_formats/../juce_audio_basics/../juce_core/system/juce_StandardHeader.h:66,
                 from
juce/modules/juce_audio_formats/../juce_audio_basics/../juce_core/juce_core.h:143,
                 from
juce/modules/juce_audio_formats/../juce_audio_basics/juce_audio_basics.h:28,
                 from
juce/modules/juce_audio_formats/juce_audio_formats.h:28,
                 from
juce/modules/juce_audio_formats/juce_audio_formats.cpp:39:
/usr/include/c++/9/cmath:1628:3: note: candidate: ‘constexpr long int
std::lround(long double)’
 1628 |   lround(long double __x)
      |   ^~~~~~
/usr/include/c++/9/cmath:1624:3: note: candidate: ‘constexpr long int
std::lround(float)’
 1624 |   lround(float __x)
      |   ^~~~~~
In file included from /usr/include/features.h:461,
                 from /usr/include/sched.h:22,
                 from
juce/modules/juce_audio_formats/../juce_core/native/juce_BasicNativeHeaders.h:168,
                 from
juce/modules/juce_audio_formats/juce_audio_formats.cpp:38:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:320:1: note: candidate:
‘long int lround(double)’
  320 | __MATHDECL (long int,lround,, (_Mdouble_ __x));
      | ^~~~~~~~~~
In file included from
juce/modules/juce_audio_formats/codecs/juce_FlacAudioFormat.cpp:76,
                 from
juce/modules/juce_audio_formats/juce_audio_formats.cpp:110:
juce/modules/juce_audio_formats/codecs/flac/libFLAC/lpc_flac.c:65:24: note:
candidate: ‘long int juce::FlacNamespace::lround(double)’
   65 | static inline long int lround(double x) {
      |                        ^~~~~~
In file included from
juce/modules/juce_audio_formats/codecs/juce_FlacAudioFormat.cpp:76,
                 from
juce/modules/juce_audio_formats/juce_audio_formats.cpp:110:
juce/modules/juce_audio_formats/codecs/flac/libFLAC/lpc_flac.c:247:20:
error: call of overloaded ‘lround(juce::FlacNamespace::FLAC__double&)’ is
ambiguous
  247 |    q = lround(error);
      |                    ^
In file included from
juce/modules/juce_audio_formats/../juce_audio_basics/../juce_core/system/juce_StandardHeader.h:66,
                 from
juce/modules/juce_audio_formats/../juce_audio_basics/../juce_core/juce_core.h:143,
                 from
juce/modules/juce_audio_formats/../juce_audio_basics/juce_audio_basics.h:28,
                 from
juce/modules/juce_audio_formats/juce_audio_formats.h:28,
                 from
juce/modules/juce_audio_formats/juce_audio_formats.cpp:39:
/usr/include/c++/9/cmath:1628:3: note: candidate: ‘constexpr long int
std::lround(long double)’
 1628 |   lround(long double __x)
      |   ^~~~~~
/usr/include/c++/9/cmath:1624:3: note: candidate: ‘constexpr long int
std::lround(float)’
 1624 |   lround(float __x)
      |   ^~~~~~
In file included from /usr/include/features.h:461,
                 from /usr/include/sched.h:22,
                 from
juce/modules/juce_audio_formats/../juce_core/native/juce_BasicNativeHeaders.h:168,
                 from
juce/modules/juce_audio_formats/juce_audio_formats.cpp:38:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:320:1: note: candidate:
‘long int lround(double)’
  320 | __MATHDECL (long int,lround,, (_Mdouble_ __x));
      | ^~~~~~~~~~
In file included from
juce/modules/juce_audio_formats/codecs/juce_FlacAudioFormat.cpp:76,
                 from
juce/modules/juce_audio_formats/juce_audio_formats.cpp:110:
juce/modules/juce_audio_formats/codecs/flac/libFLAC/lpc_flac.c:65:24: note:
candidate: ‘long int juce::FlacNamespace::lround(double)’
   65 | static inline long int lround(double x) {
      |                        ^~~~~~
make[1]: *** [juce.make:168: obj/juce/Debug/juce_audio_formats.o] Error 1
make: *** [Makefile:17: juce] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cm-mail.stanford.edu/mailman/private/cmdist/attachments/20200710/373675e6/attachment.html>


More information about the Cmdist mailing list