From owner-freebsd-ports-bugs@freebsd.org Wed Aug 9 22:00:52 2017 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BB703DD6ED2 for ; Wed, 9 Aug 2017 22:00:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A8F1231EF for ; Wed, 9 Aug 2017 22:00:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v79M0qm3000547 for ; Wed, 9 Aug 2017 22:00:52 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 221378] lang/rust: libc needs to be patched after `struct kevent` change in 12-CURRENT Date: Wed, 09 Aug 2017 22:00:51 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dumbbell@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Aug 2017 22:00:52 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D221378 Bug ID: 221378 Summary: lang/rust: libc needs to be patched after `struct kevent` change in 12-CURRENT Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: dumbbell@FreeBSD.org In r320043 (https://svnweb.freebsd.org/changeset/base/320043), `struct keve= nt` was modified in the following way: @@ -62,8 +66,9 @@ short filter; /* filter for event */ unsigned short flags; unsigned int fflags; - __intptr_t data; + __int64_t data; void *udata; /* opaque user data identifier */ + __uint64_t ext[4]; }; It means we need to patch libc's Rust version of that structure in `src/unix/bsd/freebsdlike/mod.rs`, when built on FreeBSD 12-CURRENT: pub struct kevent { pub ident: ::uintptr_t, pub filter: ::c_short, pub flags: ::c_ushort, pub fflags: ::c_uint, pub data: ::intptr_t, pub udata: *mut ::c_void, } I don't know if it's a consequence of this problem, but the `mio` crate doe= sn't work on my laptop running HEAD: $ cargo test Updating registry `https://github.com/rust-lang/crates.io-index` Compiling libc v0.2.29 Compiling slab v0.3.0 ... Finished dev [unoptimized + debuginfo] target(s) in 9.10 secs Running target/debug/deps/mio-368f23a642284461 running 3 tests test sys::unix::kqueue::test_coalesce_aio ... ok test poll::as_raw_fd ... FAILED test sys::unix::kqueue::does_not_register_rw ... FAILED failures: ---- poll::as_raw_fd stdout ---- thread 'poll::as_raw_fd' panicked at 'assertion failed: `(left =3D= =3D right)` (left: `0`, right: `16384`)', src/sys/unix/kqueue.rs:117 ---- sys::unix::kqueue::does_not_register_rw stdout ---- thread 'sys::unix::kqueue::does_not_register_rw' panicked at 'asser= tion failed: `(left =3D=3D right)` (left: `0`, right: `16384`)', src/sys/unix/kqueue.rs:117 note: Run with `RUST_BACKTRACE=3D1` for a backtrace. failures: poll::as_raw_fd sys::unix::kqueue::does_not_register_rw test result: FAILED. 1 passed; 2 failed; 0 ignored; 0 measured; 0 filte= red out error: test failed, to rerun pass '--lib' This is quite problematic because important crates such as `tokio-core` or `hyper` do not work... --- Comment #1 from Bugzilla Automation --- Maintainer informed via mail --=20 You are receiving this mail because: You are the assignee for the bug.=