Absolute path inclusion(s) found in rule x

184 views
Skip to first unread message

Andrew Katson

unread,
Mar 1, 2024, 4:30:14 PMMar 1
to Protocol Buffers
I am trying to build this repo https://github.com/andrewkatson/protobuf_not_included using gcc 13.2.0 on Windows 10 with bazel 7. And I get many errors like this one: 

Starting local Bazel server and connecting to it... INFO: Analyzed 3 targets (132 packages loaded, 4243 targets configured). ERROR: C:/bazel-bin/external/protobuf~23.1/src/google/protobuf/BUILD.bazel:184:11: Compiling src/goo gle/protobuf/port.cc [for tool] failed: absolute path inclusion(s) found in rule '@@protobuf~23.1//s rc/google/protobuf:port_def': the source file 'src/google/protobuf/port.cc' includes the following non-builtin files with absolute paths (if these are builtin files, make sure these paths are in your toolchain): 'C:/bazel-bin/external/protobuf~23.1/src/google/protobuf/port_def.inc' Use --verbose_failures to see the command lines of failed build steps. INFO: Elapsed time: 8.789s, Critical Path: 1.09s INFO: 69 processes: 37 internal, 32 local. ERROR: Build did NOT complete successfully


My command line looks like  this   bazel --output_base="C:\bazel-bin" build --extra_toolchains=@local_config_cc//:cc-toolchain-x64_windows_mingw --extra_execution_platforms=//:windows-mingw-gcc :all --compiler=mingw-gcc --host_compiler=mingmw-gcc


My current guess is that something between protobuf and gcc on Windows is causing friction. I have already asked the bazel boost people what they think here: https://github.com/bazelboost/registry/issues/173 but we determined this is likely a protobuf thing not an interaction. 

Has anyone seen this before?

Andrew Katson

unread,
Mar 7, 2024, 3:01:34 PMMar 7
to Protocol Buffers
Have I provided enough info or is more needed?

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/protobuf/dc74209f-e102-40a3-812c-968b96e168acn%40googlegroups.com.


--
Andrew Katson
Reply all
Reply to author
Forward
0 new messages