** Description changed:

- Hello. I was trying to compile the xen tools for enabling GVT for my 
integrated intel gpu 
+ 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 | &regs->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/167
+ linux/issues/168
  
  I'm using GCC version 9.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to 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]

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1892205/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to