I am using an old Lenovo Thinkpad with i386 architecture running Debian 11. I'm trying to install a 32 bit version of TensorFlow using the git repository here. Following the instruction I reached till Bazel, however, building Bazel gives me a GCC compiler error as shown below:
ERROR: /home/sarfarosh/Bazel-0-19.2/third_party/grpc/BUILD:72:1: C++ compilation of rule '//third_party/grpc:grpc_unsecure' failed (Exit 1): gcc failed: error executing command
(cd /tmp/bazel_5y2s725C/out/execroot/io_bazel && \
exec env - \
PATH=/home/sarfarosh/.pyenv/plugins/pyenv-virtualenv/shims:/home/sarfarosh/.pyenv/shims:/home/sarfarosh/.pyenv/plugins/pyenv-virtualenv/shims:/home/sarfarosh/.pyenv/bin:/home/sarfarosh/.local/bin:/home/sarfarosh/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games \
PWD=/proc/self/cwd \
/usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -B/usr/bin -B/usr/bin -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections -fdata-sections -MD -MF bazel-out/piii-opt/bin/third_party/grpc/_objs/grpc_unsecure/log_linux.d -iquote . -iquote bazel-out/piii-opt/genfiles -iquote bazel-out/piii-opt/bin -iquote external/bazel_tools -iquote bazel-out/piii-opt/genfiles/external/bazel_tools -iquote bazel-out/piii-opt/bin/external/bazel_tools -isystem third_party/grpc -isystem bazel-out/piii-opt/genfiles/third_party/grpc -isystem bazel-out/piii-opt/bin/third_party/grpc -isystem third_party/grpc/include -isystem bazel-out/piii-opt/genfiles/third_party/grpc/include -isystem bazel-out/piii-opt/bin/third_party/grpc/include -isystem third_party/zlib -isystem bazel-out/piii-opt/genfiles/third_party/zlib -isystem bazel-out/piii-opt/bin/third_party/zlib '-std=gnu99' -Wimplicit-function-declaration -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c third_party/grpc/src/core/support/log_linux.c -o bazel-out/piii-opt/bin/third_party/grpc/_objs/grpc_unsecure/log_linux.o)
third_party/grpc/src/core/support/log_linux.c:57:13: error: conflicting types for 'gettid'
57 | static long gettid(void) { return syscall(__NR_gettid); }
| ^~~~~~
In file included from /usr/include/unistd.h:1170,
from third_party/grpc/src/core/support/log_linux.c:55:
/usr/include/i386-linux-gnu/bits/unistd_ext.h:34:16: note: previous declaration of 'gettid' was here
34 | extern __pid_t gettid (void) __THROW;
| ^~~~~~
Target //src:bazel_nojdk failed to build
INFO: Elapsed time: 323.148s, Critical Path: 30.32s, Remote (0.00% of the time): [queue: 0.00%, setup: 0.00%, process: 0.00%]
INFO: 346 processes: 346 local.
FAILED: Build did NOT complete successfully
ERROR: Could not build Bazel
Please help me get rid of this error or suggest a different way for me to install TensorFlow on a 32 bit machine.