Re: Do we work with LLVM 12 on s390x? - Mailing list pgsql-hackers

From Honza Horak
Subject Re: Do we work with LLVM 12 on s390x?
Date
Msg-id fc131116-baef-66a5-362c-b9e1a2b1ebec@redhat.com
Whole thread Raw
In response to Re: Do we work with LLVM 12 on s390x?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Do we work with LLVM 12 on s390x?  (Tom Stellard <tstellar@redhat.com>)
List pgsql-hackers
On 3/19/21 8:15 PM, Tom Lane wrote:
> Andres Freund <andres@anarazel.de> writes:
>> I think the error above comes from a "mismatch" between the clang used
>> to compile bitcode, and the LLVM version linked to. Normally we're
>> somewhat tolerant of differences between the two, but there was an ABI
>> change at some point, leading to that error.  IIRC I hit that, but it
>> vanished as soon as I used a matching libllvm and clang.
> 
> Thanks, I passed that advice on.
> 
>             regards, tom lane

Tom Stellard was so kind to look at this issue deeper with his LLVM 
skills and found PostgreSQL is not actually handling the LLVM perfectly. 
He's working on improving the patch, but sharing even the first attempt 
with upstream seems like a good idea:

https://src.fedoraproject.org/rpms/postgresql/pull-request/29

Regards,
Honza




pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [bug?] Missed parallel safety checks, and wrong parallel safety
Next
From: Bruce Momjian
Date:
Subject: Re: ML-based indexing ("The Case for Learned Index Structures", a paper from Google)