Bug 216645

Summary: sysutils/xen-tools: fails to build with clang 4.0
Product: Ports & Packages Reporter: Jan Beich <jbeich>
Component: Individual Port(s)Assignee: Roger Pau Monné <royger>
Status: Closed FIXED    
Severity: Affects Only Me Keywords: needs-patch
Priority: --- Flags: bugzilla: maintainer-feedback? (royger)
Version: Latest   
Hardware: Any   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216644
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216643
Bug Depends on:    
Bug Blocks: 216008    

Description Jan Beich freebsd_committer 2017-01-31 00:20:33 UTC
kdd.c:716:47: error: taking address of packed member 'val' of class or structure 'kdd_cmd_msr' may result in an unaligned pointer value [-Werror,-Waddress-of-packed-member]
    ok = (kdd_rdmsr(s->guest, s->cpuid, msr, &s->txp.cmd.msr.val) == 0);
                                              ^~~~~~~~~~~~~~~~~~

http://package18.nyi.freebsd.org/data/headamd64PR216008-default/2017-01-29_16h09m05s/logs/errors/xen-tools-4.7.1_1.log
Comment 1 Roger Pau Monné freebsd_committer 2017-04-14 17:17:40 UTC
Solved in r436536.