pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: tstellar@redhat.com
Subject: BUG #16971: Incompatible datalayout errors with llvmjit
Date: Mon, 19 Apr 2021 18:29:52 +0000
Message-ID: <16971-5d004d34742a3d35@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      16971
Logged by:          Tom Stellard
Email address:      tstellar@redhat.com
PostgreSQL version: 13.2
Operating system:   Fedora
Description:        

In our Fedora builds, we are getting errors[1] in the postgresql tests due
to incompatible datalayouts between the JIT engine and the LLVM modules
being compiled.  The problem is that the JIT engine is being created with
host specific CPU and features, while the datalayout for the compiled module
is being taken from llvmjit_types.bc which is compiled without any specified
CPU type or features.

One way to fix this would be to add -march=native to the %.bc rules in
src/Makefile.global.in.  However, this will only work when the build system
and the run system are the same.

I think to fix this correctly, the llvmjit_types.bc file will need to be
compiled when the JIT engine is initialized at runtime, so that it can use
the same datalayout as the JIT engine.

[1] https://kojipkgs.fedoraproject.org//work/tasks/2182/66082182/build.log



view thread (4+ messages)  latest in thread

Message-ID: <16971-5d004d34742a3d35@postgresql.org>
Permalink:  ../16971-5d004d34742a3d35@postgresql.org/
Also on:    postgresql.org/message-id/16971-5d004d34742a3d35@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, tstellar@redhat.com
  Subject: Re: BUG #16971: Incompatible datalayout errors with llvmjit
  In-Reply-To: <16971-5d004d34742a3d35@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox