bazel: Bazel keeps using wrong GCC
ATTENTION! Please read and follow:
- if this is a question about how to build / test / query / deploy using Bazel, ask it on StackOverflow instead: https://stackoverflow.com/questions/tagged/bazel
- if this is a discussion starter, send it to bazel-discuss@googlegroups.com
- if this is a bug or feature request, fill the form below as best as you can.
Description of the problem / feature request:
I’m building Tensorflow 1.13.1 with Bazel 0.19.2, using armclang. Bazel needs GCC for some things anyway, but I can’t make it use Arm GCC, it instead uses the default RHEL GCC.
Feature requests: what underlying problem are you trying to solve with this feature?
I’m trying to build Tensorflow using Arm Clang and Arm GCC, on RHEL 7. I’ve succeeded with the below instructions on Ubuntu 16.04.
Bugs: what’s the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
export CC=armclang; export CXX=armclang++; export FC=armflang; export F77=armflang; export CXXFLAGS=“-stdlib=libc++ -L$ARM_HPC_COMPILER_DIR/lib”; export LDFLAGS=“-L$ARM_HPC_COMPILER_DIR/lib -lm -lrt”; module load Generic-AArch64/<OS>/<version>/arm-hpc-compiler-19.2/armpl/19.2.0 grep -rl march . | xargs sed -i ‘s/march/mcpu/g’ bazel build --copt=“-armpl” --config=opt --config=noaws //tensorflow/tools/pip_package:build_pip_package --verbose_failures
What operating system are you running Bazel on?
RHEL 7
What’s the output of bazel info release
?
release 0.19.2- (@non-git)
If bazel info release
returns “development version” or “(@non-git)”, tell us how you built Bazel.
Dist zip bootstrap
What’s the output of git remote get-url origin ; git rev-parse master ; git rev-parse HEAD
?
https://github.com/tensorflow/tensorflow.git 39a279ef76b7b49b6ff164dcf5e22aee5de6e5a1 93dd14dce2e8751bcaab0a0eb363d55eb0cc5813
Have you found anything relevant by searching the web?
No, seems pretty unique.
Places to look:
- StackOverflow: http://stackoverflow.com/questions/tagged/bazel
- GitHub issues: https://github.com/bazelbuild/bazel/issues
- email threads on https://groups.google.com/forum/#!forum/bazel-discuss
Any other information, logs, or outputs that you want to share?
If the files are large, upload as attachment or provide link.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 28 (7 by maintainers)
Yes, in order to isolate the problem, I need to be able to get Bazel to use my GCC. It’s not, so I can’t. The fact that it’s not, is a problem on it’s own, and the only reason, after much investigation, I’ve found that stops the build from completing.