{"action":"created","issue":{"url":"https://api.github.com/repos/WebAssembly/binaryen/issues/822","repository_url":"https://api.github.com/repos/WebAssembly/binaryen","labels_url":"https://api.github.com/repos/WebAssembly/binaryen/issues/822/labels{/name}","comments_url":"https://api.github.com/repos/WebAssembly/binaryen/issues/822/comments","events_url":"https://api.github.com/repos/WebAssembly/binaryen/issues/822/events","html_url":"https://github.com/WebAssembly/binaryen/issues/822","id":187397846,"number":822,"title":"[setup/question] File not found for hello.c demo","user":{"login":"jadekler","id":3584893,"avatar_url":"https://avatars.githubusercontent.com/u/3584893?v=3","gravatar_id":"","url":"https://api.github.com/users/jadekler","html_url":"https://github.com/jadekler","followers_url":"https://api.github.com/users/jadekler/followers","following_url":"https://api.github.com/users/jadekler/following{/other_user}","gists_url":"https://api.github.com/users/jadekler/gists{/gist_id}","starred_url":"https://api.github.com/users/jadekler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jadekler/subscriptions","organizations_url":"https://api.github.com/users/jadekler/orgs","repos_url":"https://api.github.com/users/jadekler/repos","events_url":"https://api.github.com/users/jadekler/events{/privacy}","received_events_url":"https://api.github.com/users/jadekler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-11-04T17:50:08Z","updated_at":"2016-11-15T03:23:25Z","closed_at":null,"body":"Hello! I'm on a clean mac `gcc` and `cmake` installed. When I try to run through the [getting-started](http://webassembly.org/getting-started/developers-guide/) guides, I run into the following. Any ideas?\r\n\r\n```\r\n 2016-11-04 11:47:43 ☆  |2.3.0| DEN_Recently_Imaged in ~/dev/webassembly/hello\r\n○ → emcc hello.c -s WASM=1 -o hello.html\r\nINFO:root:generating system asset: is_vanilla.txt... (this will be cached in \"/Users/pivotal/.emscripten_cache/is_vanilla.txt\" for subsequent builds)\r\nINFO:root: - ok\r\nINFO:root:(Emscripten: Running sanity checks)\r\nWARNING:root:retrieving port: binaryen from https://github.com/WebAssembly/binaryen/archive/version_18.zip\r\nWARNING:root:unpacking port: binaryen\r\nINFO:root:generating port: binaryen_tag_version_18.txt... (this will be cached in \"/Users/pivotal/.emscripten_cache/asmjs/binaryen_tag_version_18.txt\" for subsequent builds)\r\nINFO:root:building port: binaryen\r\n-- The C compiler identification is Clang 3.9.0\r\n-- The CXX compiler identification is Clang 3.9.0\r\n-- Check for working C compiler: /Users/pivotal/dev/webassembly/emsdk_portable/clang/fastcomp/build_incoming_64/bin/clang\r\n-- Check for working C compiler: /Users/pivotal/dev/webassembly/emsdk_portable/clang/fastcomp/build_incoming_64/bin/clang -- works\r\n-- Detecting C compiler ABI info\r\n-- Detecting C compiler ABI info - done\r\n-- Check for working CXX compiler: /Users/pivotal/dev/webassembly/emsdk_portable/clang/fastcomp/build_incoming_64/bin/clang++\r\n-- Check for working CXX compiler: /Users/pivotal/dev/webassembly/emsdk_portable/clang/fastcomp/build_incoming_64/bin/clang++ -- works\r\n-- Detecting CXX compiler ABI info\r\n-- Detecting CXX compiler ABI info - done\r\n-- Looking for pthread.h\r\n-- Looking for pthread.h - found\r\n-- Looking for pthread_create\r\n-- Looking for pthread_create - found\r\n-- Found Threads: TRUE\r\n-- Building with -std=c++11\r\n-- Building with -msse2\r\n-- Building with -mfpmath=sse\r\n-- Building with -Wall\r\n-- Building with -Werror\r\n-- Building with -Wextra\r\n-- Building with -Wno-unused-parameter\r\n-- Building with -fno-omit-frame-pointer\r\n-- Building with -fPIC\r\n-- Building with -O2\r\n-- Building with -UNDEBUG\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   binaryen\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/pivotal/.emscripten_ports/binaryen/binaryen-version_18\r\nScanning dependencies of target asmjs\r\nScanning dependencies of target wasm\r\nScanning dependencies of target support\r\nScanning dependencies of target emscripten-optimizer\r\nScanning dependencies of target passes\r\n[  4%] Building CXX object src/emscripten-optimizer/CMakeFiles/emscripten-optimizer.dir/simple_ast.cpp.o\r\n[  6%] Building CXX object src/asmjs/CMakeFiles/asmjs.dir/asm_v_wasm.cpp.o\r\n[  6%] Building CXX object src/emscripten-optimizer/CMakeFiles/emscripten-optimizer.dir/optimizer-shared.cpp.o\r\n[  6%] Building CXX object src/asmjs/CMakeFiles/asmjs.dir/shared-constants.cpp.o\r\n[  7%] Building CXX object src/emscripten-optimizer/CMakeFiles/emscripten-optimizer.dir/parser.cpp.o\r\n[  9%] Building CXX object src/support/CMakeFiles/support.dir/archive.cpp.o\r\n[ 10%] Building CXX object src/wasm/CMakeFiles/wasm.dir/wasm.cpp.o\r\nIn file included from In file included from /Users/pivotal/.emscripten_ports/binaryen/binaryen-version_18/src/asmjs/asm_v_wasm.cpp/Users/pivotal/.emscripten_ports/binaryen/binaryen-version_18/src/support/archive.cpp::1717:\r\n:\r\nIn file included from /Users/pivotal/.emscripten_ports/binaryen/binaryen-version_18/src/asm_v_wasm.h:/Users/pivotal/.emscripten_ports/binaryen/binaryen-version_18/src/support/archive.h20::\r\n27:10/Users/pivotal/.emscripten_ports/binaryen/binaryen-version_18/src/mixed_arena.h:: 20:10fatal error::  'cstdint'fatal error/Users/pivotal/.emscripten_ports/binaryen/binaryen-version_18/src/emscripten-optimizer/optimizer-shared.cpp:  :file17 :'atomic'not10  :filefound  not\r\n foundfatal error:\r\n'limits'In file included from  /Users/pivotal/.emscripten_ports/binaryen/binaryen-version_18/src/emscripten-optimizer/simple_ast.cppfile: 17not:\r\n found/Users/pivotal/.emscripten_ports/binaryen/binaryen-version_18/src/emscripten-optimizer/simple_ast.h:\r\n20:10: fatal error: #include <atomic>#include <cstdint>'algorithm'\r\n\r\n file         ^         ^\r\n\r\nnot found\r\n#include <limits>\r\n         ^\r\n#include <algorithm>\r\n         ^\r\nIn file included from /Users/pivotal/.emscripten_ports/binaryen/binaryen-version_18/src/emscripten-optimizer/parser.cpp:17:\r\n/Users/pivotal/.emscripten_ports/binaryen/binaryen-version_18/src/emscripten-optimizer/parser.h:25:10: fatal error: 'algorithm' file not found\r\n#include <algorithm>\r\n         ^\r\nIn file included from /Users/pivotal/.emscripten_ports/binaryen/binaryen-version_18/src/asmjs/shared-constants.cpp:17:\r\nIn file included from /Users/pivotal/.emscripten_ports/binaryen/binaryen-version_18/src/asmjs/shared-constants.h:20:\r\n/Users/pivotal/.emscripten_ports/binaryen/binaryen-version_18/src/emscripten-optimizer/istring.h:22:10: fatal error: 'unordered_set' file not found\r\n#include <unordered_set>\r\n         ^\r\n[ 12%] Building CXX object src/passes/CMakeFiles/passes.dir/pass.cpp.o\r\nIn file included from /Users/pivotal/.emscripten_ports/binaryen/binaryen-version_18/src/wasm/wasm.cpp:17:\r\n/Users/pivotal/.emscripten_ports/binaryen/binaryen-version_18/src/wasm.h:46:10: fatal error: 'cassert' file not found\r\n#include <cassert>\r\n         ^\r\n/Users/pivotal/.emscripten_ports/binaryen/binaryen-version_18/src/passes/pass.cpp:17:10: fatal error: 'chrono' file not found\r\n#include <chrono>\r\n         ^\r\n1 error generated.\r\nmake[2]: *** [src/asmjs/CMakeFiles/asmjs.dir/shared-constants.cpp.o] Error 1\r\nmake[2]: *** Waiting for unfinished jobs....\r\n1 error generated.\r\n[ 13%] Building CXX object src/support/CMakeFiles/support.dir/bits.cpp.o\r\nmake[2]: *** [src/emscripten-optimizer/CMakeFiles/emscripten-optimizer.dir/parser.cpp.o] Error 1\r\nmake[2]: *** Waiting for unfinished jobs....\r\n[ 15%] Building CXX object src/wasm/CMakeFiles/wasm.dir/wasm-binary.cpp.o\r\nIn file included from /Users/pivotal/.emscripten_ports/binaryen/binaryen-version_18/src/support/bits.cpp:19:\r\n/Users/pivotal/.emscripten_ports/binaryen/binaryen-version_18/src/support/bits.h:20:10: fatal error: 'climits' file not found\r\n#include <climits>\r\n         ^\r\n1 error generated.\r\nmake[2]: *** [src/support/CMakeFiles/support.dir/bits.cpp.o] Error 1\r\nmake[2]: *** Waiting for unfinished jobs....\r\nIn file included from /Users/pivotal/.emscripten_ports/binaryen/binaryen-version_18/src/wasm/wasm-binary.cpp:17:\r\n/Users/pivotal/.emscripten_ports/binaryen/binaryen-version_18/src/wasm-binary.h:24:10: fatal error: 'cassert' file not found\r\n#include <cassert>\r\n         ^\r\n1 error generated.\r\n[ 16%] Building CXX object src/passes/CMakeFiles/passes.dir/CoalesceLocals.cpp.o\r\nmake[2]: *** [src/emscripten-optimizer/CMakeFiles/emscripten-optimizer.dir/simple_ast.cpp.o] Error 1\r\n1 error generated.\r\nmake[2]: *** [src/emscripten-optimizer/CMakeFiles/emscripten-optimizer.dir/optimizer-shared.cpp.o] Error 1\r\nmake[1]: *** [src/emscripten-optimizer/CMakeFiles/emscripten-optimizer.dir/all] Error 2\r\nmake[1]: *** Waiting for unfinished jobs....\r\n[ 18%] Building CXX object src/wasm/CMakeFiles/wasm.dir/wasm-s-parser.cpp.o\r\n[ 20%] Building CXX object src/passes/CMakeFiles/passes.dir/CodePushing.cpp.o\r\n/Users/pivotal/.emscripten_ports/binaryen/binaryen-version_18/src/passes/CoalesceLocals.cpp:25:10: fatal error: 'algorithm' file not found\r\n#include <algorithm>\r\n         ^\r\nIn file included from /Users/pivotal/.emscripten_ports/binaryen/binaryen-version_18/src/wasm/wasm-s-parser.cpp:17:\r\nIn file included from /Users/pivotal/.emscripten_ports/binaryen/binaryen-version_18/src/wasm-s-parser.h:25:\r\n/Users/pivotal/.emscripten_ports/binaryen/binaryen-version_18/src/wasm.h:46:10: fatal error: 'cassert' file not found\r\n#include <cassert>\r\n         ^\r\n1 error generated.\r\nIn file included from /Users/pivotal/.emscripten_ports/binaryen/binaryen-version_18/src/passes/CodePushing.cpp:22:\r\n/Users/pivotal/.emscripten_ports/binaryen/binaryen-version_18/src/wasm.h:46:10: fatal error: 'cassert' file not found\r\n#include <cassert>\r\n         ^\r\nmake[2]: *** [src/support/CMakeFiles/support.dir/archive.cpp.o] Error 1\r\nmake[1]: *** [src/support/CMakeFiles/support.dir/all] Error 2\r\n[ 21%] Building CXX object src/passes/CMakeFiles/passes.dir/DeadCodeElimination.cpp.o\r\n1 error generated.\r\nmake[2]: *** [src/asmjs/CMakeFiles/asmjs.dir/asm_v_wasm.cpp.o] Error 1\r\nmake[1]: *** [src/asmjs/CMakeFiles/asmjs.dir/all] Error 2\r\n[ 23%] Building CXX object src/passes/CMakeFiles/passes.dir/DuplicateFunctionElimination.cpp.o\r\nIn file included from /Users/pivotal/.emscripten_ports/binaryen/binaryen-version_18/src/passes/DeadCodeElimination.cpp:31:\r\n/Users/pivotal/.emscripten_ports/binaryen/binaryen-version_18/src/wasm.h:46:10: fatal error: 'cassert' file not found\r\n#include <cassert>\r\n         ^\r\n1 error generated.\r\nmake[2]: *** [src/wasm/CMakeFiles/wasm.dir/wasm.cpp.o] Error 1\r\nmake[2]: *** Waiting for unfinished jobs....\r\nIn file included from /Users/pivotal/.emscripten_ports/binaryen/binaryen-version_18/src/passes/DuplicateFunctionElimination.cpp:23:\r\n/Users/pivotal/.emscripten_ports/binaryen/binaryen-version_18/src/wasm.h:46:10: fatal error: 'cassert' file not found\r\n#include <cassert>\r\n         ^\r\n1 error generated.\r\n[ 24%] Building CXX object src/passes/CMakeFiles/passes.dir/ExtractFunction.cpp.o\r\nmake[2]: *** [src/passes/CMakeFiles/passes.dir/pass.cpp.o] Error 1\r\nmake[2]: *** Waiting for unfinished jobs....\r\nIn file included from /Users/pivotal/.emscripten_ports/binaryen/binaryen-version_18/src/passes/ExtractFunction.cpp:21:\r\n/Users/pivotal/.emscripten_ports/binaryen/binaryen-version_18/src/wasm.h:46:10: fatal error: 'cassert' file not found\r\n#include <cassert>\r\n         ^\r\n1 error generated.\r\nmake[2]: *** [src/passes/CMakeFiles/passes.dir/CoalesceLocals.cpp.o] Error 1\r\n1 error generated.\r\nmake[2]: *** [src/passes/CMakeFiles/passes.dir/CodePushing.cpp.o] Error 1\r\n1 error generated.\r\nmake[2]: *** [src/passes/CMakeFiles/passes.dir/DeadCodeElimination.cpp.o] Error 1\r\n1 error generated.\r\n1 error generated.\r\nmake[2]: *** [src/passes/CMakeFiles/passes.dir/ExtractFunction.cpp.o] Error 1\r\nmake[2]: *** [src/passes/CMakeFiles/passes.dir/DuplicateFunctionElimination.cpp.o] Error 1\r\nmake[1]: *** [src/passes/CMakeFiles/passes.dir/all] Error 2\r\n1 error generated.\r\n1 error generated.\r\nmake[2]: *** [src/wasm/CMakeFiles/wasm.dir/wasm-s-parser.cpp.o] Error 1\r\nmake[2]: *** [src/wasm/CMakeFiles/wasm.dir/wasm-binary.cpp.o] Error 1\r\nmake[1]: *** [src/wasm/CMakeFiles/wasm.dir/all] Error 2\r\nmake: *** [all] Error 2\r\nTraceback (most recent call last):\r\n  File \"/Users/pivotal/dev/webassembly/emsdk_portable/emscripten/incoming/emcc\", line 13, in <module>\r\n    emcc.run()\r\n  File \"/Users/pivotal/dev/webassembly/emsdk_portable/emscripten/incoming/emcc.py\", line 1337, in run\r\n    compile_source_file(i, input_file)\r\n  File \"/Users/pivotal/dev/webassembly/emsdk_portable/emscripten/incoming/emcc.py\", line 1326, in compile_source_file\r\n    args = get_bitcode_args([input_file]) + ['-emit-llvm', '-c', '-o', output_file]\r\n  File \"/Users/pivotal/dev/webassembly/emsdk_portable/emscripten/incoming/emcc.py\", line 1309, in get_bitcode_args\r\n    args = system_libs.process_args(args, shared.Settings)\r\n  File \"/Users/pivotal/dev/webassembly/emsdk_portable/emscripten/incoming/tools/system_libs.py\", line 636, in process_args\r\n    args = port.process_args(Ports, args, settings, shared)\r\n  File \"/Users/pivotal/dev/webassembly/emsdk_portable/emscripten/incoming/tools/ports/binaryen.py\", line 34, in process_args\r\n    get(ports, settings, shared)\r\n  File \"/Users/pivotal/dev/webassembly/emsdk_portable/emscripten/incoming/tools/ports/binaryen.py\", line 29, in get\r\n    return [shared.Cache.get('binaryen_tag_' + TAG, create, what='port', extension='.txt')]\r\n  File \"/Users/pivotal/dev/webassembly/emsdk_portable/emscripten/incoming/tools/cache.py\", line 95, in get\r\n    temp = creator()\r\n  File \"/Users/pivotal/dev/webassembly/emsdk_portable/emscripten/incoming/tools/ports/binaryen.py\", line 24, in create\r\n    ports.build_native(os.path.join(ports.get_dir(), 'binaryen', 'binaryen-' + TAG))\r\n  File \"/Users/pivotal/dev/webassembly/emsdk_portable/emscripten/incoming/tools/system_libs.py\", line 607, in build_native\r\n    subprocess.check_call(['cmake', '--build', '.'] + make_args, env=env)\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py\", line 540, in check_call\r\n    raise CalledProcessError(retcode, cmd)\r\nsubprocess.CalledProcessError: Command '['cmake', '--build', '.', '--', '-j', '8']' returned non-zero exit status 2\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/WebAssembly/binaryen/issues/comments/260536806","html_url":"https://github.com/WebAssembly/binaryen/issues/822#issuecomment-260536806","issue_url":"https://api.github.com/repos/WebAssembly/binaryen/issues/822","id":260536806,"user":{"login":"kripken","id":173661,"avatar_url":"https://avatars.githubusercontent.com/u/173661?v=3","gravatar_id":"","url":"https://api.github.com/users/kripken","html_url":"https://github.com/kripken","followers_url":"https://api.github.com/users/kripken/followers","following_url":"https://api.github.com/users/kripken/following{/other_user}","gists_url":"https://api.github.com/users/kripken/gists{/gist_id}","starred_url":"https://api.github.com/users/kripken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kripken/subscriptions","organizations_url":"https://api.github.com/users/kripken/orgs","repos_url":"https://api.github.com/users/kripken/repos","events_url":"https://api.github.com/users/kripken/events{/privacy}","received_events_url":"https://api.github.com/users/kripken/received_events","type":"User","site_admin":false},"created_at":"2016-11-15T03:23:25Z","updated_at":"2016-11-15T03:23:25Z","body":"@juj - this looks like a cmake issue on OS X, which you know a lot about, if you have time please take a look."}}
{"actor":{"display_login":"kripken"}}