Qyt-Coding opened a new issue #6897:
URL: https://github.com/apache/incubator-doris/issues/6897


   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### Version
   
   0.14.0
   
   ### What's Wrong?
   
   在编译的时候,发生了这个错误,看了issus,我想问是内存不足吗,但是我电脑内存又8G
    /var/local/thirdparty/installed/include/bvar/detail/percentile.h:240:7: 
note: 'class bvar::detail::PercentileSamples<254>' declared here
     240 | class PercentileSamples {
         |       ^~~~~~~~~~~~~~~~~
   In file included from 
/var/local/thirdparty/installed/include/bvar/window.h:28,
                    from 
/var/local/thirdparty/installed/include/bvar/recorder.h:28,
                    from 
/var/local/thirdparty/installed/include/bvar/utils/lock_timer.h:27,
                    from 
/var/local/thirdparty/installed/include/bthread/mutex.h:27,
                    from 
/var/local/thirdparty/installed/include/bthread/bthread.h:32,
                    from 
/var/local/thirdparty/installed/include/brpc/server.h:26,
                    from ../src/service/brpc.h:53,
                    from ../src/http/ev_http_server.cpp:36:
   /var/local/thirdparty/installed/include/bvar/detail/series.h: In 
instantiation of 'bvar::detail::SeriesBase<T, Op>::Data::Data() [with T = 
bvar::Stat; Op = bvar::detail::WindowBase<bvar::IntRecorder, 
bvar::SERIES_IN_SECOND>::SeriesSampler::Op]':
   /var/local/thirdparty/installed/include/bvar/detail/series.h:107:18:   
required from 'bvar::detail::SeriesBase<T, Op>::SeriesBase(const Op&) [with T = 
bvar::Stat; Op = bvar::detail::WindowBase<bvar::IntRecorder, 
bvar::SERIES_IN_SECOND>::SeriesSampler::Op]'
   /var/local/thirdparty/installed/include/bvar/detail/series.h:218:44:   
required from 'bvar::detail::Series<T, Op>::Series(const Op&) [with T = 
bvar::Stat; Op = bvar::detail::WindowBase<bvar::IntRecorder, 
bvar::SERIES_IN_SECOND>::SeriesSampler::Op]'
   /var/local/thirdparty/installed/include/bvar/window.h:59:45:   required from 
'bvar::detail::WindowBase<R, 
series_freq>::SeriesSampler::SeriesSampler(bvar::detail::WindowBase<R, 
series_freq>*, R*) [with R = bvar::IntRecorder; bvar::SeriesFrequency 
series_freq = bvar::SERIES_IN_SECOND]'
   /var/local/thirdparty/installed/include/bvar/window.h:151:31:   required 
from 'int bvar::detail::WindowBase<R, series_freq>::expose_impl(const 
StringPiece&, const StringPiece&, bvar::DisplayFilter) [with R = 
bvar::IntRecorder; bvar::SeriesFrequency series_freq = bvar::SERIES_IN_SECOND; 
butil::StringPiece = butil::BasicStringPiece<std::basic_string<char> >]'
   /var/local/thirdparty/installed/include/bvar/window.h:144:9:   required from 
here
   /var/local/thirdparty/installed/include/bvar/detail/series.h:131:23: 
warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial 
type 'struct bvar::Stat'; use assignment or value-initialization instead 
[-Wclass-memaccess]
     131 |                 memset(_array, 0, sizeof(_array));
         |                 ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from 
/var/local/thirdparty/installed/include/bvar/utils/lock_timer.h:27,
                    from 
/var/local/thirdparty/installed/include/bthread/mutex.h:27,
                    from 
/var/local/thirdparty/installed/include/bthread/bthread.h:32,
                    from 
/var/local/thirdparty/installed/include/brpc/server.h:26,
                    from ../src/service/brpc.h:53,
                    from ../src/http/ev_http_server.cpp:36:
   /var/local/thirdparty/installed/include/bvar/recorder.h:33:8: note: 'struct 
bvar::Stat' declared here
      33 | struct Stat {
         |        ^~~~
   [202/678] Building CXX object 
src/http/CMakeFiles/Webserver.dir/http_client.cpp.o
   ninja: build stopped: subcommand failed.
   
   
![image](https://user-images.githubusercontent.com/44427803/138128332-b684f95c-e4f3-4063-b9e7-e0fc2eb4632d.png)
   
   
   
   
   
   ### What You Expected?
   
   能编译成功
   
   ### How to Reproduce?
   
   _No response_
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to