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/07/12 11:06:26 UTC
[GitHub] [incubator-brpc] willamhou opened a new issue, #1833: 【编译报错】
willamhou opened a new issue, #1833:
URL: https://github.com/apache/incubator-brpc/issues/1833
**Describe the bug (描述bug)**

**To Reproduce (复现方法)**
git clone https://github.com/apache/incubator-brpc.git
git checkout -b release-1.1 origin/release-1.1
**Expected behavior (期望行为)**
make success
**Versions (各种版本)**
OS: WSL Ubuntu18.04
Compiler: gcc 7.5 g++7.5

brpc: release1.1
protobuf: 3.8.0

**Additional context/screenshots (更多上下文/截图)**
Makefile 的CXXFlags中增加了-D_GLIBCXX_USE_CXX11_ABI=0参数.

gflgas 手工编译
--
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] wasphin commented on issue #1833: 【编译报错】
Posted by GitBox <gi...@apache.org>.
wasphin commented on issue #1833:
URL: https://github.com/apache/incubator-brpc/issues/1833#issuecomment-1181765130
gflags 编译完有没有安装?
--
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] willamhou commented on issue #1833: 【编译报错】
Posted by GitBox <gi...@apache.org>.
willamhou commented on issue #1833:
URL: https://github.com/apache/incubator-brpc/issues/1833#issuecomment-1183207548
> > 发现了新问题
> >
> > 1. master分支下,直接执行cmake -B build && cmake --build build -j6,会报错。
> > 2. 当新建build目录,并将CMakeList.txt及config.h.in拷贝进build目录下,会报GFLAGS_NAMESPACE错.
>
> cmake 就不是这么用的,没必要拿一个错误的尝试说有问题...
>
> > 3. 不使用"cmake -B build && cmake --build build -j6", 使用mkdir bld && cd bld && cmake .. && make是可以编译的
文档上是这么写的。

--
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] willamhou commented on issue #1833: 【编译报错】
Posted by GitBox <gi...@apache.org>.
willamhou commented on issue #1833:
URL: https://github.com/apache/incubator-brpc/issues/1833#issuecomment-1182687401
gflags

![Uploading image.png…]()
--
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] willamhou commented on issue #1833: 【编译报错】
Posted by GitBox <gi...@apache.org>.
willamhou commented on issue #1833:
URL: https://github.com/apache/incubator-brpc/issues/1833#issuecomment-1181776888
> 印象中 ubuntu 18.04 中 7.5 编译器,系统安装的库都禁用了c++11abi,但编译器默认编译选项是打开的。
我看了现在得,
> 印象中 ubuntu 18.04 中 7.5 编译器,系统安装的库都禁用了c++11abi,但编译器默认编译选项是打开的。
没有默认打开,现在正在编译protobuf,手动打开的。
--
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] wasphin commented on issue #1833: 【编译报错】
Posted by GitBox <gi...@apache.org>.
wasphin commented on issue #1833:
URL: https://github.com/apache/incubator-brpc/issues/1833#issuecomment-1183204863
> 发现了新问题
>
> 1. master分支下,直接执行cmake -B build && cmake --build build -j6,会报错。
> 2. 当新建build目录,并将CMakeList.txt及config.h.in拷贝进build目录下,会报GFLAGS_NAMESPACE错.
cmake 就不是这么用的,没必要拿一个错误的尝试说有问题...
> 3. 不使用"cmake -B build && cmake --build build -j6", 使用mkdir bld && cd bld && cmake .. && make是可以编译的
--
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] willamhou commented on issue #1833: 【编译报错】
Posted by GitBox <gi...@apache.org>.
willamhou commented on issue #1833:
URL: https://github.com/apache/incubator-brpc/issues/1833#issuecomment-1181692606
> 编译gflags的时候也加上-D_GLIBCXX_USE_CXX11_ABI=0了吗?
刚刚不记得加没加了。重新加了一下,又编译了下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-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] wasphin commented on issue #1833: 【编译报错】
Posted by GitBox <gi...@apache.org>.
wasphin commented on issue #1833:
URL: https://github.com/apache/incubator-brpc/issues/1833#issuecomment-1181767064
印象中 ubuntu 18.04 中 7.5 编译器,系统安装的库都禁用了c++11abi,但编译器默认编译选项是打开的。
--
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] willamhou commented on issue #1833: 【编译报错】
Posted by GitBox <gi...@apache.org>.
willamhou commented on issue #1833:
URL: https://github.com/apache/incubator-brpc/issues/1833#issuecomment-1183154984
update config_brpc.sh的方式可以正常编译了.
--
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] willamhou closed issue #1833: 【编译报错】
Posted by GitBox <gi...@apache.org>.
willamhou closed issue #1833: 【编译报错】
URL: https://github.com/apache/incubator-brpc/issues/1833
--
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] willamhou commented on issue #1833: 【编译报错】
Posted by GitBox <gi...@apache.org>.
willamhou commented on issue #1833:
URL: https://github.com/apache/incubator-brpc/issues/1833#issuecomment-1182736585
> `protoc-gen-mcpack` master 上最近刚改了一个 Makefile 中编译参数未生效的问题,release-1.1 应该没这个修正,可以换 master 试试。
>
> #1824
master,从日志里看是带上-D_GLIBCXX_USE_CXX11_ABI=0. 结果仍旧是报错的

--
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] wasphin commented on issue #1833: 【编译报错】
Posted by GitBox <gi...@apache.org>.
wasphin commented on issue #1833:
URL: https://github.com/apache/incubator-brpc/issues/1833#issuecomment-1183840091
使用的场景通常应该不是标准化的场景,如果和运行环境不符的话,编译镜像适用性就没那么大了,毕竟是要集成在用户应用中编译的。只是测试用的话也可以考虑提供几个常用发行版的安装包,开发用还是建议自己编一遍,即便趟一遍坑我觉得也是有益的。
--
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] willamhou commented on issue #1833: 【编译报错】
Posted by GitBox <gi...@apache.org>.
willamhou commented on issue #1833:
URL: https://github.com/apache/incubator-brpc/issues/1833#issuecomment-1182733472
> `protoc-gen-mcpack` master 上最近刚改了一个 Makefile 中编译参数未生效的问题,release-1.1 应该没这个修正,可以换 master 试试。
>
> #1824
我试一下。BTW 我找了大概是3年的版本编译了下,重新编译了下leveldb, 整个就正常compile 了。
--
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] willamhou commented on issue #1833: 【编译报错】
Posted by GitBox <gi...@apache.org>.
willamhou commented on issue #1833:
URL: https://github.com/apache/incubator-brpc/issues/1833#issuecomment-1183002117
更新,将版本回退到 e93e0c2afef5350a05e18cebf1a9677d345af5ec 这个提交后。
--
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] willamhou commented on issue #1833: 【编译报错】
Posted by GitBox <gi...@apache.org>.
willamhou commented on issue #1833:
URL: https://github.com/apache/incubator-brpc/issues/1833#issuecomment-1183030081
发现了新问题
1. master分支下,直接执行cmake -B build && cmake --build build -j6,会报错。

2. 当新建build目录,并将CMakeList.txt及config.h.in拷贝进build目录下,会报GFLAGS_NAMESPACE错.

3. 不使用"cmake -B build && cmake --build build -j6", 使用mkdir bld && cd bld && cmake .. && make是可以编译的
--
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 #1833: 【编译报错】
Posted by GitBox <gi...@apache.org>.
wwbmmm commented on issue #1833:
URL: https://github.com/apache/incubator-brpc/issues/1833#issuecomment-1181652869
编译gflags的时候也加上-D_GLIBCXX_USE_CXX11_ABI=0了吗?
--
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] willamhou commented on issue #1833: 【编译报错】
Posted by GitBox <gi...@apache.org>.
willamhou commented on issue #1833:
URL: https://github.com/apache/incubator-brpc/issues/1833#issuecomment-1183208630
> > 发现了新问题
> >
> > 1. master分支下,直接执行cmake -B build && cmake --build build -j6,会报错。
> > 2. 当新建build目录,并将CMakeList.txt及config.h.in拷贝进build目录下,会报GFLAGS_NAMESPACE错.
>
> cmake 就不是这么用的,没必要拿一个错误的尝试说有问题...
>
> 稍后更新 cmake 相关编译文档。
>
> > 3. 不使用"cmake -B build && cmake --build build -j6", 使用mkdir bld && cd bld && cmake .. && make是可以编译的
我可以正确的使用cmake来编译。只不过顺手尝试文档的方式发现他是不work的
--
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] willamhou commented on issue #1833: 【编译报错】
Posted by GitBox <gi...@apache.org>.
willamhou commented on issue #1833:
URL: https://github.com/apache/incubator-brpc/issues/1833#issuecomment-1183834890
> `-B` 选项是在 3.13+ 的版本引入的, Ubuntu 18.04 中还是 3.10, 不支持该选项, 文档已更新.
Get. Thx, 感谢解答。另外是否需要一个官方编译镜像?我可以提供centos 和 ubuntu的
--
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] wasphin commented on issue #1833: 【编译报错】
Posted by GitBox <gi...@apache.org>.
wasphin commented on issue #1833:
URL: https://github.com/apache/incubator-brpc/issues/1833#issuecomment-1182702601
`protoc-gen-mcpack` master 上最近刚改了一个 Makefile 中编译参数未生效的问题,release-1.1 应该没这个修正,可以换 master 试试。
--
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] willamhou commented on issue #1833: 【编译报错】
Posted by GitBox <gi...@apache.org>.
willamhou commented on issue #1833:
URL: https://github.com/apache/incubator-brpc/issues/1833#issuecomment-1181775453
> gflags 编译完有没有安装?
都是make install得,日志是显示装上了。现在报protobuf得事情了
--
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] wasphin commented on issue #1833: 【编译报错】
Posted by GitBox <gi...@apache.org>.
wasphin commented on issue #1833:
URL: https://github.com/apache/incubator-brpc/issues/1833#issuecomment-1183321057
`-B` 选项是在 3.13+ 的版本引入的, Ubuntu 18.04 中还是 3.10, 不支持该选项, 文档已更新.
--
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