Compiling Graphtool 2.26 on Ubuntu 16.04 32-bit fails with memory error

Hi,
I am trying to compile GT v2.26 on 32-bit image of Ubuntu 16.04. Everything
works fine until somewhere in the middle of the process I get the following
error, indicating the machine is out of virtual memory.
I have a 4gig swap file and a 32 GB or memory so it's highly unlikely that
this is not enough.

I have successfully compiled GT multiple time on a 64-bit machine, so I was
wondering if there are any compatibility issues with 32-bit architectures.

Thanks in advance,
Vaggelis

Making all in inference
make[4]: Entering directory
'/media/sf_shared/graph-tool-2.26/src/graph/inference'
  CXX layers/graph_blockmodel_layers_imp.lo
In file included from layers/graph_blockmodel_layers_imp.cc:25:0:
layers/../blockmodel/graph_blockmodel.hh: In lambda function:
layers/../blockmodel/graph_blockmodel.hh:300:29: warning: attributes at the
beginning of statement are ignored [-Wattributes]
                             [[gnu::fallthrough]];
                             ^
layers/../blockmodel/graph_blockmodel.hh: In member function ‘void
graph_tool::BlockState<Ts>::remove_vertices(Vlist&)’:
layers/../blockmodel/graph_blockmodel.hh:666:21: warning: attributes at the
beginning of statement are ignored [-Wattributes]
                     [[gnu::fallthrough]];
                     ^
layers/../blockmodel/graph_blockmodel.hh: In member function ‘void
graph_tool::BlockState<Ts>::add_vertices(Vlist&, Blist&)’:
layers/../blockmodel/graph_blockmodel.hh:759:21: warning: attributes at the
beginning of statement are ignored [-Wattributes]
                     [[gnu::fallthrough]];
                     ^
virtual memory exhausted: Cannot allocate memory
Makefile:793: recipe for target 'layers/graph_blockmodel_layers_imp.lo'
failed
make[4]: *** [layers/graph_blockmodel_layers_imp.lo] Error 1
make[4]: Leaving directory
'/media/sf_shared/graph-tool-2.26/src/graph/inference'
Makefile:751: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/media/sf_shared/graph-tool-2.26/src/graph'
Makefile:422: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/media/sf_shared/graph-tool-2.26/src'
Makefile:603: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/media/sf_shared/graph-tool-2.26'
Makefile:490: recipe for target 'all' failed
make: *** [all] Error 2

In a 32-bit system no single process can use more than 4GB of RAM, since
this is the maximum that can be addressed with a 32-bit pointer (2^32 = 4
GB). It does not matter how much total memory you have.