InternetofThingsprogrammer opened a new issue, #2939:
URL: https://github.com/apache/brpc/issues/2939

   sh config_brpc.sh --headers=/usr/include --libs=/usr/lib --cxx=clang++ 
--cc=clang
   make
   > Compiling src/mcpack2pb/generator.o
   clang++ -c -I./src -I/usr/include/ -DBRPC_WITH_GLOG=0 -DGFLAGS_NS=google -g 
-DBTHREAD_USE_FAST_PTHREAD_MUTEX -D__const__= -D_GNU_SOURCE -DUSE_SYMBOLIZE 
-DNO_TCMALLOC -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS 
-D__STDC_CONSTANT_MACROS -DNDEBUG 
-DBRPC_REVISION=\"1.0.0\|master\|6eec0603\|2022-04-07T09:31:12+08:00\" -O2 
-pipe -Wall -W -fPIC -fstrict-aliasing -Wno-invalid-offsetof 
-Wno-unused-parameter -fno-omit-frame-pointer -std=c++0x -msse4 -msse4.2 
src/mcpack2pb/generator.cpp -o src/mcpack2pb/generator.o
   In file included from src/mcpack2pb/generator.cpp:22:
   In file included from 
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/set:60:
   In file included from 
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/requires_hosted.h:31:
   In file included from 
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:679:
   In file included from 
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/os_defines.h:39:
   In file included from /usr/include/features.h:502:
   /usr/include/x86_64-linux-gnu/sys/cdefs.h:331:28: error: too few arguments 
provided to function-like macro invocation
     331 | #if __GNUC_PREREQ (2,5) || __glibc_has_attribute (__const__)
         |                            ^
   /usr/include/x86_64-linux-gnu/sys/cdefs.h:45:59: note: expanded from macro 
'__glibc_has_attribute'
      45 | # define __glibc_has_attribute(attr) __has_attribute (attr)
         |                                                           ^
   In file included from src/mcpack2pb/generator.cpp:23:
   In file included from /usr/include/google/protobuf/descriptor.h:65:
   In file included from /usr/include/google/protobuf/stubs/common.h:39:
   In file included from 
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/iostream:41:
   In file included from 
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/ostream:40:
   In file included from 
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/ios:44:
   In file included from 
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/ios_base.h:46:
   
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/system_error:183:38:
 error: expected identifier
     183 |   [[__nodiscard__, __gnu__::__const__]]
         |                                      ^
   
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/system_error:188:38:
 error: expected identifier
     188 |   [[__nodiscard__, __gnu__::__const__]]
         |                                      ^
   In file included from src/mcpack2pb/generator.cpp:23:
   In file included from /usr/include/google/protobuf/descriptor.h:65:
   In file included from /usr/include/google/protobuf/stubs/common.h:39:
   In file included from 
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/iostream:41:
   In file included from 
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/ostream:40:
   In file included from 
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/ios:44:
   
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/ios_base.h:208:38:
 error: expected identifier
     208 |   [[__nodiscard__, __gnu__::__const__]]
         |                                      ^
   4 errors generated.
   make: *** [Makefile:297:src/mcpack2pb/generator.o] 错误 1
   root@LAPTOP-5MQR6E0V:/home/don/WorkSapce/incubator-brpc# 


-- 
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: dev-unsubscr...@brpc.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to