{"action":"opened","issue":{"url":"https://api.github.com/repos/postgrespro/rum/issues/50","repository_url":"https://api.github.com/repos/postgrespro/rum","labels_url":"https://api.github.com/repos/postgrespro/rum/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/postgrespro/rum/issues/50/comments","events_url":"https://api.github.com/repos/postgrespro/rum/issues/50/events","html_url":"https://github.com/postgrespro/rum/issues/50","id":384813305,"node_id":"MDU6SXNzdWUzODQ4MTMzMDU=","number":50,"title":"llvm and can't compile","user":{"login":"sgrinko","id":10084993,"node_id":"MDQ6VXNlcjEwMDg0OTkz","avatar_url":"https://avatars2.githubusercontent.com/u/10084993?v=4","gravatar_id":"","url":"https://api.github.com/users/sgrinko","html_url":"https://github.com/sgrinko","followers_url":"https://api.github.com/users/sgrinko/followers","following_url":"https://api.github.com/users/sgrinko/following{/other_user}","gists_url":"https://api.github.com/users/sgrinko/gists{/gist_id}","starred_url":"https://api.github.com/users/sgrinko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgrinko/subscriptions","organizations_url":"https://api.github.com/users/sgrinko/orgs","repos_url":"https://api.github.com/users/sgrinko/repos","events_url":"https://api.github.com/users/sgrinko/events{/privacy}","received_events_url":"https://api.github.com/users/sgrinko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-27T14:12:04Z","updated_at":"2018-11-27T14:12:04Z","closed_at":null,"author_association":"NONE","body":"Окружение\r\nCentOS 7.3.1611\r\nPostgres ваниль 11.1\r\nустанавливал постгрес командой:\r\n```\r\nyum install postgresql11 postgresql11-server postgresql11-contrib postgresql11-libs postgresql11-devel systemtap-sdt-devel\r\n```\r\nмой pg_config:\r\n```\r\n[root@publ-test-db01 bin]# ./pg_config\r\nBINDIR = /usr/pgsql-11/bin\r\nDOCDIR = /usr/pgsql-11/doc\r\nHTMLDIR = /usr/pgsql-11/doc/html\r\nINCLUDEDIR = /usr/pgsql-11/include\r\nPKGINCLUDEDIR = /usr/pgsql-11/include\r\nINCLUDEDIR-SERVER = /usr/pgsql-11/include/server\r\nLIBDIR = /usr/pgsql-11/lib\r\nPKGLIBDIR = /usr/pgsql-11/lib\r\nLOCALEDIR = /usr/pgsql-11/share/locale\r\nMANDIR = /usr/pgsql-11/share/man\r\nSHAREDIR = /usr/pgsql-11/share\r\nSYSCONFDIR = /etc/sysconfig/pgsql\r\nPGXS = /usr/pgsql-11/lib/pgxs/src/makefiles/pgxs.mk\r\nCONFIGURE = '--enable-rpath' '--prefix=/usr/pgsql-11' '--includedir=/usr/pgsql-11/include' '--mandir=/usr/pgsql-11/share/man' '--datadir=/usr/pgsql-11/share' '--with-icu' 'CLANG=/opt/rh/llvm-toolset-7/root/usr/bin/clang' 'LLVM_CONFIG=/usr/lib64/llvm5.0/bin/llvm-config' '--with-llvm' '--with-perl' '--with-python' '--with-tcl' '--with-tclconfig=/usr/lib64' '--with-openssl' '--with-pam' '--with-gssapi' '--with-includes=/usr/include' '--with-libraries=/usr/lib64' '--enable-nls' '--enable-dtrace' '--with-uuid=e2fs' '--with-libxml' '--with-libxslt' '--with-ldap' '--with-selinux' '--with-systemd' '--with-system-tzdata=/usr/share/zoneinfo' '--sysconfdir=/etc/sysconfig/pgsql' '--docdir=/usr/pgsql-11/doc' '--htmldir=/usr/pgsql-11/doc/html' 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' 'LDFLAGS=-Wl,--as-needed' 'PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig'\r\nCC = gcc\r\nCPPFLAGS = -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include\r\nCFLAGS = -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\r\nCFLAGS_SL = -fPIC\r\nLDFLAGS = -Wl,--as-needed -L/usr/lib64/llvm5.0/lib -L/usr/lib64 -Wl,--as-needed -Wl,-rpath,'/usr/pgsql-11/lib',--enable-new-dtags\r\nLDFLAGS_EX =\r\nLDFLAGS_SL =\r\nLIBS = -lpgcommon -lpgport -lpthread -lselinux -lxslt -lxml2 -lpam -lssl -lcrypto -lgssapi_krb5 -lz -lreadline -lrt -lcrypt -ldl -lm\r\nVERSION = PostgreSQL 11.1\r\n```\r\nдополнительно устанавливал:\r\n`yum -y install git gcc gcc-c++ clang libstdc++-devel llvm llvm-libs`\r\n\r\nпри компиляции получаю ошибку:\r\n```\r\n...\r\ngcc -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 rum.so src/rumsort.o src/rum_ts_utils.o src/rumtsquery.o src/rumbtree.o src/rumbulk.o src/rumdatapage.o src/rumentrypage.o src/rumget.o src/ruminsert.o src/rumscan.o src/rumutil.o src/rumvacuum.o src/rumvalidate.o src/btree_rum.o src/rum_arr_utils.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 -lm\r\n/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/rumsort.bc src/rumsort.c\r\nmake: /opt/rh/llvm-toolset-7/root/usr/bin/clang: Command not found\r\nmake: *** [src/rumsort.bc] Error 127\r\n```\r\nнеясно почему идет попытка искать llvm в `/opt/rh/llvm-toolset-7/root/usr/bin/clang`\r\nв чём может быть проблема?\r\n?\r\n"}}
{"actor":{"display_login":"sgrinko"}}