#160 compilation of gpsim / modules, file stimuli.cc fails on FreeBSD 10.0 with FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610

None
closed-fixed
None
5
2014-12-06
2013-10-21
No

compilation of gpsim / modules, file stimuli.cc fails on FreeBSD 10.0 amd64:

$uname -a
FreeBSD toto-freebsd 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r255342: Sat Sep 7 07:34:47 UTC 2013 root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64

compiled with with:

$ cc --version
FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
Target: x86_64-unknown-freebsd10.0
Thread model: posix

Making all in modules
gmake[3]: Entering directory `/usr/home/sdcc-builder/packages/build.gpsim/gpsim/modules'

...

libtool  --tag=CXX   --mode=compile c++ -DHAVE_CONFIG_H -I. -I..  -I/usr/local/include/glib-2.0 -I/usr/local/include   -g -O0 -I/usr/local/include  -g -O0 -I/usr/local/include -MT stimuli.lo -MD -MP -MF .deps/stimuli.Tpo -c -o stimuli.lo stimuli.cc
libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include/glib-2.0 -I/usr/local/include -g -O0 -I/usr/local/include -g -O0 -I/usr/local/include -MT stimuli.lo -MD -MP -MF .deps/stimuli.Tpo -c stimuli.cc  -fPIC -DPIC -o .libs/stimuli.o
In file included from stimuli.cc:75:
In file included from ./../src/gpsim_time.h:24:
In file included from ./../src/breakpoints.h:25:
In file included from /usr/include/c++/v1/iostream:38:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:15:
In file included from /usr/include/c++/v1/string:434:
/usr/include/c++/v1/algorithm:678:97: error: invalid operands to binary expression ('const ExtendedStimuli::ValueStimulusData' and 'const ExtendedStimuli::ValueStimulusData')
    _LIBCPP_INLINE_VISIBILITY bool operator()(const _T1& __x, const _T1& __y) const {return __x < __y;}
                                                                                            ~~~ ^ ~~~
/usr/include/c++/v1/list:2170:13: note: in instantiation of member function 'std::__1::__less<ExtendedStimuli::ValueStimulusData, ExtendedStimuli::ValueStimulusData>::operator()' requested here
        if (__comp(*--__e2, *__f1))
            ^
/usr/include/c++/v1/list:2156:5: note: in instantiation of function template specialization 'std::__1::list<ExtendedStimuli::ValueStimulusData, std::__1::allocator<ExtendedStimuli::ValueStimulusData> >::__sort<std::__1::__less<ExtendedStimuli::ValueStimulusData, ExtendedStimuli::ValueStimulusData> >' requested here
    __sort(begin(), end(), base::__sz(), __comp);
    ^
/usr/include/c++/v1/list:2147:5: note: in instantiation of function template specialization 'std::__1::list<ExtendedStimuli::ValueStimulusData, std::__1::allocator<ExtendedStimuli::ValueStimulusData> >::sort<std::__1::__less<ExtendedStimuli::ValueStimulusData, ExtendedStimuli::ValueStimulusData> >' requested here
    sort(__less<value_type>());
    ^
stimuli.cc:411:15: note: in instantiation of member function 'std::__1::list<ExtendedStimuli::ValueStimulusData, std::__1::allocator<ExtendedStimuli::ValueStimulusData> >::sort' requested here
      samples.sort();
              ^
./stimuli.h:51:17: note: candidate function not viable: 'this' argument has type 'const ExtendedStimuli::ValueStimulusData', but method is not marked const
    inline bool operator < (ValueStimulusData &rValue) {
                ^
/usr/include/c++/v1/utility:397:1: note: candidate template ignored: could not match 'pair<type-parameter-0-0, type-parameter-0-1>' against 'const ExtendedStimuli::ValueStimulusData'
operator< (const pair<_T1,_T2>& __x, const pair<_T1,_T2>& __y)
^
/usr/include/c++/v1/iterator:566:1: note: candidate template ignored: could not match 'reverse_iterator<type-parameter-0-0>' against 'const ExtendedStimuli::ValueStimulusData'
operator<(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_Iter2>& __y)
^
/usr/include/c++/v1/iterator:961:1: note: candidate template ignored: could not match 'move_iterator<type-parameter-0-0>' against 'const ExtendedStimuli::ValueStimulusData'
operator<(const move_iterator<_Iter1>& __x, const move_iterator<_Iter2>& __y)
^
/usr/include/c++/v1/iterator:1277:1: note: candidate template ignored: could not match '__wrap_iter<type-parameter-0-0>' against 'const ExtendedStimuli::ValueStimulusData'
operator<(const __wrap_iter<_Iter1>& __x, const __wrap_iter<_Iter2>& __y) _NOEXCEPT
^
/usr/include/c++/v1/memory:2953:1: note: candidate template ignored: could not match 'unique_ptr<type-parameter-0-0, type-parameter-0-1>' against 'const ExtendedStimuli::ValueStimulusData'
operator< (const unique_ptr<_T1, _D1>& __x, const unique_ptr<_T2, _D2>& __y)
^
/usr/include/c++/v1/memory:3011:1: note: candidate template ignored: could not match 'unique_ptr<type-parameter-0-0, type-parameter-0-1>' against 'const ExtendedStimuli::ValueStimulusData'
operator<(const unique_ptr<_T1, _D1>& __x, nullptr_t)
^
/usr/include/c++/v1/memory:3020:1: note: candidate template ignored: could not match 'unique_ptr<type-parameter-0-0, type-parameter-0-1>' against 'const ExtendedStimuli::ValueStimulusData'
operator<(nullptr_t, const unique_ptr<_T1, _D1>& __x)
^
/usr/include/c++/v1/memory:4799:1: note: candidate template ignored: could not match 'shared_ptr<type-parameter-0-0>' against 'const ExtendedStimuli::ValueStimulusData'
operator<(const shared_ptr<_Tp>& __x, const shared_ptr<_Up>& __y) _NOEXCEPT
^
/usr/include/c++/v1/memory:4864:1: note: candidate template ignored: could not match 'shared_ptr<type-parameter-0-0>' against 'const ExtendedStimuli::ValueStimulusData'
operator<(const shared_ptr<_Tp>& __x, nullptr_t) _NOEXCEPT
^
/usr/include/c++/v1/memory:4872:1: note: candidate template ignored: could not match 'shared_ptr<type-parameter-0-0>' against 'const ExtendedStimuli::ValueStimulusData'
operator<(nullptr_t, const shared_ptr<_Tp>& __x) _NOEXCEPT
^
1 error generated.
gmake[3]: *** [stimuli.lo] Error 1
gmake[3]: Leaving directory `/usr/home/sdcc-builder/packages/build.gpsim/gpsim/modules'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/home/sdcc-builder/packages/build.gpsim/gpsim'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/usr/home/sdcc-builder/packages/build.gpsim/gpsim'
gmake: *** [gpsim-make.tag] Error 2
$

Borut

Discussion

  • Anonymous - 2013-12-17

    I got the same on mac os x 10.9 - can provide build info later...

     
  • Roy Rankin

    Roy Rankin - 2014-07-10
    • status: open --> closed-fixed
    • assigned_to: Roy Rankin
    • Group: -->
     
  • Roy Rankin

    Roy Rankin - 2014-07-10

    Fixed in svn 2262

     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks