Closed
Description
Upgrading from c2hs-1.17.2 to c2hs-1.18.2, I now get this error on Mac OS X:
$ cabal build --verbose
« snip »
/Users/trevor/.cabal/bin/c2hs --cpp=/usr/local/cuda/bin/nvcc --cppopts=-E --cppopts=-arch=sm_20 --cppopts=-m64 --cppopts=-U__BLOCKS__ --include=dist/build --cppopts=-D__GLASGOW_HASKELL__=708 --cppopts=-I. --cppopts=-I/usr/local/homebrew/include --cppopts=-I/usr/local/homebrew/include --cppopts=-I/usr/local/cuda/include --output-dir=dist/build --output=Foreign/CUDA/Analysis/Device.hs ./Foreign/CUDA/Analysis/Device.chs
In file included from <built-in>:169:
<command line>:5:29: error: expected comma in macro parameter list
#define C2HS_MIN_VERSION(mj 1
^
<command line>:7:11: warning: ISO C99 requires whitespace after the macro name [-Wc99-extensions]
#define rv) (mj<=0&&mn<=18&&rv<=2)
^
1 warning and 1 error generated.
c2hs: Error during preprocessing custom header file
From submitted issue, on linux (flavour unknown at this time):
Preprocessing library cuda-0.6.5.0...
<command-line>: error: "1" may not appear in macro parameter list
<command-line>: warning: missing whitespace after the macro name
c2hs: Error during preprocessing custom header file
I'm not sure where the C2HS_MIN_VERSION
macro is being introduced, so not sure how to diagnose this.