You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior
Success to build mariana-trench by source
Logs
馃懟 ~/S/A/m/build> make -j4
Consolidate compiler generated dependencies of target mariana-trench-library
[ 3%] Building CXX object CMakeFiles/mariana-trench-library.dir/source/ClassProperties.cpp.o
[ 3%] Building CXX object CMakeFiles/mariana-trench-library.dir/source/CanonicalName.cpp.o
[ 3%] Building CXX object CMakeFiles/mariana-trench-library.dir/source/Context.cpp.o
[ 7%] Building CXX object CMakeFiles/mariana-trench-library.dir/source/Features.cpp.o
/Users/x/tmpp/mariana-trench/source/Features.cpp:31:39: error: invalid operands to binary expression ('const char [11]' and 'const std::string_view')
return factory_.create("via-value:" + via_value);
~~~~~~~~~~~~ ^ ~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/__iterator/wrap_iter.h:278:21: note: candidate template ignored: could not match '__wrap_iter' against 'basic_string_view'
__wrap_iter<_Iter1> operator+(typename __wrap_iter<_Iter1>::difference_type __n, __wrap_iter<_Iter1> __x) _NOEXCEPT
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/__iterator/move_iterator.h:172:1: note: candidate template ignored: could not match 'move_iterator' against 'basic_string_view'
operator+(typename move_iterator<_Iter>::difference_type __n, const move_iterator<_Iter>& __x)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/__iterator/reverse_iterator.h:221:1: note: candidate template ignored: could not match 'reverse_iterator' against 'basic_string_view'
operator+(typename reverse_iterator<_Iter>::difference_type __n, const reverse_iterator<_Iter>& __x)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/string:4269:1: note: candidate template ignored: could not match 'basic_string<type-parameter-0-0, type-parameter-0-1, type-parameter-0-2>' against 'char const[11]'
operator+(const basic_string<_CharT, _Traits, _Allocator>& __lhs,
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/string:4282:1: note: candidate template ignored: could not match 'basic_string' against 'basic_string_view'
operator+(const _CharT* __lhs , const basic_string<_CharT,_Traits,_Allocator>& __rhs)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/string:4294:1: note: candidate template ignored: could not match 'basic_string' against 'basic_string_view'
operator+(_CharT __lhs, const basic_string<_CharT,_Traits,_Allocator>& __rhs)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/string:4306:1: note: candidate template ignored: could not match 'basic_string<type-parameter-0-0, type-parameter-0-1, type-parameter-0-2>' against 'char const[11]'
operator+(const basic_string<_CharT, _Traits, _Allocator>& __lhs, const _CharT* __rhs)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/string:4318:1: note: candidate template ignored: could not match 'basic_string<type-parameter-0-0, type-parameter-0-1, type-parameter-0-2>' against 'char const[11]'
operator+(const basic_string<_CharT, _Traits, _Allocator>& __lhs, _CharT __rhs)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/string:4332:1: note: candidate template ignored: could not match 'basic_string<type-parameter-0-0, type-parameter-0-1, type-parameter-0-2>' against 'char const[11]'
operator+(basic_string<_CharT, _Traits, _Allocator>&& __lhs, const basic_string<_CharT, _Traits, _Allocator>& __rhs)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/string:4340:1: note: candidate template ignored: could not match 'basic_string<type-parameter-0-0, type-parameter-0-1, type-parameter-0-2>' against 'char const[11]'
operator+(const basic_string<_CharT, _Traits, _Allocator>& __lhs, basic_string<_CharT, _Traits, _Allocator>&& __rhs)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/string:4348:1: note: candidate template ignored: could not match 'basic_string<type-parameter-0-0, type-parameter-0-1, type-parameter-0-2>' against 'char const[11]'
operator+(basic_string<_CharT, _Traits, _Allocator>&& __lhs, basic_string<_CharT, _Traits, _Allocator>&& __rhs)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/string:4356:1: note: candidate template ignored: could not match 'basic_string' against 'basic_string_view'
operator+(const _CharT* __lhs , basic_string<_CharT,_Traits,_Allocator>&& __rhs)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/string:4364:1: note: candidate template ignored: could not match 'basic_string' against 'basic_string_view'
operator+(_CharT __lhs, basic_string<_CharT,_Traits,_Allocator>&& __rhs)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/string:4373:1: note: candidate template ignored: could not match 'basic_string<type-parameter-0-0, type-parameter-0-1, type-parameter-0-2>' against 'char const[11]'
operator+(basic_string<_CharT, _Traits, _Allocator>&& __lhs, const _CharT* __rhs)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/string:4381:1: note: candidate template ignored: could not match 'basic_string<type-parameter-0-0, type-parameter-0-1, type-parameter-0-2>' against 'char const[11]'
operator+(basic_string<_CharT, _Traits, _Allocator>&& __lhs, _CharT __rhs)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/complex:527:1: note: candidate template ignored: could not match 'complex<type-parameter-0-0>' against 'char const[11]'
operator+(const complex<_Tp>& __x, const complex<_Tp>& __y)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/complex:537:1: note: candidate template ignored: could not match 'complex<type-parameter-0-0>' against 'char const[11]'
operator+(const complex<_Tp>& __x, const _Tp& __y)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/complex:547:1: note: candidate template ignored: could not match 'complex' against 'basic_string_view'
operator+(const _Tp& __x, const complex<_Tp>& __y)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/complex:728:1: note: candidate function template not viable: requires single argument '__x', but 2 arguments were provided
operator+(const complex<_Tp>& __x)
^
/Users/x/tmpp/mariana-trench/source/CanonicalName.cpp:61:32: error: use of undeclared identifier 'str_copy'
std::string class_name = str_copy(
^
/Users/x/tmpp/mariana-trench/source/CanonicalName.cpp:65:33: error: use of undeclared identifier 'str_copy'
std::string method_name = str_copy(method->get_name());
^
1 error generated.
make[2]: *** [CMakeFiles/mariana-trench-library.dir/source/Features.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
2 errors generated.
make[2]: *** [CMakeFiles/mariana-trench-library.dir/source/CanonicalName.cpp.o] Error 1
In file included from /Users/x/tmpp/mariana-trench/source/Context.cpp:11:
/Users/x/tmpp/mariana-trench/build/header-tree/mariana-trench/ClassProperties.h:84:3: error: unknown type name 'StringStorage'
StringStorage strings_;
^
In file included from /Users/x/tmpp/mariana-trench/source/ClassProperties.cpp:17:
/Users/x/tmpp/mariana-trench/build/header-tree/mariana-trench/ClassProperties.h:84:3: error: unknown type name 'StringStorage'
StringStorage strings_;
^
/Users/x/tmpp/mariana-trench/source/ClassProperties.cpp:60:68: error: member reference type 'DexEncodedValue *const' is a pointer; did you mean to use '->'?
dynamic_cast<DexEncodedValueArray*>(element.encoded_value.get());
~~~~~~~~~~~~~~~~~~~~~^
->
/Users/x/tmpp/mariana-trench/source/ClassProperties.cpp:60:69: error: no member named 'get' in 'DexEncodedValue'
dynamic_cast<DexEncodedValueArray*>(element.encoded_value.get());
~~~~~~~~~~~~~~~~~~~~~ ^
/Users/x/tmpp/mariana-trench/source/ClassProperties.cpp:126:10: error: no matching function for call to 'get_privacy_decision_number_from_annotations'
return get_privacy_decision_number_from_annotations(
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/x/tmpp/mariana-trench/source/ClassProperties.cpp:99:28: note: candidate function not viable: no known conversion from 'const vector<DexAnnotation *>' to 'const vector<std::unique_ptr<DexAnnotation>>' for 1st argument
std::optional<std::string> get_privacy_decision_number_from_annotations(
^
/Users/x/tmpp/mariana-trench/source/ClassProperties.cpp:340:31: error: no matching function for call to 'get_privacy_decision_number_from_annotations'
privacy_decision_number = get_privacy_decision_number_from_annotations(
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/x/tmpp/mariana-trench/source/ClassProperties.cpp:99:28: note: candidate function not viable: no known conversion from 'const vector<DexAnnotation *>' to 'const vector<std::unique_ptr<DexAnnotation>>' for 1st argument
std::optional<std::string> get_privacy_decision_number_from_annotations(
^
1 error generated.
In file included from /Users/x/tmpp/mariana-trench/source/ClassProperties.cpp:17:
/Users/x/tmpp/mariana-trench/build/header-tree/mariana-trench/ClassProperties.h:84:17: warning: private field 'strings_' is not used [-Wunused-private-field]
StringStorage strings_;
^
1 warning and 5 errors generated.
make[2]: *** [CMakeFiles/mariana-trench-library.dir/source/Context.cpp.o] Error 1
make[2]: *** [CMakeFiles/mariana-trench-library.dir/source/ClassProperties.cpp.o] Error 1
make[1]: *** [CMakeFiles/mariana-trench-library.dir/all] Error 2
make: *** [all] Error 2
Additional context
MacOS 12.3.1
The text was updated successfully, but these errors were encountered:
Bug
Bug description
Failed to complied the mariana-trench
Reproduction steps
All the steps according to https://mariana-tren.ch/docs/contribution/
Expected behavior
Success to build mariana-trench by source
Logs
Additional context
MacOS 12.3.1
The text was updated successfully, but these errors were encountered: