bazelbuild / bazel

a fast, scalable, multi-language and extensible build system
https://bazel.build
Apache License 2.0
23.07k stars 4.04k forks source link

Documentation issue: Configuring C toolchains #12856

Open mchinen opened 3 years ago

mchinen commented 3 years ago

Documentation URL: https://docs.bazel.build/versions/master/tutorial/cc-toolchain-config.html

Following these steps for my project, I get the error: missing input file '//toolchain:empty'

I should probably try for the tutorial file, but first I wanted to ask if you could also put the final BUILD/bzl files in the docs. It's more error prone because of the rewriting steps and it would be nice to have a correct reference at the end.

mridu1412 commented 3 years ago

Go into the toolchain directory and run the command touch empty. I had the same error and it got resolved this way.

Fasten90 commented 1 year ago

Go into the toolchain directory and run the command touch empty. I had the same error and it got resolved this way.

I also got this issue, and your solution has solved my issue: touch empty

Thank you very much your help!

lbxx11 commented 4 months ago

just keep filegroup(name = "empty") this line in toolchain/BUILD file can work