Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

libedgetpu gcc: fatal error: cannot execute 'cc1plus'

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
jlpoole
Guru
Guru
User avatar
Posts: 495
Joined: Tue Nov 01, 2005 5:07 am
Location: Salem, OR

libedgetpu gcc: fatal error: cannot execute 'cc1plus'

  • Quote

Post by jlpoole » Mon Nov 21, 2022 1:51 am

I am trying to compile the Google Coral (AI) package libedgetpu to work with the Coral USB accessory. When I run the project's Makefile (modified by me by adding after line 69: "--sandbox_debug \" ), I get this error:

Code: Select all

 jlpoole@eos ~/libedgetpu $ make
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
bazel build --sandbox_debug --stripopt=-x --compilation_mode=opt --cpu=k8 --embed_label='TENSORFLOW_COMMIT=a4dfb8d1a71385bd6d122e4f27f86dcebb96712d' --stamp //tflite/public:libedgetpu_direct_all.so.stripped
INFO: Analyzed target //tflite/public:libedgetpu_direct_all.so.stripped (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
SUBCOMMAND: # @com_google_absl//absl/debugging:demangle_internal [action 'Compiling absl/debugging/internal/demangle.cc', configuration: 9d903089334585f500ca7171def206dc43e17b5b92b63af75dcdca877aa1afff, execution platform: @local_execution_config_platform//:platform]
(cd /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/execroot/libedgetpu && \
  exec env - \
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/14/bin \
    PWD=/proc/self/cwd \
  /usr/bin/gcc -fPIC -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -msse4.2 -g0 -O3 -DNDEBUG '-D_FORTIFY_SOURCE=2' -ffunction-sections -fdata-sections '-std=c++14' -MD -MF bazel-out/k8-opt/bin/external/com_google_absl/absl/debugging/_objs/demangle_internal/demangle.d '-frandom-seed=bazel-out/k8-opt/bin/external/com_google_absl/absl/debugging/_objs/demangle_internal/demangle.o' -iquote external/com_google_absl -iquote bazel-out/k8-opt/bin/external/com_google_absl -Wall -Wextra -Wcast-qual -Wconversion-null -Wmissing-declarations -Woverlength-strings -Wpointer-arith -Wundef -Wunused-local-typedefs -Wunused-result -Wvarargs -Wvla -Wwrite-strings -Wno-missing-field-initializers -Wno-sign-compare -DNOMINMAX -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/com_google_absl/absl/debugging/internal/demangle.cc -o bazel-out/k8-opt/bin/external/com_google_absl/absl/debugging/_objs/demangle_internal/demangle.o)
# Configuration: 9d903089334585f500ca7171def206dc43e17b5b92b63af75dcdca877aa1afff
# Execution platform: @local_execution_config_platform//:platform
SUBCOMMAND: # //driver/kernel:kernel_interrupt_handler [action 'Compiling driver/kernel/kernel_interrupt_handler.cc', configuration: 9d903089334585f500ca7171def206dc43e17b5b92b63af75dcdca877aa1afff, execution platform: @local_execution_config_platform//:platform]
(cd /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/execroot/libedgetpu && \
  exec env - \
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/14/bin \
    PWD=/proc/self/cwd \
  /usr/bin/gcc -fPIC -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -msse4.2 -g0 -O3 -DNDEBUG '-D_FORTIFY_SOURCE=2' -ffunction-sections -fdata-sections '-std=c++14' -MD -MF bazel-out/k8-opt/bin/driver/kernel/_objs/kernel_interrupt_handler/kernel_interrupt_handler.d '-frandom-seed=bazel-out/k8-opt/bin/driver/kernel/_objs/kernel_interrupt_handler/kernel_interrupt_handler.o' -DDARWINN_PORT_DEFAULT -iquote . -iquote bazel-out/k8-opt/bin -iquote external/com_google_absl -iquote bazel-out/k8-opt/bin/external/com_google_absl -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c driver/kernel/kernel_interrupt_handler.cc -o bazel-out/k8-opt/bin/driver/kernel/_objs/kernel_interrupt_handler/kernel_interrupt_handler.o)
# Configuration: 9d903089334585f500ca7171def206dc43e17b5b92b63af75dcdca877aa1afff
# Execution platform: @local_execution_config_platform//:platform
SUBCOMMAND: # @flatbuffers//src:flatc [action 'Compiling src/idl_gen_grpc.cpp [for host]', configuration: eb205a30a355aee53182696950d2a4f3f465cb018a59900a14857475058d64f4, execution platform: @local_execution_config_platform//:platform]
(cd /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/execroot/libedgetpu && \
  exec env - \
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/14/bin \
    PWD=/proc/self/cwd \
  /usr/bin/gcc -fPIC -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -msse4.2 -g0 -O3 -DNDEBUG '-D_FORTIFY_SOURCE=2' -ffunction-sections -fdata-sections '-std=c++14' -MD -MF bazel-out/host/bin/external/flatbuffers/src/_objs/flatc/idl_gen_grpc.d '-frandom-seed=bazel-out/host/bin/external/flatbuffers/src/_objs/flatc/idl_gen_grpc.o' -iquote external/flatbuffers -iquote bazel-out/host/bin/external/flatbuffers -Ibazel-out/host/bin/external/flatbuffers/src/_virtual_includes/flatc -Ibazel-out/host/bin/external/flatbuffers/src/_virtual_includes/flatc_library -Ibazel-out/host/bin/external/flatbuffers/src/_virtual_includes/flatbuffers -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/cpp_generator -Ibazel-out/host/bin/external/flatbuffers/_virtual_includes/flatbuffers -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/go_generator -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/java_generator -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/python_generator -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/python_generator_private -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/swift_generator -g0 -g0 -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/flatbuffers/src/idl_gen_grpc.cpp -o bazel-out/host/bin/external/flatbuffers/src/_objs/flatc/idl_gen_grpc.o)
# Configuration: eb205a30a355aee53182696950d2a4f3f465cb018a59900a14857475058d64f4
# Execution platform: @local_execution_config_platform//:platform
SUBCOMMAND: # @com_google_absl//absl/time:time [action 'Compiling absl/time/format.cc', configuration: 9d903089334585f500ca7171def206dc43e17b5b92b63af75dcdca877aa1afff, execution platform: @local_execution_config_platform//:platform]
(cd /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/execroot/libedgetpu && \
  exec env - \
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/14/bin \
    PWD=/proc/self/cwd \
  /usr/bin/gcc -fPIC -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -msse4.2 -g0 -O3 -DNDEBUG '-D_FORTIFY_SOURCE=2' -ffunction-sections -fdata-sections '-std=c++14' -MD -MF bazel-out/k8-opt/bin/external/com_google_absl/absl/time/_objs/time/format.d '-frandom-seed=bazel-out/k8-opt/bin/external/com_google_absl/absl/time/_objs/time/format.o' -iquote external/com_google_absl -iquote bazel-out/k8-opt/bin/external/com_google_absl -Wall -Wextra -Wcast-qual -Wconversion-null -Wmissing-declarations -Woverlength-strings -Wpointer-arith -Wundef -Wunused-local-typedefs -Wunused-result -Wvarargs -Wvla -Wwrite-strings -Wno-missing-field-initializers -Wno-sign-compare -DNOMINMAX -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/com_google_absl/absl/time/format.cc -o bazel-out/k8-opt/bin/external/com_google_absl/absl/time/_objs/time/format.o)
# Configuration: 9d903089334585f500ca7171def206dc43e17b5b92b63af75dcdca877aa1afff
# Execution platform: @local_execution_config_platform//:platform
SUBCOMMAND: # @flatbuffers//src:flatc [action 'Compiling src/idl_gen_js_ts.cpp [for host]', configuration: eb205a30a355aee53182696950d2a4f3f465cb018a59900a14857475058d64f4, execution platform: @local_execution_config_platform//:platform]
(cd /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/execroot/libedgetpu && \
  exec env - \
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/14/bin \
    PWD=/proc/self/cwd \
  /usr/bin/gcc -fPIC -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -msse4.2 -g0 -O3 -DNDEBUG '-D_FORTIFY_SOURCE=2' -ffunction-sections -fdata-sections '-std=c++14' -MD -MF bazel-out/host/bin/external/flatbuffers/src/_objs/flatc/idl_gen_js_ts.d '-frandom-seed=bazel-out/host/bin/external/flatbuffers/src/_objs/flatc/idl_gen_js_ts.o' -iquote external/flatbuffers -iquote bazel-out/host/bin/external/flatbuffers -Ibazel-out/host/bin/external/flatbuffers/src/_virtual_includes/flatc -Ibazel-out/host/bin/external/flatbuffers/src/_virtual_includes/flatc_library -Ibazel-out/host/bin/external/flatbuffers/src/_virtual_includes/flatbuffers -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/cpp_generator -Ibazel-out/host/bin/external/flatbuffers/_virtual_includes/flatbuffers -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/go_generator -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/java_generator -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/python_generator -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/python_generator_private -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/swift_generator -g0 -g0 -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/flatbuffers/src/idl_gen_js_ts.cpp -o bazel-out/host/bin/external/flatbuffers/src/_objs/flatc/idl_gen_js_ts.o)
# Configuration: eb205a30a355aee53182696950d2a4f3f465cb018a59900a14857475058d64f4
# Execution platform: @local_execution_config_platform//:platform
SUBCOMMAND: # @com_google_absl//absl/time:time [action 'Compiling absl/time/time.cc', configuration: 9d903089334585f500ca7171def206dc43e17b5b92b63af75dcdca877aa1afff, execution platform: @local_execution_config_platform//:platform]
(cd /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/execroot/libedgetpu && \
  exec env - \
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/14/bin \
    PWD=/proc/self/cwd \
  /usr/bin/gcc -fPIC -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -msse4.2 -g0 -O3 -DNDEBUG '-D_FORTIFY_SOURCE=2' -ffunction-sections -fdata-sections '-std=c++14' -MD -MF bazel-out/k8-opt/bin/external/com_google_absl/absl/time/_objs/time/time.d '-frandom-seed=bazel-out/k8-opt/bin/external/com_google_absl/absl/time/_objs/time/time.o' -iquote external/com_google_absl -iquote bazel-out/k8-opt/bin/external/com_google_absl -Wall -Wextra -Wcast-qual -Wconversion-null -Wmissing-declarations -Woverlength-strings -Wpointer-arith -Wundef -Wunused-local-typedefs -Wunused-result -Wvarargs -Wvla -Wwrite-strings -Wno-missing-field-initializers -Wno-sign-compare -DNOMINMAX -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/com_google_absl/absl/time/time.cc -o bazel-out/k8-opt/bin/external/com_google_absl/absl/time/_objs/time/time.o)
# Configuration: 9d903089334585f500ca7171def206dc43e17b5b92b63af75dcdca877aa1afff
# Execution platform: @local_execution_config_platform//:platform
SUBCOMMAND: # @com_google_absl//absl/time:time [action 'Compiling absl/time/duration.cc', configuration: 9d903089334585f500ca7171def206dc43e17b5b92b63af75dcdca877aa1afff, execution platform: @local_execution_config_platform//:platform]
(cd /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/execroot/libedgetpu && \
  exec env - \
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/14/bin \
    PWD=/proc/self/cwd \
  /usr/bin/gcc -fPIC -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -msse4.2 -g0 -O3 -DNDEBUG '-D_FORTIFY_SOURCE=2' -ffunction-sections -fdata-sections '-std=c++14' -MD -MF bazel-out/k8-opt/bin/external/com_google_absl/absl/time/_objs/time/duration.d '-frandom-seed=bazel-out/k8-opt/bin/external/com_google_absl/absl/time/_objs/time/duration.o' -iquote external/com_google_absl -iquote bazel-out/k8-opt/bin/external/com_google_absl -Wall -Wextra -Wcast-qual -Wconversion-null -Wmissing-declarations -Woverlength-strings -Wpointer-arith -Wundef -Wunused-local-typedefs -Wunused-result -Wvarargs -Wvla -Wwrite-strings -Wno-missing-field-initializers -Wno-sign-compare -DNOMINMAX -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/com_google_absl/absl/time/duration.cc -o bazel-out/k8-opt/bin/external/com_google_absl/absl/time/_objs/time/duration.o)
# Configuration: 9d903089334585f500ca7171def206dc43e17b5b92b63af75dcdca877aa1afff
# Execution platform: @local_execution_config_platform//:platform
SUBCOMMAND: # @flatbuffers//src:flatc [action 'Compiling src/idl_gen_cpp.cpp [for host]', configuration: eb205a30a355aee53182696950d2a4f3f465cb018a59900a14857475058d64f4, execution platform: @local_execution_config_platform//:platform]
(cd /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/execroot/libedgetpu && \
  exec env - \
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/14/bin \
    PWD=/proc/self/cwd \
  /usr/bin/gcc -fPIC -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -msse4.2 -g0 -O3 -DNDEBUG '-D_FORTIFY_SOURCE=2' -ffunction-sections -fdata-sections '-std=c++14' -MD -MF bazel-out/host/bin/external/flatbuffers/src/_objs/flatc/idl_gen_cpp.d '-frandom-seed=bazel-out/host/bin/external/flatbuffers/src/_objs/flatc/idl_gen_cpp.o' -iquote external/flatbuffers -iquote bazel-out/host/bin/external/flatbuffers -Ibazel-out/host/bin/external/flatbuffers/src/_virtual_includes/flatc -Ibazel-out/host/bin/external/flatbuffers/src/_virtual_includes/flatc_library -Ibazel-out/host/bin/external/flatbuffers/src/_virtual_includes/flatbuffers -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/cpp_generator -Ibazel-out/host/bin/external/flatbuffers/_virtual_includes/flatbuffers -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/go_generator -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/java_generator -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/python_generator -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/python_generator_private -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/swift_generator -g0 -g0 -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/flatbuffers/src/idl_gen_cpp.cpp -o bazel-out/host/bin/external/flatbuffers/src/_objs/flatc/idl_gen_cpp.o)
# Configuration: eb205a30a355aee53182696950d2a4f3f465cb018a59900a14857475058d64f4
# Execution platform: @local_execution_config_platform//:platform
SUBCOMMAND: # @flatbuffers//src:flatc [action 'Compiling src/idl_gen_csharp.cpp [for host]', configuration: eb205a30a355aee53182696950d2a4f3f465cb018a59900a14857475058d64f4, execution platform: @local_execution_config_platform//:platform]
(cd /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/execroot/libedgetpu && \
  exec env - \
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/14/bin \
    PWD=/proc/self/cwd \
  /usr/bin/gcc -fPIC -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -msse4.2 -g0 -O3 -DNDEBUG '-D_FORTIFY_SOURCE=2' -ffunction-sections -fdata-sections '-std=c++14' -MD -MF bazel-out/host/bin/external/flatbuffers/src/_objs/flatc/idl_gen_csharp.d '-frandom-seed=bazel-out/host/bin/external/flatbuffers/src/_objs/flatc/idl_gen_csharp.o' -iquote external/flatbuffers -iquote bazel-out/host/bin/external/flatbuffers -Ibazel-out/host/bin/external/flatbuffers/src/_virtual_includes/flatc -Ibazel-out/host/bin/external/flatbuffers/src/_virtual_includes/flatc_library -Ibazel-out/host/bin/external/flatbuffers/src/_virtual_includes/flatbuffers -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/cpp_generator -Ibazel-out/host/bin/external/flatbuffers/_virtual_includes/flatbuffers -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/go_generator -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/java_generator -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/python_generator -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/python_generator_private -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/swift_generator -g0 -g0 -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/flatbuffers/src/idl_gen_csharp.cpp -o bazel-out/host/bin/external/flatbuffers/src/_objs/flatc/idl_gen_csharp.o)
# Configuration: eb205a30a355aee53182696950d2a4f3f465cb018a59900a14857475058d64f4
# Execution platform: @local_execution_config_platform//:platform
SUBCOMMAND: # @flatbuffers//src:flatc [action 'Compiling src/flatc_main.cpp [for host]', configuration: eb205a30a355aee53182696950d2a4f3f465cb018a59900a14857475058d64f4, execution platform: @local_execution_config_platform//:platform]
(cd /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/execroot/libedgetpu && \
  exec env - \
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/14/bin \
    PWD=/proc/self/cwd \
  /usr/bin/gcc -fPIC -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -msse4.2 -g0 -O3 -DNDEBUG '-D_FORTIFY_SOURCE=2' -ffunction-sections -fdata-sections '-std=c++14' -MD -MF bazel-out/host/bin/external/flatbuffers/src/_objs/flatc/flatc_main.d '-frandom-seed=bazel-out/host/bin/external/flatbuffers/src/_objs/flatc/flatc_main.o' -iquote external/flatbuffers -iquote bazel-out/host/bin/external/flatbuffers -Ibazel-out/host/bin/external/flatbuffers/src/_virtual_includes/flatc -Ibazel-out/host/bin/external/flatbuffers/src/_virtual_includes/flatc_library -Ibazel-out/host/bin/external/flatbuffers/src/_virtual_includes/flatbuffers -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/cpp_generator -Ibazel-out/host/bin/external/flatbuffers/_virtual_includes/flatbuffers -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/go_generator -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/java_generator -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/python_generator -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/python_generator_private -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/swift_generator -g0 -g0 -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/flatbuffers/src/flatc_main.cpp -o bazel-out/host/bin/external/flatbuffers/src/_objs/flatc/flatc_main.o)
# Configuration: eb205a30a355aee53182696950d2a4f3f465cb018a59900a14857475058d64f4
# Execution platform: @local_execution_config_platform//:platform
SUBCOMMAND: # @com_google_absl//absl/time:time [action 'Compiling absl/time/civil_time.cc', configuration: 9d903089334585f500ca7171def206dc43e17b5b92b63af75dcdca877aa1afff, execution platform: @local_execution_config_platform//:platform]
(cd /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/execroot/libedgetpu && \
  exec env - \
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/14/bin \
    PWD=/proc/self/cwd \
  /usr/bin/gcc -fPIC -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -msse4.2 -g0 -O3 -DNDEBUG '-D_FORTIFY_SOURCE=2' -ffunction-sections -fdata-sections '-std=c++14' -MD -MF bazel-out/k8-opt/bin/external/com_google_absl/absl/time/_objs/time/civil_time.d '-frandom-seed=bazel-out/k8-opt/bin/external/com_google_absl/absl/time/_objs/time/civil_time.o' -iquote external/com_google_absl -iquote bazel-out/k8-opt/bin/external/com_google_absl -Wall -Wextra -Wcast-qual -Wconversion-null -Wmissing-declarations -Woverlength-strings -Wpointer-arith -Wundef -Wunused-local-typedefs -Wunused-result -Wvarargs -Wvla -Wwrite-strings -Wno-missing-field-initializers -Wno-sign-compare -DNOMINMAX -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/com_google_absl/absl/time/civil_time.cc -o bazel-out/k8-opt/bin/external/com_google_absl/absl/time/_objs/time/civil_time.o)
# Configuration: 9d903089334585f500ca7171def206dc43e17b5b92b63af75dcdca877aa1afff
# Execution platform: @local_execution_config_platform//:platform
ERROR: /home/jlpoole/libedgetpu/driver/kernel/BUILD:66:11: Compiling driver/kernel/kernel_interrupt_handler.cc failed: (Exit 1): linux-sandbox failed: error executing command 
  (cd /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/sandbox/linux-sandbox/18/execroot/libedgetpu && \
  exec env - \
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/14/bin \
    PWD=/proc/self/cwd \
    TMPDIR=/tmp \
  /home/jlpoole/.cache/bazel/_bazel_jlpoole/install/99beb5dba09ada8362f431be4ac4906f/linux-sandbox -t 15 -w /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/sandbox/linux-sandbox/18/execroot/libedgetpu -w /tmp -w /dev/shm -D -- /usr/bin/gcc -fPIC -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -msse4.2 -g0 -O3 -DNDEBUG '-D_FORTIFY_SOURCE=2' -ffunction-sections -fdata-sections '-std=c++14' -MD -MF bazel-out/k8-opt/bin/driver/kernel/_objs/kernel_interrupt_handler/kernel_interrupt_handler.d '-frandom-seed=bazel-out/k8-opt/bin/driver/kernel/_objs/kernel_interrupt_handler/kernel_interrupt_handler.o' -DDARWINN_PORT_DEFAULT -iquote . -iquote bazel-out/k8-opt/bin -iquote external/com_google_absl -iquote bazel-out/k8-opt/bin/external/com_google_absl -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c driver/kernel/kernel_interrupt_handler.cc -o bazel-out/k8-opt/bin/driver/kernel/_objs/kernel_interrupt_handler/kernel_interrupt_handler.o)
1668995247.180212957: src/main/tools/linux-sandbox.cc:152: calling pipe(2)...
1668995247.180264570: src/main/tools/linux-sandbox.cc:171: calling clone(2)...
1668995247.180538980: src/main/tools/linux-sandbox.cc:180: linux-sandbox-pid1 has PID 9493
1668995247.180578092: src/main/tools/linux-sandbox-pid1.cc:641: Pid1Main started
1668995247.180772323: src/main/tools/linux-sandbox-pid1.cc:260: working dir: /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/sandbox/linux-sandbox/18/execroot/libedgetpu
1668995247.180802844: src/main/tools/linux-sandbox-pid1.cc:292: writable: /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/sandbox/linux-sandbox/18/execroot/libedgetpu
1668995247.180812412: src/main/tools/linux-sandbox-pid1.cc:292: writable: /tmp
1668995247.180819955: src/main/tools/linux-sandbox-pid1.cc:292: writable: /dev/shm
1668995247.180908096: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /
1668995247.180918363: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /dev
1668995247.180925417: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /dev/pts
1668995247.180931703: src/main/tools/linux-sandbox-pid1.cc:362: remount rw: /dev/shm
1668995247.180938897: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /dev/mqueue
1668995247.180945602: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /proc
1668995247.180952656: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /proc/sys/fs/binfmt_misc
1668995247.180963132: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys
1668995247.180970395: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/kernel/security
1668995247.180981291: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/kernel/debug
1668995247.180988834: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/kernel/config
1668995247.180996586: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/pstore
1668995247.181006085: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/firmware/efi/efivars
1668995247.181016561: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup
1668995247.181060003: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/openrc
1668995247.181070060: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/unified
1668995247.181077533: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/cpuset
1668995247.181084238: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/cpu
1668995247.181091502: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/cpuacct
1668995247.181099184: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/blkio
1668995247.181106658: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/memory
1668995247.181114340: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/devices
1668995247.181122512: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/freezer
1668995247.181129705: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/net_cls
1668995247.181137248: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/perf_event
1668995247.181144722: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/net_prio
1668995247.181174544: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/hugetlb
1668995247.181182576: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/pids
1668995247.181190748: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/misc
1668995247.181198430: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /run
1668995247.181205554: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /run/user/1000
1668995247.181214564: src/main/tools/linux-sandbox-pid1.cc:362: remount rw: /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/sandbox/linux-sandbox/18/execroot/libedgetpu
1668995247.181224202: src/main/tools/linux-sandbox-pid1.cc:362: remount rw: /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/sandbox/linux-sandbox/18/execroot/libedgetpu
1668995247.181241243: src/main/tools/linux-sandbox-pid1.cc:362: remount rw: /tmp
1668995247.181247459: src/main/tools/linux-sandbox-pid1.cc:362: remount rw: /dev/shm
1668995247.181323867: src/main/tools/linux-sandbox-pid1.cc:451: calling fork...
1668995247.181323867: src/main/tools/linux-sandbox.cc:197: done manipulating pipes
1668995247.181465297: src/main/tools/linux-sandbox-pid1.cc:481: child started with PID 2
gcc: fatal error: cannot execute 'cc1plus': execvp: No such file or directory
compilation terminated.
1668995247.185478777: src/main/tools/linux-sandbox-pid1.cc:498: wait returned pid=2, status=0x100
1668995247.185494911: src/main/tools/linux-sandbox-pid1.cc:516: child exited normally with code 1
1668995247.185810947: src/main/tools/linux-sandbox.cc:233: child exited normally with code 1
SUBCOMMAND: # @flatbuffers//src:flatc [action 'Compiling src/idl_gen_go.cpp [for host]', configuration: eb205a30a355aee53182696950d2a4f3f465cb018a59900a14857475058d64f4, execution platform: @local_execution_config_platform//:platform]
(cd /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/execroot/libedgetpu && \
  exec env - \
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/14/bin \
    PWD=/proc/self/cwd \
  /usr/bin/gcc -fPIC -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -msse4.2 -g0 -O3 -DNDEBUG '-D_FORTIFY_SOURCE=2' -ffunction-sections -fdata-sections '-std=c++14' -MD -MF bazel-out/host/bin/external/flatbuffers/src/_objs/flatc/idl_gen_go.d '-frandom-seed=bazel-out/host/bin/external/flatbuffers/src/_objs/flatc/idl_gen_go.o' -iquote external/flatbuffers -iquote bazel-out/host/bin/external/flatbuffers -Ibazel-out/host/bin/external/flatbuffers/src/_virtual_includes/flatc -Ibazel-out/host/bin/external/flatbuffers/src/_virtual_includes/flatc_library -Ibazel-out/host/bin/external/flatbuffers/src/_virtual_includes/flatbuffers -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/cpp_generator -Ibazel-out/host/bin/external/flatbuffers/_virtual_includes/flatbuffers -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/go_generator -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/java_generator -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/python_generator -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/python_generator_private -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/swift_generator -g0 -g0 -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/flatbuffers/src/idl_gen_go.cpp -o bazel-out/host/bin/external/flatbuffers/src/_objs/flatc/idl_gen_go.o)
# Configuration: eb205a30a355aee53182696950d2a4f3f465cb018a59900a14857475058d64f4
# Execution platform: @local_execution_config_platform//:platform
SUBCOMMAND: # @flatbuffers//src:flatc [action 'Compiling src/idl_gen_java.cpp [for host]', configuration: eb205a30a355aee53182696950d2a4f3f465cb018a59900a14857475058d64f4, execution platform: @local_execution_config_platform//:platform]
(cd /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/execroot/libedgetpu && \
  exec env - \
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/14/bin \
    PWD=/proc/self/cwd \
  /usr/bin/gcc -fPIC -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -msse4.2 -g0 -O3 -DNDEBUG '-D_FORTIFY_SOURCE=2' -ffunction-sections -fdata-sections '-std=c++14' -MD -MF bazel-out/host/bin/external/flatbuffers/src/_objs/flatc/idl_gen_java.d '-frandom-seed=bazel-out/host/bin/external/flatbuffers/src/_objs/flatc/idl_gen_java.o' -iquote external/flatbuffers -iquote bazel-out/host/bin/external/flatbuffers -Ibazel-out/host/bin/external/flatbuffers/src/_virtual_includes/flatc -Ibazel-out/host/bin/external/flatbuffers/src/_virtual_includes/flatc_library -Ibazel-out/host/bin/external/flatbuffers/src/_virtual_includes/flatbuffers -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/cpp_generator -Ibazel-out/host/bin/external/flatbuffers/_virtual_includes/flatbuffers -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/go_generator -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/java_generator -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/python_generator -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/python_generator_private -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/swift_generator -g0 -g0 -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/flatbuffers/src/idl_gen_java.cpp -o bazel-out/host/bin/external/flatbuffers/src/_objs/flatc/idl_gen_java.o)
# Configuration: eb205a30a355aee53182696950d2a4f3f465cb018a59900a14857475058d64f4
# Execution platform: @local_execution_config_platform//:platform
ERROR: /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/external/flatbuffers/src/BUILD:40:11: Compiling src/idl_gen_grpc.cpp [for host] failed: (Exit 1): linux-sandbox failed: error executing command 
  (cd /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/sandbox/linux-sandbox/19/execroot/libedgetpu && \
  exec env - \
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/14/bin \
    PWD=/proc/self/cwd \
    TMPDIR=/tmp \
  /home/jlpoole/.cache/bazel/_bazel_jlpoole/install/99beb5dba09ada8362f431be4ac4906f/linux-sandbox -t 15 -w /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/sandbox/linux-sandbox/19/execroot/libedgetpu -w /tmp -w /dev/shm -D -- /usr/bin/gcc -fPIC -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -msse4.2 -g0 -O3 -DNDEBUG '-D_FORTIFY_SOURCE=2' -ffunction-sections -fdata-sections '-std=c++14' -MD -MF bazel-out/host/bin/external/flatbuffers/src/_objs/flatc/idl_gen_grpc.d '-frandom-seed=bazel-out/host/bin/external/flatbuffers/src/_objs/flatc/idl_gen_grpc.o' -iquote external/flatbuffers -iquote bazel-out/host/bin/external/flatbuffers -Ibazel-out/host/bin/external/flatbuffers/src/_virtual_includes/flatc -Ibazel-out/host/bin/external/flatbuffers/src/_virtual_includes/flatc_library -Ibazel-out/host/bin/external/flatbuffers/src/_virtual_includes/flatbuffers -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/cpp_generator -Ibazel-out/host/bin/external/flatbuffers/_virtual_includes/flatbuffers -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/go_generator -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/java_generator -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/python_generator -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/python_generator_private -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/swift_generator -g0 -g0 -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/flatbuffers/src/idl_gen_grpc.cpp -o bazel-out/host/bin/external/flatbuffers/src/_objs/flatc/idl_gen_grpc.o)
1668995247.174269039: src/main/tools/linux-sandbox.cc:152: calling pipe(2)...
1668995247.174313668: src/main/tools/linux-sandbox.cc:171: calling clone(2)...
1668995247.174525360: src/main/tools/linux-sandbox.cc:180: linux-sandbox-pid1 has PID 9489
1668995247.174577602: src/main/tools/linux-sandbox-pid1.cc:641: Pid1Main started
1668995247.174801586: src/main/tools/linux-sandbox.cc:197: done manipulating pipes
1668995247.177082072: src/main/tools/linux-sandbox-pid1.cc:260: working dir: /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/sandbox/linux-sandbox/19/execroot/libedgetpu
1668995247.177120695: src/main/tools/linux-sandbox-pid1.cc:292: writable: /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/sandbox/linux-sandbox/19/execroot/libedgetpu
1668995247.177127051: src/main/tools/linux-sandbox-pid1.cc:292: writable: /tmp
1668995247.177132708: src/main/tools/linux-sandbox-pid1.cc:292: writable: /dev/shm
1668995247.177207369: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /
1668995247.177216868: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /dev
1668995247.177223642: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /dev/pts
1668995247.177229369: src/main/tools/linux-sandbox-pid1.cc:362: remount rw: /dev/shm
1668995247.177234188: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /dev/mqueue
1668995247.177238868: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /proc
1668995247.177244036: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /proc/sys/fs/binfmt_misc
1668995247.177251230: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys
1668995247.177256049: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/kernel/security
1668995247.177262754: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/kernel/debug
1668995247.177269878: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/kernel/config
1668995247.177275046: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/pstore
1668995247.177282729: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/firmware/efi/efivars
1668995247.177290900: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup
1668995247.177329453: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/openrc
1668995247.177338952: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/unified
1668995247.177346634: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/cpuset
1668995247.177352920: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/cpu
1668995247.177359555: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/cpuacct
1668995247.177366190: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/blkio
1668995247.177373314: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/memory
1668995247.177379600: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/devices
1668995247.177385816: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/freezer
1668995247.177391473: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/net_cls
1668995247.177397619: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/perf_event
1668995247.177404324: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/net_prio
1668995247.177431912: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/hugetlb
1668995247.177439455: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/pids
1668995247.177445182: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/misc
1668995247.177449023: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /run
1668995247.177454680: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /run/user/1000
1668995247.177459360: src/main/tools/linux-sandbox-pid1.cc:362: remount rw: /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/sandbox/linux-sandbox/19/execroot/libedgetpu
1668995247.177466903: src/main/tools/linux-sandbox-pid1.cc:362: remount rw: /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/sandbox/linux-sandbox/19/execroot/libedgetpu
1668995247.177485620: src/main/tools/linux-sandbox-pid1.cc:362: remount rw: /tmp
1668995247.177490370: src/main/tools/linux-sandbox-pid1.cc:362: remount rw: /dev/shm
1668995247.177542332: src/main/tools/linux-sandbox-pid1.cc:451: calling fork...
1668995247.177702620: src/main/tools/linux-sandbox-pid1.cc:481: child started with PID 2
gcc: fatal error: cannot execute 'cc1plus': execvp: No such file or directory
compilation terminated.
1668995247.179723084: src/main/tools/linux-sandbox-pid1.cc:498: wait returned pid=2, status=0x100
1668995247.179735376: src/main/tools/linux-sandbox-pid1.cc:516: child exited normally with code 1
1668995247.180819955: src/main/tools/linux-sandbox.cc:233: child exited normally with code 1
ERROR: /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/external/com_google_absl/absl/debugging/BUILD.bazel:188:11: Compiling absl/debugging/internal/demangle.cc failed: (Exit 1): linux-sandbox failed: error executing command 
  (cd /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/sandbox/linux-sandbox/17/execroot/libedgetpu && \
  exec env - \
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/14/bin \
    PWD=/proc/self/cwd \
    TMPDIR=/tmp \
  /home/jlpoole/.cache/bazel/_bazel_jlpoole/install/99beb5dba09ada8362f431be4ac4906f/linux-sandbox -t 15 -w /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/sandbox/linux-sandbox/17/execroot/libedgetpu -w /tmp -w /dev/shm -D -- /usr/bin/gcc -fPIC -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -msse4.2 -g0 -O3 -DNDEBUG '-D_FORTIFY_SOURCE=2' -ffunction-sections -fdata-sections '-std=c++14' -MD -MF bazel-out/k8-opt/bin/external/com_google_absl/absl/debugging/_objs/demangle_internal/demangle.d '-frandom-seed=bazel-out/k8-opt/bin/external/com_google_absl/absl/debugging/_objs/demangle_internal/demangle.o' -iquote external/com_google_absl -iquote bazel-out/k8-opt/bin/external/com_google_absl -Wall -Wextra -Wcast-qual -Wconversion-null -Wmissing-declarations -Woverlength-strings -Wpointer-arith -Wundef -Wunused-local-typedefs -Wunused-result -Wvarargs -Wvla -Wwrite-strings -Wno-missing-field-initializers -Wno-sign-compare -DNOMINMAX -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/com_google_absl/absl/debugging/internal/demangle.cc -o bazel-out/k8-opt/bin/external/com_google_absl/absl/debugging/_objs/demangle_internal/demangle.o)
1668995247.167887839: src/main/tools/linux-sandbox.cc:152: calling pipe(2)...
1668995247.167987225: src/main/tools/linux-sandbox.cc:171: calling clone(2)...
1668995247.168289083: src/main/tools/linux-sandbox.cc:180: linux-sandbox-pid1 has PID 9484
1668995247.168324912: src/main/tools/linux-sandbox-pid1.cc:641: Pid1Main started
1668995247.168443573: src/main/tools/linux-sandbox.cc:197: done manipulating pipes
1668995247.168541911: src/main/tools/linux-sandbox-pid1.cc:260: working dir: /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/sandbox/linux-sandbox/17/execroot/libedgetpu
1668995247.168574807: src/main/tools/linux-sandbox-pid1.cc:292: writable: /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/sandbox/linux-sandbox/17/execroot/libedgetpu
1668995247.168587797: src/main/tools/linux-sandbox-pid1.cc:292: writable: /tmp
1668995247.168596318: src/main/tools/linux-sandbox-pid1.cc:292: writable: /dev/shm
1668995247.168663087: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /
1668995247.168669233: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /dev
1668995247.168674053: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /dev/pts
1668995247.168679361: src/main/tools/linux-sandbox-pid1.cc:362: remount rw: /dev/shm
1668995247.168683202: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /dev/mqueue
1668995247.168687881: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /proc
1668995247.168692072: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /proc/sys/fs/binfmt_misc
1668995247.168700243: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys
1668995247.168705551: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/kernel/security
1668995247.168713234: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/kernel/debug
1668995247.168718891: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/kernel/config
1668995247.168724060: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/pstore
1668995247.168730276: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/firmware/efi/efivars
1668995247.168738028: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup
1668995247.168770225: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/openrc
1668995247.168777419: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/unified
1668995247.168782238: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/cpuset
1668995247.168787965: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/cpu
1668995247.168793553: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/cpuacct
1668995247.168798791: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/blkio
1668995247.168803610: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/memory
1668995247.168808918: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/devices
1668995247.168813737: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/freezer
1668995247.168818486: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/net_cls
1668995247.168822258: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/perf_event
1668995247.168827426: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/net_prio
1668995247.168846074: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/hugetlb
1668995247.168851382: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/pids
1668995247.168856550: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/misc
1668995247.168861299: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /run
1668995247.168866119: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /run/user/1000
1668995247.168870938: src/main/tools/linux-sandbox-pid1.cc:362: remount rw: /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/sandbox/linux-sandbox/17/execroot/libedgetpu
1668995247.168876595: src/main/tools/linux-sandbox-pid1.cc:362: remount rw: /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/sandbox/linux-sandbox/17/execroot/libedgetpu
1668995247.168892240: src/main/tools/linux-sandbox-pid1.cc:362: remount rw: /tmp
1668995247.168896151: src/main/tools/linux-sandbox-pid1.cc:362: remount rw: /dev/shm
1668995247.168925694: src/main/tools/linux-sandbox-pid1.cc:451: calling fork...
1668995247.169057416: src/main/tools/linux-sandbox-pid1.cc:481: child started with PID 2
gcc: fatal error: cannot execute 'cc1plus': execvp: No such file or directory
compilation terminated.
1668995247.170648700: src/main/tools/linux-sandbox-pid1.cc:498: wait returned pid=2, status=0x100
1668995247.170661621: src/main/tools/linux-sandbox-pid1.cc:516: child exited normally with code 1
1668995247.171063982: src/main/tools/linux-sandbox.cc:233: child exited normally with code 1
SUBCOMMAND: # @flatbuffers//src:flatc [action 'Compiling src/idl_gen_kotlin.cpp [for host]', configuration: eb205a30a355aee53182696950d2a4f3f465cb018a59900a14857475058d64f4, execution platform: @local_execution_config_platform//:platform]
(cd /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/execroot/libedgetpu && \
  exec env - \
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/14/bin \
    PWD=/proc/self/cwd \
  /usr/bin/gcc -fPIC -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -msse4.2 -g0 -O3 -DNDEBUG '-D_FORTIFY_SOURCE=2' -ffunction-sections -fdata-sections '-std=c++14' -MD -MF bazel-out/host/bin/external/flatbuffers/src/_objs/flatc/idl_gen_kotlin.d '-frandom-seed=bazel-out/host/bin/external/flatbuffers/src/_objs/flatc/idl_gen_kotlin.o' -iquote external/flatbuffers -iquote bazel-out/host/bin/external/flatbuffers -Ibazel-out/host/bin/external/flatbuffers/src/_virtual_includes/flatc -Ibazel-out/host/bin/external/flatbuffers/src/_virtual_includes/flatc_library -Ibazel-out/host/bin/external/flatbuffers/src/_virtual_includes/flatbuffers -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/cpp_generator -Ibazel-out/host/bin/external/flatbuffers/_virtual_includes/flatbuffers -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/go_generator -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/java_generator -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/python_generator -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/python_generator_private -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/swift_generator -g0 -g0 -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/flatbuffers/src/idl_gen_kotlin.cpp -o bazel-out/host/bin/external/flatbuffers/src/_objs/flatc/idl_gen_kotlin.o)
# Configuration: eb205a30a355aee53182696950d2a4f3f465cb018a59900a14857475058d64f4
# Execution platform: @local_execution_config_platform//:platform
SUBCOMMAND: # @com_google_absl//absl/time:time [action 'Compiling absl/time/clock.cc', configuration: 9d903089334585f500ca7171def206dc43e17b5b92b63af75dcdca877aa1afff, execution platform: @local_execution_config_platform//:platform]
(cd /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/execroot/libedgetpu && \
  exec env - \
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/14/bin \
    PWD=/proc/self/cwd \
  /usr/bin/gcc -fPIC -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -msse4.2 -g0 -O3 -DNDEBUG '-D_FORTIFY_SOURCE=2' -ffunction-sections -fdata-sections '-std=c++14' -MD -MF bazel-out/k8-opt/bin/external/com_google_absl/absl/time/_objs/time/clock.d '-frandom-seed=bazel-out/k8-opt/bin/external/com_google_absl/absl/time/_objs/time/clock.o' -iquote external/com_google_absl -iquote bazel-out/k8-opt/bin/external/com_google_absl -Wall -Wextra -Wcast-qual -Wconversion-null -Wmissing-declarations -Woverlength-strings -Wpointer-arith -Wundef -Wunused-local-typedefs -Wunused-result -Wvarargs -Wvla -Wwrite-strings -Wno-missing-field-initializers -Wno-sign-compare -DNOMINMAX -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/com_google_absl/absl/time/clock.cc -o bazel-out/k8-opt/bin/external/com_google_absl/absl/time/_objs/time/clock.o)
# Configuration: 9d903089334585f500ca7171def206dc43e17b5b92b63af75dcdca877aa1afff
# Execution platform: @local_execution_config_platform//:platform
SUBCOMMAND: # @flatbuffers//src:flatc [action 'Compiling src/idl_gen_json_schema.cpp [for host]', configuration: eb205a30a355aee53182696950d2a4f3f465cb018a59900a14857475058d64f4, execution platform: @local_execution_config_platform//:platform]
(cd /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/execroot/libedgetpu && \
  exec env - \
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/14/bin \
    PWD=/proc/self/cwd \
  /usr/bin/gcc -fPIC -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -msse4.2 -g0 -O3 -DNDEBUG '-D_FORTIFY_SOURCE=2' -ffunction-sections -fdata-sections '-std=c++14' -MD -MF bazel-out/host/bin/external/flatbuffers/src/_objs/flatc/idl_gen_json_schema.d '-frandom-seed=bazel-out/host/bin/external/flatbuffers/src/_objs/flatc/idl_gen_json_schema.o' -iquote external/flatbuffers -iquote bazel-out/host/bin/external/flatbuffers -Ibazel-out/host/bin/external/flatbuffers/src/_virtual_includes/flatc -Ibazel-out/host/bin/external/flatbuffers/src/_virtual_includes/flatc_library -Ibazel-out/host/bin/external/flatbuffers/src/_virtual_includes/flatbuffers -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/cpp_generator -Ibazel-out/host/bin/external/flatbuffers/_virtual_includes/flatbuffers -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/go_generator -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/java_generator -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/python_generator -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/python_generator_private -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/swift_generator -g0 -g0 -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/flatbuffers/src/idl_gen_json_schema.cpp -o bazel-out/host/bin/external/flatbuffers/src/_objs/flatc/idl_gen_json_schema.o)
# Configuration: eb205a30a355aee53182696950d2a4f3f465cb018a59900a14857475058d64f4
# Execution platform: @local_execution_config_platform//:platform
Target //tflite/public:libedgetpu_direct_all.so.stripped failed to build
INFO: Elapsed time: 0.270s, Critical Path: 0.06s
INFO: 23 processes: 23 internal.
FAILED: Build did NOT complete successfully
make: *** [Makefile:101: libedgetpu-direct] Error 1
jlpoole@eos ~/libedgetpu $ 

I am unaware of this project being built on a Gentoo based system, it's debian/Docker based. I suspect there is some link setting that is getting missed by bazel.

My gcc install:

Code: Select all

[I] sys-devel/gcc
     Available versions:  
     (8.5.0) [M]8.5.0-r1^t
     (9.5.0) [M]9.5.0^t
     (10)   10.4.0^t **10.4.1_p20220922^t **10.4.1_p20220929^t ~10.4.1_p20221006^t **10.4.1_p20221013^t **10.5.9999*l^t
     (11)   11.3.0^t ~11.3.1_p20220909^t **11.3.1_p20220930^t ~11.3.1_p20221007^t **11.3.1_p20221014^t **11.4.9999*l^t
     (12)   ~12.2.0^t **12.2.1_p20220917^t **12.2.1_p20220924^t **12.2.1_p20221001^t ~12.2.1_p20221008^t **12.2.1_p20221015^t **12.3.9999*l^t
     (13)   ~*13.0.0_pre20220918^t **13.0.0_pre20221002^t **13.0.9999*l^t
       {ada cet custom-cflags +cxx d debug doc fixed-point +fortran go graphite hardened jit libssp lto mpx multilib +nls +nptl objc objc++ objc-gc +openmp +pch pgo +pie +sanitize +ssp systemtap test valgrind vanilla vtv zstd}
     Installed versions:  11.3.0(11)^t(10:02:34 07/04/22)(cxx fortran multilib nls nptl openmp pie sanitize ssp -ada -cet -custom-cflags -d -debug -doc -fixed-point -go -graphite -hardened -jit -libssp -lto -objc -objc++ -objc-gc -pch -pgo -systemtap -test -valgrind -vanilla -vtv -zstd)
     Homepage:            https://gcc.gnu.org/
     Description:         The GNU Compiler Collection

Suggestions or settings I need to alter?
Top
jlpoole
Guru
Guru
User avatar
Posts: 495
Joined: Tue Nov 01, 2005 5:07 am
Location: Salem, OR

  • Quote

Post by jlpoole » Wed Nov 23, 2022 2:28 am

I've been trying various things and learning what I can about bazel. A colleague believes bazel is pretty much a Google tool and not used much outside of Google related code. Any rate, I did not have "objc++" flag activated, so I rebuilt gcc,

Code: Select all

jlpoole@eos ~/test $ cat /etc/portage/package.use/gcc
sys-devel/gcc objc++ objc
jlpoole@eos ~/test $ 
After rebuilding gcc, I still had the same problem. I'm told cc1plus is a tool within gcc, so it looks like bazel is unable to determine where cc1plus is located within a gcc-based install on a Gentoo system.

Then I used the following command to learn where the command "cc1plus" resides and duly added the directory to my PATH

Code: Select all

jlpoole@eos ~/libedgetpu $ g++ --print-prog-name=cc1plus
/usr/libexec/gcc/x86_64-pc-linux-gnu/11.3.0/cc1plus
jlpoole@eos ~/libedgetpu $ export PATH=$PATH:/usr/libexec/gcc/x86_64-pc-linux-gnu/11.3.0/
Then when I ran "make" I made progress, no longer ran into the "cc1plus" error and now have a different issues. An excerpt from the console log:

Code: Select all

ERROR: /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/external/flatbuffers/src/BUILD:40:11: Compiling src/idl_gen_text.cpp [for host] failed: (Exit 1): linux-sandbox failed: error executing command 
  (cd /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/sandbox/linux-sandbox/5/execroot/libedgetpu && \
  exec env - \
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/14/bin:/usr/libexec/gcc/x86_64-pc-linux-gnu/11.3.0/ \
    PWD=/proc/self/cwd \
    TMPDIR=/tmp \
  /home/jlpoole/.cache/bazel/_bazel_jlpoole/install/99beb5dba09ada8362f431be4ac4906f/linux-sandbox -t 15 -w /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/sandbox/linux-sandbox/5/execroot/libedgetpu -w /tmp -w /dev/shm -D -- /usr/bin/gcc -fPIC -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -msse4.2 -g0 -O3 -DNDEBUG '-D_FORTIFY_SOURCE=2' -ffunction-sections -fdata-sections '-std=c++14' -MD -MF bazel-out/host/bin/external/flatbuffers/src/_objs/flatc/idl_gen_text.d '-frandom-seed=bazel-out/host/bin/external/flatbuffers/src/_objs/flatc/idl_gen_text.o' -iquote external/flatbuffers -iquote bazel-out/host/bin/external/flatbuffers -Ibazel-out/host/bin/external/flatbuffers/src/_virtual_includes/flatc -Ibazel-out/host/bin/external/flatbuffers/src/_virtual_includes/flatc_library -Ibazel-out/host/bin/external/flatbuffers/src/_virtual_includes/flatbuffers -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/cpp_generator -Ibazel-out/host/bin/external/flatbuffers/_virtual_includes/flatbuffers -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/go_generator -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/java_generator -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/python_generator -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/python_generator_private -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/swift_generator -g0 -g0 -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/flatbuffers/src/idl_gen_text.cpp -o bazel-out/host/bin/external/flatbuffers/src/_objs/flatc/idl_gen_text.o)
1669169548.240249910: src/main/tools/linux-sandbox.cc:152: calling pipe(2)...
1669169548.240304247: src/main/tools/linux-sandbox.cc:171: calling clone(2)...
1669169548.240577188: src/main/tools/linux-sandbox.cc:180: linux-sandbox-pid1 has PID 11108
1669169548.240596744: src/main/tools/linux-sandbox-pid1.cc:641: Pid1Main started
1669169548.240680624: src/main/tools/linux-sandbox.cc:197: done manipulating pipes
1669169548.240762688: src/main/tools/linux-sandbox-pid1.cc:260: working dir: /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/sandbox/linux-sandbox/5/execroot/libedgetpu
1669169548.240784409: src/main/tools/linux-sandbox-pid1.cc:292: writable: /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/sandbox/linux-sandbox/5/execroot/libedgetpu
1669169548.240793977: src/main/tools/linux-sandbox-pid1.cc:292: writable: /tmp
1669169548.240801939: src/main/tools/linux-sandbox-pid1.cc:292: writable: /dev/shm
1669169548.240908588: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /
1669169548.240918785: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /dev
1669169548.240925839: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /dev/pts
1669169548.240932055: src/main/tools/linux-sandbox-pid1.cc:362: remount rw: /dev/shm
1669169548.240937712: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /dev/mqueue
1669169548.240944417: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /proc
1669169548.240950283: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /proc/sys/fs/binfmt_misc
1669169548.240961109: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys
1669169548.240967325: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/kernel/security
1669169548.240976404: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/kernel/debug
1669169548.240983179: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/kernel/config
1669169548.240990722: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/pstore
1669169548.240996868: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/firmware/efi/efivars
1669169548.241006925: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup
1669169548.241049459: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/openrc
1669169548.241058817: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/unified
1669169548.241065941: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/cpuset
1669169548.241073065: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/cpu
1669169548.241079770: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/cpuacct
1669169548.241086545: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/blkio
1669169548.241094088: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/memory
1669169548.241101142: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/devices
1669169548.241107916: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/freezer
1669169548.241114621: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/net_cls
1669169548.241122234: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/perf_event
1669169548.241129288: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/net_prio
1669169548.241158901: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/hugetlb
1669169548.241166025: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/pids
1669169548.241172310: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /sys/fs/cgroup/misc
1669169548.241179015: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /run
1669169548.241185091: src/main/tools/linux-sandbox-pid1.cc:362: remount ro: /run/user/1000
1669169548.241193193: src/main/tools/linux-sandbox-pid1.cc:362: remount rw: /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/sandbox/linux-sandbox/5/execroot/libedgetpu
1669169548.241201853: src/main/tools/linux-sandbox-pid1.cc:362: remount rw: /home/jlpoole/.cache/bazel/_bazel_jlpoole/3933de89ff5fedd41a5a7d73a592148c/sandbox/linux-sandbox/5/execroot/libedgetpu
1669169548.241219454: src/main/tools/linux-sandbox-pid1.cc:362: remount rw: /tmp
1669169548.241224692: src/main/tools/linux-sandbox-pid1.cc:362: remount rw: /dev/shm
1669169548.241283289: src/main/tools/linux-sandbox-pid1.cc:451: calling fork...
1669169548.241481360: src/main/tools/linux-sandbox-pid1.cc:481: child started with PID 2
In file included from bazel-out/host/bin/external/flatbuffers/src/_virtual_includes/flatbuffers/flatbuffers/flatbuffers.h:20,
                 from external/flatbuffers/src/idl_gen_text.cpp:19:
bazel-out/host/bin/external/flatbuffers/src/_virtual_includes/flatbuffers/flatbuffers/base.h:28:10: fatal error: cstdint: No such file or directory
   28 | #include <cstdint>
      |          ^~~~~~~~~
compilation terminated.
1669169548.252371654: src/main/tools/linux-sandbox-pid1.cc:498: wait returned pid=2, status=0x100
1669169548.252383527: src/main/tools/linux-sandbox-pid1.cc:516: child exited normally with code 1
1669169548.252628322: src/main/tools/linux-sandbox.cc:233: child exited normally with code 1
so the "cstdint" are missing. The project is suppose to run in Ubuntu. So, the quest continues. I'll add a reply about how to build a small test bazel instance, that may be helpful to someone else who braves a bazel-based project on Gentoo.
Top
jlpoole
Guru
Guru
User avatar
Posts: 495
Joined: Tue Nov 01, 2005 5:07 am
Location: Salem, OR

  • Quote

Post by jlpoole » Wed Nov 23, 2022 2:32 am

Here is a side-track.

This is a side aspect, but for someone like me who goes blind into trusting a bazel processing chain, the following may be helpful to help debug and inenvironment. To create a project that will spit out the enviornment as it appears in bazel you need to do the following:
1) create a directory, e.g. ~/test. Change into the directory: cd ~/test
2) create an empty WORKSPACE file: touch WORKSPACE
3) create a bash script file that does what you want. Example, my file: display_PATH.sh has:

Code: Select all

jlpoole@eos ~/test $ cat -n display_PATH.sh 
     1	#!/bin/bash
     2	echo ---- start ----
     3	my_datestamp=`date`
     4	echo "$my_datestamp"
     5	echo From display_PATH.sh comes this output:
     6	echo $PATH
     7	gcc_location=`which g++`
     8	echo g++ location = "$gcc_location"
     9	echo ----- end ----
jlpoole@eos ~/test $ 
4) created a file named "BUILD" (no suffix) with the following inside it:

Code: Select all

jlpoole@eos ~/test $ cat -n BUILD
     1	genrule(
     2	  name = "show_environment",
     3	  srcs = ["display_PATH.sh"],
     4	  outs = ["output.txt"],
     5	  cmd  = "bash $< >$@",
     6	)
jlpoole@eos ~/test $
In your console, execute:

Code: Select all

bazel build //:show_environment
Example:

Code: Select all

jlpoole@eos ~/test $ bazel build //:show_environment
INFO: Analyzed target //:show_environment (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
Target //:show_environment up-to-date:
  bazel-bin/output.txt
INFO: Elapsed time: 0.060s, Critical Path: 0.00s
INFO: 1 process: 1 internal.
INFO: Build completed successfully, 1 total action
jlpoole@eos ~/test $ 
Your output, specified in the BUILD file as output.txt, will be placed in the subdirectory bazel creates: bazel-bin

Code: Select all

jlpoole@eos ~/test $ cat -n bazel-bin/output.txt 
     1	---- start ----
     2	Mon Nov 21 19:29:24 PST 2022
     3	From display_PATH.sh comes this output:
     4	/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/14/bin
     5	g++ location = /usr/bin/g++
     6	----- end ----
jlpoole@eos ~/test $ 
Using the above, I was able to determine that bazel was, indeed, able to access gcc. That caused me to realize that my gcc was lacking a C++ compiler, so I activated the use flags for both a C compiler and C++ compiler

Code: Select all

	
jlpoole@eos ~/test $ cat /etc/portage/package.use/gcc
sys-devel/gcc objc++ objc
jlpoole@eos ~/test $ 
and then "emerge sys-devel/gcc --ask"

cc1plus [number 1, not letter "l"].
Top
Hu
Administrator
Administrator
Posts: 24400
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Wed Nov 23, 2022 3:22 pm

cc1plus is part of sys-devel/gcc. It is responsible for compiling C++ code. It is not meant to be invoked directly by the build tool; the build tool should invoke g++, and let g++ invoke cc1plus with appropriate extra arguments. You can see a typical invocation of cc1plus, and quite a bit of other output, by running g++ -v -c -x c++ /dev/null -o /dev/null.

It is quite odd that gcc was unable to find cc1plus. Perhaps bazel created some strange sandbox that was missing parts of the standard filesystem. You should not need to modify $PATH.

Likewise, it is weird that cstdint would not be found. That is a C++ standard library header that any conforming and properly installed C++ compiler ought to find and use without any special help. A normal invocation of g++ has no problem with that: g++ -c -x c++ - -E <<< '#include <cstdint>' | wc shows that the file is found here. You can remove | wc to see the results of preprocessing the file, which are several hundred lines long.
jlpoole wrote:

Code: Select all

     3	my_datestamp=`date`
     4	echo "$my_datestamp"
Since you only use this once, it is simpler and more traditional to just run date and not capture+reprint its output.
jlpoole wrote:

Code: Select all

     6	echo $PATH
Although not critical here, generally you would be better off with declare -p PATH, which prints the output in a form suitable for reuse.
jlpoole wrote:

Code: Select all

     7	gcc_location=`which g++`
     8	echo g++ location = "$gcc_location"
This could be done more simply as:

Code: Select all

printf '%s' 'g++ location = '; which g++
This avoids out-of-order output if which prints a diagnostic to stderr.
jlpoole wrote:Using the above, I was able to determine that bazel was, indeed, able to access gcc. That caused me to realize that my gcc was lacking a C++ compiler, so I activated the use flags for both a C compiler and C++ compiler
Are you sure about that? Typical Gentoo systems include a C++ compiler, and a number of widely used packages will not be buildable without it. The USE change you made is for enabling Objective-C and Objective-C++. These are variant languages that are not particularly popular in the Linux open source world, and so many people do not need support for them.
Top
jlpoole
Guru
Guru
User avatar
Posts: 495
Joined: Tue Nov 01, 2005 5:07 am
Location: Salem, OR

  • Quote

Post by jlpoole » Sat Dec 24, 2022 1:01 am

I made a tiny step forward. I modified my session's PATH variable as follows by appending /usr/libexec/gcc/x86_64-pc-linux-gnu/11.3.0

Code: Select all

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/15/bin:/usr/libexec/gcc/x86_64-pc-linux-gnu/11.3.0
I then ran "make" and my build moved forward past the error of
gcc: fatal error: cannot execute 'cc1plus': execvp: No such file or directory


My next error is that the C++ standard headers are not being found. I'll create a separate topic for that as it concerns running Bazel within Gentoo and probably affects others, too.

Thank you, Hu, for the insight.
Top
Post Reply

5 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic