Linux build error

Issue #423 new
Former user created an issue

-- hg found at /usr/bin/hg -- x265 version 2.8+44-18eaffdd3638

[ 61%] Building CXX object common/CMakeFiles/common.dir/frame.cpp.o /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/common/frame.cpp: In constructor ‘x265_12bit::Frame::Frame()’: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/common/frame.cpp:47:42: warning: ‘void memset(void, int, size_t)’ clearing an object of non-trivial type ‘struct x265_12bit::Lowres’; use assignment or value-initialization instead [-Wclass-memaccess] memset(&m_lowres, 0, sizeof(m_lowres)); ^ In file included from /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/common/frame.h:29, from /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/common/frame.cpp:26: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/common/lowres.h:107:8: note: ‘struct x265_12bit::Lowres’ declared here struct Lowres : public ReferencePlanes ^~

[ 76%] Building CXX object encoder/CMakeFiles/encoder.dir/search.cpp.o /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/search.cpp: In member function ‘void x265_12bit::Search::predInterSearch(x265_12bit::Mode&, const x265_12bit::CUGeom&, bool, uint32_t)’: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/search.cpp:2173:36: warning: ‘void memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct x265_12bit::Search::MergeData’; use assignment or value-initialization instead [-Wclass-memaccess] memset(&merge, 0, sizeof(merge)); ^ In file included from /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/search.cpp:30: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/search.h:414:12: note: ‘struct x265_12bit::Search::MergeData’ declared here struct MergeData ^~~ /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/search.cpp: In member function ‘void x265_12bit::Search::encodeResAndCalcRdInterCU(x265_12bit::Mode&, const x265_12bit::CUGeom&)’: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/search.cpp:2758:50: warning: ‘void memset(void, int, size_t)’ clearing an object of non-trivial type ‘struct x265_12bit::Search::TUInfoCache’; use assignment or value-initialization instead [-Wclass-memaccess] memset(&m_cacheTU, 0, sizeof(TUInfoCache)); ^ In file included from /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/search.cpp:30: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/search.h:388:12: note: ‘struct x265_12bit::Search::TUInfoCache’ declared here struct TUInfoCache ^~~~~

[ 81%] Building CXX object encoder/CMakeFiles/encoder.dir/frameencoder.cpp.o n file included from /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/frameencoder.cpp:33: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/frameencoder.h: In member function ‘void x265_12bit::CTURow::init(x265_12bit::Entropy&, unsigned int)’: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/frameencoder.h:108:46: warning: ‘void memset(void, int, size_t)’ clearing an object of non-trivial type ‘struct x265_12bit::FrameStats’; use assignment or value-initialization instead [-Wclass-memaccess] memset(&rowStats, 0, sizeof(rowStats)); ^ In file included from /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/frameencoder.cpp:28: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/common/framedata.h:41:8: note: ‘struct x265_12bit::FrameStats’ declared here struct FrameStats ^~~~ /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/frameencoder.cpp: In constructor ‘x265_12bit::FrameEncoder::FrameEncoder()’: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/frameencoder.cpp:64:47: warning: ‘void memset(void, int, size_t)’ clearing an object of non-trivial type ‘struct x265_12bit::RateControlEntry’; use assignment or value-initialization instead [-Wclass-memaccess] memset(&m_rce, 0, sizeof(RateControlEntry)); ^ In file included from /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/frameencoder.h:40, from /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/frameencoder.cpp:33: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/ratecontrol.h:66:8: note: ‘struct x265_12bit::RateControlEntry’ declared here struct RateControlEntry ^~~~ /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/frameencoder.cpp: In member function ‘void x265_12bit::FrameEncoder::compressFrame()’: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/frameencoder.cpp:390:92: warning: ‘void memset(void, int, size_t)’ clearing an object of non-trivial type ‘struct x265_12bit::FrameStats’; use assignment or value-initialization instead [-Wclass-memaccess] _frame->m_encData->m_frameStats), 0, sizeof(m_frame->m_encData->m_frameStats)); ^ In file included from /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/frameencoder.cpp:28: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/common/framedata.h:41:8: note: ‘struct x265_12bit::FrameStats’ declared here struct FrameStats ^~ /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/frameencoder.cpp: In member function ‘virtual void x265_12bit::FrameEncoder::processRowEncoder(int, x265_12bit::ThreadLocalData&)’: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/frameencoder.cpp:1645:72: warning: ‘void memset(void, int, size_t)’ clearing an object of non-trivial type ‘struct x265_12bit::FrameStats’; use assignment or value-initialization instead [-Wclass-memaccess] memset(&curRow.rowStats, 0, sizeof(curRow.rowStats)); ^ In file included from /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/frameencoder.cpp:28: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/common/framedata.h:41:8: note: ‘struct x265_12bit::FrameStats’ declared here struct FrameStats ^~ /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/frameencoder.cpp:1730:78: warning: ‘void memset(void, int, size_t)’ clearing an object of non-trivial type ‘struct x265_12bit::FrameStats’; use assignment or value-initialization instead [-Wclass-memaccess] memset(&stopRow.rowStats, 0, sizeof(stopRow.rowStats)); ^ In file included from /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/frameencoder.cpp:28: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/common/framedata.h:41:8: note: ‘struct x265_12bit::FrameStats’ declared here struct FrameStats ^~~~

[ 83%] Building CXX object encoder/CMakeFiles/encoder.dir/framefilter.cpp.o In file included from /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/framefilter.cpp:30: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/frameencoder.h: In member function ‘void x265_12bit::CTURow::init(x265_12bit::Entropy&, unsigned int)’: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/frameencoder.h:108:46: warning: ‘void memset(void, int, size_t)’ clearing an object of non-trivial type ‘struct x265_12bit::FrameStats’; use assignment or value-initialization instead [-Wclass-memaccess] memset(&rowStats, 0, sizeof(rowStats)); ^ In file included from /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/framefilter.cpp:27: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/common/framedata.h:41:8: note: ‘struct x265_12bit::FrameStats’ declared here struct FrameStats ^~~~~~

[ 93%] Building CXX object encoder/CMakeFiles/encoder.dir/ratecontrol.cpp.o /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/ratecontrol.cpp: In member function ‘int x265_12bit::RateControl::writeRateControlFrameStats(x265_12bit::Frame, x265_12bit::RateControlEntry)’: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/ratecontrol.cpp:2844:21: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict] sprintf(deltaPOC, "%s%d~", deltaPOC, rpsWriter->deltaPOC[i]); ^~ ~~ /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/ratecontrol.cpp:2845:21: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict] sprintf(bUsed, "%s%d~", bUsed, rpsWriter->bUsed[i]); ^~~ ~ /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/ratecontrol.cpp:2844:31: warning: ‘~’ directive writing 1 byte into a region of size between 0 and 127 [-Wformat-overflow=] sprintf(deltaPOC, "%s%d~", deltaPOC, rpsWriter->deltaPOC[i]); ^~~ /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/ratecontrol.cpp:2844:20: note: ‘sprintf’ output between 3 and 140 bytes into a destination of size 128 sprintf(deltaPOC, "%s%d~", deltaPOC, rpsWriter->deltaPOC[i]); ~^~~~~~~~~~~ /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/ratecontrol.cpp:2845:28: warning: ‘~’ directive writing 1 byte into a region of size between 0 and 39 [-Wformat-overflow=] sprintf(bUsed, "%s%d~", bUsed, rpsWriter->bUsed[i]); ^~~~~ /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/ratecontrol.cpp:2845:20: note: ‘sprintf’ output between 3 and 42 bytes into a destination of size 40 sprintf(bUsed, "%s%d~", bUsed, rpsWriter->bUsed[i]);

[ 95%] Building CXX object encoder/CMakeFiles/encoder.dir/encoder.cpp.o In file included from /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/encoder.cpp:36: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/frameencoder.h: In member function ‘void x265_12bit::CTURow::init(x265_12bit::Entropy&, unsigned int)’: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/frameencoder.h:108:46: warning: ‘void memset(void, int, size_t)’ clearing an object of non-trivial type ‘struct x265_12bit::FrameStats’; use assignment or value-initialization instead [-Wclass-memaccess] memset(&rowStats, 0, sizeof(rowStats)); ^ In file included from /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/encoder.cpp:30: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/common/framedata.h:41:8: note: ‘struct x265_12bit::FrameStats’ declared here struct FrameStats ^~~~~~ /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/encoder.cpp: In member function ‘bool x265_12bit::Encoder::computeSPSRPSIndex()’: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/encoder.cpp:4810:61: warning: ‘void memset(void, int, size_t)’ clearing an object of non-trivial type ‘struct x265_12bit::RPS’; use assignment or value-initialization instead [-Wclass-memaccess] memset(rpsInSPS, 0, sizeof(RPS) * MAX_NUM_SHORT_TERM_RPS); ^ [ 61%] Building CXX object common/CMakeFiles/common.dir/frame.cpp.o In file included from /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/common/framedata.h:28, from /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/encoder.cpp:30: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/common/slice.h:45:8: note: ‘struct x265_12bit::RPS’ declared here struct RPS

/tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/common/frame.cpp: In constructor ‘x265_10bit::Frame::Frame()’: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/common/frame.cpp:47:42: warning: ‘void memset(void, int, size_t)’ clearing an object of non-trivial type ‘struct x265_10bit::Lowres’; use assignment or value-initialization instead [-Wclass-memaccess] memset(&m_lowres, 0, sizeof(m_lowres)); ^ In file included from /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/common/frame.h:29, from /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/common/frame.cpp:26: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/common/lowres.h:107:8: note: ‘struct x265_10bit::Lowres’ declared here struct Lowres : public ReferencePlanes ^~

[ 76%] Building CXX object encoder/CMakeFiles/encoder.dir/search.cpp.o /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/search.cpp: In member function ‘void x265_10bit::Search::predInterSearch(x265_10bit::Mode&, const x265_10bit::CUGeom&, bool, uint32_t)’: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/search.cpp:2173:36: warning: ‘void memset(void, int, size_t)’ clearing an object of non-trivial type ‘struct x265_10bit::Search::MergeData’; use assignment or value-initialization instead [-Wclass-memaccess] memset(&merge, 0, sizeof(merge)); ^ In file included from /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/search.cpp:30: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/search.h:414:12: note: ‘struct x265_10bit::Search::MergeData’ declared here struct MergeData ^~~~~ /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/search.cpp: In member function ‘void x265_10bit::Search::encodeResAndCalcRdInterCU(x265_10bit::Mode&, const x265_10bit::CUGeom&)’: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/search.cpp:2758:50: warning: ‘void memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct x265_10bit::Search::TUInfoCache’; use assignment or value-initialization instead [-Wclass-memaccess] memset(&m_cacheTU, 0, sizeof(TUInfoCache)); ^ In file included from /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/search.cpp:30: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/search.h:388:12: note: ‘struct x265_10bit::Search::TUInfoCache’ declared here struct TUInfoCache

[ 81%] Building CXX object encoder/CMakeFiles/encoder.dir/frameencoder.cpp.o In file included from /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/frameencoder.cpp:33: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/frameencoder.h: In member function ‘void x265_10bit::CTURow::init(x265_10bit::Entropy&, unsigned int)’: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/frameencoder.h:108:46: warning: ‘void memset(void, int, size_t)’ clearing an object of non-trivial type ‘struct x265_10bit::FrameStats’; use assignment or value-initialization instead [-Wclass-memaccess] memset(&rowStats, 0, sizeof(rowStats)); ^ In file included from /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/frameencoder.cpp:28: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/common/framedata.h:41:8: note: ‘struct x265_10bit::FrameStats’ declared here struct FrameStats ^~~~ /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/frameencoder.cpp: In constructor ‘x265_10bit::FrameEncoder::FrameEncoder()’: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/frameencoder.cpp:64:47: warning: ‘void memset(void, int, size_t)’ clearing an object of non-trivial type ‘struct x265_10bit::RateControlEntry’; use assignment or value-initialization instead [-Wclass-memaccess] memset(&m_rce, 0, sizeof(RateControlEntry)); ^ In file included from /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/frameencoder.h:40, from /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/frameencoder.cpp:33: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/ratecontrol.h:66:8: note: ‘struct x265_10bit::RateControlEntry’ declared here struct RateControlEntry ^~~~~~ /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/frameencoder.cpp: In member function ‘void x265_10bit::FrameEncoder::compressFrame()’: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/frameencoder.cpp:390:92: warning: ‘void memset(void, int, size_t)’ clearing an object of non-trivial type ‘struct x265_10bit::FrameStats’; use assignment or value-initialization instead [-Wclass-memaccess] _frame->m_encData->m_frameStats), 0, sizeof(m_frame->m_encData->m_frameStats)); ^

In file included from /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/frameencoder.cpp:28: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/common/framedata.h:41:8: note: ‘struct x265_10bit::FrameStats’ declared here struct FrameStats ^~~~ /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/frameencoder.cpp: In member function ‘virtual void x265_10bit::FrameEncoder::processRowEncoder(int, x265_10bit::ThreadLocalData&)’: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/frameencoder.cpp:1645:72: warning: ‘void memset(void, int, size_t)’ clearing an object of non-trivial type ‘struct x265_10bit::FrameStats’; use assignment or value-initialization instead [-Wclass-memaccess] memset(&curRow.rowStats, 0, sizeof(curRow.rowStats)); ^ In file included from /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/frameencoder.cpp:28: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/common/framedata.h:41:8: note: ‘struct x265_10bit::FrameStats’ declared here struct FrameStats ^~~~ /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/frameencoder.cpp:1730:78: warning: ‘void memset(void, int, size_t)’ clearing an object of non-trivial type ‘struct x265_10bit::FrameStats’; use assignment or value-initialization instead [-Wclass-memaccess] memset(&stopRow.rowStats, 0, sizeof(stopRow.rowStats)); ^ In file included from /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/frameencoder.cpp:28: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/common/framedata.h:41:8: note: ‘struct x265_10bit::FrameStats’ declared here struct FrameStats

[ 83%] Building CXX object encoder/CMakeFiles/encoder.dir/framefilter.cpp.o In file included from /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/framefilter.cpp:30: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/frameencoder.h: In member function ‘void x265_10bit::CTURow::init(x265_10bit::Entropy&, unsigned int)’: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/frameencoder.h:108:46: warning: ‘void memset(void, int, size_t)’ clearing an object of non-trivial type ‘struct x265_10bit::FrameStats’; use assignment or value-initialization instead [-Wclass-memaccess] memset(&rowStats, 0, sizeof(rowStats)); ^ [ 93%] Building CXX object encoder/CMakeFiles/encoder.dir/ratecontrol.cpp.o In file included from /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/framefilter.cpp:27: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/common/framedata.h:41:8: note: ‘struct x265_10bit::FrameStats’ declared here struct FrameStats

/tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/ratecontrol.cpp: In member function ‘int x265_10bit::RateControl::writeRateControlFrameStats(x265_10bit::Frame, x265_10bit::RateControlEntry)’: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/ratecontrol.cpp:2844:21: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict] sprintf(deltaPOC, "%s%d~", deltaPOC, rpsWriter->deltaPOC[i]); ^~ ~~ /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/ratecontrol.cpp:2845:21: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict] sprintf(bUsed, "%s%d~", bUsed, rpsWriter->bUsed[i]); ^~~ ~ /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/ratecontrol.cpp:2844:31: warning: ‘~’ directive writing 1 byte into a region of size between 0 and 127 [-Wformat-overflow=] sprintf(deltaPOC, "%s%d~", deltaPOC, rpsWriter->deltaPOC[i]); ^~~ /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/ratecontrol.cpp:2844:20: note: ‘sprintf’ output between 3 and 140 bytes into a destination of size 128 sprintf(deltaPOC, "%s%d~", deltaPOC, rpsWriter->deltaPOC[i]); ~^~~~~~~~~~~ /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/ratecontrol.cpp:2845:28: warning: ‘~’ directive writing 1 byte into a region of size between 0 and 39 [-Wformat-overflow=] sprintf(bUsed, "%s%d~", bUsed, rpsWriter->bUsed[i]); ^~~~~ /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/ratecontrol.cpp:2845:20: note: ‘sprintf’ output between 3 and 42 bytes into a destination of size 40 sprintf(bUsed, "%s%d~", bUsed, rpsWriter->bUsed[i]);

[ 95%] Building CXX object encoder/CMakeFiles/encoder.dir/encoder.cpp.o In file included from /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/encoder.cpp:36: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/frameencoder.h: In member function ‘void x265_10bit::CTURow::init(x265_10bit::Entropy&, unsigned int)’: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/frameencoder.h:108:46: warning: ‘void memset(void, int, size_t)’ clearing an object of non-trivial type ‘struct x265_10bit::FrameStats’; use assignment or value-initialization instead [-Wclass-memaccess] memset(&rowStats, 0, sizeof(rowStats)); ^ In file included from /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/encoder.cpp:30: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/common/framedata.h:41:8: note: ‘struct x265_10bit::FrameStats’ declared here struct FrameStats ^~~~ /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/encoder.cpp: In member function ‘bool x265_10bit::Encoder::computeSPSRPSIndex()’: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/encoder.cpp:4810:61: warning: ‘void memset(void, int, size_t)’ clearing an object of non-trivial type ‘struct x265_10bit::RPS’; use assignment or value-initialization instead [-Wclass-memaccess] memset(rpsInSPS, 0, sizeof(RPS) * MAX_NUM_SHORT_TERM_RPS); ^ In file included from /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/common/framedata.h:28, from /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/encoder/encoder.cpp:30: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/common/slice.h:45:8: note: ‘struct x265_10bit::RPS’ declared here struct RPS ^

[ 3%] Building CXX object dynamicHDR10/CMakeFiles/dynamicHDR10.dir/metadataFromJson.cpp.o /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/dynamicHDR10/metadataFromJson.cpp: In member function ‘bool metadataFromJson::frameMetadataFromJson(const char, int, uint8_t&)’: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/dynamicHDR10/metadataFromJson.cpp:282:5: error: ‘memset’ was not declared in this scope memset(metadata, 0, mSEIBytesToRead); ^~ /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/dynamicHDR10/metadataFromJson.cpp:282:5: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/dynamicHDR10/metadataFromJson.cpp:35:1: +#include <cstring> using namespace SeiMetadataDictionary; /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/dynamicHDR10/metadataFromJson.cpp:282:5: memset(metadata, 0, mSEIBytesToRead); ^~ /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/dynamicHDR10/metadataFromJson.cpp: In member function ‘int metadataFromJson::movieMetadataFromJson(const char, uint8_t&)’: /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/dynamicHDR10/metadataFromJson.cpp:306:9: error: ‘memset’ was not declared in this scope memset(metadata[frame], 0, 509); ^~ /tmp/yaourt-tmp-eliot/aur-x265-hg/src/x265/source/dynamicHDR10/metadataFromJson.cpp:306:9: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? make[2]: [dynamicHDR10/CMakeFiles/dynamicHDR10.dir/build.make:89: dynamicHDR10/CMakeFiles/dynamicHDR10.dir/metadataFromJson.cpp.o] Error 1 make[1]: [CMakeFiles/Makefile2:339: dynamicHDR10/CMakeFiles/dynamicHDR10.dir/all] Error 2 make: ** [Makefile:130: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting... ==> ERROR: Makepkg was unable to build x265-hg.

best,

Eliot

Comments (0)

  1. Log in to comment