{"action":"created","issue":{"url":"https://api.github.com/repos/tds-fdw/tds_fdw/issues/205","repository_url":"https://api.github.com/repos/tds-fdw/tds_fdw","labels_url":"https://api.github.com/repos/tds-fdw/tds_fdw/issues/205/labels{/name}","comments_url":"https://api.github.com/repos/tds-fdw/tds_fdw/issues/205/comments","events_url":"https://api.github.com/repos/tds-fdw/tds_fdw/issues/205/events","html_url":"https://github.com/tds-fdw/tds_fdw/issues/205","id":480247106,"node_id":"MDU6SXNzdWU0ODAyNDcxMDY=","number":205,"title":"Ubuntu 16, Postgres 11 - \"make USE_PGXS=1\" install fails","user":{"login":"bharathregal","id":15114039,"node_id":"MDQ6VXNlcjE1MTE0MDM5","avatar_url":"https://avatars1.githubusercontent.com/u/15114039?v=4","gravatar_id":"","url":"https://api.github.com/users/bharathregal","html_url":"https://github.com/bharathregal","followers_url":"https://api.github.com/users/bharathregal/followers","following_url":"https://api.github.com/users/bharathregal/following{/other_user}","gists_url":"https://api.github.com/users/bharathregal/gists{/gist_id}","starred_url":"https://api.github.com/users/bharathregal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bharathregal/subscriptions","organizations_url":"https://api.github.com/users/bharathregal/orgs","repos_url":"https://api.github.com/users/bharathregal/repos","events_url":"https://api.github.com/users/bharathregal/events{/privacy}","received_events_url":"https://api.github.com/users/bharathregal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2019-08-13T16:18:53Z","updated_at":"2019-08-13T21:55:27Z","closed_at":null,"author_association":"NONE","body":"Gone thru bunch of troubleshooting steps to create missing symlinks for Clang, LLVM-lto to appropriate directory structure and finally got blocked with below error message:\r\n\r\nSpecs: \r\nOS - Ubuntu 16\r\nPG - PG11\r\nClang - 6.0\r\nLLVM - 6.0\r\n\r\n/usr/bin/mkdir -p '/opt/postgres/bigsql/pg11/lib/postgresql'\r\n/usr/bin/mkdir -p '/opt/postgres/bigsql/pg11/share/postgresql/extension'\r\n/usr/bin/mkdir -p '/opt/postgres/bigsql/pg11/share/postgresql/extension'\r\n/usr/bin/mkdir -p '/opt/postgres/bigsql/pg11/share/doc/postgresql/extension'\r\n/usr/bin/install -c -m 755  tds_fdw.so '/opt/postgres/bigsql/pg11/lib/postgresql/tds_fdw.so'\r\n/usr/bin/install -c -m 644 .//tds_fdw.control '/opt/postgres/bigsql/pg11/share/postgresql/extension/'\r\n/usr/bin/install -c -m 644 .//sql/tds_fdw--2.0.0-alpha.3.sql  '/opt/postgres/bigsql/pg11/share/postgresql/extension/'\r\n/usr/bin/install -c -m 644 .//README.tds_fdw.md '/opt/postgres/bigsql/pg11/share/doc/postgresql/extension/'\r\n/usr/bin/mkdir -p '/opt/postgres/bigsql/pg11/lib/postgresql/bitcode/tds_fdw'\r\n/usr/bin/mkdir -p '/opt/postgres/bigsql/pg11/lib/postgresql/bitcode'/tds_fdw/src/\r\n/usr/bin/install -c -m 644 src/tds_fdw.bc '/opt/postgres/bigsql/pg11/lib/postgresql/bitcode'/tds_fdw/src/\r\n/usr/bin/install -c -m 644 src/options.bc '/opt/postgres/bigsql/pg11/lib/postgresql/bitcode'/tds_fdw/src/\r\n/usr/bin/install -c -m 644 src/deparse.bc '/opt/postgres/bigsql/pg11/lib/postgresql/bitcode'/tds_fdw/src/\r\ncd '/opt/postgres/bigsql/pg11/lib/postgresql/bitcode' && /opt/rh/llvm-toolset-7/root/usr/bin/llvm-lto -thinlto -thinlto-action=thinlink -o tds_fdw.index.bc tds_fdw/src/tds_fdw.bc tds_fdw/src/options.bc tds_fdw/src/deparse.bc\r\n**error: can't create module summary index for buffer: Invalid Summary Block: version expected\r\nLLVM ERROR: ThinLink didn't create an index\r\n/opt/postgres/bigsql/pg11/lib/postgresql/pgxs/src/makefiles/pgxs.mk:229: recipe for target 'install' failed\r\nmake: *** [install] Error 1**\r\n"},"comment":{"url":"https://api.github.com/repos/tds-fdw/tds_fdw/issues/comments/521024296","html_url":"https://github.com/tds-fdw/tds_fdw/issues/205#issuecomment-521024296","issue_url":"https://api.github.com/repos/tds-fdw/tds_fdw/issues/205","id":521024296,"node_id":"MDEyOklzc3VlQ29tbWVudDUyMTAyNDI5Ng==","user":{"login":"bharathregal","id":15114039,"node_id":"MDQ6VXNlcjE1MTE0MDM5","avatar_url":"https://avatars1.githubusercontent.com/u/15114039?v=4","gravatar_id":"","url":"https://api.github.com/users/bharathregal","html_url":"https://github.com/bharathregal","followers_url":"https://api.github.com/users/bharathregal/followers","following_url":"https://api.github.com/users/bharathregal/following{/other_user}","gists_url":"https://api.github.com/users/bharathregal/gists{/gist_id}","starred_url":"https://api.github.com/users/bharathregal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bharathregal/subscriptions","organizations_url":"https://api.github.com/users/bharathregal/orgs","repos_url":"https://api.github.com/users/bharathregal/repos","events_url":"https://api.github.com/users/bharathregal/events{/privacy}","received_events_url":"https://api.github.com/users/bharathregal/received_events","type":"User","site_admin":false},"created_at":"2019-08-13T21:55:27Z","updated_at":"2019-08-13T21:55:27Z","author_association":"NONE","body":"New error msg:\r\ncd '/opt/postgres/bigsql/pg11/lib/postgresql/bitcode' && /opt/rh/llvm-toolset-7/root/usr/bin/llvm-lto -thinlto -thinlto-action=thinlink -o tds_fdw.index.bc tds_fdw/src/tds_fdw.bc tds_fdw/src/options.bc tds_fdw/src/deparse.bc\r\nInvalid Summary Block: version expected\r\nerror: can't create ModuleSummaryIndexObjectFile for buffer: Corrupted bitcode\r\n0  libLLVM-3.9.so.1 0x00007f9105c22fe8 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 56\r\n1  libLLVM-3.9.so.1 0x00007f9105c2115e llvm::sys::RunSignalHandlers() + 62\r\n2  libLLVM-3.9.so.1 0x00007f9105c212ac\r\n3  libc.so.6        0x00007f9104e8c4b0\r\n4  libLLVM-3.9.so.1 0x00007f91061d29d4\r\n5  libLLVM-3.9.so.1 0x00007f91061e64ff llvm::WriteIndexToFile(llvm::ModuleSummaryIndex const&, llvm::raw_ostream&, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::map<unsigned long, llvm::GlobalValueSummary*, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, llvm::GlobalValueSummary*> > >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::map<unsigned long, llvm::GlobalValueSummary*, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, llvm::GlobalValueSummary*> > > > > >*) + 415\r\n6  llvm-lto         0x0000000000418164\r\n7  llvm-lto         0x000000000041936a\r\n8  llvm-lto         0x000000000040cfc3\r\n9  libc.so.6        0x00007f9104e77830 __libc_start_main + 240\r\n10 llvm-lto         0x000000000040eba9\r\nStack dump:\r\n0.      Program arguments: /opt/rh/llvm-toolset-7/root/usr/bin/llvm-lto -thinlto -thinlto-action=thinlink -o tds_fdw.index.bc tds_fdw/src/tds_fdw.bc tds_fdw/src/options.bc tds_fdw/src/deparse.bc \r\nSegmentation fault (core dumped)\r\nUse \"fg\" to return to nano.ib/postgresql/pgxs/src/makefiles/pgxs.mk:229: recipe for target 'install' failed\r\nmake: *** [install] Error 139\r\n[1]+  Stopped                 nano Makefileano Makefile \r\n"}}
{"actor":{"display_login":"bharathregal"}}