[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH for-next] configure: probe for gcc -m32 integer sizes


  • To: Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Date: Wed, 24 Feb 2021 11:20:47 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TOmbYkEZH+o/N87Ohbl6qlrRkNv2stcHZzmPTrsPvRs=; b=HovLOdaeerk3gheF9NhJqnoqfuRWPcPd49OLdGgwU5q1QARIGXPw6s0eRbdbyi7/g1ZDHHcJ2VCAoXA2P2WcKKaqOozyGQ2R5Gpz2c66QHPN3Whb3xrtmGd+U2BYybTruJF5VZpb6YlPeww+K+JC93wz7D8WMeDZ18ZswotblU1mOm4tGUMgjAtfJJ3/Ff7toT9fBacxG3Qtn7jd7E779/wf/cqSCP8u9YR+bElP27q0iofwFyeYGgCaAXhCNq8J4305SMXNdnW1lFUKWWIaCtkDG4uH3Dtgxn4rEedTh4sdbHCmWvRu1iBRU6G9a6Qg+ZUM1jkY3EQXrFy+LgJisA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LcQMtkX8ckIVWl+u1NanUYcvSUI40GY+OThluqzhx20H78yX3scf8aN0FCWMrTQePYv3mwm9/tlAH/XG15HrnEKTD57X2U7+Yr74RgZIsK67Kuj7QNe91QC7KJiS3vsZi2x277wsu22YvnwhZe08PrAHxzDBYlbFW2ceHXtFOq4okiFIoTRpid5Sgd9Xg9zWTytNWB4HN/Cp+Byxp0LWD10wbFJVyi0PGcWN1u5p07EHbV8Z0xJQzBJmjfgUFaX8OL/M1GdHYn4t5pms2iFdlW5duIXG3ZnlOqGxipt2XL8A9tBwVguFzPb+zwn7MgqkbpI/ypRXLrtPFUxqLM7idw==
  • Authentication-results: esa4.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Cc: <xen-devel@xxxxxxxxxxxxxxxxxxxx>, <jbeulich@xxxxxxxx>, <andrew.cooper3@xxxxxxxxxx>, <wl@xxxxxxx>, <iwj@xxxxxxxxxxxxxx>, <anthony.perard@xxxxxxxxxx>
  • Delivery-date: Wed, 24 Feb 2021 10:21:06 +0000
  • Ironport-sdr: ngR1ue2C1O97dQX+eBx5yiHLBdlBImAdl3/VygmhgcWPVJ4N6Nh0VNwvkvMZrzQgTCVGj4zdzA sEubshhkXFnigOaQoEBzqmWSejm3+JICDlJH2J7elonP8c5xCGuhdqASk/P0CVKTpzrLxzOOvm ajo//lHkyXCs8f4Ll4UB6JWdPxF2Mug2PTBm4sswghi9HeLsSLkTXFY5tV3k3sEpSORUpMJSah jWXsvDlXdaBZXZiFEquUDd/EZP/Exo6AoVZitmrTSsF9rx6ZuaGEBU2YeX8R+kIwv6LhDk+KXB CXI=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

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.



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.