Im afraid that's because OS2 sees only 1MB of mem on this machine.
Also a exceptq log in var about CC1PLUS
The crash happens when configure tests for precompiled header support, expected.
I take it you mean 1GB of ram. You still have the swap file. When I was building earlier versions of Firefox, around 10 IIRC, needed VIRTUALADDRESSLIMIT=3072 or linking xul.dll would gracefully die with an out of spill memory error. Then I had a simm die leaving me with 1.5 GBs of memory, I could still compile as long as not much else was running but if something like SM was running, the system would die with a swap file full error. There was lots of room for the swap file, but it is limited to 2GB.
Basically without enough ram, it should gracefully die rather then issue weird errors. A long time back I had a 486, OS/2 was trapping all the time so I moved to Linux, which at the time meant recompiling the kernel for your hardware, as no module support. Took a week as it kept dying with bus errors when trying to compile the kernel. Eventually discovered the computer had a broken 16 bit DMA thingy and things were stable if I didn't use 16 bit DMA. Just an example of broken hardware screwing up compilation.
Currently here, I'm still having problems with detecting libvpx and even after hacking qt5\qt5\webengine\src\buildtools\configure.json to detect libvpx, it died in webrtc trying to compile the intree libvpx.
I also get hard lockups, perhaps caused by my Snap system having to high of a VIRTUALADDRESSLIMIT. I think I'll wait for the next beta, do a new install and retry then.