$ clang --version
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix
$ ./acprep opt update
acprep: INFO: Invoking primary phase: update
acprep: INFO: Executing phase: update
acprep: INFO: Executing phase: pull
Already up-to-date.
acprep: INFO: Executing phase: submodule
acprep: INFO: Executing phase: make
acprep: INFO: Executing phase: config
acprep: INFO: Executing phase: submodule
acprep: INFO: Executing phase: configure
acprep: INFO: System type is => Darwin
acprep: INFO: Setting up build flavor => opt
-- Boost version: 1.54.0
-- Found the following Boost libraries:
-- date_time
-- filesystem
-- system
-- iostreams
-- regex
-- unit_test_framework
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/iphoting/Development/Utilities/ledger
[…]
In file included from /Users/iphoting/Development/Utilities/ledger/src/output.cc:32:
In file included from /Users/iphoting/Development/Utilities/ledger/system.hh:102:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/map:421:17: error:
no matching function for call to object of type 'const
ledger::account_compare'
{return static_cast<const _Compare&>(*this)(__x.first, __y);}
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__tree:2085:14: note:
in instantiation of member function
'std::__1::__map_value_compare<ledger::account_t *, unsigned long,
ledger::account_compare, true>::operator()' requested here
if (!value_comp()(__root->__value_, __v))
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__tree:2011:20: note:
in instantiation of function template specialization
'std::__1::__tree<std::__1::pair<ledger::account_t *, unsigned long>,
std::__1::__map_value_compare<ledger::account_t *, unsigned long,
ledger::account_compare, true>,
std::__1::allocator<std::__1::pair<ledger::account_t *, unsigned long> >
>::__lower_bound<ledger::account_t *>' requested here
iterator __p = __lower_bound(__v, __root(), __end_node());
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/map:950:68: note:
in instantiation of function template specialization
'std::__1::__tree<std::__1::pair<ledger::account_t *, unsigned long>,
std::__1::__map_value_compare<ledger::account_t *, unsigned long,
ledger::account_compare, true>,
std::__1::allocator<std::__1::pair<ledger::account_t *, unsigned long> >
>::find<ledger::account_t *>' requested here
iterator find(const key_type& __k) {return __tree_.find(__k);}
^
/Users/iphoting/Development/Utilities/ledger/src/output.cc:294:61: note: in
instantiation of member function 'std::__1::map<ledger::account_t *,
unsigned long, ledger::account_compare,
std::__1::allocator<std::__1::pair<ledger::account_t *const, unsigned
long> > >::find' requested here
std::map<account_t *, std::size_t>::iterator i = accounts.find(post.account);
^
/Users/iphoting/Development/Utilities/ledger/src/account.h:313:8: note:
candidate function not viable: 'this' argument has type 'const
ledger::account_compare', but method is not marked const
bool operator() (const account_t& lhs, const account_t& rhs){
^
In file included from /Users/iphoting/Development/Utilities/ledger/src/output.cc:32:
In file included from /Users/iphoting/Development/Utilities/ledger/system.hh:102:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/map:427:17: error:
no matching function for call to object of type 'const
ledger::account_compare'
{return static_cast<const _Compare&>(*this)(__x, __y.first);}
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__tree:2012:26: note:
in instantiation of member function
'std::__1::__map_value_compare<ledger::account_t *, unsigned long,
ledger::account_compare, true>::operator()' requested here
if (__p != end() && !value_comp()(__v, *__p))
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/map:950:68: note:
in instantiation of function template specialization
'std::__1::__tree<std::__1::pair<ledger::account_t *, unsigned long>,
std::__1::__map_value_compare<ledger::account_t *, unsigned long,
ledger::account_compare, true>,
std::__1::allocator<std::__1::pair<ledger::account_t *, unsigned long> >
>::find<ledger::account_t *>' requested here
iterator find(const key_type& __k) {return __tree_.find(__k);}
^
/Users/iphoting/Development/Utilities/ledger/src/output.cc:294:61: note: in
instantiation of member function 'std::__1::map<ledger::account_t *,
unsigned long, ledger::account_compare,
std::__1::allocator<std::__1::pair<ledger::account_t *const, unsigned
long> > >::find' requested here
std::map<account_t *, std::size_t>::iterator i = accounts.find(post.account);
^
/Users/iphoting/Development/Utilities/ledger/src/account.h:313:8: note:
candidate function not viable: 'this' argument has type 'const
ledger::account_compare', but method is not marked const
bool operator() (const account_t& lhs, const account_t& rhs){
^
In file included from /Users/iphoting/Development/Utilities/ledger/src/output.cc:32:
In file included from /Users/iphoting/Development/Utilities/ledger/system.hh:102:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/map:418:17: error:
no matching function for call to object of type 'const
ledger::account_compare'
{return static_cast<const _Compare&>(*this)(__x.first, __y.first);}
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__tree:1596:17: note:
in instantiation of member function
'std::__1::__map_value_compare<ledger::account_t *, unsigned long,
ledger::account_compare, true>::operator()' requested here
if (value_comp()(__v, __nd->__value_))
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__tree:1850:36: note:
in instantiation of function template specialization
'std::__1::__tree<std::__1::pair<ledger::account_t *, unsigned long>,
std::__1::__map_value_compare<ledger::account_t *, unsigned long,
ledger::account_compare, true>,
std::__1::allocator<std::__1::pair<ledger::account_t *, unsigned long> >
>::__find_equal<std::__1::pair<ledger::account_t *, unsigned long> >'
requested here
__node_base_pointer& __child = __find_equal(__parent, __v);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/map:910:55: note:
in instantiation of member function
'std::__1::__tree<std::__1::pair<ledger::account_t *, unsigned long>,
std::__1::__map_value_compare<ledger::account_t *, unsigned long,
ledger::account_compare, true>,
std::__1::allocator<std::__1::pair<ledger::account_t *, unsigned long> >
>::__insert_unique' requested here
insert(const value_type& __v) {return __tree_.__insert_unique(__v);}
^
/Users/iphoting/Development/Utilities/ledger/src/output.cc:296:14: note: in
instantiation of member function 'std::__1::map<ledger::account_t *,
unsigned long, ledger::account_compare,
std::__1::allocator<std::__1::pair<ledger::account_t *const, unsigned
long> > >::insert' requested here
accounts.insert(accounts_pair(post.account, 1));
^
/Users/iphoting/Development/Utilities/ledger/src/account.h:313:8: note:
candidate function not viable: 'this' argument has type 'const
ledger::account_compare', but method is not marked const
bool operator() (const account_t& lhs, const account_t& rhs){
^
In file included from /Users/iphoting/Development/Utilities/ledger/src/output.cc:32:
In file included from /Users/iphoting/Development/Utilities/ledger/system.hh:102:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/map:421:17: error:
no matching function for call to object of type 'const
ledger::commodity_compare'
{return static_cast<const _Compare&>(*this)(__x.first, __y);}
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__tree:2085:14: note:
in instantiation of member function
'std::__1::__map_value_compare<ledger::commodity_t *, unsigned long,
ledger::commodity_compare, true>::operator()' requested here
if (!value_comp()(__root->__value_, __v))
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__tree:2011:20: note:
in instantiation of function template specialization
'std::__1::__tree<std::__1::pair<ledger::commodity_t *, unsigned long>,
std::__1::__map_value_compare<ledger::commodity_t *, unsigned long,
ledger::commodity_compare, true>,
std::__1::allocator<std::__1::pair<ledger::commodity_t *, unsigned long> >
>::__lower_bound<ledger::commodity_t *>' requested here
iterator __p = __lower_bound(__v, __root(), __end_node());
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/map:950:68: note:
in instantiation of function template specialization
'std::__1::__tree<std::__1::pair<ledger::commodity_t *, unsigned long>,
std::__1::__map_value_compare<ledger::commodity_t *, unsigned long,
ledger::commodity_compare, true>,
std::__1::allocator<std::__1::pair<ledger::commodity_t *, unsigned long> >
>::find<ledger::commodity_t *>' requested here
iterator find(const key_type& __k) {return __tree_.find(__k);}
^
/Users/iphoting/Development/Utilities/ledger/src/output.cc:365:66: note: in
instantiation of member function 'std::__1::map<ledger::commodity_t *,
unsigned long, ledger::commodity_compare,
std::__1::allocator<std::__1::pair<ledger::commodity_t *const, unsigned
long> > >::find' requested here
std::map<commodity_t *, std::size_t>::iterator i = commodities.find(&comm);
^
/Users/iphoting/Development/Utilities/ledger/src/commodity.h:356:8: note:
candidate function not viable: 'this' argument has type 'const
ledger::commodity_compare', but method is not marked const
bool operator() (const commodity_t* lhs, const commodity_t* rhs){
^
In file included from /Users/iphoting/Development/Utilities/ledger/src/output.cc:32:
In file included from /Users/iphoting/Development/Utilities/ledger/system.hh:102:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/map:427:17: error:
no matching function for call to object of type 'const
ledger::commodity_compare'
{return static_cast<const _Compare&>(*this)(__x, __y.first);}
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__tree:2012:26: note:
in instantiation of member function
'std::__1::__map_value_compare<ledger::commodity_t *, unsigned long,
ledger::commodity_compare, true>::operator()' requested here
if (__p != end() && !value_comp()(__v, *__p))
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/map:950:68: note:
in instantiation of function template specialization
'std::__1::__tree<std::__1::pair<ledger::commodity_t *, unsigned long>,
std::__1::__map_value_compare<ledger::commodity_t *, unsigned long,
ledger::commodity_compare, true>,
std::__1::allocator<std::__1::pair<ledger::commodity_t *, unsigned long> >
>::find<ledger::commodity_t *>' requested here
iterator find(const key_type& __k) {return __tree_.find(__k);}
^
/Users/iphoting/Development/Utilities/ledger/src/output.cc:365:66: note: in
instantiation of member function 'std::__1::map<ledger::commodity_t *,
unsigned long, ledger::commodity_compare,
std::__1::allocator<std::__1::pair<ledger::commodity_t *const, unsigned
long> > >::find' requested here
std::map<commodity_t *, std::size_t>::iterator i = commodities.find(&comm);
^
/Users/iphoting/Development/Utilities/ledger/src/commodity.h:356:8: note:
candidate function not viable: 'this' argument has type 'const
ledger::commodity_compare', but method is not marked const
bool operator() (const commodity_t* lhs, const commodity_t* rhs){
^
In file included from /Users/iphoting/Development/Utilities/ledger/src/output.cc:32:
In file included from /Users/iphoting/Development/Utilities/ledger/system.hh:102:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/map:418:17: error:
no matching function for call to object of type 'const
ledger::commodity_compare'
{return static_cast<const _Compare&>(*this)(__x.first, __y.first);}
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__tree:1596:17: note:
in instantiation of member function
'std::__1::__map_value_compare<ledger::commodity_t *, unsigned long,
ledger::commodity_compare, true>::operator()' requested here
if (value_comp()(__v, __nd->__value_))
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__tree:1850:36: note:
in instantiation of function template specialization
'std::__1::__tree<std::__1::pair<ledger::commodity_t *, unsigned long>,
std::__1::__map_value_compare<ledger::commodity_t *, unsigned long,
ledger::commodity_compare, true>,
std::__1::allocator<std::__1::pair<ledger::commodity_t *, unsigned long> >
>::__find_equal<std::__1::pair<ledger::commodity_t *, unsigned long> >'
requested here
__node_base_pointer& __child = __find_equal(__parent, __v);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/map:910:55: note:
in instantiation of member function
'std::__1::__tree<std::__1::pair<ledger::commodity_t *, unsigned long>,
std::__1::__map_value_compare<ledger::commodity_t *, unsigned long,
ledger::commodity_compare, true>,
std::__1::allocator<std::__1::pair<ledger::commodity_t *, unsigned long> >
>::__insert_unique' requested here
insert(const value_type& __v) {return __tree_.__insert_unique(__v);}
^
/Users/iphoting/Development/Utilities/ledger/src/output.cc:367:17: note: in
instantiation of member function 'std::__1::map<ledger::commodity_t *,
unsigned long, ledger::commodity_compare,
std::__1::allocator<std::__1::pair<ledger::commodity_t *const, unsigned
long> > >::insert' requested here
commodities.insert(commodities_pair(&comm, 1));
^
/Users/iphoting/Development/Utilities/ledger/src/commodity.h:356:8: note:
candidate function not viable: 'this' argument has type 'const
ledger::commodity_compare', but method is not marked const
bool operator() (const commodity_t* lhs, const commodity_t* rhs){
^
6 errors generated.
make[2]: *** [src/CMakeFiles/libledger.dir/output.cc.o] Error 1
make[1]: *** [src/CMakeFiles/libledger.dir/all] Error 2
make: *** [all] Error 2
Thanks,
Ronald
--
---
You received this message because you are subscribed to the Google Groups "Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
I pushed this change to master.
On Sun, Oct 27, 2013 at 9:53 AM, Lifepillar <git...@lifepillar.com> wrote:
In article <29F4252E-80CD-4A60-A8A4-E8C6DB...@iphoting.com>,