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/07/16 10:16:01 UTC

[GitHub] [incubator-brpc] jiangsongHW opened a new issue #1487: FAILED in "Linking protoc-gen-mcpack“

jiangsongHW opened a new issue #1487:
URL: https://github.com/apache/incubator-brpc/issues/1487


   **Describe the bug (描述bug)**
   按照指导:https://github.com/apache/incubator-brpc/blob/master/docs/cn/getting_started.md#compile-brpc-with-cmake编译brpc提示错误
   
   **To Reproduce (复现方法)**
   1.拉取官方docker image  gcc-5.3.0
   2.docker run
   3.apt-get install -y git g++ make libssl-dev libgflags-dev libprotobuf-dev libprotoc-dev protobuf-compiler libleveldb-dev
   4.sh config_brpc.sh --headers=/usr/include --libs=/usr/lib
   5.make clean
   6.make
   
   **Expected behavior (期望行为)**
   编译成功
   
   **Versions (各种版本)**
   OS:  Linux 81c1f755ca74 3.10.0-957.21.3.el7.x86_64 #1 SMP Tue Jun 18 16:35:19 UTC 2019 x86_64 GNU/Linux
   Compiler:
   
   gcc (GCC) 5.3.0
   Copyright (C) 2015 Free Software Foundation, Inc.
   This is free software; see the source for copying conditions.  There is NO
   warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   
   g++ (GCC) 5.3.0
   Copyright (C) 2015 Free Software Foundation, Inc.
   This is free software; see the source for copying conditions.  There is NO
   warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   
   brpc:
   master分支
   commit 878e32b6a893c6e93f0a21fc74160c9b64779fce
   Merge: b3a948c 885eaec
   Author: Jiashun Zhu <zh...@gmail.com>
   Date:   Tue May 18 22:23:33 2021 +0200
   
       Merge pull request #1345 from zyearn/fix_flamegraph_dep
   
       Remove FlameGraph dependency to solve category b license conflict.
   
   
   protobuf:
   2.6.1
   
   this is  output of apt-get install:
   Setting up libssl-dev:amd64 (1.0.1t-1+deb8u12) ...
   Setting up libgflags2 (2.0-2.1) ...
   Setting up libsnappy1 (1.1.2-3) ...
   Setting up libleveldb1:amd64 (1.17-1) ...
   Setting up libgflags-dev (2.0-2.1) ...
   Setting up libleveldb-dev:amd64 (1.17-1) ...
   Setting up libprotobuf9:amd64 (2.6.1-1) ...
   Setting up libprotobuf-lite9:amd64 (2.6.1-1) ...
   Setting up libprotobuf-dev:amd64 (2.6.1-1) ...
   Setting up libprotoc9:amd64 (2.6.1-1) ...
   Setting up libprotoc-dev:amd64 (2.6.1-1) ...
   Setting up protobuf-compiler (2.6.1-1) ...
   Processing triggers for libc-bin (2.19-18+deb8u4) ...
   /sbin/ldconfig.real: /usr/local/lib64/libstdc++.so.6.0.21-gdb.py is not an ELF file - it has the wrong magic bytes at the start.
   
   **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

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] jiangsongHW commented on issue #1487: FAILED in "Linking protoc-gen-mcpack“

Posted by GitBox <gi...@apache.org>.
jiangsongHW commented on issue #1487:
URL: https://github.com/apache/incubator-brpc/issues/1487#issuecomment-882998791


   我更新了链接的错误提示信息,感觉是gcc5.3的问题,我升级gcc8.5同样步骤是可以编译成功的。
   


-- 
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 #1487: FAILED in "Linking protoc-gen-mcpack“

Posted by GitBox <gi...@apache.org>.
wasphin commented on issue #1487:
URL: https://github.com/apache/incubator-brpc/issues/1487#issuecomment-883027070


   怀疑 gcc5.3 的镜像中 protobuf 编译时未启用 CXX11_ABI, 而编译 brpc 时默认启用了导致链接失败. 在 gcc8.5 中可能所有依赖库都使用了 CXX11_ABI 从而可以编译成功.
   
   可以试试添加 `-D_GLIBCXX_USE_CXX11_ABI=0` 到 `CXXFLAGS`.


-- 
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] jiangsongHW commented on issue #1487: FAILED in "Linking protoc-gen-mcpack“

Posted by GitBox <gi...@apache.org>.
jiangsongHW commented on issue #1487:
URL: https://github.com/apache/incubator-brpc/issues/1487#issuecomment-882998791


   我更新了链接的错误提示信息,感觉是gcc5.3的问题,我升级gcc8.5同样步骤是可以编译成功的。
   


-- 
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] TousakaRin commented on issue #1487: FAILED in "Linking protoc-gen-mcpack“

Posted by GitBox <gi...@apache.org>.
TousakaRin commented on issue #1487:
URL: https://github.com/apache/incubator-brpc/issues/1487#issuecomment-881347570


   https://gcc.gnu.org/legacy-ml/gcc-help/2014-08/msg00053.html
   ldconfig 会默认你的/usr/local/lib64/ 下的所有文件都是elf文件。将/usr/local/lib64/libstdc++.so.6.0.21-gdb.py 移动到别的目录再重新编译下试试呢。
   


-- 
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 #1487: FAILED in "Linking protoc-gen-mcpack“

Posted by GitBox <gi...@apache.org>.
wasphin commented on issue #1487:
URL: https://github.com/apache/incubator-brpc/issues/1487#issuecomment-883027070


   怀疑 gcc5.3 的镜像中 protobuf 编译时未启用 CXX11_ABI, 而编译 brpc 时默认启用了导致链接失败. 在 gcc8.5 中可能所有依赖库都使用了 CXX11_ABI 从而可以编译成功.
   
   可以试试添加 `-D_GLIBCXX_USE_CXX11_ABI=0` 到 `CXXFLAGS`.


-- 
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] jiangsongHW commented on issue #1487: FAILED in "Linking protoc-gen-mcpack“

Posted by GitBox <gi...@apache.org>.
jiangsongHW commented on issue #1487:
URL: https://github.com/apache/incubator-brpc/issues/1487#issuecomment-882998791


   我更新了链接的错误提示信息,感觉是gcc5.3的问题,我升级gcc8.5同样步骤是可以编译成功的。
   


-- 
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 #1487: FAILED in "Linking protoc-gen-mcpack“

Posted by GitBox <gi...@apache.org>.
wasphin commented on issue #1487:
URL: https://github.com/apache/incubator-brpc/issues/1487#issuecomment-883027070


   怀疑 gcc5.3 的镜像中 protobuf 编译时未启用 CXX11_ABI, 而编译 brpc 时默认启用了导致链接失败. 在 gcc8.5 中可能所有依赖库都使用了 CXX11_ABI 从而可以编译成功.
   
   可以试试添加 `-D_GLIBCXX_USE_CXX11_ABI=0` 到 `CXXFLAGS`.


-- 
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