During my installation of torch on Ubuntu 17.04, I ran into a few problems.
The first report after trying to compile torch was something similar to
https://stackoverflow.com/questions/6622454/cuda-incompatible-with-my-gcc-version
giving me something like
error -- unsupported GNU version! gcc >5 are not supported!
After I fixed this I got another error similar to here:
Gcc error: gcc: error trying to exec 'cc1': execvp: No such file or directory
Want to also add here that this is in conjunction with my cuda setup.