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 tries to compile the same file multiple times at once? #7662

Closed
njlr opened this issue Mar 7, 2019 · 3 comments
Closed

Bazel tries to compile the same file multiple times at once? #7662

njlr opened this issue Mar 7, 2019 · 3 comments
Labels
team-Remote-Exec Issues and PRs for the Execution (Remote) team untriaged

Comments

@njlr
Copy link

njlr commented Mar 7, 2019

Description of the problem / feature request:

Bazel tries to compile the same cpp file multiple times at once.

Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

Fetch cppitertools, try to build everything.

$ bazel build //... 

What operating system are you running Bazel on?

Ubuntu 18.10

What's the output of bazel info release?

$ bazel info release
release 0.23.1

What's the output of git remote get-url origin ; git rev-parse master ; git rev-parse HEAD ?

$ git remote get-url origin ; git rev-parse master ; git rev-parse HEAD
https://github.com/ryanhaining/cppitertools.git
24fb7df23e207e725c621b694af6a73f950b6515
24fb7df23e207e725c621b694af6a73f950b6515

screenshot from 2019-03-07 09-24-07

@dslomov dslomov added team-Remote-Exec Issues and PRs for the Execution (Remote) team untriaged labels Mar 8, 2019
@njlr
Copy link
Author

njlr commented Mar 8, 2019

Should note that this issue occurred with and without a remote cache.

@benjaminp
Copy link
Collaborator

test_main.cc is listed as a source in each one of the test targets, so it's compiled each time. Put the test support code in its own cc_library to avoid that.

@njlr
Copy link
Author

njlr commented Mar 8, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Remote-Exec Issues and PRs for the Execution (Remote) team untriaged
Projects
None yet
Development

No branches or pull requests

3 participants