There doesn't appear to be a comprehensive guide to compiling the exchange. After standing up an ubuntu machine with the GNU basics (including gcc), I try the following to get all the compilation dependencies
root@058f87446885:/# cd bitcoin/depends
root@058f87446885:/bitcoin/depends# make
Extracting native_b2...
/bitcoin/depends/sources/boost_1_71_0.tar.bz2: OK
Preprocessing native_b2...
Configuring native_b2...
Building native_b2...
B2_TOOLSET is gcc, but the 'gcc' command cannot be executed.
Make sure 'gcc' is in PATH, or use a different toolset.
make: *** [funcs.mk:275: /bitcoin/depends/work/build/x86_64-pc-linux-gnu/native_b2/1_71_0-f8a2e703c63/tools/build/src/engine/.stamp_built] Error 1
But clearly gcc is available and on the path:
root@058f87446885:/bitcoin/depends# which gcc /usr/bin/gcc root@058f87446885:/bitcoin/depends# gcc gcc: fatal error: no input files compilation terminated.
I doubt this is a bug, just a symptom of a lack of a full document describing getting started developing with the exchange.