I encountered the following build error in mac os 10.12.5:
Any ideas?
thanks
# github.com/openai/go-vncdriver/vendor/github.com/pixiv/go-libjpeg/jpeg
ld: warning: option -s is obsolete and being ignored
# github.com/openai/go-vncdriver/vendor/github.com/pixiv/go-libjpeg/jpeg
ld: warning: option -s is obsolete and being ignored
# github.com/openai/go-vncdriver/vendor/github.com/go-gl/glfw/v3.2/glfw
In file included from .build/src/github.com/openai/go-vncdriver/vendor/github.com/go-gl/glfw/v3.2/glfw/native_darwin.go:7:
In file included from ./glfw/include/GLFW/glfw3native.h:90:
In file included from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:23:
In file included from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:60:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:13:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:15:
In file included from /usr/include/dispatch/dispatch.h:69:
/usr/include/dispatch/object.h:51:22: error: a parameter list without types is only allowed in a function definition
OS_OBJECT_DECL_CLASS(dispatch_object);
^
/usr/include/dispatch/object.h:60:27: error: unknown type name 'dispatch_object_t'; did you mean 'dispatch_time_t'?
_dispatch_object_validate(dispatch_object_t object) {
^
/usr/include/dispatch/time.h:67:18: note: 'dispatch_time_t' declared here
typedef uint64_t dispatch_time_t;
^
In file included from .build/src/github.com/openai/go-vncdriver/vendor/github.com/go-gl/glfw/v3.2/glfw/native_darwin.go:7:
In file included from ./glfw/include/GLFW/glfw3native.h:90:
In file included from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:23:
In file included from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:60:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:13:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:15:
In file included from /usr/include/dispatch/dispatch.h:69:
/usr/include/dispatch/object.h:208:17: error: unknown type name 'dispatch_object_t'; did you mean 'dispatch_block_t'?
dispatch_retain(dispatch_object_t object);
^
/usr/include/dispatch/object.h:185:16: note: 'dispatch_block_t' declared here
typedef void (^dispatch_block_t)(void);
^
/usr/include/dispatch/object.h:236:18: error: unknown type name 'dispatch_object_t'; did you mean 'dispatch_block_t'?
dispatch_release(dispatch_object_t object);
^
/usr/include/dispatch/object.h:185:16: note: 'dispatch_block_t' declared here
typedef void (^dispatch_block_t)(void);
^
/usr/include/dispatch/object.h:260:22: error: unknown type name 'dispatch_object_t'; did you mean 'dispatch_block_t'?
dispatch_get_context(dispatch_object_t object);
^
/usr/include/dispatch/object.h:185:16: note: 'dispatch_block_t' declared here
typedef void (^dispatch_block_t)(void);
^
/usr/include/dispatch/object.h:278:22: error: unknown type name 'dispatch_object_t'; did you mean 'dispatch_block_t'?
dispatch_set_context(dispatch_object_t object, void *_Nullable context);
^
/usr/include/dispatch/object.h:185:16: note: 'dispatch_block_t' declared here
typedef void (^dispatch_block_t)(void);
^
/usr/include/dispatch/object.h:304:26: error: unknown type name 'dispatch_object_t'; did you mean 'dispatch_block_t'?
dispatch_set_finalizer_f(dispatch_object_t object,
^
/usr/include/dispatch/object.h:185:16: note: 'dispatch_block_t' declared here
typedef void (^dispatch_block_t)(void);
^
/usr/include/dispatch/object.h:333:19: error: unknown type name 'dispatch_object_t'; did you mean 'dispatch_block_t'?
dispatch_activate(dispatch_object_t object);
^
/usr/include/dispatch/object.h:185:16: note: 'dispatch_block_t' declared here
typedef void (^dispatch_block_t)(void);
^
/usr/include/dispatch/object.h:356:18: error: unknown type name 'dispatch_object_t'; did you mean 'dispatch_block_t'?
dispatch_suspend(dispatch_object_t object);
^
/usr/include/dispatch/object.h:185:16: note: 'dispatch_block_t' declared here
typedef void (^dispatch_block_t)(void);
^
/usr/include/dispatch/object.h:385:17: error: unknown type name 'dispatch_object_t'; did you mean 'dispatch_block_t'?
dispatch_resume(dispatch_object_t object);
^
/usr/include/dispatch/object.h:185:16: note: 'dispatch_block_t' declared here
typedef void (^dispatch_block_t)(void);
^
/usr/include/dispatch/object.h:451:31: error: unknown type name 'dispatch_object_t'; did you mean 'dispatch_block_t'?
dispatch_notify(void *object, dispatch_object_t queue,
^
/usr/include/dispatch/object.h:185:16: note: 'dispatch_block_t' declared here
typedef void (^dispatch_block_t)(void);
^
/usr/include/dispatch/object.h:548:16: error: unknown type name 'dispatch_object_t'; did you mean 'dispatch_block_t'?
dispatch_debug(dispatch_object_t object, const char *message, ...);
^
/usr/include/dispatch/object.h:185:16: note: 'dispatch_block_t' declared here
typedef void (^dispatch_block_t)(void);
^
/usr/include/dispatch/object.h:554:17: error: unknown type name 'dispatch_object_t'; did you mean 'dispatch_block_t'?
dispatch_debugv(dispatch_object_t object, const char *message, va_list ap);
^
/usr/include/dispatch/object.h:185:16: note: 'dispatch_block_t' declared here
typedef void (^dispatch_block_t)(void);
^
In file included from .build/src/github.com/openai/go-vncdriver/vendor/github.com/go-gl/glfw/v3.2/glfw/native_darwin.go:7:
In file included from ./glfw/include/GLFW/glfw3native.h:90:
In file included from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:23:
In file included from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:60:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:13:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:15:
In file included from /usr/include/dispatch/dispatch.h:70:
/usr/include/dispatch/queue.h:73:1: error: cannot find protocol declaration for 'OS_dispatch_object'
DISPATCH_DECL(dispatch_queue);
^
/usr/include/dispatch/object.h:56:29: note: expanded from macro 'DISPATCH_DECL'
#define DISPATCH_DECL(name) OS_OBJECT_DECL_SUBCLASS(name, dispatch_object)
^
/usr/local/include/os/object.h:88:30: note: expanded from macro 'OS_OBJECT_DECL_SUBCLASS'
OS_OBJECT_DECL_IMPL(name, <OS_OBJECT_CLASS(super)>)
^
/usr/local/include/os/object.h:80:31: note: expanded from macro 'OS_OBJECT_CLASS'
#define OS_OBJECT_CLASS(name) OS_##name
^
<scratch space>:40:1: note: expanded from here
OS_dispatch_object
^
In file included from .build/src/github.com/openai/go-vncdriver/vendor/github.com/go-gl/glfw/v3.2/glfw/native_darwin.go:7:
In file included from ./glfw/include/GLFW/glfw3native.h:90:
In file included from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:23:
In file included from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:60:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:13:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:15:
In file included from /usr/include/dispatch/dispatch.h:70:
/usr/include/dispatch/queue.h:429:1: error: cannot find protocol declaration for 'OS_dispatch_object'; did you mean 'OS_dispatch_queue'?
DISPATCH_DECL(dispatch_queue_attr);
^
/usr/include/dispatch/object.h:56:29: note: expanded from macro 'DISPATCH_DECL'
#define DISPATCH_DECL(name) OS_OBJECT_DECL_SUBCLASS(name, dispatch_object)
^
/usr/local/include/os/object.h:88:30: note: expanded from macro 'OS_OBJECT_DECL_SUBCLASS'
OS_OBJECT_DECL_IMPL(name, <OS_OBJECT_CLASS(super)>)
^
/usr/local/include/os/object.h:80:31: note: expanded from macro 'OS_OBJECT_CLASS'
#define OS_OBJECT_CLASS(name) OS_##name
^
<scratch space>:41:1: note: expanded from here
OS_dispatch_object
^
/usr/include/dispatch/queue.h:73:1: note: 'OS_dispatch_queue' declared here
DISPATCH_DECL(dispatch_queue);
^
/usr/include/dispatch/object.h:56:29: note: expanded from macro 'DISPATCH_DECL'
#define DISPATCH_DECL(name) OS_OBJECT_DECL_SUBCLASS(name, dispatch_object)
^
/usr/local/include/os/object.h:88:3: note: expanded from macro 'OS_OBJECT_DECL_SUBCLASS'
OS_OBJECT_DECL_IMPL(name, <OS_OBJECT_CLASS(super)>)
^
/usr/local/include/os/object.h:82:13: note: expanded from macro 'OS_OBJECT_DECL_IMPL'
@protocol OS_OBJECT_CLASS(name) __VA_ARGS__ \
^
/usr/local/include/os/object.h:80:31: note: expanded from macro 'OS_OBJECT_CLASS'
#define OS_OBJECT_CLASS(name) OS_##name
^
<scratch space>:41:1: note: expanded from here
OS_dispatch_queue
^
In file included from .build/src/github.com/openai/go-vncdriver/vendor/github.com/go-gl/glfw/v3.2/glfw/native_darwin.go:7:
In file included from ./glfw/include/GLFW/glfw3native.h:90:
In file included from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:23:
In file included from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:60:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:13:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:15:
In file included from /usr/include/dispatch/dispatch.h:70:
/usr/include/dispatch/queue.h:928:27: error: unknown type name 'dispatch_object_t'; did you mean 'dispatch_block_t'?
dispatch_set_target_queue(dispatch_object_t object,
^
/usr/include/dispatch/object.h:185:16: note: 'dispatch_block_t' declared here
typedef void (^dispatch_block_t)(void);
^
In file included from .build/src/github.com/openai/go-vncdriver/vendor/github.com/go-gl/glfw/v3.2/glfw/native_darwin.go:7:
In file included from ./glfw/include/GLFW/glfw3native.h:90:
In file included from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:23:
In file included from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:60:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:13:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:15:
In file included from /usr/include/dispatch/dispatch.h:72:
/usr/include/dispatch/source.h:57:1: error: cannot find protocol declaration for 'OS_dispatch_object'; did you mean 'OS_dispatch_queue'?
DISPATCH_SOURCE_DECL(dispatch_source);
^
/usr/include/dispatch/object.h:128:3: note: expanded from macro 'DISPATCH_SOURCE_DECL'
DISPATCH_DECL(name);
^
/usr/include/dispatch/object.h:56:29: note: expanded from macro 'DISPATCH_DECL'
#define DISPATCH_DECL(name) OS_OBJECT_DECL_SUBCLASS(name, dispatch_object)
^
/usr/local/include/os/object.h:88:30: note: expanded from macro 'OS_OBJECT_DECL_SUBCLASS'
OS_OBJECT_DECL_IMPL(name, <OS_OBJECT_CLASS(super)>)
^
/usr/local/include/os/object.h:80:31: note: expanded from macro 'OS_OBJECT_CLASS'
#define OS_OBJECT_CLASS(name) OS_##name
^
<scratch space>:41:1: note: expanded from here
OS_dispatch_object
^
/usr/include/dispatch/queue.h:73:1: note: 'OS_dispatch_queue' declared here
DISPATCH_DECL(dispatch_queue);
^
/usr/include/dispatch/object.h:56:29: note: expanded from macro 'DISPATCH_DECL'
#define DISPATCH_DECL(name) OS_OBJECT_DECL_SUBCLASS(name, dispatch_object)
^
/usr/local/include/os/object.h:88:3: note: expanded from macro 'OS_OBJECT_DECL_SUBCLASS'
OS_OBJECT_DECL_IMPL(name, <OS_OBJECT_CLASS(super)>)
^
/usr/local/include/os/object.h:82:13: note: expanded from macro 'OS_OBJECT_DECL_IMPL'
@protocol OS_OBJECT_CLASS(name) __VA_ARGS__ \
^
/usr/local/include/os/object.h:80:31: note: expanded from macro 'OS_OBJECT_CLASS'
#define OS_OBJECT_CLASS(name) OS_##name
^
<scratch space>:41:1: note: expanded from here
OS_dispatch_queue
^
In file included from .build/src/github.com/openai/go-vncdriver/vendor/github.com/go-gl/glfw/v3.2/glfw/native_darwin.go:7:
In file included from ./glfw/include/GLFW/glfw3native.h:90:
In file included from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:23:
In file included from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:60:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:13:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:15:
In file included from /usr/include/dispatch/dispatch.h:73:
/usr/include/dispatch/group.h:36:1: error: cannot find protocol declaration for 'OS_dispatch_object'
DISPATCH_DECL(dispatch_group);
^
/usr/include/dispatch/object.h:56:29: note: expanded from macro 'DISPATCH_DECL'
#define DISPATCH_DECL(name) OS_OBJECT_DECL_SUBCLASS(name, dispatch_object)
^
/usr/local/include/os/object.h:88:30: note: expanded from macro 'OS_OBJECT_DECL_SUBCLASS'
OS_OBJECT_DECL_IMPL(name, <OS_OBJECT_CLASS(super)>)
^
/usr/local/include/os/object.h:80:31: note: expanded from macro 'OS_OBJECT_CLASS'
#define OS_OBJECT_CLASS(name) OS_##name
^
<scratch space>:17:1: note: expanded from here
OS_dispatch_object
^
In file included from .build/src/github.com/openai/go-vncdriver/vendor/github.com/go-gl/glfw/v3.2/glfw/native_darwin.go:7:
In file included from ./glfw/include/GLFW/glfw3native.h:90:
In file included from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:23:
In file included from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:60:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:13:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:15:
In file included from /usr/include/dispatch/dispatch.h:74:
/usr/include/dispatch/semaphore.h:37:1: error: cannot find protocol declaration for 'OS_dispatch_object'
DISPATCH_DECL(dispatch_semaphore);
^
/usr/include/dispatch/object.h:56:29: note: expanded from macro 'DISPATCH_DECL'
#define DISPATCH_DECL(name) OS_OBJECT_DECL_SUBCLASS(name, dispatch_object)
^
/usr/local/include/os/object.h:88:30: note: expanded from macro 'OS_OBJECT_DECL_SUBCLASS'
OS_OBJECT_DECL_IMPL(name, <OS_OBJECT_CLASS(super)>)
^
/usr/local/include/os/object.h:80:31: note: expanded from macro 'OS_OBJECT_CLASS'
#define OS_OBJECT_CLASS(name) OS_##name
^
<scratch space>:18:1: note: expanded from here
OS_dispatch_object
^
In file included from .build/src/github.com/openai/go-vncdriver/vendor/github.com/go-gl/glfw/v3.2/glfw/native_darwin.go:7:
In file included from ./glfw/include/GLFW/glfw3native.h:90:
In file included from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:23:
In file included from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:60:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:13:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:15:
In file included from /usr/include/dispatch/dispatch.h:76:
/usr/include/dispatch/data.h:44:1: error: cannot find protocol declaration for 'OS_dispatch_object'
DISPATCH_DATA_DECL(dispatch_data);
^
/usr/include/dispatch/object.h:130:34: note: expanded from macro 'DISPATCH_DATA_DECL'
#define DISPATCH_DATA_DECL(name) DISPATCH_DECL(name)
^
/usr/include/dispatch/object.h:56:29: note: expanded from macro 'DISPATCH_DECL'
#define DISPATCH_DECL(name) OS_OBJECT_DECL_SUBCLASS(name, dispatch_object)
^
/usr/local/include/os/object.h:88:30: note: expanded from macro 'OS_OBJECT_DECL_SUBCLASS'
OS_OBJECT_DECL_IMPL(name, <OS_OBJECT_CLASS(super)>)
^
/usr/local/include/os/object.h:80:31: note: expanded from macro 'OS_OBJECT_CLASS'
#define OS_OBJECT_CLASS(name) OS_##name
^
<scratch space>:18:1: note: expanded from here
OS_dispatch_object
^
In file included from .build/src/github.com/openai/go-vncdriver/vendor/github.com/go-gl/glfw/v3.2/glfw/native_darwin.go:7:
In file included from ./glfw/include/GLFW/glfw3native.h:90:
In file included from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:23:
In file included from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:60:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:13:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:15:
In file included from /usr/include/dispatch/dispatch.h:77:
/usr/include/dispatch/io.h:163:1: error: cannot find protocol declaration for 'OS_dispatch_object'
DISPATCH_DECL(dispatch_io);
^
/usr/include/dispatch/object.h:56:29: note: expanded from macro 'DISPATCH_DECL'
#define DISPATCH_DECL(name) OS_OBJECT_DECL_SUBCLASS(name, dispatch_object)
^
/usr/local/include/os/object.h:88:30: note: expanded from macro 'OS_OBJECT_DECL_SUBCLASS'
OS_OBJECT_DECL_IMPL(name, <OS_OBJECT_CLASS(super)>)
^
/usr/local/include/os/object.h:80:31: note: expanded from macro 'OS_OBJECT_CLASS'
#define OS_OBJECT_CLASS(name) OS_##name
^
<scratch space>:18:1: note: expanded from here
OS_dispatch_object
^
21 errors generated.
# github.com/openai/go-vncdriver/vendor/github.com/go-gl/gl/v2.1/gl
ld: warning: option -s is obsolete and being ignored
# github.com/openai/go-vncdriver/vendor/github.com/go-gl/gl/v2.1/gl
ld: warning: option -s is obsolete and being ignored
# github.com/openai/go-vncdriver/vendor/github.com/pixiv/go-libjpeg/jpeg
ld: warning: option -s is obsolete and being ignored
# github.com/openai/go-vncdriver/vendor/github.com/pixiv/go-libjpeg/jpeg
ld: warning: option -s is obsolete and being ignored
# github.com/openai/go-vncdriver
ld: warning: option -s is obsolete and being ignored
# github.com/openai/go-vncdriver
ld: warning: option -s is obsolete and being ignored
Env info:
export GO15VENDOREXPERIMENT='1'
export GOPATH='/Users/chi/Developer/gym/go-vncdriver/.build'
export CGO_CFLAGS='-I/Users/chi/.pyenv/versions/3.5.0/lib/python3.5/site-packages/numpy/core/include -I/Users/chi/.pyenv/versions/3.5.0/include/python3.5m'
export CGO_LDFLAGS='/usr/local/opt/jpeg-turbo/lib/libjpeg.dylib -undefined dynamic_lookup -s'
Running build with OpenGL rendering.
Building with OpenGL: GOPATH=/Users/chi/Developer/gym/go-vncdriver/.build go build -buildmode=c-shared -o go_vncdriver.so github.com/openai/go-vncdriver. (Set GO_VNCDRIVER_NOGL to build without OpenGL.)
Note: could not build with OpenGL rendering (cf https://github.com/openai/go-vncdriver). This is expected on most servers. Going to try building without OpenGL.
Building without OpenGL: GOPATH=/Users/chi/Developer/gym/go-vncdriver/.build go build -tags no_gl -buildmode=c-shared -o go_vncdriver.so github.com/openai/go-vncdriver
I encountered the following build error in mac os 10.12.5: Any ideas? thanks