From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46176) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XR3Ny-0002J0-9l for qemu-devel@nongnu.org; Mon, 08 Sep 2014 14:09:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XR3Nt-0004ld-Rb for qemu-devel@nongnu.org; Mon, 08 Sep 2014 14:09:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48041) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XR3Nt-0004l3-Jd for qemu-devel@nongnu.org; Mon, 08 Sep 2014 14:09:49 -0400 Date: Mon, 8 Sep 2014 19:09:42 +0100 From: "Dr. David Alan Gilbert" Message-ID: <20140908180941.GL2474@work-vm> References: <20140831113005.11747.85125.malonedeb@chaenomeles.canonical.com> <20140831120602.29623.76040.launchpad@gac.canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20140831120602.29623.76040.launchpad@gac.canonical.com> Subject: Re: [Qemu-devel] [Bug 1363641] Re: Build of v2.1.0 fails on armv7l due to undeclared __NR_select List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Bug 1363641 <1363641@bugs.launchpad.net>, mrhines@us.ibm.com Cc: qemu-devel@nongnu.org (cc'ing Michael Hines who owns and knows the RDMA code) * Karl-Philipp Richter (krichter722@aol.de) wrote: > ** Description changed: >=20 > After `make clean` and `git clean -x -f -d` `git checkout v2.1.0 && > configure --prefix=3D/home/user/prefix-qemu-2.1.0 && make` fails due to > missing declarations > =20 > =A0=A0=A0=A0CC qemu-seccomp.o > =A0=A0=A0=A0qemu-seccomp.c:28:1: error: '__NR_select' undeclared here (= not in a function) > =A0=A0=A0=A0qemu-seccomp.c:36:1: error: '__NR_mmap' undeclared here (no= t in a function) > =A0=A0=A0=A0qemu-seccomp.c:57:1: error: '__NR_getrlimit' undeclared her= e (not in a function) > =A0=A0=A0=A0qemu-seccomp.c:96:1: error: '__NR_time' undeclared here (no= t in a function) > =A0=A0=A0=A0=A0=A0GEN qmp-marshal.c > =A0=A0=A0=A0qemu-seccomp.c:186:1: error: '__NR_alarm' undeclared here (= not in a function) > =A0=A0=A0=A0make: *** [qemu-seccomp.o] Error 1 > =20 > Same errors for master 8b3030114a449e66c68450acaac4b66f26d91416. > `configure`should not succeed for a failing build. `config.log` for > v2.1.0 and 8b303011... attached. The content is mostly compiler output > which I think is unusual for `config.log`, but see for yourself. > =20 > I'm building on a debian 7.6 chroot on Synology DSM 5.0. `uname -a` says > `Linux diskstatation 3.2.40 #4493 SMP Thu Aug 21 21:43:02 CST 2014 > armv7l GNU/Linux`. > +=20 > + After installing some of the missing header files (-> configure should > + fail at the right point with a good error message), i.e. `apt-get > + install liblzo2-dev libbsd-dev syslinux-common libhwloc-dev librdmacm- > + dev libsnappy-dev libibverbs-dev valgrind linux-headers-3.2.0-4-common` > + I'm getting > +=20 > + CC migration-rdma.o > + migration-rdma.c: In function 'ram_chunk_start': > + migration-rdma.c:523:12: error: cast to pointer from integer of dif= ferent size [-Werror=3Dint-to-pointer-cast] is that: return (uint8_t *) (((uintptr_t) rdma_ram_block->local_host_addr) + (i << RDMA_REG_CHUNK_SHIFT)); 244: uint8_t *local_host_addr; /* local virtual address */ in which case I think the problem is the 'i' which is a uint64_t. > + migration-rdma.c: In function '__qemu_rdma_add_block': > + migration-rdma.c:556:49: error: cast to pointer from integer of dif= ferent size [-Werror=3Dint-to-pointer-cast] > + migration-rdma.c:557:49: error: cast to pointer from integer of dif= ferent size [-Werror=3Dint-to-pointer-cast] > + migration-rdma.c: In function '__qemu_rdma_delete_block': > + migration-rdma.c:664:45: error: cast to pointer from integer of dif= ferent size [-Werror=3Dint-to-pointer-cast] > + migration-rdma.c:699:49: error: cast to pointer from integer of dif= ferent size [-Werror=3Dint-to-pointer-cast] > + migration-rdma.c: In function 'qemu_rdma_search_ram_block': > + migration-rdma.c:1113:49: error: cast to pointer from integer of di= fferent size [-Werror=3Dint-to-pointer-cast] > + migration-rdma.c: In function 'qemu_rdma_register_and_get_keys': > + migration-rdma.c:1176:50: error: cast from pointer to integer of di= fferent size [-Werror=3Dpointer-to-int-cast] > + migration-rdma.c:1177:29: error: cast from pointer to integer of di= fferent size [-Werror=3Dpointer-to-int-cast] > + migration-rdma.c:1177:51: error: cast from pointer to integer of di= fferent size [-Werror=3Dpointer-to-int-cast] > + migration-rdma.c:1178:29: error: cast from pointer to integer of di= fferent size [-Werror=3Dpointer-to-int-cast] > + migration-rdma.c: In function 'qemu_rdma_post_send_control': > + migration-rdma.c:1562:36: error: cast from pointer to integer of di= fferent size [-Werror=3Dpointer-to-int-cast] > + migration-rdma.c: In function 'qemu_rdma_post_recv_control': > + migration-rdma.c:1616:37: error: cast from pointer to integer of di= fferent size [-Werror=3Dpointer-to-int-cast] > + migration-rdma.c: In function 'qemu_rdma_write_one': > + migration-rdma.c:1864:16: error: cast from pointer to integer of di= fferent size [-Werror=3Dpointer-to-int-cast] > + migration-rdma.c:1868:53: error: cast to pointer from integer of di= fferent size [-Werror=3Dint-to-pointer-cast] > + migration-rdma.c:1922:52: error: cast to pointer from integer of di= fferent size [-Werror=3Dint-to-pointer-cast] > + migration-rdma.c:1923:50: error: cast to pointer from integer of di= fferent size [-Werror=3Dint-to-pointer-cast] > + migration-rdma.c:1977:49: error: cast to pointer from integer of di= fferent size [-Werror=3Dint-to-pointer-cast] > + migration-rdma.c:1998:49: error: cast to pointer from integer of di= fferent size [-Werror=3Dint-to-pointer-cast] > + migration-rdma.c:2010:58: error: cast to pointer from integer of di= fferent size [-Werror=3Dint-to-pointer-cast] > + migration-rdma.c: In function 'qemu_rdma_registration_handle': > + migration-rdma.c:3027:21: error: cast from pointer to integer of di= fferent size [-Werror=3Dpointer-to-int-cast] > + migration-rdma.c:3092:41: error: cast from pointer to integer of di= fferent size [-Werror=3Dpointer-to-int-cast] > + cc1: all warnings being treated as errors > + make: *** [migration-rdma.o] Error 1 There's lots of stuff there; I think it's one for Michael because it involv= es understanding the structures and which ones get passed over the wire etc. (The quick fix would probably to guard the RDMA configure with a test for 3= 2bit pointers) Dave > +=20 > + i.e. earlier errors than before. >=20 > --=20 > You received this bug notification because you are a member of qemu- > devel-ml, which is subscribed to QEMU. > https://bugs.launchpad.net/bugs/1363641 >=20 > Title: > Build of v2.1.0 fails on armv7l due to undeclared __NR_select >=20 > Status in QEMU: > New >=20 > Bug description: > After `make clean` and `git clean -x -f -d` `git checkout v2.1.0 && > configure --prefix=3D/home/user/prefix-qemu-2.1.0 && make` fails due to > missing declarations >=20 > =A0=A0=A0=A0CC qemu-seccomp.o > =A0=A0=A0=A0qemu-seccomp.c:28:1: error: '__NR_select' undeclared here (= not in a function) > =A0=A0=A0=A0qemu-seccomp.c:36:1: error: '__NR_mmap' undeclared here (no= t in a function) > =A0=A0=A0=A0qemu-seccomp.c:57:1: error: '__NR_getrlimit' undeclared her= e (not in a function) > =A0=A0=A0=A0qemu-seccomp.c:96:1: error: '__NR_time' undeclared here (no= t in a function) > =A0=A0=A0=A0=A0=A0GEN qmp-marshal.c > =A0=A0=A0=A0qemu-seccomp.c:186:1: error: '__NR_alarm' undeclared here (= not in a function) > =A0=A0=A0=A0make: *** [qemu-seccomp.o] Error 1 >=20 > Same errors for master 8b3030114a449e66c68450acaac4b66f26d91416. > `configure`should not succeed for a failing build. `config.log` for > v2.1.0 and 8b303011... attached. The content is mostly compiler output > which I think is unusual for `config.log`, but see for yourself. >=20 > I'm building on a debian 7.6 chroot on Synology DSM 5.0. `uname -a` > says `Linux diskstatation 3.2.40 #4493 SMP Thu Aug 21 21:43:02 CST > 2014 armv7l GNU/Linux`. >=20 > After installing some of the missing header files (-> configure should > fail at the right point with a good error message), i.e. `apt-get > install liblzo2-dev libbsd-dev syslinux-common libhwloc-dev librdmacm- > dev libsnappy-dev libibverbs-dev valgrind linux- > headers-3.2.0-4-common` I'm getting >=20 > CC migration-rdma.o > migration-rdma.c: In function 'ram_chunk_start': > migration-rdma.c:523:12: error: cast to pointer from integer of dif= ferent size [-Werror=3Dint-to-pointer-cast] > migration-rdma.c: In function '__qemu_rdma_add_block': > migration-rdma.c:556:49: error: cast to pointer from integer of dif= ferent size [-Werror=3Dint-to-pointer-cast] > migration-rdma.c:557:49: error: cast to pointer from integer of dif= ferent size [-Werror=3Dint-to-pointer-cast] > migration-rdma.c: In function '__qemu_rdma_delete_block': > migration-rdma.c:664:45: error: cast to pointer from integer of dif= ferent size [-Werror=3Dint-to-pointer-cast] > migration-rdma.c:699:49: error: cast to pointer from integer of dif= ferent size [-Werror=3Dint-to-pointer-cast] > migration-rdma.c: In function 'qemu_rdma_search_ram_block': > migration-rdma.c:1113:49: error: cast to pointer from integer of di= fferent size [-Werror=3Dint-to-pointer-cast] > migration-rdma.c: In function 'qemu_rdma_register_and_get_keys': > migration-rdma.c:1176:50: error: cast from pointer to integer of di= fferent size [-Werror=3Dpointer-to-int-cast] > migration-rdma.c:1177:29: error: cast from pointer to integer of di= fferent size [-Werror=3Dpointer-to-int-cast] > migration-rdma.c:1177:51: error: cast from pointer to integer of di= fferent size [-Werror=3Dpointer-to-int-cast] > migration-rdma.c:1178:29: error: cast from pointer to integer of di= fferent size [-Werror=3Dpointer-to-int-cast] > migration-rdma.c: In function 'qemu_rdma_post_send_control': > migration-rdma.c:1562:36: error: cast from pointer to integer of di= fferent size [-Werror=3Dpointer-to-int-cast] > migration-rdma.c: In function 'qemu_rdma_post_recv_control': > migration-rdma.c:1616:37: error: cast from pointer to integer of di= fferent size [-Werror=3Dpointer-to-int-cast] > migration-rdma.c: In function 'qemu_rdma_write_one': > migration-rdma.c:1864:16: error: cast from pointer to integer of di= fferent size [-Werror=3Dpointer-to-int-cast] > migration-rdma.c:1868:53: error: cast to pointer from integer of di= fferent size [-Werror=3Dint-to-pointer-cast] > migration-rdma.c:1922:52: error: cast to pointer from integer of di= fferent size [-Werror=3Dint-to-pointer-cast] > migration-rdma.c:1923:50: error: cast to pointer from integer of di= fferent size [-Werror=3Dint-to-pointer-cast] > migration-rdma.c:1977:49: error: cast to pointer from integer of di= fferent size [-Werror=3Dint-to-pointer-cast] > migration-rdma.c:1998:49: error: cast to pointer from integer of di= fferent size [-Werror=3Dint-to-pointer-cast] > migration-rdma.c:2010:58: error: cast to pointer from integer of di= fferent size [-Werror=3Dint-to-pointer-cast] > migration-rdma.c: In function 'qemu_rdma_registration_handle': > migration-rdma.c:3027:21: error: cast from pointer to integer of di= fferent size [-Werror=3Dpointer-to-int-cast] > migration-rdma.c:3092:41: error: cast from pointer to integer of di= fferent size [-Werror=3Dpointer-to-int-cast] > cc1: all warnings being treated as errors > make: *** [migration-rdma.o] Error 1 >=20 > i.e. earlier errors than before. >=20 > To manage notifications about this bug go to: > https://bugs.launchpad.net/qemu/+bug/1363641/+subscriptions >=20 -- Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK