Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Feb 2020 18:02:24 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 244403] databases/postgresql11-server: Fix build with clang 10.0.0
Message-ID:  <bug-244403-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244403

            Bug ID: 244403
           Summary: databases/postgresql11-server: Fix build with clang
                    10.0.0
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: pgsql@FreeBSD.org
          Reporter: dim@FreeBSD.org
                CC: brooks@FreeBSD.org
            Blocks: 244251
          Assignee: pgsql@FreeBSD.org
             Flags: maintainer-feedback?(pgsql@FreeBSD.org)

As reported in bug 244251, with clang 10.0.0 the databases/postgresql11-ser=
ver
port fails to build with a fatal llvm-lto error:

cd
'/wrkdirs/usr/ports/databases/postgresql11-server/work/stage/usr/local/lib/=
postgresql/bitcode'
&& /usr/local/llvm90/bin/llvm-lto -thinlto -thinlto-action=3Dthinlink -o
postgres.index.bc [... lots of .bc files ...]
error: can't create module summary index for buffer: Invalid summary versio=
n 8.
Version should be in the range [1-7].
LLVM ERROR: ThinLink didn't create an index

This is because the .bc files are produced by /usr/bin/clang, which is clang
10.0.0 in the clang1000-import branch, while the llvm-lto command line uses=
 the
executable from the llvm90 port.

The bitcode is not backwards compatible, so the easiest solution is probabl=
y to
make the port also *compile* with clang90, similar to what e.g. firefox and
other ports do.

Alternatively, we could see if a llvm100 port becomes available, and use the
llvm-lto tool from that?


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244251
[Bug 244251] [exp-run] Against projects/clang1000-import branch
--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-244403-7788>