[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Problem compiling Xen-4.7 with qemu-traditional for IGD passthrough



Since the last response I've done a debianised build of xen-4.8 in Yakkety. I think that 4.8 is ready for normal use and is more robust than xen-4.7.


the rules link above is still a good source to see how to configure xen in the extreme case of Yakkety. Notice that I use
# top line to config Xen
./configure APPEND_INCLUDES=-Wno-error \

I think your build exited on `All warnings as errors`

PryMar56


On Thursday, January 5, 2017 11:24 AM, Bill Mccabe <wmccabe@xxxxxxxxx> wrote:


Thanks, those rules are extremely helpful and have helped me get
through many build errors. Now I am getting another one though:


cc -I/usr/local/src/xen-4.7.0/debian/build/build-utils_amd64/tools/qemu-xen-dir/tcg
-I/usr/local/src/xen-4.7.0/debian/build/build-utils_amd64/tools/qemu-xen-dir/tcg/i386
-I/usr/local/src/xen-4.7.0/debian/build/build-utils_amd64/tools/qemu-xen-dir/linux-headers
-I/usr/local/src/xen-4.7.0/debian/build/build-utils_amd64/tools/qemu-xen-dir/linux-headers
-I. -I/usr/local/src/xen-4.7.0/debian/build/build-utils_amd64/tools/qemu-xen-dir
-I/usr/local/src/xen-4.7.0/debian/build/build-utils_amd64/tools/qemu-xen-dir/include
-Ihw/9pfs -Ihw/9pfs -I/usr/include/pixman-1  -Werror -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
-DXC_WANT_COMPAT_EVTCHN_API=1  -DXC_WANT_COMPAT_GNTTAB_API=1
-DXC_WANT_COMPAT_MAP_FOREIGN_API=1
-I/usr/local/src/xen-4.7.0/debian/build/build-utils_amd64/tools/../tools/include
      -I/usr/local/src/xen-4.7.0/debian/build/build-utils_amd64/tools/../tools/libs/toollog/include
-I/usr/local/src/xen-4.7.0/debian/build/build-utils_amd64/tools/../tools/libs/evtchn/include
    -I/usr/local/src/xen-4.7.0/debian/build/build-utils_amd64/tools/../tools/libs/gnttab/include
  -I/usr/local/src/xen-4.7.0/debian/build/build-utils_amd64/tools/../tools/libs/foreignmemory/include
    -I/usr/local/src/xen-4.7.0/debian/build/build-utils_amd64/tools/../tools/libxc/include
-I/usr/local/src/xen-4.7.0/debian/build/build-utils_amd64/tools/../tools/xenstore/include
      -I/usr/local/src/xen-4.7.0/debian/build/build-utils_amd64/tools/../tools/xenstore/compat/include
        -Wendif-labels -Wempty-body -Wnested-externs -Wformat-security
-Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration
-Wold-style-definition -Wtype-limits -fstack-protector-strong
-I/usr/include/p11-kit-1  -I/usr/include/p11-kit-1
-I/usr/include/libpng16 -I/usr/include/spice-server
-I/usr/include/spice-1 -I/usr/include/libusb-1.0
-I/usr/local/src/xen-4.7.0/debian/build/build-utils_amd64/tools/qemu-xen-dir/tests
-MMD -MP -MT hw/9pfs/virtio-9p-local.o -MF hw/9pfs/virtio-9p-local.d
-O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -pthread
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-g  -c -o hw/9pfs/virtio-9p-local.o hw/9pfs/virtio-9p-local.c
hw/9pfs/virtio-9p-local.c: In function ‘local_readdir_r’:
hw/9pfs/virtio-9p-local.c:396:5: error: ‘readdir_r’ is deprecated
[-Werror=deprecated-declarations]
    ret = readdir_r(fs->dir, entry, result);
    ^~~
In file included from /usr/include/features.h:364:0,
                from /usr/include/stdio.h:27,
                from
/usr/local/src/xen-4.7.0/debian/build/build-utils_amd64/tools/qemu-xen-dir/include/qemu/fprintf-fn.h:12,
                from
/usr/local/src/xen-4.7.0/debian/build/build-utils_amd64/tools/qemu-xen-dir/include/qemu-common.h:18,
                from
/usr/local/src/xen-4.7.0/debian/build/build-utils_amd64/tools/qemu-xen-dir/include/hw/hw.h:5,
                from
/usr/local/src/xen-4.7.0/debian/build/build-utils_amd64/tools/qemu-xen-dir/include/hw/virtio/virtio.h:17,
                from hw/9pfs/virtio-9p-local.c:14:
/usr/include/dirent.h:189:12: note: declared here
extern int __REDIRECT (readdir_r,
            ^
cc1: all warnings being treated as errors
/usr/local/src/xen-4.7.0/debian/build/build-utils_amd64/tools/qemu-xen-dir/rules.mak:57:
recipe for target 'hw/9pfs/virtio-9p-local.o' failed
make[5]: *** [hw/9pfs/virtio-9p-local.o] Error 1
make[5]: Leaving directory
'/usr/local/src/xen-4.7.0/debian/build/build-utils_amd64/tools/qemu-xen-dir-remote'
Makefile:237: recipe for target 'subdir-all-qemu-xen-dir' failed
make[4]: *** [subdir-all-qemu-xen-dir] Error 2
make[4]: Leaving directory
'/usr/local/src/xen-4.7.0/debian/build/build-utils_amd64/tools'
/usr/local/src/xen-4.7.0/debian/build/build-utils_amd64/tools/../tools/Rules.mk:213:
recipe for target 'subdirs-all' failed
make[3]: *** [subdirs-all] Error 2
make[3]: Leaving directory
'/usr/local/src/xen-4.7.0/debian/build/build-utils_amd64/tools'
debian/rules.real:115: recipe for target
'debian/stamps/build-utils_amd64' failed
make[2]: *** [debian/stamps/build-utils_amd64] Error 2

On Wed, Jan 4, 2017 at 1:02 PM, Mark Pryor <tlviewer@xxxxxxxxx> wrote:
> Yakkety gcc is 6.1, with fPIE turned on.
> The rombios Makefile needs an edit to disable PIE.
>
> # special for rombios
>     sed -i -e '/^CFLAGS/ s/$$/ -fno-pie/'
> tools/firmware/rombios/32bit/tcgbios/Makefile ; \
>     sed -i -e '/^CFLAGS/ s/$$/ -fno-pie/' tools/firmware/rombios/32bit/Makefile
> ;
>
> My detailed Debianised rules file is here:
> http://107.185.103.5/xen/ubuntu/xenial/48x/source/debian/rules
>
> PyrMar56
> On Tuesday, January 3, 2017 3:00 AM, Roger Pau Monné <roger.pau@xxxxxxxxxx>
> wrote:
>
>
> On Sun, Jan 01, 2017 at 09:48:10PM -0500, Bill Mccabe wrote:
>> Hi,
>>
>> I have an old thinkpad x201 tablet which has Vt-d support enabled and I am
>> trying to perform igd passthrough in Xen.
>>
>> It is my understanding that in order to attempt to do this I need to
>> compile Xen with qemu-traditional.
>>
>> However, the building of the Xen-4.7 package fails with the
>> qemu-traditional option enabled with the following error:
>>
>> ld -melf_i386 -s -r 32bitbios.o tcgbios/tcgbiosext.o util.o pmm.o -o
>> 32bitbios_all.o
>>
>> There are undefined symbols in the BIOS:
>>
>>          U _GLOBAL_OFFSET_TABLE_
>>
>> Makefile:25: recipe for target '32bitbios_all.o' failed
>>
>> make[11]: *** [32bitbios_all.o] Error 11
>>
>> make[11]: Leaving directory
>>
>> '/usr/local/src/xen-4.7.0/debian/build/build-utils_amd64/tools/firmware/rombios/32bit'
>>
>> Makefile:12: recipe for target 'all' failed
>>
>> make[10]: *** [all] Error 2
>>
>> make[10]: Leaving directory
>>
>> '/usr/local/src/xen-4.7.0/debian/build/build-utils_amd64/tools/firmware/rombios/32bit'
>>
>>
>> /usr/local/src/xen-4.7.0/debian/build/build-utils_amd64/tools/firmware/rombios/../../../tools/Rules.mk:218:
>> recipe for target 'subdir-all-32bit' failed
>>
>> make[9]: *** [subdir-all-32bit] Error 2
>>
>> make[9]: Leaving directory
>>
>> '/usr/local/src/xen-4.7.0/debian/build/build-utils_amd64/tools/firmware/rombios'
>>
>>
>> /usr/local/src/xen-4.7.0/debian/build/build-utils_amd64/tools/firmware/rombios/../../../tools/Rules.mk:213:
>> recipe for target 'subdirs-all' failed
>>
>> make[8]: *** [subdirs-all] Error 2
>>
>>
>> I am compiling Xen-4.7 from the ubuntu source package using
>> dpkg-buildpackage -rfakeroot on ubuntu Yakkety 16.10 with the following
>> configure options:
>>
>>  --disable-docs --disable-stubdom --disable-xen \
>>
>>                        --prefix=/usr \
>>
>>                        --includedir=/usr/include \
>>
>>                        --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \
>>
>>                        --mandir=/usr/share/man \
>>
>>                        --infodir=/usr/share/info \
>>
>>                        --sysconfdir=/etc \
>>
>>                        --localstatedir=/var \
>>
>>                        --with-libexec-leaf-dir=xen-$(VERSION) \
>>
>>                        --disable-blktap1 \
>>
>>                        --disable-blktap2 \
>>
>>                        --disable-ocamltools \
>>
>>                        --enable-qemu-traditional --enable-rombios \
>>
>>
>> --with-system-seabios=/usr/share/seabios/bios-256k.bin
>
> Do you really need QEMU traditional and ROMBIOS? If not, I would suggest
> that
> you remove both --enable-qemu-traditional and --enable-rombios from your
> configure line and try again.
>
> Note that you will get QEMU upstream and SeaBIOS by default, which is what's
> recommended.
>
> Roger.
>
>
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxx
> https://lists.xen.org/xen-users

>
>

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
https://lists.xen.org/xen-users


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
https://lists.xen.org/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.