New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
missing clang when building with Postgresql 11.1-1 and Centos 7.5 #35
Comments
I ran into the same error building RPMs on CentOS 7 at work. The issue isn't CentOS, though, but Postgres 11, the Yum RPM for which is compiled with LLVM 5 to support JIT with Bitcode. FBOFW, that means anyone building extensions needs LLVM 5, too. The RPM is named HTH! |
Thank you! Installing the three packages corrected the problem.
Gary Burchett
Tel: +1 (919) 531-6995
Mobile: +1 (919) 413-3146
From: David E. Wheeler <notifications@github.com>
Sent: Wednesday, November 21, 2018 9:02 AM
To: theory/pg-semver <pg-semver@noreply.github.com>
Cc: Gary Burchett <Gary.Burchett@sas.com>; Author <author@noreply.github.com>
Subject: Re: [theory/pg-semver] missing clang when building with Postgresql 11.1-1 and Centos 7.5 (#35)
EXTERNAL
I ran into the same error building RPMs on CentOS 7 at work. The issue isn't CentOS, though, but Postgres 11, the Yum RPM for which is compiled with LLVM 5 to support JIT with Bitcode<https://www.postgresql.org/docs/current/jit-extensibility.html>. FBOFW, that means anyone building extensions needs LLVM 5, too. The RPM is named llvm5.0, and is in standard CentOS. I found I also needed to install devtoolset-7 and llvm-toolset-7, though; they're in the SCLo<https://pkgs.org/download/llvm-toolset-7-llvm> Yum repo, not core CentOS.
HTH!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#35 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AGdX2tLXr-Vw5SV01M0xeb-HukRNDLFcks5uxVzugaJpZM4Yr_63>.
|
hi @theory I have installed 3 packages but I still got same error. So , Do I must set /opt/rh to $path ? |
Dunno, maybe something changed in the clang RPMs for CentOS? |
@theory @hadanhtoi just encountered same error, even with 3 mentioned packages installed on latest CentOS 7. I also had to install Cheers. |
For a Postgresql 11.1-1 install: running make on Centos 7.5 gets this error:
/opt/rh/llvm-toolset-7/root/usr/bin/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -O2 -I. -I./ -I/usr/pgsql-11/include/server -I/usr/pgsql-11/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include -flto=thin -emit-llvm -c -o src/semver.bc src/semver.c
make: /opt/rh/llvm-toolset-7/root/usr/bin/clang: Command not found
make: *** [src/semver.bc] Error 127
I could not find an appropriate package to install to solve this.
The text was updated successfully, but these errors were encountered: