[Bug 1892205] Re: tcgbios.c:1519:33: error: taking address of packed member of ‘struct ’ may result in an unaligned pointer value [-Werror=address-of-packed-member]
Marietto
1892205 at bugs.launchpad.net
Wed Aug 19 20:30:44 UTC 2020
** Package changed: ubuntu => gcc-9 (Ubuntu)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-9 in Ubuntu.
https://bugs.launchpad.net/bugs/1892205
Title:
tcgbios.c:1519:33: error: taking address of packed member of ‘struct
’ may result in an unaligned pointer value [-Werror=address-of-packed-
member]
Status in gcc-9 package in Ubuntu:
New
Bug description:
Hello. I was trying to compile the xen tools for enabling GVT for my integrated intel gpu
with xen and the compilation stopped like this :
gcc -m32 -march=i686 -DBUILD_ID -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs -O2 -fomit-frame-pointer -D__XEN_INTERFACE_VERSION__=XEN_LATEST_INTERFACE_VERSION -MMD -MF .tcgbios.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -DNDEBUG -Werror -fno-stack-protector -fno-exceptions -fno-builtin -msoft-float -I/etc/xen/igvtg-xen/tools/firmware/rombios/32bit/tcgbios/../../../../../tools/include -I.. -I../.. -I../../../../libacpi -fno-pic -fno-PIE -c -o tcgbios.o tcgbios.c
tcgbios.c: In function ‘TCGInterruptHandler’:
tcgbios.c:1519:33: error: taking address of packed member of ‘struct ’ may result in an unaligned pointer value [-Werror=address-of-packed-member]
1519 | ®s->u.r32.edx);
| ^~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
I see that thig bug has been discussed here :
https://bugs.gentoo.org/689082
and resolved here :
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c58b86194ce19d54a2f47d4712cb237b1f880ebb
but on gentoo ! basically I don't know if (and how) I can fix this
error on ubuntu 20.04. I don't know if I can use the patches suggested
on the gentoo gitweb also on ubuntu 20.04.
You can find the discussion here : https://github.com/intel/gvt-
linux/issues/168
I'm using GCC version 9.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-9/+bug/1892205/+subscriptions
More information about the foundations-bugs
mailing list