{"action":"created","issue":{"url":"https://api.github.com/repos/p4lang/p4c/issues/1644","repository_url":"https://api.github.com/repos/p4lang/p4c","labels_url":"https://api.github.com/repos/p4lang/p4c/issues/1644/labels{/name}","comments_url":"https://api.github.com/repos/p4lang/p4c/issues/1644/comments","events_url":"https://api.github.com/repos/p4lang/p4c/issues/1644/events","html_url":"https://github.com/p4lang/p4c/issues/1644","id":394495613,"node_id":"MDU6SXNzdWUzOTQ0OTU2MTM=","number":1644,"title":"Parallel p4c builds recently broken?","user":{"login":"jafingerhut","id":109629,"node_id":"MDQ6VXNlcjEwOTYyOQ==","avatar_url":"https://avatars2.githubusercontent.com/u/109629?v=4","gravatar_id":"","url":"https://api.github.com/users/jafingerhut","html_url":"https://github.com/jafingerhut","followers_url":"https://api.github.com/users/jafingerhut/followers","following_url":"https://api.github.com/users/jafingerhut/following{/other_user}","gists_url":"https://api.github.com/users/jafingerhut/gists{/gist_id}","starred_url":"https://api.github.com/users/jafingerhut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jafingerhut/subscriptions","organizations_url":"https://api.github.com/users/jafingerhut/orgs","repos_url":"https://api.github.com/users/jafingerhut/repos","events_url":"https://api.github.com/users/jafingerhut/events{/privacy}","received_events_url":"https://api.github.com/users/jafingerhut/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-12-27T21:54:46Z","updated_at":"2018-12-27T22:13:27Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I have used a script for building p4c for over a year now, consistently using the ability of make to do parallel builds using command line options like `-j 4` to enable up to 4 parallel processes to be run by `make`.\r\n\r\nSince some time around the latest version of p4c as of 2018-Dec-21, or perhaps starting 1 or 2 commits after that date, I get fairly consistent failures when using `-j4`, but it seems that I can get consistent build success if I use `-j1`, or no `-j<number>` argument at all.\r\n\r\nSince there is an easy workaround, I do not consider this a high priority issue, but in case anyone who knows more about the p4c build process than I do wants this feature to work, I wanted to create an issue that perhaps it is not.\r\n\r\nBelow are the particular command line options and steps I have been using that cause the failure:\r\n```\r\ncd p4c\r\n/bin/rm -fr build\r\nmkdir build\r\ncd build\r\ncmake .. -DCMAKE_BUILD_TYPE=DEBUG\r\nmake -j4\r\n```\r\n\r\nI am using Ubuntu Linux 16.04 and/or 18.04 for my builds, and seeing similar parallel build issues with both."},"comment":{"url":"https://api.github.com/repos/p4lang/p4c/issues/comments/450240339","html_url":"https://github.com/p4lang/p4c/issues/1644#issuecomment-450240339","issue_url":"https://api.github.com/repos/p4lang/p4c/issues/1644","id":450240339,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDI0MDMzOQ==","user":{"login":"jafingerhut","id":109629,"node_id":"MDQ6VXNlcjEwOTYyOQ==","avatar_url":"https://avatars2.githubusercontent.com/u/109629?v=4","gravatar_id":"","url":"https://api.github.com/users/jafingerhut","html_url":"https://github.com/jafingerhut","followers_url":"https://api.github.com/users/jafingerhut/followers","following_url":"https://api.github.com/users/jafingerhut/following{/other_user}","gists_url":"https://api.github.com/users/jafingerhut/gists{/gist_id}","starred_url":"https://api.github.com/users/jafingerhut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jafingerhut/subscriptions","organizations_url":"https://api.github.com/users/jafingerhut/orgs","repos_url":"https://api.github.com/users/jafingerhut/repos","events_url":"https://api.github.com/users/jafingerhut/events{/privacy}","received_events_url":"https://api.github.com/users/jafingerhut/received_events","type":"User","site_admin":false},"created_at":"2018-12-27T22:13:27Z","updated_at":"2018-12-27T22:13:27Z","author_association":"CONTRIBUTOR","body":"Trying out a few more variations, I noticed that I get a pretty consistent failure with one of my shell scripts that uses `-j4`, but another one with `-j3` seems to successfully build pretty consistently.  I have attached a file showing the error message I get with a `-j4` run.  I was running on a VM with 4 GBytes of RAM, and it never ran out of memory, as determined by running `top` while the failing build ran.  At the time of the first compilation error messages coming out in that sample output, there was over 1 GByte of free RAM.\r\n[p4c-build-j4-error.txt](https://github.com/p4lang/p4c/files/2713472/p4c-build-j4-error.txt)\r\n"}}
{"actor":{"display_login":"jafingerhut"}}