From: Luis Machado <luis.machado@arm.com>
To: Paul Iannetta <piannetta@kalrayinc.com>
Cc: Nick Clifton <nickc@redhat.com>, binutils@sourceware.org
Subject: Re: [PATCH v3] kvx: New port.
Date: Thu, 17 Aug 2023 17:28:14 +0100 [thread overview]
Message-ID: <626d0655-43f2-c7f6-4e61-060c73cf1d48@arm.com> (raw)
In-Reply-To: <20230817150953.cyi5falukouuz3re@ws2202.lin.mbt.kalray.eu>
Hi Paul,
On 8/17/23 16:09, Paul Iannetta wrote:
> On Thu, Aug 17, 2023 at 10:45:09AM +0100, Luis Machado wrote:
>>
>> The builders have caught a few hiccups related to printf modifiers for 32-bit architectures.
>>
>> Could you please take a look at those? A build with --enable-targets=all is recommended
>> to catch those.
>>
>> See https://builder.sourceware.org/buildbot/#/builders/170/builds/3977.
>>
>> --
>>
>> In file included from ../../binutils-gdb/bfd/elfnn-kvx.c:22:
>> ../../binutils-gdb/bfd/elfxx-kvx-relocs.h:74:3: error: conversion from ‘long long unsigned int’ to ‘unsigned int’ changes value from ‘18446744073709551615’ to ‘4294967295’ [-Werror=overflow]
>> 74 | 0xffffffffffffffff, /* dst_mask */
>> | ^~~~~~~~~~~~~~~~~~
>> bfd.h:3204:15: note: in definition of macro ‘HOWTO’
>> 3204 | src_mask, dst_mask, func, name }
>> | ^~~~~~~~
>> ../../binutils-gdb/bfd/elfnn-kvx.c: In function ‘elf32_kvx_stub_name’:
>> ../../binutils-gdb/bfd/elfnn-kvx.c:740:28: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 6 has type ‘bfd_vma’ {aka ‘const unsigned int’} [-Werror=format=]
>> 740 | snprintf (stub_name, len, "%08x_%s+%" PRIx64 "x",
>> | ^~~~~~~~~~~
>> ......
>> 743 | rel->r_addend);
>> | ~~~~~~~~~~~~~
>> | |
>> | bfd_vma {aka const unsigned int}
>> cc1: all warnings being treated as errors
>> make[3]: *** [Makefile:1758: elf32-kvx.lo] Error 1
>>
>
> Hi,
>
> I was not able to fully reproduce but the attached patch should fix
> the build errors. However, we did not do any validation on 32 bits
> hosts, so I think that even with this patch it will not be enough to
> pass `mack check'. I'll work on it so that everything pass by the end
> of the week, so you may want to wait until I have also fixed the
> validation before applying the patch.
Thanks! If 32-bit is supported for kvx, you might want to give the testsuite for that particular mode, just to make sure things are sane.
After pushing the changes, you may want to keep an eye out for the following:
https://builder.sourceware.org/buildbot/#/builders?tags=binutils
https://builder.sourceware.org/buildbot/#/builders?tags=gdb
You should see some going back to green.
>
> Paul
>
>
next prev parent reply other threads:[~2023-08-17 16:28 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-21 7:49 [PATCH 0/7] " Paul Iannetta
2023-07-21 7:49 ` [PATCH 1/7] kvx: Add bf files Paul Iannetta
2023-07-21 7:49 ` [PATCH 2/7] kvx: Add binutils files Paul Iannetta
2023-07-21 7:49 ` [PATCH 3/7] kvx: Add gas file Paul Iannetta
2023-07-21 7:49 ` [PATCH 4/7] kvx: Add ld files Paul Iannetta
2023-07-21 7:49 ` [PATCH 5/7] kvx: Add include files Paul Iannetta
2023-07-21 7:49 ` [PATCH 6/7] kvx: Add opcodes file Paul Iannetta
2023-07-21 7:49 ` [PATCH 7/7] kvx: Add toplevel files Paul Iannetta
2023-07-21 8:29 ` [PATCH 0/7] kvx: New port Nick Clifton
[not found] ` <20230721090932.pspnpq2q2wjnshrh@ws2202.lin.mbt.kalray.eu>
[not found] ` <2050791e-38ee-5719-037f-c03c456f3e3d@redhat.com>
2023-07-21 16:47 ` Paul Iannetta
2023-07-21 17:00 ` Paul Iannetta
2023-07-21 8:57 ` YunQiang Su
2023-07-21 16:51 ` Paul Iannetta
2023-07-24 9:04 ` Nick Clifton
2023-07-24 9:38 ` Paul Iannetta
2023-07-24 9:28 ` Nick Clifton
2023-07-24 12:33 ` Paul Iannetta
2023-07-24 14:30 ` Paul Iannetta
2023-07-25 14:13 ` Nick Clifton
2023-07-26 7:36 ` Paul Iannetta
2023-07-26 13:32 ` Michael Matz
2023-07-26 21:46 ` Paul Iannetta
2023-07-26 21:24 ` [PATCH v2] " Paul Iannetta
2023-07-31 14:52 ` Nick Clifton
2023-08-02 14:38 ` [PATCH v3] " Paul Iannetta
2023-08-16 13:24 ` Nick Clifton
2023-08-17 9:45 ` Luis Machado
2023-08-17 15:09 ` Paul Iannetta
2023-08-17 16:28 ` Luis Machado [this message]
2023-08-17 23:20 ` Alan Modra
2023-08-18 7:13 ` Paul Iannetta
2023-08-17 12:46 ` Paul Iannetta
2023-07-24 9:53 ` [PATCH 0/7] " Nick Clifton
2023-07-24 12:27 ` Paul Iannetta
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=626d0655-43f2-c7f6-4e61-060c73cf1d48@arm.com \
--to=luis.machado@arm.com \
--cc=binutils@sourceware.org \
--cc=nickc@redhat.com \
--cc=piannetta@kalrayinc.com \
/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 read-only IMAP folder(s) and NNTP newsgroup(s).