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

Related issues

bujingdexin picture bujingdexin  路  3Comments

spaul13 picture spaul13  路  3Comments

ryuzakinho picture ryuzakinho  路  4Comments

gpsmit picture gpsmit  路  3Comments

groot-1313 picture groot-1313  路  4Comments