grendizerufo / nvidia-texture-tools

Automatically exported from code.google.com/p/nvidia-texture-tools
Other
0 stars 0 forks source link

Make fails on SL+CUDA #101

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
On Snow Leopard, building fails if CUDA is installed.

The output is:
[ 65%] Generating CompressKernel.gen.c
/usr/include/stdlib.h(272): error: expected an expression

/usr/include/stdlib.h(272): error: expression must have (pointer-to-) function 
type

/usr/include/stdlib.h(272): error: type name is not allowed

/usr/include/stdlib.h(274): error: expected a ")"

/usr/include/stdlib.h(301): error: expected a ")"

/usr/include/stdlib.h(307): error: expected a ")"

/usr/include/stdlib.h(313): error: expected a ")"

/usr/include/stdlib.h(319): error: expected a ")"

8 errors detected in the compilation of 
"/tmp/tmpxft_000133f9_00000000-4_CompressKernel.cpp1.ii".

The corresponding line is a declaration of a function with a block parameter:
int  atexit_b(void (^)(void));

Original issue reported on code.google.com by johannes...@googlemail.com on 1 Aug 2009 at 3:24

GoogleCodeExporter commented 9 years ago
Hmm... I believe that the CUDA runtime does support Snow Leopard yet. I guess 
that ideally I should disable CUDA automatically on that platform. However, I 
think do not have any problems compiling on SL, only running the resulting 
files.

Original comment by cast...@gmail.com on 22 Jul 2010 at 2:41

GoogleCodeExporter commented 9 years ago
I'm now running on Snow Leopard and cannot reproduce the problem with the 
latest CUDA version. Closing. 

Original comment by cast...@gmail.com on 3 Nov 2010 at 6:39