Hi,
Does anyone use external toolchain (non-native) but compile without any error currently?
I get an error even with a simple hello world.
project/
WORKSPACE
te2/
main.c
BUILD
tools/
BUILD
CROSSTOOL
CT/ <------- symbolic link to my cross toolchain directory
[err message]
$> bazel build --crosstool_top=//tools:toolchain --host_crosstool_top=//tools/cpp:toolchain --cpu=armeabi-v7a //test:hello
INFO: Found 1 target...
INFO: From Compiling te2/main.c:
src/main/tools/namespace-sandbox.c:633: execvp(argv[0], argv): No such file or directory
ERROR: /root/blayer/te2/BUILD:1:1: C++ compilation of rule '//te2:hello' failed: x86_64-QNAP-linux-gnu-gcc failed: error executing command tools/CT/x86_64-QNAP-linux-gnu/cross-tools/bin/x86_64-QNAP-linux-gnu-gcc -iquote . -iquote bazel-out/QNAP_x86_64-fastbuild/genfiles -isystem tools/cpp/gcc3 ... (remaining 9 argument(s) skipped).
Target //te2:hello failed to build
Use --verbose_failures to see the command lines of failed build steps.
I am wondering if I should tune my external toolchain setting or this is a bug in bazel. Thanks.
David