Since #32655, the sqlite package has relied on a native C compiler being incidentally available on the system under the default names. However, this is not always the case. For example, on Ubuntu 24.04:
0$ gmake -C depends sqlite CC=gcc-14 CXX=g++-14
1gmake: Entering directory '/bitcoin/depends'
2Configuring sqlite...
3No installed jimsh or tclsh, building local bootstrap jimsh0
4No working C compiler found. Tried cc and gcc.
5gmake: *** [funcs.mk:344: /bitcoin/depends/x86_64-pc-linux-gnu/.sqlite_stamp_configured] Error 1
6gmake: Leaving directory '/bitcoin/depends'
Adding the tcl package as an explicit build dependency, as is done in the Guix script, avoids this behaviour and improves robustness.