View Issue Details

IDProjectCategoryView StatusLast Update
0004981Spring engineBuildbotpublic2015-10-15 15:09
Reporterabma Assigned Tohokomoko  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Target Version101.0 
Summary0004981: clang compile fails with lexical_cast.hpp:388:13: error: static_assert failed "Target type is neither std::istream`able n
DescriptionIn file included from /home/travis/build/spring/spring/rts/lib/lua/src/lvm.cpp:14:

/usr/include/boost/lexical_cast.hpp:388:13: error: static_assert failed "Target

      type is neither std::istream`able nor std::wistream`able"

  ...BOOST_STATIC_ASSERT_MSG((result_t::value || boost::has_right_shift<std::basic_istream<wchar_t>, T >::value),

     ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/usr/include/boost/static_assert.hpp:31:45: note: expanded from macro

      'BOOST_STATIC_ASSERT_MSG'

# define BOOST_STATIC_ASSERT_MSG( ... ) static_assert(__VA_ARGS__)

                                            ^

/usr/include/boost/lexical_cast.hpp:415:44: note: in instantiation of template

      class

      'boost::detail::deduce_target_char_impl<boost::detail::deduce_character_type_later<std::array<char,

      32> > >' requested here

            typedef BOOST_DEDUCED_TYPENAME deduce_target_char_impl< stag...

                                           ^

/usr/include/boost/lexical_cast.hpp:674:59: note: in instantiation of template

      class 'boost::detail::deduce_target_char<std::array<char, 32> >' requested

      here

            typedef BOOST_DEDUCED_TYPENAME boost::detail::deduce_target_...

                                                          ^

/usr/include/boost/lexical_cast.hpp:2360:44: note: in instantiation of template

      class 'boost::detail::lexical_cast_stream_traits<float, std::array<char,

      32> >' requested here

                    BOOST_DEDUCED_TYPENAME stream_trait::char_type,

                                           ^

/usr/include/boost/lexical_cast.hpp:2543:29: note: in instantiation of member

      function 'boost::detail::lexical_cast_do_cast<std::array<char, 32>,

      float>::lexical_cast_impl' requested here

        return caster_type::lexical_cast_impl(arg);

                            ^

/home/travis/build/spring/spring/rts/lib/lua/src/lvm.cpp:62:18: note: in

      instantiation of function template specialization

      'boost::lexical_cast<std::array<char, 32>, float>' requested here

      s = boost::lexical_cast<str_buf>(n);

                 ^

In file included from /home/travis/build/spring/spring/rts/lib/lua/src/lvm.cpp:14:

/usr/include/boost/lexical_cast.hpp:2371:34: error: excess elements in scalar

      initializer

  ...interpreter_type interpreter(buf, buf + stream_trait::len_t::value + 1);

                      ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/usr/include/boost/lexical_cast.hpp:2543:29: note: in instantiation of member

      function 'boost::detail::lexical_cast_do_cast<std::array<char, 32>,

      float>::lexical_cast_impl' requested here

        return caster_type::lexical_cast_impl(arg);

                            ^

/home/travis/build/spring/spring/rts/lib/lua/src/lvm.cpp:62:18: note: in

      instantiation of function template specialization

      'boost::lexical_cast<std::array<char, 32>, float>' requested here

      s = boost::lexical_cast<str_buf>(n);

                 ^

2 errors generated.
Additional Informationhttps://travis-ci.org/spring/spring/jobs/84765200#L1080
TagsNo tags attached.
Checked infolog.txt for Errors

Activities

abma

2015-10-11 14:18

administrator   ~0015295

our buildslave shows the same error message:
http://buildbot.springrts.com/builders/full-clang/builds/628/steps/buildConfigNinja/logs/stdio

hokomoko

2015-10-11 16:35

developer   ~0015296

crap, I'll try to figure this

hokomoko

2015-10-15 15:09

developer   ~0015301

I've removed lexical_cast as it didn't solve the issue.

Issue History

Date Modified Username Field Change
2015-10-11 13:58 abma New Issue
2015-10-11 14:18 abma Note Added: 0015295
2015-10-11 16:35 hokomoko Note Added: 0015296
2015-10-15 15:09 hokomoko Note Added: 0015301
2015-10-15 15:09 hokomoko Status new => closed
2015-10-15 15:09 hokomoko Assigned To => hokomoko
2015-10-15 15:09 hokomoko Resolution open => no change required