Skip to content
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

Closed
Phone911 opened this issue Nov 20, 2018 · 5 comments
Closed

missing clang when building with Postgresql 11.1-1 and Centos 7.5 #35

Phone911 opened this issue Nov 20, 2018 · 5 comments

Comments

@Phone911
Copy link

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.

@theory
Copy link
Owner

theory commented Nov 21, 2018

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 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 Yum repo, not core CentOS.

HTH!

@theory theory closed this as completed Nov 21, 2018
@Phone911
Copy link
Author

Phone911 commented Nov 21, 2018 via email

@hadanhtoi
Copy link

hi @theory I have installed 3 packages but I still got same error. So , Do I must set /opt/rh to $path ?

@theory
Copy link
Owner

theory commented Nov 29, 2019

Dunno, maybe something changed in the clang RPMs for CentOS?

@ikalafat
Copy link

@theory @hadanhtoi just encountered same error, even with 3 mentioned packages installed on latest CentOS 7.

I also had to install yum install llvm-toolset-7-clang.

Cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants