Compilation Error In "extension-cpp" Demo

I am trying to compile the demo for extensions in PyTorch(https://github.com/pytorch/extension-cpp/) and I am getting some weird compilation errors.

I am using Torch version 1.0.0 and Python 3.6. I cloned the demo on my Linux machine and ran “CC=gcc-5 CXX=g+±5 python setup.py install” in the cpu directory to compile. Then I get a bunch of errors that look like this:

error: stray ‘\1’ in program

I tried re-cloning and it still gave me the same issue. I tried cloning on my Mac and the cpu code compiled fine with this command: “CC=clang CXX=clang++ python setup.py install” (with some minor Mac related changes to setup.py). Does anyone have any idea what the problem could be?

Thanks,
Patrick

Edit : Also I have tried compiling small test programs so I think my compiler is working fine.