pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: stan <stanb@panix.com>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: A question about building pg-libphonenumber
Date: Tue, 22 Oct 2019 08:37:47 -0400
Message-ID: <20191022123747.GA1767@panix.com> (raw)
In-Reply-To: <CAFj8pRBCRiQR3-aT1xmTVEN0xFD7da_si2K8qJ3NB9XOAnqp8Q@mail.gmail.com>
References: <20191022121514.GA21095@panix.com>
	<CAFj8pRBCRiQR3-aT1xmTVEN0xFD7da_si2K8qJ3NB9XOAnqp8Q@mail.gmail.com>

On Tue, Oct 22, 2019 at 02:19:15PM +0200, Pavel Stehule wrote:
> Hi
> 
> ??t 22. 10. 2019 v 14:15 odes??latel stan <stanb@panix.com> napsal:
> 
> > OK, this seems a stupid question, but I do not see the answer.
> >
> >
> > I downloaded pg-libphonenumber, and am going to try to build it for PG
> > version 11. Looks like the last build was against version 9.6.
> >
> > It builds fine, the issue comes in when I try to do a make install. It
> > wants to install in the appropriate directory tree for 9.6. Should be a
> > simple thing to change, right? But greping around, I cannot seem to find
> > where this is defend. it is NOT in the Makefile.
> >
> > Can someone tell me where to change this to try it against the version of
> > the DB engine I am running?
> >
> 
> The build and installation is controlled by small application - pg_config
> 
> [pavel@nemesis libvterm]$ pg_config --libdir
> /usr/local/pgsql/lib
> [pavel@nemesis libvterm]$ pg_config --sharedir
> /usr/local/pgsql/share
> 
> if you have more versions on your comp, it is important what pg_config is
> executed - depends on PATH
> 

Thanks, yes turns out I had the wrong development package installed (I am
on Ubuntu). I removed the wrong one, and installed the correct one. 

BUT, now I am getting this error at the "make install" step:

cd '/usr/lib/postgresql/11/lib/bitcode' && /usr/lib/llvm-6.0/bin/llvm-lto
-thinlto -thinlto-action=thinlink -o pg_libphonenumber.index.bc
pg_libphonenumber/src/error_handling.bc
pg_libphonenumber/src/pg_libphonenumber.bc
pg_libphonenumber/src/packed_phone_number.bc
error: can't create module summary index for buffer: Expected a single
module
LLVM ERROR: ThinLink didn't create an index
/usr/lib/postgresql/11/lib/pgxs/src/makefiles/pgxs.mk:229: recipe for
target 'install' failed
m

Any thoughts on this?
-- 
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
						-- Benjamin Franklin





view thread (6+ messages)  latest in thread

Message-ID: <20191022123747.GA1767@panix.com>
Permalink:  ../20191022123747.GA1767@panix.com/
Also on:    postgresql.org/message-id/20191022123747.GA1767@panix.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: stanb@panix.com, pavel.stehule@gmail.com
  Subject: Re: A question about building pg-libphonenumber
  In-Reply-To: <20191022123747.GA1767@panix.com>
  References: <20191022121514.GA21095@panix.com> <CAFj8pRBCRiQR3-aT1xmTVEN0xFD7da_si2K8qJ3NB9XOAnqp8Q@mail.gmail.com> <20191022123747.GA1767@panix.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox