Skip to content

Instantly share code, notes, and snippets.

@Unitech
Last active July 19, 2023 07:55
Show Gist options
  • Save Unitech/14097eec4f39ac0d7b89ed4d531bcbdb to your computer and use it in GitHub Desktop.
Save Unitech/14097eec4f39ac0d7b89ed4d531bcbdb to your computer and use it in GitHub Desktop.
ERROR: /home/envision/.cache/bazel/_bazel_envision/a7712cf518797c369fb99e025707a1e7/external/upb/BUILD:57:11: Compiling upb/upb.c failed: (Exit 1): clang failed: error executing command /home/envision/clang+llvm-16.0.0-x86_64-linux-gnu-ubuntu-18.04/bin/clang -MD -MF bazel-out/k8-opt/bin/external/upb/_objs/upb/upb.pic.d ... (remaining 43 arguments skipped)
external/upb/upb/upb.c:192:10: error: defining a type within 'offsetof' is a Clang extension [-Werror,-Wgnu-offsetof-extensions]
n &= ~(upb_alignof(upb_arena) - 1);
^~~~~~~~~~~~~~~~~~~~~~
external/upb/upb/upb.c:183:37: note: expanded from macro 'upb_alignof'
#define upb_alignof(type) offsetof (struct { char c; type member; }, member)
^~~~~~
/home/envision/clang+llvm-16.0.0-x86_64-linux-gnu-ubuntu-18.04/lib/clang/16/include/stddef.h:111:43: note: expanded from macro 'offsetof'
#define offsetof(t, d) __builtin_offsetof(t, d)
^
1 error generated.
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
ERROR: /home/envision/tensorflow/tensorflow/core/kernels/BUILD:3917:18: Compiling tensorflow/core/kernels/conv_ops.cc failed: (Exit 1): crosstool_wrapper_driver_is_not_gcc failed: error executing command external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -MD -MF bazel-out/k8-opt/bin/tensorflow/core/kernels/_objs/conv_ops/conv_ops.pic.d ... (remaining 558 arguments skipped)
x86_64-linux-gnu-gcc-9: fatal error: Killed signal terminated program cc1plus
compilation terminated.
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 337.740s, Critical Path: 296.78s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment