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

Re: [Xen-devel] ovmf fails to build in stagin-4.6



On Mon, Oct 26, 2015 at 10:43:15AM +0100, Olaf Hering wrote:
> For me ovmf fails to build in staging-4.6:
> 
> ...
> [  541s] + ./configure --host=x86_64-suse-linux-gnu 
> --build=x86_64-suse-linux-gnu --program-prefix= --disable-dependency-tracking 
> --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin 
> --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include 
> --libdir=/usr/lib64 --libexecdir=/usr/lib --localstatedir=/var 
> --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info 
> --disable-dependency-tracking --enable-debug --disable-stubdom --disable-xen 
> --docdir=/usr/share/doc/packages/xen --enable-ovmf --enable-docs 
> --enable-tools --enable-systemd --with-systemd=/usr/lib/systemd/system 
> --with-systemd-modules-load=/usr/lib/modules-load.d --enable-stubdom 
> --enable-ioemu-stubdom --disable-c-stubdom --disable-caml-stubdom 
> --disable-vtpm-stubdom --enable-vtpmmgr-stubdom --with-initddir=/etc/init.d
> ...
> [  561s] + make -j2 debug_symbols=n -k
> ...
> [  727s] Building ... 
> /home/abuild/rpmbuild/BUILD/xen-4.6.20151022T160310.e4a1dcb/non-dbg/tools/firmware/ovmf-dir-remote/MdePkg/Library/PeiHobLib/PeiHobLib.inf
>  [X64]
> [  727s] Building ... 
> /home/abuild/rpmbuild/BUILD/xen-4.6.20151022T160310.e4a1dcb/non-dbg/tools/firmware/ovmf-dir-remote/MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
>  [X64]
> [  727s] make[7]: Entering directory 
> '/home/abuild/rpmbuild/BUILD/xen-4.6.20151022T160310.e4a1dcb/non-dbg/tools/firmware/ovmf-dir-remote/Build/OvmfX64/RELEASE_GCC44/X64/MdePkg/Library/PeiHobLib/PeiHobLib'
> [  727s] "gcc" -g -fshort-wchar -fno-strict-aliasing -Wall -Werror 
> -Wno-array-bounds -ffunction-sections -fdata-sections -c -include AutoGen.h 
> -DSTRING_ARRAY_NAME=PeiHobLibStrings -m64 -fno-stack-protector 
> "-DEFIAPI=__attribute__((ms_abi))" -DNO_BUILTIN_VA_FUNCS -mno-red-zone 
> -Wno-address -mcmodel=large -DMDEPKG_NDEBUG -mno-mmx -mno-sse -o 
> /home/abuild/rpmbuild/BUILD/xen-4.6.20151022T160310.e4a1dcb/non-dbg/tools/firmware/ovmf-dir-remote/Build/OvmfX64/RELEASE_GCC44/X64/MdePkg/Library/PeiHobLib/PeiHobLib/OUTPUT/./HobLib.obj
>  
> -I/home/abuild/rpmbuild/BUILD/xen-4.6.20151022T160310.e4a1dcb/non-dbg/tools/firmware/ovmf-dir-remote/MdePkg/Library/PeiHobLib
>  
> -I/home/abuild/rpmbuild/BUILD/xen-4.6.20151022T160310.e4a1dcb/non-dbg/tools/firmware/ovmf-dir-remote/Build/OvmfX64/RELEASE_GCC44/X64/MdePkg/Library/PeiHobLib/PeiHobLib/DEBUG
>  
> -I/home/abuild/rpmbuild/BUILD/xen-4.6.20151022T160310.e4a1dcb/non-dbg/tools/firmware/ovmf-dir-remote/MdePkg
>  
> -I/home/abuild/rpmbuild/BUILD/xen-4.6.20151022T160310.e4a1dcb/non-dbg/tools/firmware/ovmf-dir-remote/MdePkg/Include
>  
> -I/home/abuild/rpmbuild/BUILD/xen-4.6.20151022T160310.e4a1dcb/non-dbg/tools/firmware/ovmf-dir-remote/MdePkg/Include/X64
>  
> /home/abuild/rpmbuild/BUILD/xen-4.6.20151022T160310.e4a1dcb/non-dbg/tools/firmware/ovmf-dir-remote/MdePkg/Library/PeiHobLib/HobLib.c
> [  727s] make[7]: Entering directory 
> '/home/abuild/rpmbuild/BUILD/xen-4.6.20151022T160310.e4a1dcb/non-dbg/tools/firmware/ovmf-dir-remote/Build/OvmfX64/RELEASE_GCC44/X64/MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt'
> [  727s] "gcc" -g -fshort-wchar -fno-strict-aliasing -Wall -Werror 
> -Wno-array-bounds -ffunction-sections -fdata-sections -c -include AutoGen.h 
> -DSTRING_ARRAY_NAME=PeiServicesTablePointerLibIdtStrings -m64 
> -fno-stack-protector "-DEFIAPI=__attribute__((ms_abi))" -DNO_BUILTIN_VA_FUNCS 
> -mno-red-zone -Wno-address -mcmodel=large -DMDEPKG_NDEBUG -mno-mmx -mno-sse 
> -o 
> /home/abuild/rpmbuild/BUILD/xen-4.6.20151022T160310.e4a1dcb/non-dbg/tools/firmware/ovmf-dir-remote/Build/OvmfX64/RELEASE_GCC44/X64/MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt/OUTPUT/./PeiServicesTablePointer.obj
>  
> -I/home/abuild/rpmbuild/BUILD/xen-4.6.20151022T160310.e4a1dcb/non-dbg/tools/firmware/ovmf-dir-remote/MdePkg/Library/PeiServicesTablePointerLibIdt
>  
> -I/home/abuild/rpmbuild/BUILD/xen-4.6.20151022T160310.e4a1dcb/non-dbg/tools/firmware/ovmf-dir-remote/Build/OvmfX64/RELEASE_GCC44/X64/MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt/DEBUG
>  
> -I/home/abuild/rpmbuild/BUILD/xen-4.6.20151022T160310.e4a1dcb/non-dbg/tools/firmware/ovmf-dir-remote/MdePkg
>  
> -I/home/abuild/rpmbuild/BUILD/xen-4.6.20151022T160310.e4a1dcb/non-dbg/tools/firmware/ovmf-dir-remote/MdePkg/Include
>  
> -I/home/abuild/rpmbuild/BUILD/xen-4.6.20151022T160310.e4a1dcb/non-dbg/tools/firmware/ovmf-dir-remote/MdePkg/Include/X64
>  
> /home/abuild/rpmbuild/BUILD/xen-4.6.20151022T160310.e4a1dcb/non-dbg/tools/firmware/ovmf-dir-remote/MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointer.c
> [  727s] 
> /home/abuild/rpmbuild/BUILD/xen-4.6.20151022T160310.e4a1dcb/non-dbg/tools/firmware/ovmf-dir-remote/MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointer.c:
>  In function 'MigratePeiServicesTablePointer':
> [  727s] 
> /home/abuild/rpmbuild/BUILD/xen-4.6.20151022T160310.e4a1dcb/non-dbg/tools/firmware/ovmf-dir-remote/MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointer.c:100:26:
>  error: variable 'Status' set but not used [-Werror=unused-but-set-variable]
> [  727s]    EFI_STATUS             Status;
> [  727s] 
> /home/abuild/rpmbuild/BUILD/xen-4.6.20151022T160310.e4a1dcb/non-dbg/tools/firmware/ovmf-dir-remote/MdePkg/Library/PeiHobLib/HobLib.c:
>  In function 'GetHobList':
> [  727s] 
> /home/abuild/rpmbuild/BUILD/xen-4.6.20151022T160310.e4a1dcb/non-dbg/tools/firmware/ovmf-dir-remote/MdePkg/Library/PeiHobLib/HobLib.c:46:25:
>  error: variable 'Status' set but not used [-Werror=unused-but-set-variable]
> [  727s]    EFI_STATUS            Status;
> [  727s] 
> /home/abuild/rpmbuild/BUILD/xen-4.6.20151022T160310.e4a1dcb/non-dbg/tools/firmware/ovmf-dir-remote/MdePkg/Library/PeiHobLib/HobLib.c:
>  In function 'GetBootModeHob':
> [  727s] 
> /home/abuild/rpmbuild/BUILD/xen-4.6.20151022T160310.e4a1dcb/non-dbg/tools/firmware/ovmf-dir-remote/MdePkg/Library/PeiHobLib/HobLib.c:212:26:
>  error: variable 'Status' set but not used [-Werror=unused-but-set-variable]
> [  727s]    EFI_STATUS             Status;
> [  727s] GNUmakefile:310: recipe for target 
> '/home/abuild/rpmbuild/BUILD/xen-4.6.20151022T160310.e4a1dcb/non-dbg/tools/firmware/ovmf-dir-remote/Build/OvmfX64/RELEASE_GCC44/X64/MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt/OUTPUT/PeiServicesTablePointer.obj'
>  failed
> [  727s] make[7]: Leaving directory 
> '/home/abuild/rpmbuild/BUILD/xen-4.6.20151022T160310.e4a1dcb/non-dbg/tools/firmware/ovmf-dir-remote/Build/OvmfX64/RELEASE_GCC44/X64/MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt'
> [  727s] make[7]: *** 
> [/home/abuild/rpmbuild/BUILD/xen-4.6.20151022T160310.e4a1dcb/non-dbg/tools/firmware/ovmf-dir-remote/Build/OvmfX64/RELEASE_GCC44/X64/MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt/OUTPUT/PeiServicesTablePointer.obj]
>  Error 1
> 
> Does it compile for anyone?
> 

It compiles for me -- but I'm using gcc 4.9.

You seem to be using gcc 4.4. It wouldn't surprise me that upstream
broke older toolchain by chance.

And the fix should be simple. I will see if I can cook up a patch at
some point.


Wei.

> Olaf
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxx
> http://lists.xen.org/xen-devel

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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