Found while attempting to migrate a python3 tool from the Trusty job grid to the new Stretch job grid. In addition the compilation process hangs for a very long time while attempting the build.
$ time ./venv/bin/pip install -v -r src/keystone_browser/requirements.txt 2>&1 | tee ~/pip.log ... (lots of pip doing pip stuff) ... x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/mnt/nfs/labstore-secondary-tools-project/trusty-deprecation/www/python/venv/include -I/usr/include/python3.5m -c ext/_yaml.c -o build/temp.linux-x86_64-3.5/ext/_yaml.o ... (lots of -Wall warnings) ... x86_64-linux-gnu-gcc: internal compiler error: Killed (program cc1) Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions. error: command 'x86_64-linux-gnu-gcc' failed with exit status 4 Running setup.py install for PyYAML: finished with status 'error' ... pip._internal.exceptions.InstallationError: Command "/mnt/nfs/labstore-secondary-tools-project/trusty-deprecation/www/python/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-ldj7z_g9/PyYAML/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-awh2o4lw/install-record.txt --single-version-externally-managed --compile --install-headers /mnt/nfs/labstore-secondary-tools-project/trusty-deprecation/www/python/venv/include/site/python3.5/PyYAML" failed with error code 1 in /tmp/pip-install-ldj7z_g9/PyYAML/ real 186m53.479s user 0m24.276s sys 17m28.272s