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

Fix build error in MacOS #1937

Closed

Conversation

reyoung
Copy link
Collaborator

@reyoung reyoung commented Apr 28, 2017

* Because protobuf 3.1.0 uses a deprecated API.
* Partially fix issue PaddlePaddle#1936.
@reyoung reyoung requested a review from gangliao April 28, 2017 05:01
@@ -109,7 +109,8 @@ set(COMMON_FLAGS
-Wno-unused-function
-Wno-error=literal-suffix
-Wno-error=sign-compare
-Wno-error=unused-local-typedefs)
-Wno-error=unused-local-typedefs
-Wno-error=deprecated-declarations)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no-error-deprecated-declarations 是个我们不希望增加的flag。为什么需要加上呢?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

因为我们使用了Protobuf 3.1.0,但是Protobuf 3.1.0自己有一个地方使用了 deprecated API。Protobuf的issue在这里

如果要根治这个问题,我们需要将Prootbuf升级到3.2.0。但是,目前临时fix这个问题,我们先将这个warning在develop branch中,不将其看成error。

@luotao1
Copy link
Contributor

luotao1 commented Feb 1, 2019

Close due to Mac build is successful now.

@luotao1 luotao1 closed this Feb 1, 2019
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

3 participants