Discussion:
[Qemu-discuss] Compiling Qemu error: unknown pragma option.
Cortland Setlow Tölva
2018-10-07 23:28:27 UTC
Permalink
Dear Qemu-Discuss,

I am unable to compile in the presence of the following commit which
recently went into the linux-user-for-3.1 branch:
linux-user: Suppress address-of-packed-member warnings in __get/put_user_e

My GCC version is:
gcc version 8.2.0 (Ubuntu 8.2.0-1ubuntu2~18.04)

The compiler error is:
/home/cst/Qemu/linux-user/elfload.c: In function ‘create_elf_tables’:
/home/cst/Qemu/linux-user/elfload.c:1882:1: error: unknown option after
‘#pragma GCC diagnostic’ kind [-Werror=pragmas]
NEW_AUX_ENT(AT_PHDR, (abi_ulong)(info->load_addr + exec->e_phoff));

The last line in my config.status is:
exec './configure' '--target-list=ppc-linux-user,x86_64-linux-user'
'--disable-slirp' '--disable-sdl' '--disable-gtk' '--disable-vnc'
'--disable-xen' '--disable-glusterfs' '--disable-libssh2' '--static'
'--disable-rbd' '--disable-vxhs' '--disable-linux-aio'
'--enable-trace-backends=simple' '--cc=gcc-8' '--cxx=g++-8'
'--host-cc=gcc-8' "$@"

--CST
Laurent Vivier
2018-10-08 06:56:15 UTC
Permalink
Post by Cortland Setlow Tölva
Dear Qemu-Discuss,
I am unable to compile in the presence of the following commit which
linux-user: Suppress address-of-packed-member warnings in __get/put_user_e
gcc version 8.2.0 (Ubuntu 8.2.0-1ubuntu2~18.04)
Yes, I have applied a patch from Peter and it breaks build with gcc 8.0.
I'm removing it.

Thanks,
Laurent

Loading...