Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable remove rpath from third party protoc #10939

Merged

Conversation

jacquesqiao
Copy link
Member

@jacquesqiao jacquesqiao commented May 25, 2018

问题分析

在厂内环境编译paddle的时候,需要用gcc482,third_part protoc也是用gcc482编译的,链接的是gcc482的高版本的glibc,但是cmake在install protoc到third_part/install/protobuf/bin下的时候,把protoc中的rpath给删掉了,

-- Installing: /home/paddle_test/Paddle/build1/third_party/install/protobuf/bin/protoc
-- Removed runtime path from "/home/paddle_test/Paddle/build1/third_party/install/protobuf/bin/protoc"

删除rpath之前:
image

删除之后:
image

这时候执行protoc会寻找系统默认路径下的glibc,版本太低就会报错:
image

解决方案

这个PR是禁止cmake install的时候删除rpath。

@jacquesqiao jacquesqiao changed the title disable remote rpath from third party protoc disable remove rpath from third party protoc May 25, 2018
@jacquesqiao jacquesqiao merged commit 391c274 into PaddlePaddle:develop May 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants