{"action":"created","issue":{"url":"https://api.github.com/repos/rust-embedded/cross/issues/257","repository_url":"https://api.github.com/repos/rust-embedded/cross","labels_url":"https://api.github.com/repos/rust-embedded/cross/issues/257/labels{/name}","comments_url":"https://api.github.com/repos/rust-embedded/cross/issues/257/comments","events_url":"https://api.github.com/repos/rust-embedded/cross/issues/257/events","html_url":"https://github.com/rust-embedded/cross/issues/257","id":410365548,"node_id":"MDU6SXNzdWU0MTAzNjU1NDg=","number":257,"title":"bindgen seems to don't work inside cross containers","user":{"login":"siscia","id":640555,"node_id":"MDQ6VXNlcjY0MDU1NQ==","avatar_url":"https://avatars0.githubusercontent.com/u/640555?v=4","gravatar_id":"","url":"https://api.github.com/users/siscia","html_url":"https://github.com/siscia","followers_url":"https://api.github.com/users/siscia/followers","following_url":"https://api.github.com/users/siscia/following{/other_user}","gists_url":"https://api.github.com/users/siscia/gists{/gist_id}","starred_url":"https://api.github.com/users/siscia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siscia/subscriptions","organizations_url":"https://api.github.com/users/siscia/orgs","repos_url":"https://api.github.com/users/siscia/repos","events_url":"https://api.github.com/users/siscia/events{/privacy}","received_events_url":"https://api.github.com/users/siscia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-02-14T15:50:34Z","updated_at":"2019-02-14T16:01:27Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI am trying to use cross to build a project which requires bindgen.\r\n\r\nIf I build the process directly from cross, bindgen is not able to find the needed library (namely libclang.so), however, if I start the same container and clone the repo inside, everything works just fine.\r\n\r\nWhat can be the causes?\r\nOpen similar issue on bindgen: https://github.com/rust-lang/rust-bindgen/issues/1411#issuecomment-463666326"},"comment":{"url":"https://api.github.com/repos/rust-embedded/cross/issues/comments/463682933","html_url":"https://github.com/rust-embedded/cross/issues/257#issuecomment-463682933","issue_url":"https://api.github.com/repos/rust-embedded/cross/issues/257","id":463682933,"node_id":"MDEyOklzc3VlQ29tbWVudDQ2MzY4MjkzMw==","user":{"login":"jamesmunns","id":2097964,"node_id":"MDQ6VXNlcjIwOTc5NjQ=","avatar_url":"https://avatars2.githubusercontent.com/u/2097964?v=4","gravatar_id":"","url":"https://api.github.com/users/jamesmunns","html_url":"https://github.com/jamesmunns","followers_url":"https://api.github.com/users/jamesmunns/followers","following_url":"https://api.github.com/users/jamesmunns/following{/other_user}","gists_url":"https://api.github.com/users/jamesmunns/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesmunns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesmunns/subscriptions","organizations_url":"https://api.github.com/users/jamesmunns/orgs","repos_url":"https://api.github.com/users/jamesmunns/repos","events_url":"https://api.github.com/users/jamesmunns/events{/privacy}","received_events_url":"https://api.github.com/users/jamesmunns/received_events","type":"User","site_admin":false},"created_at":"2019-02-14T16:01:27Z","updated_at":"2019-02-14T16:01:27Z","author_association":"MEMBER","body":"@siscia this sounds a bit like a problem with your PATH variable. I'm guessing you might be using two different shells when using the container. I think by default docker uses the Dash shell, and you (or `cross`) might be using Bash instead.\r\n\r\nMaybe in both cases, try adding the following to the procedure, and see if your outputs are different?\r\n\r\n```sh\r\n# print the current shell, one of these should work\r\necho $0\r\necho $SHELL\r\n\r\n# print the current path variable\r\necho $PATH\r\n```"}}
{"actor":{"display_login":"jamesmunns"}}