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

Bazel build has warnings #43212

Open
ezyang opened this issue Aug 18, 2020 · 6 comments
Open

Bazel build has warnings #43212

ezyang opened this issue Aug 18, 2020 · 6 comments

Comments

@ezyang
Copy link
Contributor

@ezyang ezyang commented Aug 18, 2020

WARNING: /data/users/ezyang/pytorch-tmp/BUILD.bazel:580:1: in hdrs attribute of cc_library rule //:aten_headers: Artifact 
'bazel-out/k8-fastbuild/bin/aten/src/ATen/Config.h' is duplicated (through '//:aten/src/ATen/Config.h' and '//:aten_src_AT
en_config'). Since this rule was created by the macro 'cc_library', the error might have been caused by the macro implemen
tation                                                                                                                    
WARNING: /data/users/ezyang/pytorch-tmp/BUILD.bazel:1857:1: in hdrs attribute of cc_library rule //:torch_headers: Artifac
t 'bazel-out/k8-fastbuild/bin/torch/csrc/autograd/generated/VariableType.h' is duplicated (through '//:torch/csrc/autograd
/generated/VariableType.h' and '//:cpp_generated_code'). Since this rule was created by the macro 'cc_library', the error 
might have been caused by the macro implementation      
WARNING: /data/users/ezyang/pytorch-tmp/BUILD.bazel:1857:1: in hdrs attribute of cc_library rule //:torch_headers: Artifac
t 'bazel-out/k8-fastbuild/bin/torch/csrc/autograd/generated/RegistrationDeclarations.h' is duplicated (through '//:torch/c
src/autograd/generated/RegistrationDeclarations.h' and '//:cpp_generated_code'). Since this rule was created by the macro 
'cc_library', the error might have been caused by the macro implementation
WARNING: /data/users/ezyang/pytorch-tmp/BUILD.bazel:1857:1: in hdrs attribute of cc_library rule //:torch_headers: Artifac
t 'bazel-out/k8-fastbuild/bin/torch/csrc/autograd/generated/Functions.h' is duplicated (through '//:torch/csrc/autograd/ge
nerated/Functions.h' and '//:cpp_generated_code'). Since this rule was created by the macro 'cc_library', the error might 
have been caused by the macro implementation
WARNING: /data/users/ezyang/pytorch-tmp/BUILD.bazel:1857:1: in hdrs attribute of cc_library rule //:torch_headers: Artifac
t 'bazel-out/k8-fastbuild/bin/torch/csrc/autograd/generated/variable_factories.h' is duplicated (through '//:torch/csrc/au
tograd/generated/variable_factories.h' and '//:cpp_generated_code'). Since this rule was created by the macro 'cc_library'
, the error might have been caused by the macro implementation

cc @malfet

@abhisht51
Copy link

@abhisht51 abhisht51 commented Aug 22, 2020

Hi
can you tell me how to recreate the issue ?

@ezyang
Copy link
Contributor Author

@ezyang ezyang commented Aug 24, 2020

wget https://github.com/bazelbuild/bazel/releases/download/3.1.0/bazel-3.1.0-linux-x86_64 -O tools/bazel
chmod +x tools/bazel
tools/bazel build :torch
@cindy-luck
Copy link

@cindy-luck cindy-luck commented Sep 10, 2020

For the first warning, we have, out = "aten/src/Aten/Conf.h" at line 533
we have ":aten_src_ATen_config", at line 595
is this where causing the duplication to occur?

@cindy-luck
Copy link

@cindy-luck cindy-luck commented Sep 10, 2020

This is my first time joining an open source project as a student, will be appreciated if you could give some hints on it.

@ezyang
Copy link
Contributor Author

@ezyang ezyang commented Sep 10, 2020

aten_src_ATen_config is probably the legitimate rule, and its the other rule that's causing the problem. Maybe try putting an exclude on the glob in aten_headers.

@addisonc6
Copy link

@addisonc6 addisonc6 commented Sep 23, 2020

is this open to work on?

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

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.