Re: clang prefix for centos7 - Mailing list pgsql-pkg-yum
From | Justin Pryzby |
---|---|
Subject | Re: clang prefix for centos7 |
Date | |
Msg-id | 20200424181956.GQ28974@telsasoft.com Whole thread Raw |
In response to | Re: clang prefix for centos7 (Laurenz Albe <laurenz.albe@cybertec.at>) |
Responses |
Re: clang prefix for centos7
|
List | pgsql-pkg-yum |
On Sun, Mar 17, 2019 at 06:17:55PM +0100, Laurenz Albe wrote: > Justin Pryzby wrote: > > I'm migating a postgres11 server to centos7. > > It turns out we need parray_gin extension. > > > > Under centos6, it compiled and installed fine, but but under c7 it fails: > > > > sudo pgxnclient install parray_gin > > > gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute-Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2-fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic-fPIC -I. -I./ -I/usr/pgsql-11/include/server -I/usr/pgsql-11/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include -c -o src/parray_gin.o src/parray_gin.c > > > gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute-Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2-fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic-fPIC -I. -I./ -I/usr/pgsql-11/include/server -I/usr/pgsql-11/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include -c -o src/trgm.o src/trgm.c > > > gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute-Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2-fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic-fPIC -shared -o parray_gin.so src/parray_gin.o src/trgm.o -L/usr/pgsql-11/lib -Wl,--as-needed -L/usr/lib64/llvm5.0/lib -L/usr/lib64 -Wl,--as-needed -Wl,-rpath,'/usr/pgsql-11/lib',--enable-new-dtags > > > cp sql/parray_gin.sql sql/parray_gin--1.3.1.sql > > > /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/parray_gin.bc src/parray_gin.c > > > gmake: /opt/rh/llvm-toolset-7/root/usr/bin/clang: Command not found > > > gmake: *** [src/parray_gin.bc] Error 127 > > > ERROR: command returned 2: gmake PG_CONFIG=/bin/pg_config all > > If you don't need JIT support for the extension, you could try > > with_llvm=no make -e > > That worked with oracle_fdw. > > Don't know how that translates to pgxnclient though. I ran into this again so reread your mail. It looks like pgxnclient has no nice way to do that, you'd have to create a 1-liner like /usr/local/bin/gmake: #! /bin/sh exec /usr/bin/make -e "$@" And then run: sudo sh -xec 'export with_llvm=no PATH=$PATH:/usr/local/bin:/usr/pgsql-12/bin; pgxnclient install cstore_fdw' Thanks for the idea. -- Justin
pgsql-pkg-yum by date: