52coder commented on issue #1870:
URL:
https://github.com/apache/incubator-brpc/issues/1870#issuecomment-1229352138
编译信息及文件列表:
make之后文件列表:
root@52coder:~/incubator-brpc/example/enable_circuit_breaker_c++# ls -lt
total 373920
-rwxr-xr-x 1 root root 95129344 8月 27 23:13 echo_server
-rwxr-xr-x 1 root root 95059624 8月 27 23:13 echo_client
-rw-r--r-- 1 root root 496992 8月 27 23:13 client.o
-rw-r--r-- 1 root root 4803 8月 27 23:13 client.cpp
-rwxr-xr-x 1 root root 95129344 8月 27 23:06 echo_server_ok
-rw-r--r-- 1 root root 948400 8月 27 23:06 server.o
-rw-r--r-- 1 root root 4203 8月 27 23:06 server.cpp
-rwxr-xr-x 1 root root 95129432 8月 27 23:05 echo_server_fail
-rw-r--r-- 1 root root 5 8月 27 23:05 dummy_server.port
-rw-r--r-- 1 root root 926128 8月 27 22:54 echo.pb.o
-rw-r--r-- 1 root root 22009 8月 27 22:54 echo.pb.h
-rw-r--r-- 1 root root 4878 8月 27 22:52 CMakeLists.txt
-rw-r--r-- 1 root root 1073 8月 27 22:52 echo.proto
-rw-r--r-- 1 root root 815 8月 27 22:52 Makefile
root@52coder:~/incubator-brpc/example/enable_circuit_breaker_c++# make
> Generating echo.pb.cc
/usr/local/bin/protoc --cpp_out=. --proto_path=. echo.proto
> Compiling echo.pb.o
g++ -c -I/usr/include/ -I../../output/include -DBRPC_WITH_GLOG=0
-DGFLAGS_NS=google -g -std=c++0x -DNDEBUG -O2 -D__const__= -pipe -W -Wall
-Wno-unused-parameter -fPIC -fno-omit-frame-pointer echo.pb.cc -o echo.pb.o
> Compiling client.o
g++ -c -I/usr/include/ -I../../output/include -DBRPC_WITH_GLOG=0
-DGFLAGS_NS=google -g -std=c++0x -DNDEBUG -O2 -D__const__= -pipe -W -Wall
-Wno-unused-parameter -fPIC -fno-omit-frame-pointer client.cpp -o client.o
> Linking echo_client
g++ -L/usr/lib/x86_64-linux-gnu -L../../output/lib -Xlinker "-(" echo.pb.o
client.o -Wl,-Bstatic -lgflags -lprotobuf -lleveldb -lsnappy -lbrpc
-Wl,-Bdynamic -Xlinker "-)" -lpthread -lssl -lcrypto -ldl -lz -lrt -o
echo_client
> Compiling server.o
g++ -c -I/usr/include/ -I../../output/include -DBRPC_WITH_GLOG=0
-DGFLAGS_NS=google -g -std=c++0x -DNDEBUG -O2 -D__const__= -pipe -W -Wall
-Wno-unused-parameter -fPIC -fno-omit-frame-pointer server.cpp -o server.o
In file included from ../../output/include/butil/resource_pool.h:89,
from ../../output/include/brpc/socket.h:30,
from ../../output/include/brpc/redis.h:33,
from ../../output/include/brpc/server.h:43,
from server.cpp:22:
../../output/include/butil/resource_pool_inl.h: In instantiation of ‘static
butil::ResourcePool<T>* butil::ResourcePool<T>::singleton() [with T =
brpc::Socket]’:
../../output/include/butil/resource_pool.h:118:38: required from ‘int
butil::return_resource(butil::ResourceId<T>) [with T = brpc::Socket]’
../../output/include/brpc/socket_inl.h:112:32: required from here
../../output/include/butil/resource_pool_inl.h:368:17: warning: ‘new’ of
type ‘butil::ResourcePool<brpc::Socket>’ with extended alignment 64
[-Waligned-new=]
368 | p = new ResourcePool();
| ^~~~~~~~~~~~~~~~~~
../../output/include/butil/resource_pool_inl.h:368:17: note: uses ‘void*
operator new(std::size_t)’, which does not have an alignment parameter
../../output/include/butil/resource_pool_inl.h:368:17: note: use
‘-faligned-new’ to enable C++17 over-aligned new support
> Linking echo_server
g++ -L/usr/lib/x86_64-linux-gnu -L../../output/lib -Xlinker "-(" echo.pb.o
server.o -Wl,-Bstatic -lgflags -lprotobuf -lleveldb -lsnappy -lbrpc
-Wl,-Bdynamic -Xlinker "-)" -lpthread -lssl -lcrypto -ldl -lz -lrt -o
echo_server
rm echo.pb.cc
root@52coder:~/incubator-brpc/example/enable_circuit_breaker_c++#
--
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]