The semiconductor shortage is affecting firms from carmakers to smartphone manufacturers.