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

problem in building apollo5.0:Cloning ad-rss-lib from github is to slow #9219

Closed
BigBenSure opened this issue Jul 24, 2019 · 7 comments
Closed
Labels
Module: Build Indicates build related issues Type: Help wanted Indicates that a maintainer wants help on an issue/pull request from the rest of the community

Comments

@BigBenSure
Copy link

BigBenSure commented Jul 24, 2019

When I build apollo 5.0: ./apollo.sh build, it take a lot of time in this step:
Cloning https://github.com/intel/ad-rss-lib: Receiving objects (1479 / 17648)
maybe 2hours later, Build failed,error is:
/apollo/modules/planning/tasks/rss/BUILD:5:1: no such package '@ad_rss_lib//': Error cloning repository: Premature EOF caused by Premature EOF caused by Premature EOF and referenced by '//modules/planning/tasks/rss:decider_rss'.
May I clone ad-rss-lib by myself?In which path?

System information

  • OS Platform and Distribution:Linux Ubuntu 14.04:
  • Apollo installed from source:
  • Apollo version 5.0:
@natashadsouza natashadsouza added Module: Build Indicates build related issues Type: Help wanted Indicates that a maintainer wants help on an issue/pull request from the rest of the community labels Jul 25, 2019
@natashadsouza
Copy link
Contributor

natashadsouza commented Jul 25, 2019

@BigBenSure could you answer the System information questions above to help us debug your request better?

@BigBenSure
Copy link
Author

My system is Win10, and I build apollo 5.0 in docker Version 18.06.1-ce-win73 (19507), yesterday I try to build it again, maybe 1.5hours later , build succeed. But cloning ad-rss-lib is still slowly(I'm in China). So the problem is solved. If we have a faster way to install ad-rss-lib, it could be better.

@gengqx
Copy link
Contributor

gengqx commented Jul 29, 2019

See PR,Currentlly apollo team seem did not want to update their docker,So,You can install the lib into docker ,commit the docker,modified WORKSPACE.in file from git to local.

@BigBenSure
Copy link
Author

Thank you very much!

@zhanghm1995
Copy link

zhanghm1995 commented Apr 27, 2020

@gengqx Hello,
May I ask how to install the rss lib into docker and how to commit the docker? Could you elaborate about the process? I also encounter this problem and puzzled me for a long time.

Below is the output when execute bash apollo.sh build:

[INFO] Building with --jobs=12 --ram_utilization_factor 80 for x86_64
INFO: Reading 'startup' options from /apollo/tools/bazel.rc: --batch_cpu_scheduling --host_jvm_args=-XX:-UseParallelGC
ERROR: (04-27 14:44:26.762) /apollo/modules/planning/tasks/deciders/rss_decider/BUILD:21:1: no such package '@ad_rss_lib//': Error cloning repository: Premature EOF caused by Premature EOF caused by Premature EOF and referenced by '//modules/planning/tasks/deciders/rss_decider:rss_decider_test'.
ERROR: (04-27 14:44:26.814) Analysis of target '//modules/planning/tasks/deciders/rss_decider:rss_decider_test' failed; build aborted.
INFO: (04-27 14:44:26.814) Elapsed time: 636.924s
============================
[ERROR] Build failed!
[INFO] Took 637 seconds
============================

@BigBenSure
Copy link
Author

BigBenSure commented Apr 28, 2020

@gengqx Hello,
May I ask how to install the rss lib into docker and how to commit the docker? Could you elaborate about the process? I also encounter this problem and puzzled me for a long time.

Below is the output when execute bash apollo.sh build:

[INFO] Building with --jobs=12 --ram_utilization_factor 80 for x86_64
INFO: Reading 'startup' options from /apollo/tools/bazel.rc: --batch_cpu_scheduling --host_jvm_args=-XX:-UseParallelGC
ERROR: (04-27 14:44:26.762) /apollo/modules/planning/tasks/deciders/rss_decider/BUILD:21:1: no such package '@ad_rss_lib//': Error cloning repository: Premature EOF caused by Premature EOF caused by Premature EOF and referenced by '//modules/planning/tasks/deciders/rss_decider:rss_decider_test'.
ERROR: (04-27 14:44:26.814) Analysis of target '//modules/planning/tasks/deciders/rss_decider:rss_decider_test' failed; build aborted.
INFO: (04-27 14:44:26.814) Elapsed time: 636.924s
============================
[ERROR] Build failed!
[INFO] Took 637 seconds
============================

我看你资料在北京,国内网络原因,可以改ad rss lib的源.具体方法是:
在/apollo/WORKSPACE.in里,第47到第53,替换成:

#ad-rss-lib
new_git_repository(
    name = "ad_rss_lib",
    build_file = "third_party/rss_lib.BUILD",
    tag = "v1.1.0",
    remote = "https://gitee.com/audier0879/ad-rss-lib",
)

把remote换成gitee的.也可以你下好以后,自己git init一把,做个本地仓库吧.或者改成new_local_repository(...),里面的remote改成path,tag删掉

@Learner-machine
Copy link

When I build apollo 5.5.0: bash apollo.sh build --local_resources 2048,1.0,1.0. I encounter this problem and puzzled me for a long time.Could you please teach me where I should put the 'ad-rss-lib' file?
Below is the output when execute bash apollo.sh build --local_resources 2048,1.0,1.0:

apollo sh_build错误
ad-rss-lib错误
文件目录

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Module: Build Indicates build related issues Type: Help wanted Indicates that a maintainer wants help on an issue/pull request from the rest of the community
Projects
None yet
Development

No branches or pull requests

6 participants