You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2021/04/23 04:20:33 UTC
[GitHub] [incubator-brpc] likunyao commented on issue #1382: macos (Apple M1 )编译过程报错
likunyao commented on issue #1382:
URL: https://github.com/apache/incubator-brpc/issues/1382#issuecomment-825374469
报错结果
> Generating src/idl_options.pb.cc
/opt/homebrew/bin/protoc --cpp_out=./src --proto_path=./src --proto_path=/opt/homebrew/include/ src/idl_options.proto
> Compiling src/mcpack2pb/generator.o
clang++ -c -I./src -I/opt/homebrew/include/ -I/usr/local/opt/openssl/include -DBRPC_WITH_GLOG=0 -DGFLAGS_NS=google -g -Wno-deprecated-declarations -Wno-inconsistent-missing-override -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=\"0.9.7\|master\|110d6707\|2021-04-22T00:01:09+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
clang: warning: argument unused during compilation: '-msse4' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-msse4.2' [-Wunused-command-line-argument]
In file included from src/mcpack2pb/generator.cpp:28:
In file included from ./src/butil/file_util.h:28:
In file included from ./src/butil/files/file.h:21:
In file included from ./src/butil/files/scoped_file.h:11:
In file included from ./src/butil/logging.h:33:
./src/butil/time.h:228:5: error: unknown type name 'uint32'
uint32 pmccntr;
^
./src/butil/time.h:229:5: error: unknown type name 'uint32'
uint32 pmuseren;
^
./src/butil/time.h:230:5: error: unknown type name 'uint32'
uint32 pmcntenset;
^
./src/butil/time.h:238:28: error: unknown type name 'int64'
return static_cast<int64>(pmccntr) * 64; // Should optimize to << 6
^
4 errors generated.
make: *** [src/mcpack2pb/generator.o] Error 1
--
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org