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

tar failed when generate capi package #7254

Closed
tensor-tang opened this issue Jan 5, 2018 · 0 comments · Fixed by #7255
Closed

tar failed when generate capi package #7254

tensor-tang opened this issue Jan 5, 2018 · 0 comments · Fixed by #7255

Comments

@tensor-tang
Copy link
Contributor

tensor-tang commented Jan 5, 2018

When I use paddle/scripts/docker/build.sh to generate c-api package, it crashed at tar.

+ cd /paddle/build/capi_output/usr/local
+ ls
+ egrep -v '^Found.*item$'
+ xargs tar /paddle/build/paddle.tgz
tar: invalid option -- '/'

This error is also encountered here.

The reason that #7237 passed the PR_CI is that WITH_C_API was disabled, so it did not actually run into function gen_capi_package.

As teamcity build log 9644 for #7237 shows:

+ gen_capi_package
[07:19:56]W: [Step 1/1] + [[ '' == \O\N ]]
[07:19:56]W: [Step 1/1] + [[ OFF == \O\N ]]
[07:19:56]W: [Step 1/1] + printf 'If you need to install PaddlePaddle in de
velop docker image,'
[07:19:56]W: [Step 1/1] + printf 'please make install or pip install build/python/dist/.whl.\n'
[07:19:56] : [Step 1/1] If you need to install PaddlePaddle in develop docker image,please make install or pip install build/python/dist/
.whl.
[07:19:56] : [Step 1/1]

how to reproduce this issue:

use below script:

#!/bin/bash
set -xe
export PADDLE_DEV_NAME="paddlepaddle/paddle:latest-dev"
docker run -i --rm -v $PWD:/paddle ${PADDLE_DEV_NAME} \
  rm -rf /paddle/build
docker run  -i --rm -v $PWD:/paddle \
  -e "WITH_PYTHON=OFF" \
  -e "WITH_SWIG_PY=OFF" \
  -e "WITH_PYTHON=OFF" \
  -e "WITH_C_API=ON" \
  -e "WITH_GPU=OFF" \
  -e "WITH_AVX=ON" \
  -e "WITH_MKL=ON" \
  -e "WITH_STYLE_CHECK=OFF" \
  ${PADDLE_DEV_NAME} \
  bash -x /paddle/paddle/scripts/docker/build.sh
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 a pull request may close this issue.

1 participant