Bug 216645 - sysutils/xen-tools: fails to build with clang 4.0
Summary: sysutils/xen-tools: fails to build with clang 4.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Roger Pau Monné
URL:
Keywords: needs-patch
Depends on:
Blocks: 216008
  Show dependency treegraph
 
Reported: 2017-01-31 00:20 UTC by Jan Beich
Modified: 2017-04-14 17:17 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (royger)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.