Nvcc fatal : The version ('40001') of the host compiler ('clang') is not supported

I try to build one of the samples using

make -C 0_Simple/vectorAdd

I get the following output:

/Developer/NVIDIA/CUDA-9.0/bin/nvcc -ccbin clang++ -I…/…/common/inc -m64 -Xcompiler -arch -Xcompiler x86_64 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_60,code=compute_60 -o vectorAdd.o -c vectorAdd.cu
nvcc fatal : The version (‘40001’) of the host compiler (‘clang’) is not supported
make: *** [vectorAdd.o] Error 1

I have OSX 10.12.6 (sierra)

I installed XCode 9.2 (highest supported on sierra) and have set it using sudo xcode-select -s /Applications/Xcode_9.2.app/Contents/Developer.
I also installed the command line tools.

This is for CUDA-9.0 since any higher version requires OSX 10.13 or higher.

please help.

I installed xcode 8.3.3 now but I still can’t get it working.
Too bad that this forum is not active…