Coder Social home page Coder Social logo

Comments (5)

tmcdonell avatar tmcdonell commented on August 24, 2024

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.

andreabedini avatar andreabedini commented on August 24, 2024

@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.

andreabedini avatar andreabedini commented on August 24, 2024

yep, according to haskell/c2hs#85 the workaround is not needed anymore

from cuda.

tmcdonell avatar tmcdonell commented on August 24, 2024

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.

andreabedini avatar andreabedini commented on August 24, 2024

👍

from cuda.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.