machh opened a new issue #1072: arm 编译brpc-0.9 出现如下错误:
URL: https://github.com/apache/incubator-brpc/issues/1072
 
 
   arm  平台,  
   centos7.6 
   gcc-4.85 
    编译brpc-0.9 出现如下错误:
   
   
   
   Compiling src/butil/files/file_enumerator_posix.o
   In file included from ./src/butil/basictypes.h:18:0,
                    from ./src/butil/files/file.h:20,
                    from src/butil/files/file_posix.cc:5:
   src/butil/files/file_posix.cc: In member function ‘int64_t 
butil::File::Seek(butil::File::Whence, int64_t)’:
   ./src/butil/macros.h:173:34: **error:** static assertion failed: off_t_64_bit
    #define BAIDU_CASSERT(expr, msg) static_assert(expr, #msg)
                                     ^
   ./src/butil/macros.h:218:36: note: in expansion of macro ‘BAIDU_CASSERT’
    #define COMPILE_ASSERT(expr, msg)  BAIDU_CASSERT(expr, msg)
                                       ^
   src/butil/files/file_posix.cc:286:3: note: in expansion of macro 
‘COMPILE_ASSERT’
      COMPILE_ASSERT(sizeof(int64_t) == sizeof(off_t), off_t_64_bit);
      ^
   make: *** [src/butil/files/file_posix.o] Error 1
   make: *** Waiting for unfinished jobs....
   
   
   
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to