techknowlogick / xgo

Go CGO cross compiler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

clang / SDK mismatch?

leaanthony opened this issue · comments

I'm getting these errors when cross compiling to darwin using the latest 1.16 docker image:

/osxcross/target/bin/../SDK/MacOSX11.1.sdk/usr/include/os/availability.h:105:33: note: expanded from macro 'API_UNAVAILABLE_END'
    #define API_UNAVAILABLE_END _Pragma("clang attribute pop")

I'd read it could be that the version of clang being used is too old to support new pragmas. Any ideas?