Arve,

You'll notice in the code that that is wrapped with:

#if defined(__MACOSX_CORE__)
#include <AvailabilityMacros.h>
#endif

In emscripten, __MACOSX_CORE__ shouldn't be defined.

We check to see what emcc / em++ is defining, with this:

  emcc -dM -E -x c /dev/null

It isn't defining __MACOSX_CORE__ ... so something else in your build
environment must be. (It is worth noting that clang doesn't set that
either, so this is something coming from ChucK probably.

Doing a quick search shows that the Xcode project is the one setting that
define ... are you still trying to build with Xcode?

(And it requires that one of the right platforms be set up and it doesn't
look like someone has done that yet for emscripten, so I assume that's your
end goal here?)

 - Bruce



On Tue, Sep 2, 2014 at 3:42 AM, Arve Knudsen <[email protected]> wrote:

> Hi
>
> I'm trying to port the ChucK C++ project (https://github.com/ccrma/chuck)
> to JS with Emscripten (1.22.0), but after substituting emcc for clang and
> clang++, building on OS X fails due to AvailabilityMacros.h not being found:
>
>     ./chuck_dl.h:661:10: fatal error: 'AvailabilityMacros.h' file not found
>
> Is this a known problem? From googling, it appears to be an OS X system
> header.
>
> If I only substitute the C compiler, the build breaks due to another issue:
>
>     lo/message.c:160:11: error: cannot compile this aggregate va_arg
> expression yet
>                 tt = va_arg(ap, lo_timetag);
>
> Is there any solution at this point for this last problem?
>
> Thanks,
> Arve
>
> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to