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

Build error when using -DWITH_COVERAGE=ON #17832

Closed
pmajchrzak opened this issue Jun 4, 2019 · 6 comments
Closed

Build error when using -DWITH_COVERAGE=ON #17832

pmajchrzak opened this issue Jun 4, 2019 · 6 comments
Assignees
Labels

Comments

@pmajchrzak
Copy link

Build error when using -DWITH_COVERAGE=ON and with MKLDNN

All flags used for the build:

-DWITH_GPU=OFF -DWITH_MKLDNN=ON -DON_INFER=ON -DWITH_TESTING=ON -DWITH_PROFILER=ON -DWITH_STYLE_CHECK=ON -DWITH_FLUID_ONLY=ON -DWITH_COVERAGE=ON

Error occured:

/usr/bin/ar: /repos/paddle_paddle/build/paddle/fluid/inference/libpaddle_fluid_origin.a: File truncated
paddle/fluid/inference/CMakeFiles/paddle_fluid_origin.dir/build.make:6073: recipe for target 'paddle/fluid/inference/libpaddle_fluid_origin.a' failed
@luotao1
Copy link
Contributor

luotao1 commented Jun 4, 2019

  1. use -DCMAKE_BUILD_TYPE=Release
  2. use paddlepaddle/paddle:latest-dev image
  3. fixed by Upgrade ar version #15109

@pmajchrzak
Copy link
Author

flags I used today:
-DCMAKE_BUILD_TYPE=Release -DWITH_GPU=OFF -DWITH_MKLDNN=ON -DON_INFER=ON -DWITH_TESTING=ON -DWITH_STYLE_CHECK=ON -DWITH_FLUID_ONLY=ON -WITH_INFERENCE_API_TEST=ON -DWITH_PROFILER=ON -DWITH_COVERAGE=ON
mentioned image used…
still doesn't work

@luotao1
Copy link
Contributor

luotao1 commented Jun 7, 2019

Could you try solutions in #15109?

@ddokupil
Copy link
Contributor

Could you try solutions in #15109?

Could you be more specific? We can see that #15109 was merged in Jan but we ran into this issue a couple of days ago. We tried using Release build type and changed our base to paddle:latest-dev (but still rebuild paddle our own way on top of it). Could you point us to dockerfile for that image? Is there anything else we could try?

@luotao1
Copy link
Contributor

luotao1 commented Jun 12, 2019

http://ce.paddlepaddle.org:8080/viewLog.html?buildId=41344&tab=buildLog&buildTypeId=PaddlePaddleFramework_TestCoverage_TestCoverage&logTab=tree&filter=all&_focus=378#_state=308,301,23,30

This log is built on paddlepaddle/paddle:latest-dev one months ago. I see WITH_PROFILER=OFF.
Besides, is paddlepaddle/paddle:latest-dev on your local machine latest?

@bingyanghuang
Copy link
Contributor

@ddokupil @pmajchrzak Have you tried luotao's suggestions? Did you solve your problem. Please follow-up this PR. If your problem has been solved, please help close this PR. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants