Darknet: nvcc fatal : Host compiler targets unsupported OS.

Created on 13 Jan 2018  Β·  1Comment  Β·  Source: pjreddie/darknet

I use window, so I tried to install darknet using Cygwin.
But I had problem like this.

$ make
nvcc -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_50,code=[sm_50,compute_50] -gencode arch=compute_52,code=[sm_52,compute_52] -Iinclude/ -Isrc/ -DGPU -I/usr/local/cuda/include/ --compiler-options "-Wall -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -DGPU" -c ./src/convolutional_kernels.cu -o obj/convolutional_kernels.o
x86β–’β–’ Microsoft (R) C/C++ β–’β–’β–’β–’Θ­ β–’β–’β–’β–’β–’Ο·β–’ β–’β–’β–’β–’ 19.00.24215.1
Copyright (c) Microsoft Corporation. All rights reserved.

tmpxft_00000930_00000000-1.cpp
nvcc fatal : Host compiler targets unsupported OS.
make: * [Makefile:88: obj/convolutional_kernels.o] error 1

Because I use Cygwin, I copied C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin to bin in Cygwin folder.

what should I have to do?
Thanks for kind answer.

Environment : VS2015, CUDA8.0, cuDNN6.0, Python3.6

Most helpful comment

Did you set nvcc correctly in Makefile? Something like

NVCC=/usr/local/cuda-9.0/bin/nvcc

>All comments

Did you set nvcc correctly in Makefile? Something like

NVCC=/usr/local/cuda-9.0/bin/nvcc

Was this page helpful?
0 / 5 - 0 ratings