compiling samples on macos sierra failing with obscure error

ehadmins-MacBook-Pro-4:samples schhabra$ make -C 0_Simple/vectorAdd
/Developer/NVIDIA/CUDA-8.0/bin/nvcc -ccbin clang++ -I…/…/common/inc -m64 -Xcompiler -arch -Xcompiler x86_64 -gencode arch=compute_20,code=sm_20 -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 warning : The ‘compute_20’, ‘sm_20’, and ‘sm_21’ architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
/usr/include/stdio.h(133): error: expected a “)”

/usr/include/stdio.h(134): error: expected a “)”

/usr/include/stdio.h(134): error: “_Nullable” has already been declared in the current scope

/usr/include/stdio.h(135): error: expected a “)”

/usr/include/stdio.h(135): error: “_Nullable” has already been declared in the current scope

/usr/include/stdio.h(136): error: expected a “)”

/usr/include/stdio.h(136): error: “_Nullable” has already been declared in the current scope

/usr/include/stdio.h(477): error: duplicate parameter name

/usr/include/stdio.h(478): error: duplicate parameter name

/usr/include/stdio.h(479): error: duplicate parameter name

/usr/include/stdlib.h(139): error: expected a “)”

/usr/include/stdlib.h(158): error: expected a “)”

/usr/include/stdlib.h(294): error: expected a “)”

/usr/include/stdlib.h(300): error: expected a “)”

/usr/include/stdlib.h(306): error: expected a “)”

/usr/include/stdlib.h(312): error: expected a “)”

/usr/include/stdlib.h(318): error: expected a “)”

/usr/include/pthread/qos.h(113): error: expected a “)”

/usr/include/pthread/qos.h(185): error: expected a “)”

/usr/include/pthread.h(216): error: duplicate parameter name

/usr/include/pthread.h(217): error: duplicate parameter name

/usr/include/pthread.h(243): error: expected a “)”

/usr/include/pthread.h(247): error: expected a “)”

/usr/include/pthread.h(326): error: expected a “)”

/usr/include/pthread.h(340): error: duplicate parameter name

/usr/include/pthread.h(350): error: duplicate parameter name

/usr/include/pthread.h(353): error: expected a “;”

/usr/include/pthread.h(356): error: expected a “)”

/usr/include/pthread.h(493): error: duplicate parameter name

/usr/include/pthread.h(529): error: expected a “)”

/usr/include/pthread.h(540): error: variable “_Nullable” is not a type name

/usr/include/pthread.h(540): error: “pthread_t” has already been declared in the current scope

/usr/include/pthread.h(540): error: expected a “;”

/usr/include/pthread.h(543): error: duplicate parameter name

/Applications/Xcode 3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/…/include/c++/v1/mutex(262): error: variable “pthread_t” is not a type name

35 errors detected in the compilation of “/var/folders/kq/dt272c_j2ps7hz0t_1bq5s2r0000gp/T//tmpxft_00001a35_00000000-19_vectorAdd.compute_60.cpp1.ii”.
make: *** [vectorAdd.o] Error 2

These kind of symptoms are often observed when using unsupported tool chains. Supported tool chains are listed in the installation guides, in the case of OS X: [url]http://docs.nvidia.com/cuda/cuda-installation-guide-mac-os-x/index.html#axzz4NUCU4zNJ[/url]. Double-check that you are using a supported tool chain.