Re: clang bug affecting greenfly - Mailing list pgsql-hackers

From Greg Burd
Subject Re: clang bug affecting greenfly
Date
Msg-id 7536cefa-c026-4ec9-afc3-17c2c0c66646@app.fastmail.com
Whole thread Raw
In response to clang bug affecting greenfly  (John Naylor <johncnaylorls@gmail.com>)
Responses Re: clang bug affecting greenfly
List pgsql-hackers
On Mon, Mar 30, 2026, at 2:39 AM, John Naylor wrote:
> [new subject]
>
> On Sat, Mar 28, 2026 at 3:22 AM Greg Burd <greg@burd.me> wrote:
>
>> 0001 - This is a bug fix for DES/RISC-V/Clang DES initialization.
>>
>> ------> Join me in "the rabbit hole" on this issue if you care to...
>>
>> The existing software DES (as shown by the build-farm animal "greenfly" [1]) fails because Clang 20 has an
auto-vectorizationbug that we trigger in the DES initialization code (des_init() function), not the DES encryption
algorithmitself. 
>
>> [disable vectorization entirely]
>> While that might also fix the other intermittent bug we'd been seeing on greenfly (not tested) disablnig all RVV
optimizationsseems to heavy handed to me. 
>
> The first thing I notice is that not very long ago the buildfarm had 3
> gcc RISC-V members, but not anymore. If you care about having coverage
> for this hardware, I'd suggest picking up gcc again if that's still
> working, and wait and see about clang. Clang has shipped broken code
> generation for obscure platforms in the past, and it seems here we're
> not even sure of the extent of the breakage.

Hey John,

All fair points.  I've changed greenfly to use GCC 13.3.0, thanks for the suggestion.

> --
> John Naylor
> Amazon Web Services

best.

-greg



pgsql-hackers by date:

Previous
From: Andrey Borodin
Date:
Subject: Re: Add ldapservice connection parameter
Next
From: John Naylor
Date:
Subject: Re: Proposal for enabling auto-vectorization for checksum calculations