nvcc fatal : The version ('80000') of the host compiler ('Apple clang') is not supported

1,251 views
Skip to first unread message

Mufei Li

unread,
Sep 25, 2016, 5:56:01 PM9/25/16
to torch7
Hello, 

I met this problem in installing torch with 

./install.sh

nvcc fatal   : The version ('80000') of the host compiler ('Apple clang') is not supported

CMake Error at THC_generated_THCBlas.cu.o.cmake:207 (message):

  Error generating

  /Users/MufeiLi/torch/extra/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCBlas.cu.o



nvcc fatal   : The version ('80000') of the host compiler ('Apple clang') is not supported

nvcc fatal   : The veCrMsaikoen  E(r'r8o0r0 0a0t' )T HoCf_ gtehnee rhaotsetd _cToHmCpSitloerra g(e'.Acpup.loe. ccmlaakneg:'2)0 7i s( mneosts asguep)p:o

r t eEdr

ror generating

  /Users/MufeiLi/torch/extra/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCStorage.cu.o



CMake Error at THC_generated_THCHalf.cu.o.cmake:207 (message):

  Error generating

  /Users/MufeiLi/torch/extra/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCHalf.cu.o



make[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCBlas.cu.o] Error 1

make[2]: *** Waiting for unfinished jobs....

make[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCHalf.cu.o] Error 1

make[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCStorage.cu.o] Error 1

nvcc fatal   : The version ('80000') of the host compiler ('Apple clang') is not supported

CMake Error at THC_generated_THCReduceApplyUtils.cu.o.cmake:207 (message):

  Error generating

  /Users/MufeiLi/torch/extra/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCReduceApplyUtils.cu.o



make[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCReduceApplyUtils.cu.o] Error 1

make[1]: *** [lib/THC/CMakeFiles/THC.dir/all] Error 2

make: *** [all] Error 2


Error: Build error: Failed building.


I'm wondering if it is due to that nvcc does not support the latest version of Xcode and if you know how to fix it. Thanks. 

soumith

unread,
Sep 25, 2016, 7:00:14 PM9/25/16
to torch7 on behalf of Mufei Li
I'm wondering if it is due to that nvcc does not support the latest version of Xcode and if you know how to fix it. Thanks. 

This is exactly the reason.
One way to fix it is to downgrad your XCode.

--
You received this message because you are subscribed to the Google Groups "torch7" group.
To unsubscribe from this group and stop receiving emails from it, send an email to torch7+unsubscribe@googlegroups.com.
To post to this group, send email to tor...@googlegroups.com.
Visit this group at https://groups.google.com/group/torch7.
For more options, visit https://groups.google.com/d/optout.

Andre Esteva

unread,
Oct 27, 2016, 1:55:53 AM10/27/16
to torch7
Which version should we downgrade to? I'm getting the same issue.


On Sunday, September 25, 2016 at 4:00:14 PM UTC-7, smth chntla wrote:
I'm wondering if it is due to that nvcc does not support the latest version of Xcode and if you know how to fix it. Thanks. 

This is exactly the reason.
One way to fix it is to downgrad your XCode.
To unsubscribe from this group and stop receiving emails from it, send an email to torch7+un...@googlegroups.com.

soumith

unread,
Oct 27, 2016, 2:11:11 AM10/27/16
to torch7 on behalf of Andre Esteva
This is what NVIDIA says on this page: https://developer.nvidia.com/cuda-downloads

Xcode 8 is not currently supported with the CUDA Toolkit 8 compiler for Mac. We are working on providing an update shortly. Until then, the developers should use Xcode 7.x with the CUDA Toolkit 8 for compiling their code on Mac macOS 10.12. Alternatively, they can run applications compiled with older versions of CUDA Toolkit and Mac/Xcode on Mac macOS 10.12.

On Thu, Oct 27, 2016 at 1:55 AM, Andre Esteva via torch7 <torch7+APn2wQeEC3Buc9ha7AuUZA9fs...@googlegroups.com> wrote:
Which version should we downgrade to? I'm getting the same issue.


On Sunday, September 25, 2016 at 4:00:14 PM UTC-7, smth chntla wrote:
I'm wondering if it is due to that nvcc does not support the latest version of Xcode and if you know how to fix it. Thanks. 

This is exactly the reason.
One way to fix it is to downgrad your XCode.
To unsubscribe from this group and stop receiving emails from it, send an email to torch7+unsubscribe@googlegroups.com.

Quinten De Wilde

unread,
May 23, 2017, 9:07:16 AM5/23/17
to torch7
And what do I do with this reaction when installing dependencies.

Error: Your Xcode (7.3) is too outdated.

Please update to Xcode 8.3.2 (or delete it). 
Reply all
Reply to author
Forward
0 new messages