apollo icon indicating copy to clipboard operation
apollo copied to clipboard

build error : no such package '@npp//'

Open RoseBrother opened this issue 4 years ago • 4 comments

System information

  • **OS Platform and Distribution : Linux Ubuntu 18.04
  • **Apollo version : v6.0

Steps to reproduce the issue:

  • bash apollo.sh build:

when I run ./apollo.sh build, I get these:

(03:14:15) INFO: Repository civetweb instantiated at: /apollo/WORKSPACE:6:20: in /apollo/tools/workspace.bzl:89:27: in apollo_repositories /apollo/tools/workspace.bzl:54:13: in initialize_third_party /apollo/third_party/civetweb/workspace.bzl:11:17: in repo Repository rule http_archive defined at: /apollo/.cache/bazel/540135163923dd7d5820f3ee4b306b32/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in (03:14:15) ERROR: circular symlinks detected [start of symlink cycle] /usr/local/cuda-10.2/cuda-10.2 [end of symlink cycle] (03:14:15) ERROR: /apollo/modules/perception/camera/common/BUILD:27:11: //modules/perception/camera/common:data_provider depends on @npp//:npp in repository @npp which failed to fetch. no such package '@npp//': Symlink cycle (03:14:15) ERROR: Analysis of target '//modules/perception/camera/common:data_provider' failed; build aborted: Analysis failed (03:14:15) INFO: Elapsed time: 0.790s (03:14:15) INFO: 0 processes. (03:14:15) FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets configured) Fetching @local_config_cc; fetching Fetching @npp; Restarting.

How can I fix this error? Does anyone know about it? Thank you.

RoseBrother avatar Sep 13 '21 03:09 RoseBrother

apollo\third_party\npp\

can not find npp's static lib;

file: workspace.bzl image you can try change this.

hyzhoo avatar Sep 14 '21 05:09 hyzhoo

the same error:

(13:28:33) ERROR: circular symlinks detected [start of symlink cycle] /usr/local/cuda-10.2/cuda-10.2 [end of symlink cycle] (13:28:33) ERROR: /apollo/modules/perception/camera/common/BUILD:27:11: //modules/perception/camera/common:data_provider depends on @npp//:npp in repository @npp which failed to fetch. no such package '@npp//': Symlink cycle (13:28:33) ERROR: Analysis of target '//modules/perception/camera/common:data_provider' failed; build aborted: Analysis failed (13:28:33) INFO: Elapsed time: 4.000s (13:28:33) INFO: 0 processes. (13:28:33) FAILED: Build did NOT complete successfully (0 packages loaded, 2 targets configured) currently loading: @com_github_grpc_grpc// ... (2 packages) Fetching @local_config_cc; fetching Fetching @npp; Restarting.

rorypeck avatar Feb 02 '22 13:02 rorypeck

Hi,I have the same question. Has you solved this issue?

davisliuu avatar Mar 03 '22 02:03 davisliuu

I have the same problem,and i fix by “sudo rm /usr/local/cuda-10.2/cuda-10.2”. “Symlink cycle”: [ph@in-dev-docker:/apollo]$ ls /usr/local/cuda-10.2/cuda-10.2 -la lrwxrwxrwx 1 root root 9 Dec 17 2020 /usr/local/cuda-10.2/cuda-10.2 -> cuda-10.2 the /usr/local/cuda-10.2/cuda-10.2 symlink to self.

penghui2014 avatar Aug 31 '22 06:08 penghui2014