GCC 8: camotics fails to build for i686, ARMv7 arches (reading 31 bytes from a region of size 16)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

Need help figuring this out since I have no idea what this means.

The cbang code that is included in camotics fails to build with the following messages. It is failing only for i686 and armv7hl architectures.

g++ -o build/cbang/log/Logger.o -c -std=c++11 -ggdb -Wall -Werror -I/usr/include/v8-3.14/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -mcet -fcf-protection -Wno-error=parentheses -Wno-deprecated-declarations -DDEBUG -D_REENTRANT -DHAVE_EXPAT -DHAVE_PTHREADS -DHAVE_LIBSQLITE -DHAVE_V8 -DDEBUG_LEVEL=1 -DUSING_CBANG -Iinclude -Isrc -Isrc/boost src/cbang/log/Logger.cpp
In file included from /usr/include/string.h:494,
                 from src/boost/boost/range/detail/implementation_help.hpp:18,
                 from src/boost/boost/range/end.hpp:24,
                 from src/boost/boost/range/functions.hpp:19,
                 from src/boost/boost/range/iterator_range_core.hpp:38,
                 from src/boost/boost/range/iterator_range.hpp:13,
                 from src/boost/boost/iostreams/traits.hpp:38,
                 from src/boost/boost/iostreams/detail/dispatch.hpp:17,
                 from src/boost/boost/iostreams/flush.hpp:17,
                 from src/boost/boost/iostreams/close.hpp:18,
                 from src/boost/boost/iostreams/operations.hpp:16,
                 from src/cbang/http/ChunkedStreamFilter.h:41,
                 from src/cbang/http/Transaction.h:37,
                 from src/cbang/http/Transaction.cpp:33:
In function 'void* memcpy(void*, const void*, size_t)',
    inlined from 'std::streamsize cb::HTTP::ChunkedStreamFilter::write(Sink&, const char*, std::streamsize) [with Sink = boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >]' at src/cbang/http/ChunkedStreamFilter.h:131:19,
    inlined from 'static std::streamsize boost::iostreams::detail::write_filter_impl<boost::iostreams::multichar_tag>::write(T&, Sink&, const typename boost::iostreams::char_type_of<T>::type*, std::streamsize) [with T = cb::HTTP::ChunkedStreamFilter; Sink = boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >]' at src/boost/boost/iostreams/write.hpp:142:31,
    inlined from 'std::streamsize boost::iostreams::write(T&, Sink&, const typename boost::iostreams::char_type_of<T>::type*, std::streamsize) [with T = boost::reference_wrapper<cb::HTTP::ChunkedStreamFilter>; Sink = boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >]' at src/boost/boost/iostreams/write.hpp:55:45,
    inlined from 'static std::streamsize boost::iostreams::detail::flt_wrapper_impl<boost::iostreams::output>::write(Filter&, Sink*, const typename boost::iostreams::char_type_of<T>::type*, std::streamsize) [with Filter = boost::reference_wrapper<cb::HTTP::ChunkedStreamFilter>; Sink = boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >]' at src/boost/boost/iostreams/detail/adapter/concept_adapter.hpp:278:30,
    inlined from 'std::streamsize boost::iostreams::detail::concept_adapter<T>::write(const char_type*, std::streamsize, Sink*) [with Sink = boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >; T = boost::reference_wrapper<cb::HTTP::ChunkedStreamFilter>]' at src/boost/boost/iostreams/detail/adapter/concept_adapter.hpp:85:32,
    inlined from 'void boost::iostreams::detail::indirect_streambuf<T, Tr, Alloc, Mode>::sync_impl() [with T = boost::reference_wrapper<cb::HTTP::ChunkedStreamFilter>; Tr = std::char_traits<char>; Alloc = std::allocator<char>; Mode = boost::iostreams::bidirectional]' at src/boost/boost/iostreams/detail/streambuf/indirect_streambuf.hpp:392:18:
/usr/include/bits/string_fortified.h:34:33: error: 'void* __builtin_memcpy(void*, const void*, unsigned int)' reading 31 bytes from a region of size 16 [-Werror=stringop-overflow=]
   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
          ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'void* memcpy(void*, const void*, size_t)',
    inlined from 'std::streamsize cb::HTTP::ChunkedStreamFilter::write(Sink&, const char*, std::streamsize) [with Sink = boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >]' at src/cbang/http/ChunkedStreamFilter.h:131:19,
    inlined from 'static std::streamsize boost::iostreams::detail::write_filter_impl<boost::iostreams::multichar_tag>::write(T&, Sink&, const typename boost::iostreams::char_type_of<T>::type*, std::streamsize) [with T = cb::HTTP::ChunkedStreamFilter; Sink = boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >]' at src/boost/boost/iostreams/write.hpp:142:31,
    inlined from 'std::streamsize boost::iostreams::write(T&, Sink&, const typename boost::iostreams::char_type_of<T>::type*, std::streamsize) [with T = boost::reference_wrapper<cb::HTTP::ChunkedStreamFilter>; Sink = boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >]' at src/boost/boost/iostreams/write.hpp:55:45,
    inlined from 'static std::streamsize boost::iostreams::detail::flt_wrapper_impl<boost::iostreams::output>::write(Filter&, Sink*, const typename boost::iostreams::char_type_of<T>::type*, std::streamsize) [with Filter = boost::reference_wrapper<cb::HTTP::ChunkedStreamFilter>; Sink = boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >]' at src/boost/boost/iostreams/detail/adapter/concept_adapter.hpp:278:30,
    inlined from 'std::streamsize boost::iostreams::detail::concept_adapter<T>::write(const char_type*, std::streamsize, Sink*) [with Sink = boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >; T = boost::reference_wrapper<cb::HTTP::ChunkedStreamFilter>]' at src/boost/boost/iostreams/detail/adapter/concept_adapter.hpp:85:32,
    inlined from 'boost::iostreams::detail::indirect_streambuf<T, Tr, Alloc, Mode>::int_type boost::iostreams::detail::indirect_streambuf<T, Tr, Alloc, Mode>::overflow(boost::iostreams::detail::indirect_streambuf<T, Tr, Alloc, Mode>::int_type) [with T = boost::reference_wrapper<cb::HTTP::ChunkedStreamFilter>; Tr = std::char_traits<char>; Alloc = std::allocator<char>; Mode = boost::iostreams::bidirectional]' at src/boost/boost/iostreams/detail/streambuf/indirect_streambuf.hpp:301:43:
/usr/include/bits/string_fortified.h:34:33: error: 'void* __builtin_memcpy(void*, const void*, unsigned int)' reading 31 bytes from a region of size 16 [-Werror=stringop-overflow=]
   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
          ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Build: https://koji.fedoraproject.org/koji/taskinfo?taskID=25059766
Upstream bug report: https://github.com/CauldronDevelopmentLLC/cbang/issues/27
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux