From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Stefano Stabellini <sstabellini@kernel.org>
Cc: <xen-devel@lists.xenproject.org>, <jbeulich@suse.com>,
<andrew.cooper3@citrix.com>, <wl@xen.org>, <iwj@xenproject.org>,
<anthony.perard@citrix.com>
Subject: Re: [PATCH for-next] configure: probe for gcc -m32 integer sizes
Date: Wed, 24 Feb 2021 11:20:47 +0100 [thread overview]
Message-ID: <YDYof8YTAViDlDz/@Air-de-Roger> (raw)
In-Reply-To: <alpine.DEB.2.21.2102231648580.3234@sstabellini-ThinkPad-T480s>
On Tue, Feb 23, 2021 at 05:08:43PM -0800, Stefano Stabellini wrote:
> The hvmloader build on Alpine Linux x86_64 currenly fails:
>
>
> hvmloader.c: In function 'init_vm86_tss':
> hvmloader.c:202:39: error: left shift count >= width of type [-Werror=shift-count-overflow]
> 202 | ((uint64_t)TSS_SIZE << 32) | virt_to_phys(tss));
>
> util.c: In function 'get_cpu_mhz':
> util.c:824:15: error: conversion from 'long long unsigned int' to 'uint64_t' {aka 'long unsigned int'} changes value from
> '4294967296000000' to '0' [-Werror=overflow]
> 824 | cpu_khz = 1000000ull << 32;
>
>
> The root cause of the issue is that gcc -m32 picks up headers meant for
> 64-bit builds.
I'm working on getting hvmloader to build standalone without using any
system headers, which I think it's a worthwhile change to do rather
than this configure bodge. Will post the series now.
Thanks, Roger.
prev parent reply other threads:[~2021-02-24 10:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-24 1:08 [PATCH for-next] configure: probe for gcc -m32 integer sizes Stefano Stabellini
2021-02-24 7:26 ` Jan Beulich
2021-02-24 10:20 ` Roger Pau Monné [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YDYof8YTAViDlDz/@Air-de-Roger \
--to=roger.pau@citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=anthony.perard@citrix.com \
--cc=iwj@xenproject.org \
--cc=jbeulich@suse.com \
--cc=sstabellini@kernel.org \
--cc=wl@xen.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).