From: Andrew Jones <drjones@redhat.com>
To: Paul Roland <paulrolandw@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] qemu-seccomp.c:216: error: '__NR_getcpu' undeclared here (not in a function)
Date: Sat, 5 Dec 2015 10:23:06 -0600 [thread overview]
Message-ID: <20151205162306.GA3707@hawk.localdomain> (raw)
In-Reply-To: <CA+3OdkP80uKcnbdW97QR0ondGqw-S-Mr_Dbkd-r0_HMVii1b3A@mail.gmail.com>
On Sat, Dec 05, 2015 at 11:50:36AM +0000, Paul Roland wrote:
> Hi there, I am trying to create an rpm package out of qemu 2.4.1, thought
> maybe it's something obvious and somebody could guide me in the right
> direction
>
> As soon as I add --enable-seccomp I get this error on compilation:
>
> qemu-seccomp.c:216: error: '__NR_getcpu' undeclared here (not in a function)
> make: *** [qemu-seccomp.o] Error 1
> make: *** Waiting for unfinished jobs....
>
> Other relevant info:
>
> [root@devel SPECS]# rpm -qa | grep secc
> libseccomp-2.2.3-0.fc23.x86_64
> libseccomp-devel-2.2.3-0.fc23.x86_64
> [root@devel SPECS]#
The issue doesn't reproduce for me when just building v2.4.1 from the source
dir, using your configure line below. I built on an up-to-date F23 guest
using the same libseccomp packages you point out above.
Maybe it's something with the rpmbuild? Somehow not including kernel
headers?
drew
>
> + ./configure '--extra-cflags=-O2 -g -pipe -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIE -DPIE' --prefix=/usr
> --libdir=/usr/lib64 --sysconfdir=/etc --interp-prefix=/usr/qemu-%M
> --with-confsuffix=/qemu-kvm --localstatedir=/var --libexecdir=/usr/libexec
> --target-list=x86_64-softmmu --disable-qom-cast-debug --disable-vhdx
> --disable-libssh2 --disable-glusterfs --enable-seccomp --disable-usb-redir
> --disable-libusb --disable-smartcard-nss --disable-libiscsi --disable-spice
> --disable-docs --disable-vde --disable-guest-base --disable-bsd-user
> --disable-rdma --disable-slirp --disable-bluez --disable-fdt --disable-curl
> --disable-curses --disable-vnc-png --disable-vnc-jpeg --disable-vnc-sasl
> --disable-vnc-tls --disable-brlapi --disable-xen-pci-passthrough
> --disable-xen --disable-cocoa --disable-virtfs --disable-gtk --disable-sdl
> --disable-debug-info --disable-debug-tcg --enable-vhost-net --enable-kvm
> --enable-linux-user --disable-cap-ng
> --block-drv-rw-whitelist=qcow2,raw,file,host_device
> --block-drv-ro-whitelist=vmdk,vhdx,vpc --enable-guest-agent
> --enable-libssh2 --enable-numa --enable-coroutine-pool --disable-tpm
> --disable-snappy --disable-bzip2 --disable-lzo --disable-vnc-tls
> --disable-gnutls --disable-vte
> Install prefix /usr
> BIOS directory /usr/share/qemu-kvm
> binary directory /usr/bin
> library directory /usr/lib64
> module directory /usr/lib64/qemu-kvm
> libexec directory /usr/libexec
> include directory /usr/include
> config directory /etc
> local state directory /var
> Manual directory /usr/share/man
> ELF interp prefix /usr/qemu-%M
> Source path /root/rpmbuild/BUILD/qemu-2.4.1
> C compiler cc
> Host C compiler cc
> C++ compiler c++
> Objective-C compiler cc
> ARFLAGS rv
> CFLAGS -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -pthread
> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
> QEMU_CFLAGS -I/usr/include/pixman-1 -fPIE -DPIE -m64 -D_GNU_SOURCE
> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes
> -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes
> -fno-strict-aliasing -fno-common -O2 -g -pipe -fexceptions
> -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIE -DPIE
> -Wendif-labels -Wmissing-include-dirs -Wempty-body -Wnested-externs
> -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers
> -Wold-style-declaration -Wold-style-definition -Wtype-limits
> -fstack-protector-all
> LDFLAGS -Wl,--warn-common -Wl,-z,relro -Wl,-z,now -pie -m64
> make make
> install install
> python python -B
> module support no
> host CPU x86_64
> host big endian no
> target list x86_64-softmmu
> tcg debug enabled no
> gprof enabled no
> sparse enabled no
> strip binaries yes
> profiler no
> static build no
> pixman system
> SDL support no
> GTK support no
> GNUTLS support no
> GNUTLS hash no
> GNUTLS gcrypt no
> GNUTLS nettle no ()
> VTE support no
> curses support no
> curl support no
> mingw32 support no
> Audio drivers oss
> Block whitelist (rw) qcow2 raw file host_device
> Block whitelist (ro) vmdk vhdx vpc
> VirtFS support no
> VNC support yes
> VNC TLS support no
> VNC SASL support no
> VNC JPEG support no
> VNC PNG support no
> xen support no
> brlapi support no
> bluez support no
> Documentation no
> GUEST_BASE no
> PIE yes
> vde support no
> netmap support no
> Linux AIO support yes
> ATTR/XATTR support yes
> Install blobs yes
> KVM support yes
> RDMA support no
> TCG interpreter no
> fdt support no
> preadv support yes
> fdatasync yes
> madvise yes
> posix_madvise yes
> sigev_thread_id yes
> uuid support yes
> libcap-ng support no
> vhost-net support yes
> vhost-scsi support yes
> Trace backends nop
> spice support no
> rbd support no
> xfsctl support no
> nss used no
> libusb no
> usb net redir no
> OpenGL support no
> libiscsi support no
> libnfs support no
> build guest agent yes
> QGA VSS support no
> QGA w32 disk info no
> seccomp support yes
> coroutine backend ucontext
> coroutine pool yes
> GlusterFS support no
> Archipelago support no
> gcov gcov
> gcov enabled no
> TPM support no
> libssh2 support yes
> TPM passthrough no
> QOM debugging no
> vhdx no
> lzo support no
> snappy support no
> bzip2 support no
> NUMA host support yes
> tcmalloc support no
prev parent reply other threads:[~2015-12-05 16:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-05 11:50 [Qemu-devel] qemu-seccomp.c:216: error: '__NR_getcpu' undeclared here (not in a function) Paul Roland
2015-12-05 16:23 ` Andrew Jones [this message]
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=20151205162306.GA3707@hawk.localdomain \
--to=drjones@redhat.com \
--cc=paulrolandw@gmail.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).