Skip to content

Commit

Permalink
crosstool: add /usr/lib/gcc-cross/ to the toolchain
Browse files Browse the repository at this point in the history
This should fix the compile time error:
ERROR: Compiling absl/base/log_severity.cc failed: absolute path
inclusion(s) found in rule '@@com_google_absl//absl/base:log_severity':
the source file 'absl/base/log_severity.cc' includes the following
non-builtin files with absolute paths (if these are builtin files, make
sure these paths are in your toolchain):
  '/usr/lib/gcc-cross/x86_64-linux-gnu/11/include/stddef.h'
  '/usr/lib/gcc-cross/x86_64-linux-gnu/11/include/stdarg.h'
  '/usr/lib/gcc-cross/x86_64-linux-gnu/11/include/stdint.h'
  '/usr/lib/gcc-cross/x86_64-linux-gnu/11/include/limits.h'
  '/usr/lib/gcc-cross/x86_64-linux-gnu/11/include/syslimits.h'
  • Loading branch information
avagin committed Oct 12, 2024
1 parent d3ca96d commit 14a9d75
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/crosstool-arm-dirs.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ diff --git a/cc_toolchain_config.bzl.tpl b/cc_toolchain_config.bzl.tpl
index e864fa2..3de0405 100644
--- a/cc_toolchain_config.bzl.tpl
+++ b/cc_toolchain_config.bzl.tpl
@@ -76,6 +76,7 @@ CXX_BUILTIN_INCLUDE_DIRECTORIES = {
@@ -76,6 +76,8 @@ CXX_BUILTIN_INCLUDE_DIRECTORIES = {
"/usr/lib/gcc/x86_64-linux-gnu/%d/include-fixed" % GCC_VERSION,
"/usr/include/x86_64-linux-gnu",
"/usr/include",
+ "/usr/x86_64-linux-gnu/include/",
+ "/usr/lib/gcc-cross/x86_64-linux-gnu/%d/include/" % GCC_VERSION,
],
"armv7a": [
"/usr/arm-linux-gnueabihf/include/c++/%d" % GCC_VERSION,
Expand Down

0 comments on commit 14a9d75

Please sign in to comment.