{"action":"created","issue":{"url":"https://api.github.com/repos/ImageEngine/gaffer/issues/1495","labels_url":"https://api.github.com/repos/ImageEngine/gaffer/issues/1495/labels{/name}","comments_url":"https://api.github.com/repos/ImageEngine/gaffer/issues/1495/comments","events_url":"https://api.github.com/repos/ImageEngine/gaffer/issues/1495/events","html_url":"https://github.com/ImageEngine/gaffer/issues/1495","id":107546797,"number":1495,"title":"GadgetBinding : Build fails on OSX","user":{"login":"HughMacdonald","id":625512,"avatar_url":"https://avatars.githubusercontent.com/u/625512?v=3","gravatar_id":"","url":"https://api.github.com/users/HughMacdonald","html_url":"https://github.com/HughMacdonald","followers_url":"https://api.github.com/users/HughMacdonald/followers","following_url":"https://api.github.com/users/HughMacdonald/following{/other_user}","gists_url":"https://api.github.com/users/HughMacdonald/gists{/gist_id}","starred_url":"https://api.github.com/users/HughMacdonald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HughMacdonald/subscriptions","organizations_url":"https://api.github.com/users/HughMacdonald/orgs","repos_url":"https://api.github.com/users/HughMacdonald/repos","events_url":"https://api.github.com/users/HughMacdonald/events{/privacy}","received_events_url":"https://api.github.com/users/HughMacdonald/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-21T16:12:31Z","updated_at":"2015-09-22T18:09:27Z","closed_at":null,"body":"Hi,\r\n\r\nThe latest commits to __master__ seem to cause the build on OSX to fail when they hit GafferUIBindings/GadgetBinding.cpp\r\n\r\nI've not seen this before, and I've tried it on the clean current master branch.\r\n\r\nThe error I'm seeing is:\r\n\r\n    g++ -o src/GafferUIBindings/GadgetBinding.os -c -pipe -Wall -Werror -g -DNDEBUG -DBOOST_DISABLE_ASSERTS -D__USE_ISOC99 -isystem /Users/hughmacdonald/development/gaffer/build/gaffer-0.16.0.4-osx/include -isystem /Users/hughmacdonald/development/gaffer/build/gaffer-0.16.0.4-osx/include/python2.7 -isystem /Users/hughmacdonald/development/gaffer/build/gaffer-0.16.0.4-osx/include/OpenEXR -isystem /Users/hughmacdonald/development/gaffer/build/gaffer-0.16.0.4-osx/include/GL -DQT_NO_KEYWORDS -fPIC -DBOOST_FILESYSTEM_VERSION=3 -DBOOST_SIGNALS_NO_DEPRECATION_WARNING -DBOOST_PYTHON_MAX_ARITY=20 -DGAFFER_MILESTONE_VERSION=0 -DGAFFER_MAJOR_VERSION=16 -DGAFFER_MINOR_VERSION=0 -DGAFFER_PATCH_VERSION=4 -Iinclude -Ibuild/gaffer-0.16.0.4-osx/lib/Python.framework/Versions/2.7/include/python2.7 -F/Users/hughmacdonald/development/gaffer/build/gaffer-0.16.0.4-osx/lib src/GafferUIBindings/GadgetBinding.cpp\r\n    src/GafferUIBindings/GadgetBinding.cpp:178:1: error: unused typedef 'assertion' [-Werror,-Wunused-local-typedef]\r\n    BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS( fullTransformOverloads, fullTransform, 0, 1 );\r\n    ^\r\n    /Users/hughmacdonald/development/gaffer/build/gaffer-0.16.0.4-osx/include/boost/python/detail/defaults_gen.hpp:375:5: note: expanded from macro\r\n          'BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS'\r\n        BOOST_PYTHON_GEN_MEM_FUNCTION_STUB(                                                     \\\r\n        ^\r\n    /Users/hughmacdonald/development/gaffer/build/gaffer-0.16.0.4-osx/include/boost/python/detail/defaults_gen.hpp:276:9: note: expanded from macro\r\n          'BOOST_PYTHON_GEN_MEM_FUNCTION_STUB'\r\n            BOOST_PYTHON_OVERLOAD_CONSTRUCTORS(fstubs_name, n_args + 1, n_dflts)            \\\r\n            ^\r\n    /Users/hughmacdonald/development/gaffer/build/gaffer-0.16.0.4-osx/include/boost/python/detail/defaults_gen.hpp:216:46: note: expanded from macro\r\n          'BOOST_PYTHON_OVERLOAD_CONSTRUCTORS'\r\n                    N,n_args>::too_many_keywords assertion;                                     \\\r\n                                                 ^\r\n    src/GafferUIBindings/GadgetBinding.cpp:178:1: error: unused typedef 'assertion' [-Werror,-Wunused-local-typedef]\r\n    /Users/hughmacdonald/development/gaffer/build/gaffer-0.16.0.4-osx/include/boost/python/detail/defaults_gen.hpp:375:5: note: expanded from macro\r\n          'BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS'\r\n        BOOST_PYTHON_GEN_MEM_FUNCTION_STUB(                                                     \\\r\n        ^\r\n    /Users/hughmacdonald/development/gaffer/build/gaffer-0.16.0.4-osx/include/boost/python/detail/defaults_gen.hpp:276:9: note: expanded from macro\r\n          'BOOST_PYTHON_GEN_MEM_FUNCTION_STUB'\r\n            BOOST_PYTHON_OVERLOAD_CONSTRUCTORS(fstubs_name, n_args + 1, n_dflts)            \\\r\n            ^\r\n    /Users/hughmacdonald/development/gaffer/build/gaffer-0.16.0.4-osx/include/boost/python/detail/defaults_gen.hpp:225:46: note: expanded from macro\r\n          'BOOST_PYTHON_OVERLOAD_CONSTRUCTORS'\r\n                    N,n_args>::too_many_keywords assertion;                                     \\\r\n                                                 ^\r\n    2 errors generated.\r\n    scons: *** [src/GafferUIBindings/GadgetBinding.os] Error 1\r\n    scons: building terminated because of errors."},"comment":{"url":"https://api.github.com/repos/ImageEngine/gaffer/issues/comments/142368174","html_url":"https://github.com/ImageEngine/gaffer/issues/1495#issuecomment-142368174","issue_url":"https://api.github.com/repos/ImageEngine/gaffer/issues/1495","id":142368174,"user":{"login":"johnhaddon","id":1133871,"avatar_url":"https://avatars.githubusercontent.com/u/1133871?v=3","gravatar_id":"","url":"https://api.github.com/users/johnhaddon","html_url":"https://github.com/johnhaddon","followers_url":"https://api.github.com/users/johnhaddon/followers","following_url":"https://api.github.com/users/johnhaddon/following{/other_user}","gists_url":"https://api.github.com/users/johnhaddon/gists{/gist_id}","starred_url":"https://api.github.com/users/johnhaddon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnhaddon/subscriptions","organizations_url":"https://api.github.com/users/johnhaddon/orgs","repos_url":"https://api.github.com/users/johnhaddon/repos","events_url":"https://api.github.com/users/johnhaddon/events{/privacy}","received_events_url":"https://api.github.com/users/johnhaddon/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T18:09:27Z","updated_at":"2015-09-22T18:09:27Z","body":"That sounds totally plausible - could you check the output of `clang++ --version` so see if the compiler versions differ? If you'd like to preserve `-Werror` (I think it's best if you can), you could try adding `-Wno-unused-local-typedef`."}}