{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/5705","repository_url":"https://api.github.com/repos/Microsoft/ChakraCore","labels_url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/5705/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/5705/comments","events_url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/5705/events","html_url":"https://github.com/Microsoft/ChakraCore/issues/5705","id":360439595,"node_id":"MDU6SXNzdWUzNjA0Mzk1OTU=","number":5705,"title":"Build issues with Ubuntu 16.04","user":{"login":"jessebartels","id":15057131,"node_id":"MDQ6VXNlcjE1MDU3MTMx","avatar_url":"https://avatars1.githubusercontent.com/u/15057131?v=4","gravatar_id":"","url":"https://api.github.com/users/jessebartels","html_url":"https://github.com/jessebartels","followers_url":"https://api.github.com/users/jessebartels/followers","following_url":"https://api.github.com/users/jessebartels/following{/other_user}","gists_url":"https://api.github.com/users/jessebartels/gists{/gist_id}","starred_url":"https://api.github.com/users/jessebartels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jessebartels/subscriptions","organizations_url":"https://api.github.com/users/jessebartels/orgs","repos_url":"https://api.github.com/users/jessebartels/repos","events_url":"https://api.github.com/users/jessebartels/events{/privacy}","received_events_url":"https://api.github.com/users/jessebartels/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-09-14T20:13:19Z","updated_at":"2018-09-14T22:54:59Z","closed_at":null,"author_association":"NONE","body":"Hey folks,\r\n\r\nRecently I've been trying to build ChakraCore for some dynamic analysis experiments and I have been running into build issues. I've installed all of the dependencies, but running ./build.sh gives me a linking error, specifically:\r\n\r\n> Run Build Command:\"/usr/bin/ninja\" \"cmTC_2d072\"\r\n> \r\n>   [1/2] Building CXX object CMakeFiles/cmTC_2d072.dir/testCXXCompiler.cxx.o\r\n> \r\n>   [2/2] Linking CXX executable cmTC_2d072\r\n> \r\n>   FAILED: : && /usr/bin/clang++\r\n>   CMakeFiles/cmTC_2d072.dir/testCXXCompiler.cxx.o -o cmTC_2d072 -rdynamic &&\r\n>   :\r\n> \r\n>   /usr/bin/ld: cannot find -lstdc++\r\n> \r\n>   clang: error: linker command failed with exit code 1 (use -v to see\r\n>   invocation)\r\n> \r\n>   ninja: build stopped: subcommand failed.\r\n\r\nI have tried a few things to work around this:\r\n- Adding -stdlib=stdc++ to command line option in CMake\r\n- Using ninja\r\n- Updating clang/lllvm/libc++\r\n- Setting my library path to where libstdc++.so.6 lives\r\n- Symlinking libstdc++ to where libstdc++.so.6 lives\r\n\r\nSymlinking libstc++ fixes the linker problem, but then I get build issues for a lot of files:\r\n\r\n> ../../pal/inc/safemath.h:41:10: fatal error: 'type_traits' file not found\r\n> #include <type_traits>\r\n\r\nHas anyone had build experiences like this before? I appreciate your time and patience and appreciate any assistance. Thanks"},"comment":{"url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/comments/421504758","html_url":"https://github.com/Microsoft/ChakraCore/issues/5705#issuecomment-421504758","issue_url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/5705","id":421504758,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTUwNDc1OA==","user":{"login":"sethbrenith","id":828701,"node_id":"MDQ6VXNlcjgyODcwMQ==","avatar_url":"https://avatars2.githubusercontent.com/u/828701?v=4","gravatar_id":"","url":"https://api.github.com/users/sethbrenith","html_url":"https://github.com/sethbrenith","followers_url":"https://api.github.com/users/sethbrenith/followers","following_url":"https://api.github.com/users/sethbrenith/following{/other_user}","gists_url":"https://api.github.com/users/sethbrenith/gists{/gist_id}","starred_url":"https://api.github.com/users/sethbrenith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sethbrenith/subscriptions","organizations_url":"https://api.github.com/users/sethbrenith/orgs","repos_url":"https://api.github.com/users/sethbrenith/repos","events_url":"https://api.github.com/users/sethbrenith/events{/privacy}","received_events_url":"https://api.github.com/users/sethbrenith/received_events","type":"User","site_admin":false},"created_at":"2018-09-14T22:54:59Z","updated_at":"2018-09-14T22:54:59Z","author_association":"MEMBER","body":"Hm, either you don't have type_traits or the include path doesn't contain the right directory. Could you please check the following and see if it turns anything up?\r\n\r\n```bash\r\nls /usr/include/c++/*/type_traits\r\n```\r\n"}}
{"actor":{"display_login":"sethbrenith"}}