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 2022/09/06 10:39:05 UTC
[GitHub] [incubator-brpc] gaowayne opened a new issue, #1919: [FAQ] how to disable code optimization to create debug version of bRPC
gaowayne opened a new issue, #1919:
URL: https://github.com/apache/incubator-brpc/issues/1919
**Describe the bug (描述bug)**
g++ still use the O2, not O0 to build code. to fully debug code, we need O0.
**To Reproduce (复现方法)**
I change the Cmakefilelist.txt, in one place add O2, but still there is one option O2, I need change it to O0
```
g++ -c -I./src -I/usr/include/ -DBRPC_WITH_GLOG=0 -DGFLAGS_NS=google -D__const__=__unused__ -g -O0 -DBTHREAD_USE_FAST_PTHREAD_MUTEX -D_GNU_SOURCE -DUSE_SYMBOLIZE -DNO_TCMALLOC -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DNDEBUG -DBRPC_REVISION=\"1.2.0\|master\|6457ad74\|2022-08-31T15:35:24+02:00\" -O2 -pipe -Wall -W -fPIC -fstrict-aliasing -Wno-invalid-offsetof -Wno-unused-parameter -fno-omit-frame-pointer -std=c++0x -Wno-aligned-new src/brpc/policy/discovery_naming_service.cpp -o src/brpc/policy/discovery_naming_service.o
```
**Expected behavior (期望行为)**
we can use build with -O0
**Versions (各种版本)**
OS:Ubuntu
Compiler:g++
brpc:
protobuf:
**Additional context/screenshots (更多上下文/截图)**
--
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-unsubscribe@brpc.apache.org.apache.org
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
[GitHub] [incubator-brpc] TousakaRin closed issue #1919: [FAQ] how to disable code optimization to create debug version of bRPC
Posted by GitBox <gi...@apache.org>.
TousakaRin closed issue #1919: [FAQ] how to disable code optimization to create debug version of bRPC
URL: https://github.com/apache/incubator-brpc/issues/1919
--
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-unsubscribe@brpc.apache.org
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
[GitHub] [incubator-brpc] wwbmmm commented on issue #1919: [FAQ] how to disable code optimization to create debug version of bRPC
Posted by GitBox <gi...@apache.org>.
wwbmmm commented on issue #1919:
URL: https://github.com/apache/incubator-brpc/issues/1919#issuecomment-1238039148
You can change this O2 to O0: https://github.com/apache/incubator-brpc/blob/master/CMakeLists.txt#L115
--
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-unsubscribe@brpc.apache.org
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
[GitHub] [incubator-brpc] gaowayne commented on issue #1919: [FAQ] how to disable code optimization to create debug version of bRPC
Posted by GitBox <gi...@apache.org>.
gaowayne commented on issue #1919:
URL: https://github.com/apache/incubator-brpc/issues/1919#issuecomment-1238212871
> You can change this O2 to O0: https://github.com/apache/incubator-brpc/blob/master/CMakeLists.txt#L115
thank you so much. I tried that. I found I need change Makefile in root folder directly.
--
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-unsubscribe@brpc.apache.org
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