pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedA question about building pg-libphonenumber
6+ messages / 3 participants
[nested] [flat]
* A question about building pg-libphonenumber
@ 2019-10-22 12:15 stan <stanb@panix.com>
0 siblings, 1 reply; 6+ messages in thread
From: stan @ 2019-10-22 12:15 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
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?
--
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
-- Benjamin Franklin
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: A question about building pg-libphonenumber
@ 2019-10-22 12:19 Pavel Stehule <pavel.stehule@gmail.com>
parent: stan <stanb@panix.com>
0 siblings, 1 reply; 6+ messages in thread
From: Pavel Stehule @ 2019-10-22 12:19 UTC (permalink / raw)
To: stan <stanb@panix.com>; +Cc: pgsql-general <pgsql-general@lists.postgresql.org>
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
[pavel@nemesis libvterm]$ pg_config --version
PostgreSQL 13devel
Regards
Pavel
>
> --
> "They that would give up essential liberty for temporary safety deserve
> neither liberty nor safety."
> -- Benjamin Franklin
>
>
>
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: A question about building pg-libphonenumber
@ 2019-10-22 12:37 stan <stanb@panix.com>
parent: Pavel Stehule <pavel.stehule@gmail.com>
0 siblings, 1 reply; 6+ messages in thread
From: stan @ 2019-10-22 12:37 UTC (permalink / raw)
To: Pavel Stehule <pavel.stehule@gmail.com>; +Cc: pgsql-general@lists.postgresql.org
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
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: A question about building pg-libphonenumber
@ 2019-10-22 12:43 Pavel Stehule <pavel.stehule@gmail.com>
parent: stan <stanb@panix.com>
0 siblings, 0 replies; 6+ messages in thread
From: Pavel Stehule @ 2019-10-22 12:43 UTC (permalink / raw)
To: stan <stanb@panix.com>; +Cc: pgsql-general <pgsql-general@lists.postgresql.org>
út 22. 10. 2019 v 14:37 odesílatel stan <stanb@panix.com> napsal:
> 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?
>
I have not a idea what is it, but I found this message
https://github.com/PierreSenellart/provsql/issues/9
and there is a patch
https://github.com/rdkit/rdkit/issues/2192#issuecomment-445579020
Probably it is problem with some JIT feature flags on Postgres 11 and higher
Pavel
--
> "They that would give up essential liberty for temporary safety deserve
> neither liberty nor safety."
> -- Benjamin Franklin
>
^ permalink raw reply [nested|flat] 6+ messages in thread
* FW: Re: A question about building pg-libphonenumber
@ 2019-10-22 13:57 stan <stanb@panix.com>
0 siblings, 1 reply; 6+ messages in thread
From: stan @ 2019-10-22 13:57 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
----- Forwarded message from Pavel Stehule <pavel.stehule@gmail.com> -----
Date: Tue, 22 Oct 2019 14:43:17 +0200
From: Pavel Stehule <pavel.stehule@gmail.com>
To: stan <stanb@panix.com>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: A question about building pg-libphonenumber
List-Id: <pgsql-general.lists.postgresql.org>
??t 22. 10. 2019 v 14:37 odes??latel stan <stanb@panix.com> napsal:
> 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?
>
I have not a idea what is it, but I found this message
https://github.com/PierreSenellart/provsql/issues/9
and there is a patch
https://github.com/rdkit/rdkit/issues/2192#issuecomment-445579020
Probably it is problem with some JIT feature flags on Postgres 11 and higher
Pavel
--
> "They that would give up essential liberty for temporary safety deserve
> neither liberty nor safety."
> -- Benjamin Franklin
>
I did manage to get this package to compile and pass the minimal regression
tests that are included with it.
I would like to submit the modified Makefile that gets it to compile, but i
have never done this with github. Can someone point me to a HOWTO to do
this, please?
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: FW: Re: A question about building pg-libphonenumber
@ 2019-10-22 14:07 Josef Šimánek <josef.simanek@gmail.com>
parent: stan <stanb@panix.com>
0 siblings, 0 replies; 6+ messages in thread
From: Josef Šimánek @ 2019-10-22 14:07 UTC (permalink / raw)
To: stan <stanb@panix.com>; +Cc: pgsql-general@lists.postgresql.org
Hello.
You can take a look at GitHub guides -
https://guides.github.com/activities/forking/#making-a-pull-request. Anyway
if you would like to just contribute this one-timer, feel free to assign
patch here and I'll open pull requests mentioning you as an author and
linking this thread in there on GitHub.
Alternatively I think you can try to contact author directly (you can find
some contact info at https://github.com/blm768).
út 22. 10. 2019 v 15:57 odesílatel stan <stanb@panix.com> napsal:
> ----- Forwarded message from Pavel Stehule <pavel.stehule@gmail.com> -----
>
> Date: Tue, 22 Oct 2019 14:43:17 +0200
> From: Pavel Stehule <pavel.stehule@gmail.com>
> To: stan <stanb@panix.com>
> Cc: pgsql-general <pgsql-general@lists.postgresql.org>
> Subject: Re: A question about building pg-libphonenumber
> List-Id: <pgsql-general.lists.postgresql.org>
>
> ??t 22. 10. 2019 v 14:37 odes??latel stan <stanb@panix.com> napsal:
>
> > 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?
> >
>
> I have not a idea what is it, but I found this message
>
> https://github.com/PierreSenellart/provsql/issues/9
>
> and there is a patch
> https://github.com/rdkit/rdkit/issues/2192#issuecomment-445579020
>
> Probably it is problem with some JIT feature flags on Postgres 11 and
> higher
>
> Pavel
>
> --
> > "They that would give up essential liberty for temporary safety deserve
> > neither liberty nor safety."
> > -- Benjamin Franklin
> >
>
> I did manage to get this package to compile and pass the minimal regression
> tests that are included with it.
>
> I would like to submit the modified Makefile that gets it to compile, but i
> have never done this with github. Can someone point me to a HOWTO to do
> this, please?
>
>
>
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2019-10-22 14:07 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-10-22 12:15 A question about building pg-libphonenumber stan <stanb@panix.com>
2019-10-22 12:19 ` Pavel Stehule <pavel.stehule@gmail.com>
2019-10-22 12:37 ` stan <stanb@panix.com>
2019-10-22 12:43 ` Pavel Stehule <pavel.stehule@gmail.com>
2019-10-22 13:57 FW: Re: A question about building pg-libphonenumber stan <stanb@panix.com>
2019-10-22 14:07 ` Josef Šimánek <josef.simanek@gmail.com>
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