Getting error when trying to install clang

build-env

#1

So part of my environment setup is to sudo apt-get install clang-3.8.
When I do this, I get the following error:

E: Setting in Stop via TCSAFLUSH for stdin failed! - tcsetattr (5: Input/output error)
E: Setting in Stop via TCSAFLUSH for stdin failed! - tcsetattr (5: Input/output error)

This seems like a bug in the environment as I have no idea where tcsetattr would even be getting called.
Link to the full build can be found here

Anyone have any suggestions?