{"action":"created","issue":{"url":"https://api.github.com/repos/mattn/go-gtk/issues/326","repository_url":"https://api.github.com/repos/mattn/go-gtk","labels_url":"https://api.github.com/repos/mattn/go-gtk/issues/326/labels{/name}","comments_url":"https://api.github.com/repos/mattn/go-gtk/issues/326/comments","events_url":"https://api.github.com/repos/mattn/go-gtk/issues/326/events","html_url":"https://github.com/mattn/go-gtk/issues/326","id":231798405,"number":326,"title":"Cross Compilation to RaspberryPi","user":{"login":"minhajakhterkhan199","id":25435779,"avatar_url":"https://avatars2.githubusercontent.com/u/25435779?v=3","gravatar_id":"","url":"https://api.github.com/users/minhajakhterkhan199","html_url":"https://github.com/minhajakhterkhan199","followers_url":"https://api.github.com/users/minhajakhterkhan199/followers","following_url":"https://api.github.com/users/minhajakhterkhan199/following{/other_user}","gists_url":"https://api.github.com/users/minhajakhterkhan199/gists{/gist_id}","starred_url":"https://api.github.com/users/minhajakhterkhan199/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minhajakhterkhan199/subscriptions","organizations_url":"https://api.github.com/users/minhajakhterkhan199/orgs","repos_url":"https://api.github.com/users/minhajakhterkhan199/repos","events_url":"https://api.github.com/users/minhajakhterkhan199/events{/privacy}","received_events_url":"https://api.github.com/users/minhajakhterkhan199/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-05-27T12:30:46Z","updated_at":"2017-05-27T14:03:35Z","closed_at":null,"body":"I am using GO-GTK to display images, the project is working fine on amd64 but when I try to cross compile it for arm (RaspberryPi), it gives me below error. \r\nPlease advise how to cross-compile go-gtk from amd64 to arm (Raspberrypi3). \r\n\r\ngithub.com/mattn/go-gtk/glib\r\n# github.com/mattn/go-gtk/glib\r\nIn file included from /usr/lib/x86_64-linux-gnu/glib-2.0/include/glibconfig.h:9:0,\r\n                 from /usr/include/glib-2.0/glib/gtypes.h:32,\r\n                 from /usr/include/glib-2.0/glib/galloca.h:32,\r\n                 from /usr/include/glib-2.0/glib.h:30,\r\n                 from ./glib.go.h:4,\r\n                 from src/github.com/mattn/go-gtk/glib/glib.go:5:\r\n/usr/include/glib-2.0/glib/gtypes.h: In function '_GLIB_CHECKED_ADD_U64':\r\n/usr/include/glib-2.0/glib/gmacros.h:232:53: error: size of array '_GStaticAssertCompileTimeAssertion_0' is negative\r\n #define G_STATIC_ASSERT(expr) typedef char G_PASTE (_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr) ? 1 : -1] G_GNUC_UNUSED\r\n                                                     ^\r\n/usr/include/glib-2.0/glib/gmacros.h:229:47: note: in definition of macro 'G_PASTE_ARGS'\r\n #define G_PASTE_ARGS(identifier1,identifier2) identifier1 ## identifier2\r\n                                               ^\r\n/usr/include/glib-2.0/glib/gmacros.h:232:44: note: in expansion of macro 'G_PASTE'\r\n #define G_STATIC_ASSERT(expr) typedef char G_PASTE (_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr) ? 1 : -1] G_GNUC_UNUSED\r\n                                            ^\r\n/usr/include/glib-2.0/glib/gtypes.h:422:3: note: in expansion of macro 'G_STATIC_ASSERT'\r\n   G_STATIC_ASSERT(sizeof (unsigned long long) == sizeof (guint64));\r\n   ^\r\ngithub.com/mattn/go-gtk/pango\r\n# github.com/mattn/go-gtk/pango\r\nIn file included from /usr/lib/x86_64-linux-gnu/glib-2.0/include/glibconfig.h:9:0,\r\n                 from /usr/include/glib-2.0/glib/gtypes.h:32,\r\n                 from /usr/include/glib-2.0/glib/galloca.h:32,\r\n                 from /usr/include/glib-2.0/glib.h:30,\r\n                 from /usr/include/pango-1.0/pango/pango-coverage.h:25,\r\n                 from /usr/include/pango-1.0/pango/pango-font.h:25,\r\n                 from /usr/include/pango-1.0/pango/pango-attributes.h:25,\r\n                 from /usr/include/pango-1.0/pango/pango.h:25,\r\n                 from ./pango.go.h:7,\r\n                 from src/github.com/mattn/go-gtk/pango/pango.go:5:\r\n/usr/include/glib-2.0/glib/gtypes.h: In function '_GLIB_CHECKED_ADD_U64':\r\n/usr/include/glib-2.0/glib/gmacros.h:232:53: error: size of array '_GStaticAssertCompileTimeAssertion_0' is negative\r\n #define G_STATIC_ASSERT(expr) typedef char G_PASTE (_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr) ? 1 : -1] G_GNUC_UNUSED\r\n                                                     ^\r\n/usr/include/glib-2.0/glib/gmacros.h:229:47: note: in definition of macro 'G_PASTE_ARGS'\r\n #define G_PASTE_ARGS(identifier1,identifier2) identifier1 ## identifier2\r\n                                               ^\r\n/usr/include/glib-2.0/glib/gmacros.h:232:44: note: in expansion of macro 'G_PASTE'\r\n #define G_STATIC_ASSERT(expr) typedef char G_PASTE (_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr) ? 1 : -1] G_GNUC_UNUSED\r\n                                            ^\r\n/usr/include/glib-2.0/glib/gtypes.h:422:3: note: in expansion of macro 'G_STATIC_ASSERT'\r\n   G_STATIC_ASSERT(sizeof (unsigned long long) == sizeof (guint64));\r\n\r\n----------------------------------------------------------\r\ngo env\r\n------------------------------------------------------------\r\nGOARCH=\"arm\"\r\nGOBIN=\"\"\r\nGOEXE=\"\"\r\nGOHOSTARCH=\"amd64\"\r\nGOHOSTOS=\"linux\"\r\nGOOS=\"linux\"\r\nGOPATH=\"/home/minhaj/GoLang\"\r\nGORACE=\"\"\r\nGOROOT=\"/usr/local/go\"\r\nGOTOOLDIR=\"/usr/local/go/pkg/tool/linux_amd64\"\r\nGCCGO=\"gccgo\"\r\nGOARM=\"\"\r\nCC=\"arm-linux-gnueabi-gcc\"\r\nGOGCCFLAGS=\"-fPIC -marm -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build472526669=/tmp/go-build -gno-record-gcc-switches\"\r\nCXX=\"arm-linux-gnueabi-g++\"\r\nCGO_ENABLED=\"1\"\r\nPKG_CONFIG=\"pkg-config\"\r\nCGO_CFLAGS=\"-g -O2\"\r\nCGO_CPPFLAGS=\"\"\r\nCGO_CXXFLAGS=\"-g -O2\"\r\nCGO_FFLAGS=\"-g -O2\"\r\nCGO_LDFLAGS=\"-g -O2\"\r\n"},"comment":{"url":"https://api.github.com/repos/mattn/go-gtk/issues/comments/304453336","html_url":"https://github.com/mattn/go-gtk/issues/326#issuecomment-304453336","issue_url":"https://api.github.com/repos/mattn/go-gtk/issues/326","id":304453336,"user":{"login":"minhajakhterkhan199","id":25435779,"avatar_url":"https://avatars2.githubusercontent.com/u/25435779?v=3","gravatar_id":"","url":"https://api.github.com/users/minhajakhterkhan199","html_url":"https://github.com/minhajakhterkhan199","followers_url":"https://api.github.com/users/minhajakhterkhan199/followers","following_url":"https://api.github.com/users/minhajakhterkhan199/following{/other_user}","gists_url":"https://api.github.com/users/minhajakhterkhan199/gists{/gist_id}","starred_url":"https://api.github.com/users/minhajakhterkhan199/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minhajakhterkhan199/subscriptions","organizations_url":"https://api.github.com/users/minhajakhterkhan199/orgs","repos_url":"https://api.github.com/users/minhajakhterkhan199/repos","events_url":"https://api.github.com/users/minhajakhterkhan199/events{/privacy}","received_events_url":"https://api.github.com/users/minhajakhterkhan199/received_events","type":"User","site_admin":false},"created_at":"2017-05-27T14:03:35Z","updated_at":"2017-05-27T14:03:35Z","body":"I am using 'go build -v IndoorMass/' and set 'CC=arm-linux-gnueabi-gcc' with cgo enabled. \r\narm-linux-gnueabi-gcc is C-Cross-Compiler"}}
{"actor":{"display_login":"minhajakhterkhan199"}}