Hi,
I'm trying to configure a CC toolchain based on x86 GCC. I want to download a specific version of GCC instead of using whatever the user has installed on their machine.
I'm following this guide:
And get stuck in point 8: Bazel is saying I have not declared dependencies to headers:
this rule is missing dependency declarations for the following files included by 'hello/main.cpp':
'/home/user/.cache/bazel/_bazel_user/4fd10b035034e53930a3873d63a730b2/external/gcc/usr/include/stdc-predef.h'
'/home/user/.cache/bazel/_bazel_user/4fd10b035034e53930a3873d63a730b2/external/gcc/usr/include/c++/7/iostream'
I have added the sysroot as per the instructions:
cxx_builtin_include_directories = [
"/usr/include",
"%sysroot%/usr/include/c++/7/",
"%sysroot%/usr/include/x86_64-linux-gnu",
"%sysroot%/usr/include",
"%sysroot%/usr/lib/gcc/x86_64-linux-gnu/7/include",
"%sysroot%/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed",
],
sysroot="external/gcc_x86",
Why is it not working?
Thanks!
/Carlos