{"action":"created","issue":{"url":"https://api.github.com/repos/thehydroimpulse/nanomsg.rs/issues/97","labels_url":"https://api.github.com/repos/thehydroimpulse/nanomsg.rs/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/thehydroimpulse/nanomsg.rs/issues/97/comments","events_url":"https://api.github.com/repos/thehydroimpulse/nanomsg.rs/issues/97/events","html_url":"https://github.com/thehydroimpulse/nanomsg.rs/issues/97","id":56960406,"number":97,"title":"32 bit build error","user":{"login":"nyx","id":80505,"avatar_url":"https://avatars.githubusercontent.com/u/80505?v=3","gravatar_id":"","url":"https://api.github.com/users/nyx","html_url":"https://github.com/nyx","followers_url":"https://api.github.com/users/nyx/followers","following_url":"https://api.github.com/users/nyx/following{/other_user}","gists_url":"https://api.github.com/users/nyx/gists{/gist_id}","starred_url":"https://api.github.com/users/nyx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nyx/subscriptions","organizations_url":"https://api.github.com/users/nyx/orgs","repos_url":"https://api.github.com/users/nyx/repos","events_url":"https://api.github.com/users/nyx/events{/privacy}","received_events_url":"https://api.github.com/users/nyx/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-02-08T17:56:40Z","updated_at":"2015-02-10T05:35:41Z","closed_at":"2015-02-08T21:07:51Z","body":"I experienced build errors on a 32 bit Linux machine:\r\n\r\n```\r\ncargo build\r\n   Compiling link-config v0.1.1 (https://github.com/alexcrichton/link-config.git#9a30a0bf)\r\n   Compiling nanomsg-sys v0.1.0 (https://github.com/thehydroimpulse/nanomsg.rs.git#771d7913)\r\n   Compiling nanomsg v0.3.0 (https://github.com/thehydroimpulse/nanomsg.rs.git#771d7913)\r\n/home/vagrant/.cargo/git/checkouts/nanomsg.rs-87a2823cf330bb35/master/src/lib.rs:405:17: 405:35 error: mismatched types:\r\n expected `u32`,\r\n    found `u64`\r\n(expected u32,\r\n    found u64) [E0308]\r\n/home/vagrant/.cargo/git/checkouts/nanomsg.rs-87a2823cf330bb35/master/src/lib.rs:405                 libnanomsg::NN_MSG,\r\n                                                                                                     ^~~~~~~~~~~~~~~~~~\r\n/home/vagrant/.cargo/git/checkouts/nanomsg.rs-87a2823cf330bb35/master/src/lib.rs:874:17: 874:35 error: mismatched types:\r\n expected `u32`,\r\n    found `u64`\r\n(expected u32,\r\n    found u64) [E0308]\r\n/home/vagrant/.cargo/git/checkouts/nanomsg.rs-87a2823cf330bb35/master/src/lib.rs:874                 libnanomsg::NN_MSG,\r\n                                                                                                     ^~~~~~~~~~~~~~~~~~\r\nerror: aborting due to 2 previous errors\r\nCould not compile `nanomsg`.\r\n``` \r\n\r\nLooks like `libnanomsg::NN_MSG` is defined as a very large u64:\r\n\r\n```\r\npub const NN_MSG: u64 = -1;\r\n```\r\n\r\nhowever `nn_recv` expects a `libc::size_t` which is apparently a `u32` on this platform:\r\n\r\n```\r\npub fn nn_recv(socket: c_int, buf: *mut c_void, len: size_t, flags: c_int) -> c_int;\r\n```\r\n\r\nNot sure what the proper fix is yet.\r\n\r\n```\r\n$ cargo --version\r\ncargo 0.0.1-pre-nightly (dfd4868 2015-02-06 22:55:29 +0000)\r\n$ rustc --version\r\nrustc 1.0.0-dev (725cc0646 2015-02-08 12:35:03 +0000)\r\n\r\nUbuntu 14.04.1 LTS\r\n```"},"comment":{"url":"https://api.github.com/repos/thehydroimpulse/nanomsg.rs/issues/comments/73647243","html_url":"https://github.com/thehydroimpulse/nanomsg.rs/issues/97#issuecomment-73647243","issue_url":"https://api.github.com/repos/thehydroimpulse/nanomsg.rs/issues/97","id":73647243,"user":{"login":"blabaere","id":9447137,"avatar_url":"https://avatars.githubusercontent.com/u/9447137?v=3","gravatar_id":"","url":"https://api.github.com/users/blabaere","html_url":"https://github.com/blabaere","followers_url":"https://api.github.com/users/blabaere/followers","following_url":"https://api.github.com/users/blabaere/following{/other_user}","gists_url":"https://api.github.com/users/blabaere/gists{/gist_id}","starred_url":"https://api.github.com/users/blabaere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blabaere/subscriptions","organizations_url":"https://api.github.com/users/blabaere/orgs","repos_url":"https://api.github.com/users/blabaere/repos","events_url":"https://api.github.com/users/blabaere/events{/privacy}","received_events_url":"https://api.github.com/users/blabaere/received_events","type":"User","site_admin":false},"created_at":"2015-02-10T05:35:41Z","updated_at":"2015-02-10T05:35:41Z","body":"@thehydroimpulse I'm fine with that but we should check that we are still able to produce the binaries on major platforms. "}}