{"action":"closed","issue":{"url":"https://api.github.com/repos/albertodemichelis/squirrel/issues/98","repository_url":"https://api.github.com/repos/albertodemichelis/squirrel","labels_url":"https://api.github.com/repos/albertodemichelis/squirrel/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/albertodemichelis/squirrel/issues/98/comments","events_url":"https://api.github.com/repos/albertodemichelis/squirrel/issues/98/events","html_url":"https://github.com/albertodemichelis/squirrel/issues/98","id":239960762,"number":98,"title":"Failed to compile in macOS Sierra 10.12.4 and later...","user":{"login":"hrubymar10","id":2218817,"avatar_url":"https://avatars3.githubusercontent.com/u/2218817?v=4","gravatar_id":"","url":"https://api.github.com/users/hrubymar10","html_url":"https://github.com/hrubymar10","followers_url":"https://api.github.com/users/hrubymar10/followers","following_url":"https://api.github.com/users/hrubymar10/following{/other_user}","gists_url":"https://api.github.com/users/hrubymar10/gists{/gist_id}","starred_url":"https://api.github.com/users/hrubymar10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hrubymar10/subscriptions","organizations_url":"https://api.github.com/users/hrubymar10/orgs","repos_url":"https://api.github.com/users/hrubymar10/repos","events_url":"https://api.github.com/users/hrubymar10/events{/privacy}","received_events_url":"https://api.github.com/users/hrubymar10/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-07-01T17:03:48Z","updated_at":"2018-02-10T21:24:09Z","closed_at":"2018-02-10T21:24:08Z","author_association":"NONE","body":"# Problem\r\nCan't compile on macOS Sierra 10.12.4 and later using Xcode's Toolchain\r\n\r\n# Build Enviroment\r\nMy main build enviroment is as of now beta version of macOS High Sierra 10.13 Beta 2:\r\n**OS:** macOS High Sierra 10.13 Beta 2 (17A291m)\r\n**Xcode:** 9.0 Beta 2 (9M137d)\r\n**Clang:**\r\n```\r\nMacBook-Pro:build user$ clang --version\r\nApple LLVM version 9.0.0 (clang-900.0.26)\r\nTarget: x86_64-apple-darwin17.0.0\r\nThread model: posix\r\nInstalledDir: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin\r\n```\r\n\r\nIt doesn't worked in stable macOS 10.12.4 too...\r\n\r\n# Related\r\nThis issue is pretty same as mine: [https://github.com/JGRennison/OpenTTD-patches/issues/17](url)\r\n\r\n# Console output\r\n\r\n```\r\nMacBook-Pro:squirrel_source user$ mkdir build\r\nMacBook-Pro:squirrel_source user$ cd build\r\nMacBook-Pro:build user$ pwd\r\n/Users/user/sources/squirrel/build\r\nMacBook-Pro:build user$ cmake ..\r\n-- The C compiler identification is AppleClang 9.0.0.9000026\r\n-- The CXX compiler identification is AppleClang 9.0.0.9000026\r\n-- Check for working C compiler: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc\r\n-- Check for working C compiler: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works\r\n-- Detecting C compiler ABI info\r\n-- Detecting C compiler ABI info - done\r\n-- Detecting C compile features\r\n-- Detecting C compile features - done\r\n-- Check for working CXX compiler: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++\r\n-- Check for working CXX compiler: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works\r\n-- Detecting CXX compiler ABI info\r\n-- Detecting CXX compiler ABI info - done\r\n-- Detecting CXX compile features\r\n-- Detecting CXX compile features - done\r\n-- Configuring done\r\nCMake Warning (dev):\r\n  Policy CMP0042 is not set: MACOSX_RPATH is enabled by default.  Run \"cmake\r\n  --help-policy CMP0042\" for policy details.  Use the cmake_policy command to\r\n  set the policy and suppress this warning.\r\n\r\n  MACOSX_RPATH is not specified for the following targets:\r\n\r\n   sqstdlib\r\n   squirrel\r\n\r\nThis warning is for project developers.  Use -Wno-dev to suppress it.\r\n\r\n-- Generating done\r\n-- Build files have been written to: /Users/user/sources/squirrel/build\r\nMacBook-Pro:build user$ make\r\nScanning dependencies of target squirrel_static\r\n[  2%] Building CXX object squirrel/CMakeFiles/squirrel_static.dir/sqapi.cpp.o\r\n[  4%] Building CXX object squirrel/CMakeFiles/squirrel_static.dir/sqbaselib.cpp.o\r\n[  6%] Building CXX object squirrel/CMakeFiles/squirrel_static.dir/sqclass.cpp.o\r\n[  8%] Building CXX object squirrel/CMakeFiles/squirrel_static.dir/sqcompiler.cpp.o\r\n[ 10%] Building CXX object squirrel/CMakeFiles/squirrel_static.dir/sqdebug.cpp.o\r\n[ 12%] Building CXX object squirrel/CMakeFiles/squirrel_static.dir/sqfuncstate.cpp.o\r\n[ 14%] Building CXX object squirrel/CMakeFiles/squirrel_static.dir/sqlexer.cpp.o\r\n[ 16%] Building CXX object squirrel/CMakeFiles/squirrel_static.dir/sqmem.cpp.o\r\n[ 18%] Building CXX object squirrel/CMakeFiles/squirrel_static.dir/sqobject.cpp.o\r\n[ 20%] Building CXX object squirrel/CMakeFiles/squirrel_static.dir/sqstate.cpp.o\r\n[ 22%] Building CXX object squirrel/CMakeFiles/squirrel_static.dir/sqtable.cpp.o\r\n[ 25%] Building CXX object squirrel/CMakeFiles/squirrel_static.dir/sqvm.cpp.o\r\nIn file included from /Users/user/sources/squirrel/squirrel/sqvm.cpp:5:\r\nIn file included from /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/math.h:310:\r\n/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/limits:147:85: error: expected expression\r\n    _LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type min() _NOEXCEPT {return type();}\r\n                                                                                    ^\r\n/Users/user/sources/squirrel/squirrel/sqobject.h:131:24: note: expanded from macro 'type'\r\n#define type(obj) ((obj)._type)\r\n                       ^\r\nIn file included from /Users/user/sources/squirrel/squirrel/sqvm.cpp:5:\r\nIn file included from /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/math.h:310:\r\n/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/limits:148:85: error: expected expression\r\n    _LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type max() _NOEXCEPT {return type();}\r\n                                                                                    ^\r\n/Users/user/sources/squirrel/squirrel/sqobject.h:131:24: note: expanded from macro 'type'\r\n#define type(obj) ((obj)._type)\r\n                       ^\r\nIn file included from /Users/user/sources/squirrel/squirrel/sqvm.cpp:5:\r\nIn file included from /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/math.h:310:\r\n/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/limits:149:88: error: expected expression\r\n    _LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type lowest() _NOEXCEPT {return type();}\r\n                                                                                       ^\r\n/Users/user/sources/squirrel/squirrel/sqobject.h:131:24: note: expanded from macro 'type'\r\n#define type(obj) ((obj)._type)\r\n                       ^\r\nIn file included from /Users/user/sources/squirrel/squirrel/sqvm.cpp:5:\r\nIn file included from /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/math.h:310:\r\n/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/limits:158:89: error: expected expression\r\n    _LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type epsilon() _NOEXCEPT {return type();}\r\n                                                                                        ^\r\n/Users/user/sources/squirrel/squirrel/sqobject.h:131:24: note: expanded from macro 'type'\r\n#define type(obj) ((obj)._type)\r\n                       ^\r\nIn file included from /Users/user/sources/squirrel/squirrel/sqvm.cpp:5:\r\nIn file included from /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/math.h:310:\r\n/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/limits:159:93: error: expected expression\r\n    _LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type round_error() _NOEXCEPT {return type();}\r\n                                                                                            ^\r\n/Users/user/sources/squirrel/squirrel/sqobject.h:131:24: note: expanded from macro 'type'\r\n#define type(obj) ((obj)._type)\r\n                       ^\r\nIn file included from /Users/user/sources/squirrel/squirrel/sqvm.cpp:5:\r\nIn file included from /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/math.h:310:\r\n/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/limits:171:90: error: expected expression\r\n    _LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type infinity() _NOEXCEPT {return type();}\r\n                                                                                         ^\r\n/Users/user/sources/squirrel/squirrel/sqobject.h:131:24: note: expanded from macro 'type'\r\n#define type(obj) ((obj)._type)\r\n                       ^\r\nIn file included from /Users/user/sources/squirrel/squirrel/sqvm.cpp:5:\r\nIn file included from /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/math.h:310:\r\n/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/limits:172:91: error: expected expression\r\n    _LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type quiet_NaN() _NOEXCEPT {return type();}\r\n                                                                                          ^\r\n/Users/user/sources/squirrel/squirrel/sqobject.h:131:24: note: expanded from macro 'type'\r\n#define type(obj) ((obj)._type)\r\n                       ^\r\nIn file included from /Users/user/sources/squirrel/squirrel/sqvm.cpp:5:\r\nIn file included from /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/math.h:310:\r\n/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/limits:173:95: error: expected expression\r\n    _LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type signaling_NaN() _NOEXCEPT {return type();}\r\n                                                                                              ^\r\n/Users/user/sources/squirrel/squirrel/sqobject.h:131:24: note: expanded from macro 'type'\r\n#define type(obj) ((obj)._type)\r\n                       ^\r\nIn file included from /Users/user/sources/squirrel/squirrel/sqvm.cpp:5:\r\nIn file included from /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/math.h:310:\r\n/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/limits:174:92: error: expected expression\r\n    _LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type denorm_min() _NOEXCEPT {return type();}\r\n                                                                                           ^\r\n/Users/user/sources/squirrel/squirrel/sqobject.h:131:24: note: expanded from macro 'type'\r\n#define type(obj) ((obj)._type)\r\n                       ^\r\nIn file included from /Users/user/sources/squirrel/squirrel/sqvm.cpp:5:\r\nIn file included from /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/math.h:310:\r\n/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/limits:205:53: error: member reference base type 'int' is not a structure or\r\n      union\r\n    static _LIBCPP_CONSTEXPR const bool is_signed = type(-1) < type(0);\r\n                                                    ^~~~~~~~\r\n/Users/user/sources/squirrel/squirrel/sqobject.h:131:25: note: expanded from macro 'type'\r\n#define type(obj) ((obj)._type)\r\n                   ~~~~~^~~~~~\r\nIn file included from /Users/user/sources/squirrel/squirrel/sqvm.cpp:5:\r\nIn file included from /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/math.h:310:\r\n/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/limits:205:64: error: member reference base type 'int' is not a structure or\r\n      union\r\n    static _LIBCPP_CONSTEXPR const bool is_signed = type(-1) < type(0);\r\n                                                               ^~~~~~~\r\n/Users/user/sources/squirrel/squirrel/sqobject.h:131:25: note: expanded from macro 'type'\r\n#define type(obj) ((obj)._type)\r\n                   ~~~~~^~~~~~\r\nIn file included from /Users/user/sources/squirrel/squirrel/sqvm.cpp:5:\r\nIn file included from /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/math.h:310:\r\n/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/limits:210:66: error: member reference base type 'int' is not a structure or\r\n      union\r\n    static _LIBCPP_CONSTEXPR const type __max = is_signed ? type(type(~0) ^ __min) : type(~0);\r\n                                                            ~~~~~^~~~~~~~~~~~~~~~~\r\n/Users/user/sources/squirrel/squirrel/sqobject.h:131:25: note: expanded from macro 'type'\r\n#define type(obj) ((obj)._type)\r\n                        ^~~~~~\r\n/Users/user/sources/squirrel/squirrel/sqobject.h:131:21: note: expanded from macro 'type'\r\n#define type(obj) ((obj)._type)\r\n                    ^~~\r\nIn file included from /Users/user/sources/squirrel/squirrel/sqvm.cpp:5:\r\nIn file included from /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/math.h:310:\r\n/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/limits:210:86: error: member reference base type 'int' is not a structure or\r\n      union\r\n    static _LIBCPP_CONSTEXPR const type __max = is_signed ? type(type(~0) ^ __min) : type(~0);\r\n                                                                                     ^~~~~~~~\r\n/Users/user/sources/squirrel/squirrel/sqobject.h:131:25: note: expanded from macro 'type'\r\n#define type(obj) ((obj)._type)\r\n                   ~~~~~^~~~~~\r\nIn file included from /Users/user/sources/squirrel/squirrel/sqvm.cpp:5:\r\nIn file included from /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/math.h:310:\r\n/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/limits:218:89: error: member reference base type 'int' is not a structure or\r\n      union\r\n    _LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type epsilon() _NOEXCEPT {return type(0);}\r\n                                                                                        ^~~~~~~\r\n/Users/user/sources/squirrel/squirrel/sqobject.h:131:25: note: expanded from macro 'type'\r\n#define type(obj) ((obj)._type)\r\n                   ~~~~~^~~~~~\r\nIn file included from /Users/user/sources/squirrel/squirrel/sqvm.cpp:5:\r\nIn file included from /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/math.h:310:\r\n/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/limits:219:93: error: member reference base type 'int' is not a structure or\r\n      union\r\n    _LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type round_error() _NOEXCEPT {return type(0);}\r\n                                                                                            ^~~~~~~\r\n/Users/user/sources/squirrel/squirrel/sqobject.h:131:25: note: expanded from macro 'type'\r\n#define type(obj) ((obj)._type)\r\n                   ~~~~~^~~~~~\r\nIn file included from /Users/user/sources/squirrel/squirrel/sqvm.cpp:5:\r\nIn file included from /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/math.h:310:\r\n/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/limits:231:90: error: member reference base type 'int' is not a structure or\r\n      union\r\n    _LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type infinity() _NOEXCEPT {return type(0);}\r\n                                                                                         ^~~~~~~\r\n/Users/user/sources/squirrel/squirrel/sqobject.h:131:25: note: expanded from macro 'type'\r\n#define type(obj) ((obj)._type)\r\n                   ~~~~~^~~~~~\r\nIn file included from /Users/user/sources/squirrel/squirrel/sqvm.cpp:5:\r\nIn file included from /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/math.h:310:\r\n/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/limits:232:91: error: member reference base type 'int' is not a structure or\r\n      union\r\n    _LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type quiet_NaN() _NOEXCEPT {return type(0);}\r\n                                                                                          ^~~~~~~\r\n/Users/user/sources/squirrel/squirrel/sqobject.h:131:25: note: expanded from macro 'type'\r\n#define type(obj) ((obj)._type)\r\n                   ~~~~~^~~~~~\r\nIn file included from /Users/user/sources/squirrel/squirrel/sqvm.cpp:5:\r\nIn file included from /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/math.h:310:\r\n/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/limits:233:95: error: member reference base type 'int' is not a structure or\r\n      union\r\n    _LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type signaling_NaN() _NOEXCEPT {return type(0);}\r\n                                                                                              ^~~~~~~\r\n/Users/user/sources/squirrel/squirrel/sqobject.h:131:25: note: expanded from macro 'type'\r\n#define type(obj) ((obj)._type)\r\n                   ~~~~~^~~~~~\r\nIn file included from /Users/user/sources/squirrel/squirrel/sqvm.cpp:5:\r\nIn file included from /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/math.h:310:\r\n/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/limits:234:92: error: member reference base type 'int' is not a structure or\r\n      union\r\n    _LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type denorm_min() _NOEXCEPT {return type(0);}\r\n                                                                                           ^~~~~~~\r\n/Users/user/sources/squirrel/squirrel/sqobject.h:131:25: note: expanded from macro 'type'\r\n#define type(obj) ((obj)._type)\r\n                   ~~~~~^~~~~~\r\nfatal error: too many errors emitted, stopping now [-ferror-limit=]\r\n20 errors generated.\r\nmake[2]: *** [squirrel/CMakeFiles/squirrel_static.dir/sqvm.cpp.o] Error 1\r\nmake[1]: *** [squirrel/CMakeFiles/squirrel_static.dir/all] Error 2\r\nmake: *** [all] Error 2\r\nMacBook-Pro:build user$ clang --version\r\nApple LLVM version 9.0.0 (clang-900.0.26)\r\nTarget: x86_64-apple-darwin17.0.0\r\nThread model: posix\r\nInstalledDir: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin\r\n```\r\n\r\nLet me know if you need more info."}}
{"actor":{"display_login":"hrubymar10"}}