We also used the '-no-ipo', '-O0' flags separately and together, but we got the same errors.

1. Ideally, we would like to have the code compiled with the Intel compilers and Intel MPI whilst allowing any potential optimization to proceed.
2. In case that is not possible, please let us know how to turn off the optimization for that particular step since it ignores both flags and yields the error.

Several aspects of the configure command seem to me to be not what you really want. In particular --without-nrniv removes almost every aspect of NEURON that is meaningful. I don't remember ever using that
option and I should probably remove it. The actual error involving ctng.o seems to suggest a cython problem in dealing with share/lib/python/neuron/rxd/geometry3d/ctng.pyx and I would recommend seeing if you
can successfully build without the rx3d module. I.e add --disable-rx3d to the configure line. Also, on that machine, if you have trouble executing the setup.py portion of the install, I would also add the
option --disable-pysetup

NEURON has been built on that machine. I will ask the person who developed the working configure command if he has any further advice.

I do not use Interviews or any associated X system, hence, --without-iv --without-nrnoc-x11 --without-x.
And everything else is to ensure that I am using the Intel compilers and IntelMPI. And the flags are the ones suggested by the Stampede KNL guide.