{"action":"created","issue":{"url":"https://api.github.com/repos/servo/servo/issues/21857","repository_url":"https://api.github.com/repos/servo/servo","labels_url":"https://api.github.com/repos/servo/servo/issues/21857/labels{/name}","comments_url":"https://api.github.com/repos/servo/servo/issues/21857/comments","events_url":"https://api.github.com/repos/servo/servo/issues/21857/events","html_url":"https://github.com/servo/servo/issues/21857","id":366162488,"node_id":"MDU6SXNzdWUzNjYxNjI0ODg=","number":21857,"title":"Compilation failing [branch: master]","user":{"login":"devopsec","id":18452447,"node_id":"MDQ6VXNlcjE4NDUyNDQ3","avatar_url":"https://avatars3.githubusercontent.com/u/18452447?v=4","gravatar_id":"","url":"https://api.github.com/users/devopsec","html_url":"https://github.com/devopsec","followers_url":"https://api.github.com/users/devopsec/followers","following_url":"https://api.github.com/users/devopsec/following{/other_user}","gists_url":"https://api.github.com/users/devopsec/gists{/gist_id}","starred_url":"https://api.github.com/users/devopsec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devopsec/subscriptions","organizations_url":"https://api.github.com/users/devopsec/orgs","repos_url":"https://api.github.com/users/devopsec/repos","events_url":"https://api.github.com/users/devopsec/events{/privacy}","received_events_url":"https://api.github.com/users/devopsec/received_events","type":"User","site_admin":false},"labels":[{"id":268142805,"node_id":"MDU6TGFiZWwyNjgxNDI4MDU=","url":"https://api.github.com/repos/servo/servo/labels/A-build","name":"A-build","color":"d7e102","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-10-03T03:37:54Z","updated_at":"2018-10-07T18:49:36Z","closed_at":null,"author_association":"NONE","body":"OS version: Linux Mint 18.2\r\nKernel Relase: 4.15.0-29-generic\r\nKernel Version: #31~16.04.1-Ubuntu SMP Wed Jul 18 08:54:04 UTC 2018\r\nrustc version: rustc 1.30.0-nightly (7061b2775 2018-08-28)\r\nrustup version: rustup 1.13.0 (ea9259c1b 2018-07-16)\r\nSide Note: Linux Mint is an upstream version of Ubuntu, which is supported according to servo/python/servo/bootstrap.py. consider adding to disro list check, line num: 350.\r\n\r\nSeems rust has issues encoding arrays of type u8 that are > length 32?\r\n\r\nFull error below:\r\n\r\n<details>\r\n\r\n```rust\r\nerror[E0277]: the trait bound `u8: std::convert::From<rust::MutableHandle<'_, u8>>` is not satisfied\r\n    --> /home/anon/.cargo/registry/src/github.com-1ecc6299db9ec823/mozjs-0.9.2/src/rust.rs:1205:52\r\n     |\r\n1205 |             wrap!(@inner $saved <> ($($acc,)* $arg.into(),) <> $($rest)*);\r\n     |                                                    ^^^^ the trait `std::convert::From<rust::MutableHandle<'_, u8>>` is not implemented for `u8`\r\n     | \r\n    ::: /home/anon/.cargo/registry/src/github.com-1ecc6299db9ec823/mozjs-0.9.2/src/jsapi_wrappers.in:44:1\r\n     |\r\n44   | wrap!(jsapi: pub fn FinishMultiOffThreadScriptsDecoder(cx: *mut JSContext, token: *mut ::std::os::raw::c_void, scripts: MutableHandle<ScriptVector>) -> bool);\r\n     | -------------------------------------------------------------------------------------------------------------------------------------------------------------- in this macro invocation\r\n     |\r\n     = help: the following implementations were found:\r\n               <u8 as std::convert::From<bool>>\r\n     = note: required because of the requirements on the impl of `std::convert::Into<u8>` for `rust::MutableHandle<'_, u8>`\r\n\r\nerror[E0277]: the trait bound `u8: std::convert::From<rust::MutableHandle<'_, u8>>` is not satisfied\r\n    --> /home/anon/.cargo/registry/src/github.com-1ecc6299db9ec823/mozjs-0.9.2/src/rust.rs:1348:113\r\n     |\r\n1348 |             wrap!(@inner $saved <> ($($declargs)* $arg: &mut MutableHandle<$gentype> , )  <> ($($acc,)* (*$arg).into(),) <> $($rest)*);\r\n     |                                                                                                                 ^^^^ the trait `std::convert::From<rust::MutableHandle<'_, u8>>` is not implemented for `u8`\r\n     | \r\n    ::: /home/anon/.cargo/registry/src/github.com-1ecc6299db9ec823/mozjs-0.9.2/src/jsapi_wrappers.in:44:1\r\n     |\r\n44   | wrap!(jsapi: pub fn FinishMultiOffThreadScriptsDecoder(cx: *mut JSContext, token: *mut ::std::os::raw::c_void, scripts: MutableHandle<ScriptVector>) -> bool);\r\n     | -------------------------------------------------------------------------------------------------------------------------------------------------------------- in this macro invocation\r\n     |\r\n     = help: the following implementations were found:\r\n               <u8 as std::convert::From<bool>>\r\n     = note: required because of the requirements on the impl of `std::convert::Into<u8>` for `rust::MutableHandle<'_, u8>`\r\n\r\nerror: aborting due to 2 previous errors\r\n\r\nFor more information about this error, try `rustc --explain E0277`.\r\nThe following warnings were emitted during compilation:\r\n\r\nwarning: src/jsglue.cpp: In function ‘void DeleteCompileOptions(JS::ReadOnlyCompileOptions*)’:\r\nwarning: src/jsglue.cpp:586:57: warning: deleting object of polymorphic class type ‘JS::OwningCompileOptions’ which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]\r\nwarning:      delete static_cast<JS::OwningCompileOptions *>(aOpts);\r\nwarning:                                                          ^\r\nwarning: At global scope:\r\nwarning: cc1plus: warning: unrecognized command line option ‘-Wno-return-type-c-linkage’\r\nwarning: cc1plus: warning: unrecognized command line option ‘-Wno-c++0x-extensions’\r\n\r\nerror: Could not compile `mozjs`.\r\n```\r\n\r\n</details>"},"comment":{"url":"https://api.github.com/repos/servo/servo/issues/comments/427677063","html_url":"https://github.com/servo/servo/issues/21857#issuecomment-427677063","issue_url":"https://api.github.com/repos/servo/servo/issues/21857","id":427677063,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzY3NzA2Mw==","user":{"login":"devopsec","id":18452447,"node_id":"MDQ6VXNlcjE4NDUyNDQ3","avatar_url":"https://avatars3.githubusercontent.com/u/18452447?v=4","gravatar_id":"","url":"https://api.github.com/users/devopsec","html_url":"https://github.com/devopsec","followers_url":"https://api.github.com/users/devopsec/followers","following_url":"https://api.github.com/users/devopsec/following{/other_user}","gists_url":"https://api.github.com/users/devopsec/gists{/gist_id}","starred_url":"https://api.github.com/users/devopsec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devopsec/subscriptions","organizations_url":"https://api.github.com/users/devopsec/orgs","repos_url":"https://api.github.com/users/devopsec/repos","events_url":"https://api.github.com/users/devopsec/events{/privacy}","received_events_url":"https://api.github.com/users/devopsec/received_events","type":"User","site_admin":false},"created_at":"2018-10-07T18:49:36Z","updated_at":"2018-10-07T18:49:36Z","author_association":"NONE","body":"Actually upgrading to clang v6.0 was able to compile mozjs, I forgot to update new version as my default binary.\r\n\r\nmozjs is compiling now but it looks like we're failing on mozjs_sys now...\r\n\r\nSystem info:\r\n\r\n```\r\ncat /etc/*release 2>/dev/null\r\n```\r\n\r\nDISTRIB_ID=LinuxMint\r\nDISTRIB_RELEASE=18.2\r\nDISTRIB_CODENAME=sonya\r\nDISTRIB_DESCRIPTION=\"Linux Mint 18.2 Sonya\"\r\nNAME=\"Linux Mint\"\r\nVERSION=\"18.2 (Sonya)\"\r\nID=linuxmint\r\nID_LIKE=ubuntu\r\nPRETTY_NAME=\"Linux Mint 18.2\"\r\nVERSION_ID=\"18.2\"\r\nHOME_URL=\"http://www.linuxmint.com/\"\r\nSUPPORT_URL=\"http://forums.linuxmint.com/\"\r\nBUG_REPORT_URL=\"http://bugs.launchpad.net/linuxmint/\"\r\nVERSION_CODENAME=sonya\r\nUBUNTU_CODENAME=xenial\r\n\r\n```\r\nclang --version\r\n```\r\n\r\nclang version 6.0.1-svn334776-1~exp1~20180919141756.113 (branches/release_60)\r\nTarget: x86_64-pc-linux-gnu\r\nThread model: posix\r\nInstalledDir: /usr/bin\r\n\r\n```\r\npython --version\r\n```\r\n\r\nPython 2.7.12\r\n\r\n```\r\nrustc --version\r\n```\r\n\r\nrustc 1.29.1 (b801ae664 2018-09-20)\r\n\r\n```\r\nrustup --version\r\n```\r\n\r\nrustup 1.13.0 (ea9259c1b 2018-07-16)\r\n\r\nError info w/ backtrace below:\r\n\r\n```\r\nexport RUST_BACKTRACE=1; ./mach build --release 2>&1 | tee debug_build.txt\r\n```\r\n\r\n[debug_build.txt](https://github.com/servo/servo/files/2454187/debug_build.txt)\r\n\r\n"}}
{"actor":{"display_login":"devopsec"}}