Comments (5)
Thanks for the report. I haven't had a chance to upgrade to El Capitan yet. I'm travelling the next few days, but will try and have a look soon.
In the meantime you could try copying the cuda.buildinfo.generated
file to cuda.buildinfo
and see what extra flags are needed to get it to compile.
from cuda.
@tmcdonell thanks, I will try. I am not sure what's going on here. __WATCHOS_PROHIBITED is a macro defined in Availability.h but it doesn't seem to get expanded if I do gcc -E -I. -I/usr/local/cuda/include ./Foreign/CUDA/Runtime/Exec.chs.h
.
...
ahhh
cbits.h
does some patching around OSX macros, most likely it doesn't handle the new macros for WatchOS
/*
* We need to work around some shortcomings in the C parser of c2hs by disabling advanced attributes etc on Apple platforms.
*/
#ifdef __APPLE__
#define _ANSI_SOURCE
#define __AVAILABILITY__
#define __OSX_AVAILABLE_STARTING(_mac, _iphone)
#define __OSX_AVAILABLE_BUT_DEPRECATED(_macIntro, _macDep, _iphoneIntro, _iphoneDep)
#define __OSX_AVAILABLE_BUT_DEPRECATED_MSG(_osxIntro, _osxDep, _iosIntro, _iosDep, _msg)
#endif
preprocessing seems to work removing that block entirely but building still fails. I'll report back.
EDIT: it builds correctly on El Captain without that block. Perhaps now c2hs has removed the shortcomings mentioned in the comment above?
from cuda.
yep, according to haskell/c2hs#85 the workaround is not needed anymore
from cuda.
Ah, great! I have removed that block so hopefully all is good now. I haven't tested on El Capitan but it at least works on Yosemite.
from cuda.
👍
from cuda.
Related Issues (20)
- Build fails with library profiling HOT 4
- Compilation fails for CUDA-8 [was: ghc 7.10.3 fail to install] HOT 2
- On Windows, the Cabal installer is looking in the wrong place. HOT 5
- Problem with module `Foreign.CUDA.Path' when installing on Windows 8.1 with CUDA-8.0 HOT 38
- Issues with dynamic parallelism? HOT 3
- GHCi only works with Stack with a custom cabal.buildinfo file. HOT 1
- Structure of nvidia-cuda-toolkit seems to have changed in Ubuntu 18.04 HOT 3
- Driver failure on AWS p3.2xlarge instance HOT 18
- Build failure in cuda-0.10.0.0 HOT 3
- Won't compile on Arch Linux HOT 3
- Ubuntu 16.04 + nvidia-cuda-toolkit "Found CUDA toolkit at: /usr" but 'Could not find path: ["/usr/lib64"]' HOT 7
- package revision to restrict Cabal to <3.0 HOT 1
- Compile issues for Cabal 2? HOT 2
- Cannot find a definition for `cuDevicePrimaryCtxRelease' in the header file. HOT 3
- CUDA 11.3 compatibility HOT 4
- rpath linking to cuda toolkit HOT 2
- This Library isn't Compatible with Windows HOT 4
- Porting to CUDA 12.2. HOT 1
- Compilation broken on windows
- Unknown CUDA device compute capability: 8.7 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cuda.