tcgbios.c:1519:33: error: taking address of packed member of ‘struct ’ may result in an unaligned pointer value [-Werror=address-of-packed-member]
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xen (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
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-
tcgbios.c: In function ‘TCGInterruptHa
tcgbios.c:1519:33: error: taking address of packed member of ‘struct ’ may result in an unaligned pointer value [-Werror=
1519 | ®s->u.r32.edx);
| ^~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
I see that thig bug has been discussed here :
https:/
and resolved here :
https:/
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:/
I'm using GCC version 9.
description: | updated |
affects: | ubuntu → gcc-9 (Ubuntu) |
affects: | gcc-9 (Ubuntu) → xen (Ubuntu) |
Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https:/ /wiki.ubuntu. com/Bugs/ FindRightPackag e. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.
To change the source package that this bug is filed about visit https:/ /bugs.launchpad .net/ubuntu/ +bug/1892205/ +editstatus and add the package name in the text box next to the word Package.
[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]