qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
To: Bug 1363641 <1363641@bugs.launchpad.net>, mrhines@us.ibm.com
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [Bug 1363641] Re: Build of v2.1.0 fails on armv7l due to undeclared __NR_select
Date: Mon, 8 Sep 2014 19:09:42 +0100	[thread overview]
Message-ID: <20140908180941.GL2474@work-vm> (raw)
In-Reply-To: <20140831120602.29623.76040.launchpad@gac.canonical.com>

(cc'ing Michael Hines who owns and knows the RDMA code)

* Karl-Philipp Richter (krichter722@aol.de) wrote:
> ** Description changed:
> 
>   After `make clean` and `git clean -x -f -d` `git checkout v2.1.0 &&
>   configure --prefix=/home/user/prefix-qemu-2.1.0 && make` fails due to
>   missing declarations
>   
>       CC    qemu-seccomp.o
>       qemu-seccomp.c:28:1: error: '__NR_select' undeclared here (not in a function)
>       qemu-seccomp.c:36:1: error: '__NR_mmap' undeclared here (not in a function)
>       qemu-seccomp.c:57:1: error: '__NR_getrlimit' undeclared here (not in a function)
>       qemu-seccomp.c:96:1: error: '__NR_time' undeclared here (not in a function)
>         GEN   qmp-marshal.c
>       qemu-seccomp.c:186:1: error: '__NR_alarm' undeclared here (not in a function)
>       make: *** [qemu-seccomp.o] Error 1
>   
>   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.
>   
>   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`.
> + 
> + 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
> + 
> +      CC    migration-rdma.o
> +     migration-rdma.c: In function 'ram_chunk_start':
> +     migration-rdma.c:523:12: error: cast to pointer from integer of different size [-Werror=int-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 different size [-Werror=int-to-pointer-cast]
> +     migration-rdma.c:557:49: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]

> +     migration-rdma.c: In function '__qemu_rdma_delete_block':
> +     migration-rdma.c:664:45: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
> +     migration-rdma.c:699:49: error: cast to pointer from integer of different size [-Werror=int-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 different size [-Werror=int-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 different size [-Werror=pointer-to-int-cast]
> +     migration-rdma.c:1177:29: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
> +     migration-rdma.c:1177:51: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
> +     migration-rdma.c:1178:29: error: cast from pointer to integer of different size [-Werror=pointer-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 different size [-Werror=pointer-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 different size [-Werror=pointer-to-int-cast]
> +     migration-rdma.c: In function 'qemu_rdma_write_one':
> +     migration-rdma.c:1864:16: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
> +     migration-rdma.c:1868:53: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
> +     migration-rdma.c:1922:52: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
> +     migration-rdma.c:1923:50: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
> +     migration-rdma.c:1977:49: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
> +     migration-rdma.c:1998:49: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
> +     migration-rdma.c:2010:58: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
> +     migration-rdma.c: In function 'qemu_rdma_registration_handle':
> +     migration-rdma.c:3027:21: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
> +     migration-rdma.c:3092:41: error: cast from pointer to integer of different size [-Werror=pointer-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 involves 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 32bit pointers)

Dave

> + 
> + i.e. earlier errors than before.
> 
> -- 
> 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
> 
> Title:
>   Build of v2.1.0 fails on armv7l due to undeclared __NR_select
> 
> Status in QEMU:
>   New
> 
> Bug description:
>   After `make clean` and `git clean -x -f -d` `git checkout v2.1.0 &&
>   configure --prefix=/home/user/prefix-qemu-2.1.0 && make` fails due to
>   missing declarations
> 
>       CC    qemu-seccomp.o
>       qemu-seccomp.c:28:1: error: '__NR_select' undeclared here (not in a function)
>       qemu-seccomp.c:36:1: error: '__NR_mmap' undeclared here (not in a function)
>       qemu-seccomp.c:57:1: error: '__NR_getrlimit' undeclared here (not in a function)
>       qemu-seccomp.c:96:1: error: '__NR_time' undeclared here (not in a function)
>         GEN   qmp-marshal.c
>       qemu-seccomp.c:186:1: error: '__NR_alarm' undeclared here (not in a function)
>       make: *** [qemu-seccomp.o] Error 1
> 
>   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.
> 
>   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`.
> 
>   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
> 
>        CC    migration-rdma.o
>       migration-rdma.c: In function 'ram_chunk_start':
>       migration-rdma.c:523:12: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
>       migration-rdma.c: In function '__qemu_rdma_add_block':
>       migration-rdma.c:556:49: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
>       migration-rdma.c:557:49: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
>       migration-rdma.c: In function '__qemu_rdma_delete_block':
>       migration-rdma.c:664:45: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
>       migration-rdma.c:699:49: error: cast to pointer from integer of different size [-Werror=int-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 different size [-Werror=int-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 different size [-Werror=pointer-to-int-cast]
>       migration-rdma.c:1177:29: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
>       migration-rdma.c:1177:51: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
>       migration-rdma.c:1178:29: error: cast from pointer to integer of different size [-Werror=pointer-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 different size [-Werror=pointer-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 different size [-Werror=pointer-to-int-cast]
>       migration-rdma.c: In function 'qemu_rdma_write_one':
>       migration-rdma.c:1864:16: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
>       migration-rdma.c:1868:53: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
>       migration-rdma.c:1922:52: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
>       migration-rdma.c:1923:50: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
>       migration-rdma.c:1977:49: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
>       migration-rdma.c:1998:49: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
>       migration-rdma.c:2010:58: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
>       migration-rdma.c: In function 'qemu_rdma_registration_handle':
>       migration-rdma.c:3027:21: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
>       migration-rdma.c:3092:41: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
>       cc1: all warnings being treated as errors
>       make: *** [migration-rdma.o] Error 1
> 
>   i.e. earlier errors than before.
> 
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/qemu/+bug/1363641/+subscriptions
> 
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK

  parent reply	other threads:[~2014-09-08 18:09 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-31 11:30 [Qemu-devel] [Bug 1363641] [NEW] Build of v2.1.0 fails on armv7l due to undeclared __NR_select Karl-Philipp Richter
2014-08-31 11:30 ` [Qemu-devel] [Bug 1363641] " Karl-Philipp Richter
2014-08-31 11:30 ` Karl-Philipp Richter
2014-08-31 12:06 ` Karl-Philipp Richter
2014-08-31 17:37   ` Peter Maydell
2014-08-31 18:58     ` Peter Maydell
2014-09-08 18:09   ` Dr. David Alan Gilbert [this message]
2014-09-23  8:25     ` Michael R. Hines
2014-09-23 12:27       ` Peter Maydell
2014-09-23  8:25     ` Michael R. Hines
2014-09-07 12:09 ` Karl-Philipp Richter
2014-10-22  7:31 ` Eduardo Otubo
2014-10-22 10:01   ` Peter Maydell
2014-11-12 10:02 ` Eduardo Otubo
2014-12-01  7:12 ` Ben Gelb
2014-12-09  9:36 ` Eduardo Otubo
2014-12-19 17:08 ` Eduardo Otubo
2015-03-17 11:06 ` Eduardo Otubo
2016-06-23  7:59 ` T. Huth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140908180941.GL2474@work-vm \
    --to=dgilbert@redhat.com \
    --cc=1363641@bugs.launchpad.net \
    --cc=mrhines@us.ibm.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).