{"action":"created","issue":{"url":"https://api.github.com/repos/google/jsonnet/issues/570","repository_url":"https://api.github.com/repos/google/jsonnet","labels_url":"https://api.github.com/repos/google/jsonnet/issues/570/labels{/name}","comments_url":"https://api.github.com/repos/google/jsonnet/issues/570/comments","events_url":"https://api.github.com/repos/google/jsonnet/issues/570/events","html_url":"https://github.com/google/jsonnet/issues/570","id":372963386,"node_id":"MDU6SXNzdWUzNzI5NjMzODY=","number":570,"title":"OSX Pip install error","user":{"login":"ggordonhall","id":24595376,"node_id":"MDQ6VXNlcjI0NTk1Mzc2","avatar_url":"https://avatars3.githubusercontent.com/u/24595376?v=4","gravatar_id":"","url":"https://api.github.com/users/ggordonhall","html_url":"https://github.com/ggordonhall","followers_url":"https://api.github.com/users/ggordonhall/followers","following_url":"https://api.github.com/users/ggordonhall/following{/other_user}","gists_url":"https://api.github.com/users/ggordonhall/gists{/gist_id}","starred_url":"https://api.github.com/users/ggordonhall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggordonhall/subscriptions","organizations_url":"https://api.github.com/users/ggordonhall/orgs","repos_url":"https://api.github.com/users/ggordonhall/repos","events_url":"https://api.github.com/users/ggordonhall/events{/privacy}","received_events_url":"https://api.github.com/users/ggordonhall/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-23T12:01:53Z","updated_at":"2018-10-23T14:48:17Z","closed_at":null,"author_association":"NONE","body":"When I run `pip install jsonnet` I run into this error:\r\n\r\n```f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, __file__, 'exec'))\" bdist_wheel -d /private/var/folders/kn/ck6tzd4n36l_6chhyvgxv8_80000gn/T/pip-wheel-wrojzpm7 --python-tag cp36:\r\n  running bdist_wheel\r\n  running build\r\n  running build_ext\r\n  c++ -c -g -O3 -Wall -Wextra -Woverloaded-virtual -pedantic -std=c++0x -fPIC -Iinclude -Ithird_party/md5 core/desugarer.cpp -o core/desugarer.o\r\n  c++ -c -g -O3 -Wall -Wextra -Woverloaded-virtual -pedantic -std=c++0x -fPIC -Iinclude -Ithird_party/md5 core/formatter.cpp -o core/formatter.o\r\n  c++ -c -g -O3 -Wall -Wextra -Woverloaded-virtual -pedantic -std=c++0x -fPIC -Iinclude -Ithird_party/md5 core/libjsonnet.cpp -o core/libjsonnet.o\r\n  c++ -c -g -O3 -Wall -Wextra -Woverloaded-virtual -pedantic -std=c++0x -fPIC -Iinclude -Ithird_party/md5 core/lexer.cpp -o core/lexer.o\r\n  c++ -c -g -O3 -Wall -Wextra -Woverloaded-virtual -pedantic -std=c++0x -fPIC -Iinclude -Ithird_party/md5 core/parser.cpp -o core/parser.o\r\n  c++ -c -g -O3 -Wall -Wextra -Woverloaded-virtual -pedantic -std=c++0x -fPIC -Iinclude -Ithird_party/md5 core/pass.cpp -o core/pass.o\r\n  c++ -c -g -O3 -Wall -Wextra -Woverloaded-virtual -pedantic -std=c++0x -fPIC -Iinclude -Ithird_party/md5 core/static_analysis.cpp -o core/static_analysis.o\r\n  c++ -c -g -O3 -Wall -Wextra -Woverloaded-virtual -pedantic -std=c++0x -fPIC -Iinclude -Ithird_party/md5 core/string_utils.cpp -o core/string_utils.o\r\n  c++ -c -g -O3 -Wall -Wextra -Woverloaded-virtual -pedantic -std=c++0x -fPIC -Iinclude -Ithird_party/md5 core/vm.cpp -o core/vm.o\r\n  c++ -c -g -O3 -Wall -Wextra -Woverloaded-virtual -pedantic -std=c++0x -fPIC -Iinclude -Ithird_party/md5 third_party/md5/md5.cpp -o third_party/md5/md5.o\r\n  building '_jsonnet' extension\r\n  creating build\r\n  creating build/temp.macosx-10.7-x86_64-3.6\r\n  creating build/temp.macosx-10.7-x86_64-3.6/python\r\n  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/gabrielgordon-hall/anaconda/include -arch x86_64 -I/Users/gabrielgordon-hall/anaconda/include -arch x86_64 -Iinclude -Ithird_party/md5 -I/Users/gabrielgordon-hall/anaconda/include/python3.6m -c python/_jsonnet.c -o build/temp.macosx-10.7-x86_64-3.6/python/_jsonnet.o\r\n  python/_jsonnet.c:147:19: warning: comparison of integers of different signs: 'int' and 'const size_t' (aka 'const unsigned long') [-Wsign-compare]\r\n      for (i = 0; i < ctx->argc; ++i) {\r\n                  ~ ^ ~~~~~~~~~\r\n  1 warning generated.\r\n  creating build/lib.macosx-10.7-x86_64-3.6\r\n  g++ -bundle -undefined dynamic_lookup -L/Users/gabrielgordon-hall/anaconda/lib -arch x86_64 -L/Users/gabrielgordon-hall/anaconda/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.7-x86_64-3.6/python/_jsonnet.o core/desugarer.o core/formatter.o core/libjsonnet.o core/lexer.o core/parser.o core/pass.o core/static_analysis.o core/string_utils.o core/vm.o third_party/md5/md5.o -o build/lib.macosx-10.7-x86_64-3.6/_jsonnet.cpython-36m-darwin.so\r\n  clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]\r\n  ld: library not found for -lstdc++\r\n  clang: error: linker command failed with exit code 1 (use -v to see invocation)\r\n  error: command 'g++' failed with exit status 1\r\n\r\n  ----------------------------------------\r\n  Failed building wheel for jsonnet\r\n  Running setup.py clean for jsonnet\r\nFailed to build jsonnet\r\nInstalling collected packages: jsonnet\r\n  Running setup.py install for jsonnet ... error\r\n    Complete output from command /Users/gabrielgordon-hall/anaconda/bin/python -u -c \"import setuptools, tokenize;__file__='/private/var/folders/kn/ck6tzd4n36l_6chhyvgxv8_80000gn/T/pip-install-co6r6y5j/jsonnet/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, __file__, 'exec'))\" install --record /private/var/folders/kn/ck6tzd4n36l_6chhyvgxv8_80000gn/T/pip-record-neozg46d/install-record.txt --single-version-externally-managed --compile:\r\n    running install\r\n    running build\r\n    running build_ext\r\n    make: `core/desugarer.o' is up to date.\r\n    make: `core/formatter.o' is up to date.\r\n    make: `core/libjsonnet.o' is up to date.\r\n    make: `core/lexer.o' is up to date.\r\n    make: `core/parser.o' is up to date.\r\n    make: `core/pass.o' is up to date.\r\n    make: `core/static_analysis.o' is up to date.\r\n    make: `core/string_utils.o' is up to date.\r\n    make: `core/vm.o' is up to date.\r\n    make: `third_party/md5/md5.o' is up to date.\r\n    building '_jsonnet' extension\r\n    creating build\r\n    creating build/temp.macosx-10.7-x86_64-3.6\r\n    creating build/temp.macosx-10.7-x86_64-3.6/python\r\n    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/gabrielgordon-hall/anaconda/include -arch x86_64 -I/Users/gabrielgordon-hall/anaconda/include -arch x86_64 -Iinclude -Ithird_party/md5 -I/Users/gabrielgordon-hall/anaconda/include/python3.6m -c python/_jsonnet.c -o build/temp.macosx-10.7-x86_64-3.6/python/_jsonnet.o\r\n    python/_jsonnet.c:147:19: warning: comparison of integers of different signs: 'int' and 'const size_t' (aka 'const unsigned long') [-Wsign-compare]\r\n        for (i = 0; i < ctx->argc; ++i) {\r\n                    ~ ^ ~~~~~~~~~\r\n    1 warning generated.\r\n    creating build/lib.macosx-10.7-x86_64-3.6\r\n    g++ -bundle -undefined dynamic_lookup -L/Users/gabrielgordon-hall/anaconda/lib -arch x86_64 -L/Users/gabrielgordon-hall/anaconda/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.7-x86_64-3.6/python/_jsonnet.o core/desugarer.o core/formatter.o core/libjsonnet.o core/lexer.o core/parser.o core/pass.o core/static_analysis.o core/string_utils.o core/vm.o third_party/md5/md5.o -o build/lib.macosx-10.7-x86_64-3.6/_jsonnet.cpython-36m-darwin.so\r\n    clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]\r\n    ld: library not found for -lstdc++\r\n    clang: error: linker command failed with exit code 1 (use -v to see invocation)\r\n    error: command 'g++' failed with exit status 1\r\n\r\n    ----------------------------------------\r\nCommand \"/Users/gabrielgordon-hall/anaconda/bin/python -u -c \"import setuptools, tokenize;__file__='/private/var/folders/kn/ck6tzd4n36l_6chhyvgxv8_80000gn/T/pip-install-co6r6y5j/jsonnet/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, __file__, 'exec'))\" install --record /private/var/folders/kn/ck6tzd4n36l_6chhyvgxv8_80000gn/T/pip-record-neozg46d/install-record.txt --single-version-externally-managed --compile\" failed with error code 1 in /private/var/folders/kn/ck6tzd4n36l_6chhyvgxv8_80000gn/T/pip-install-co6r6y5j/jsonnet/\r\n```\r\n\r\nIs this a path problem? The output of `gcc --version` is:\r\n\r\n```\r\nConfigured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1\r\nApple LLVM version 10.0.0 (clang-1000.10.44.2)\r\nTarget: x86_64-apple-darwin18.0.0\r\nThread model: posix\r\nInstalledDir: /Library/Developer/CommandLineTools/usr/bin\r\n```"},"comment":{"url":"https://api.github.com/repos/google/jsonnet/issues/comments/432278368","html_url":"https://github.com/google/jsonnet/issues/570#issuecomment-432278368","issue_url":"https://api.github.com/repos/google/jsonnet/issues/570","id":432278368,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMjI3ODM2OA==","user":{"login":"ggordonhall","id":24595376,"node_id":"MDQ6VXNlcjI0NTk1Mzc2","avatar_url":"https://avatars3.githubusercontent.com/u/24595376?v=4","gravatar_id":"","url":"https://api.github.com/users/ggordonhall","html_url":"https://github.com/ggordonhall","followers_url":"https://api.github.com/users/ggordonhall/followers","following_url":"https://api.github.com/users/ggordonhall/following{/other_user}","gists_url":"https://api.github.com/users/ggordonhall/gists{/gist_id}","starred_url":"https://api.github.com/users/ggordonhall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggordonhall/subscriptions","organizations_url":"https://api.github.com/users/ggordonhall/orgs","repos_url":"https://api.github.com/users/ggordonhall/repos","events_url":"https://api.github.com/users/ggordonhall/events{/privacy}","received_events_url":"https://api.github.com/users/ggordonhall/received_events","type":"User","site_admin":false},"created_at":"2018-10-23T14:48:17Z","updated_at":"2018-10-23T14:48:17Z","author_association":"NONE","body":"You're right, seems to be a problem with `clang`. Received a similar error trying to compile hello world with `clang`. Could be related to [this](https://github.com/ccxt/ccxt/issues/3710) although haven't worked it out yet. "}}
{"actor":{"display_login":"ggordonhall"}}