Skip to content

Instantly share code, notes, and snippets.

@DanielO
Created May 10, 2021 03:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DanielO/1d1753e84facf6656162116b597083e0 to your computer and use it in GitHub Desktop.
Save DanielO/1d1753e84facf6656162116b597083e0 to your computer and use it in GitHub Desktop.
[ 4%] Building CXX object lib/scopehal/CMakeFiles/scopehal.dir/PeakDetectionFilter.cpp.o
In file included from /Users/oconnd1/scopehal-apps/lib/scopehal/PeakDetectionFilter.cpp:30:
In file included from /Users/oconnd1/scopehal-apps/lib/scopehal/../scopehal/scopehal.h:51:
In file included from /opt/local/include/yaml-cpp/yaml.h:12:
/opt/local/include/yaml-cpp/emitterstyle.h:12:25: warning: declaration shadows a variable in namespace 'YAML' [-Wshadow]
enum value { Default, Block, Flow };
^
/opt/local/include/yaml-cpp/emittermanip.h:52:3: note: previous declaration is here
Block,
^
In file included from /Users/oconnd1/scopehal-apps/lib/scopehal/PeakDetectionFilter.cpp:30:
In file included from /Users/oconnd1/scopehal-apps/lib/scopehal/../scopehal/scopehal.h:51:
In file included from /opt/local/include/yaml-cpp/yaml.h:12:
/opt/local/include/yaml-cpp/emitterstyle.h:12:32: warning: declaration shadows a variable in namespace 'YAML' [-Wshadow]
enum value { Default, Block, Flow };
^
/opt/local/include/yaml-cpp/emittermanip.h:51:3: note: previous declaration is here
Flow,
^
In file included from /Users/oconnd1/scopehal-apps/lib/scopehal/PeakDetectionFilter.cpp:30:
In file included from /Users/oconnd1/scopehal-apps/lib/scopehal/../scopehal/scopehal.h:51:
In file included from /opt/local/include/yaml-cpp/yaml.h:16:
In file included from /opt/local/include/yaml-cpp/node/node.h:18:
/opt/local/include/yaml-cpp/node/type.h:12:27: warning: declaration shadows a variable in namespace 'YAML' [-Wshadow]
enum value { Undefined, Null, Scalar, Sequence, Map };
^
/opt/local/include/yaml-cpp/null.h:23:27: note: previous declaration is here
extern YAML_CPP_API _Null Null;
^
In file included from /Users/oconnd1/scopehal-apps/lib/scopehal/PeakDetectionFilter.cpp:30:
In file included from /Users/oconnd1/scopehal-apps/lib/scopehal/../scopehal/scopehal.h:54:
In file included from /Users/oconnd1/scopehal-apps/lib/scopehal/../graphwidget/Graph.h:39:
In file included from /opt/local/include/gtkmm-3.0/gtkmm.h:87:
In file included from /opt/local/include/glibmm-2.4/glibmm.h:92:
In file included from /opt/local/include/glibmm-2.4/glibmm/arrayhandle.h:21:
In file included from /opt/local/include/glibmm-2.4/glibmm/containerhandle_shared.h:24:
In file included from /opt/local/include/glibmm-2.4/glibmm/wrap.h:22:
In file included from /opt/local/include/glibmm-2.4/glibmm/objectbase.h:22:
/opt/local/include/glibmm-2.4/glibmm/signalproxy.h:69:20: warning: definition of implicit copy constructor for 'SignalProxyBase' is deprecated because it has a user-declared copy assignment operator [-Wdeprecated-copy]
SignalProxyBase& operator=(const SignalProxyBase&); // not implemented
^
/opt/local/include/glibmm-2.4/glibmm/propertyproxy_base.h:33:7: note: in implicit copy constructor for 'Glib::SignalProxyBase' first required here
class SignalProxyProperty : public SignalProxyBase
^
/opt/local/include/gtkmm-3.0/gtkmm/childpropertyproxy_base.h:36:7: note: in implicit copy constructor for 'Glib::SignalProxyProperty' first required here
class SignalProxyChildProperty : public Glib::SignalProxyProperty
^
/opt/local/include/gtkmm-3.0/gtkmm/childpropertyproxy.h:153:10: note: in implicit move constructor for 'Gtk::SignalProxyChildProperty' first required here
return SignalProxyChildProperty(&child_, property_name_);
^
/Users/oconnd1/scopehal-apps/lib/scopehal/PeakDetectionFilter.cpp:67:19: error: no matching function for call to 'max'
ssize_t left = max((ssize_t)minpeak, i - search_rad);
^~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/algorithm:2657:1: note: candidate template ignored: deduced conflicting types for parameter '_Tp' ('long' vs. 'long long')
max(const _Tp& __a, const _Tp& __b)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/algorithm:2668:1: note: candidate template ignored: could not match 'initializer_list<type-parameter-0-0>' against 'long'
max(initializer_list<_Tp> __t, _Compare __comp)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/algorithm:2677:1: note: candidate function template not viable: requires single argument '__t', but 2 arguments were provided
max(initializer_list<_Tp> __t)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/algorithm:2648:1: note: candidate function template not viable: requires 3 arguments, but 2 were provided
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
/Users/oconnd1/scopehal-apps/lib/scopehal/PeakDetectionFilter.cpp:68:20: error: no matching function for call to 'min'
ssize_t right = min(i + search_rad, (ssize_t)nend);
^~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/algorithm:2584:1: note: candidate template ignored: deduced conflicting types for parameter '_Tp' ('long long' vs. 'long')
min(const _Tp& __a, const _Tp& __b)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/algorithm:2595:1: note: candidate template ignored: could not match 'initializer_list<type-parameter-0-0>' against 'long long'
min(initializer_list<_Tp> __t, _Compare __comp)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/algorithm:2604:1: note: candidate function template not viable: requires single argument '__t', but 2 arguments were provided
min(initializer_list<_Tp> __t)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/algorithm:2575:1: note: candidate function template not viable: requires 3 arguments, but 2 were provided
min(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
4 warnings and 2 errors generated.
make[2]: *** [lib/scopehal/CMakeFiles/scopehal.dir/PeakDetectionFilter.cpp.o] Error 1
make[1]: *** [lib/scopehal/CMakeFiles/scopehal.dir/all] Error 2
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment