Skip to content

can't build pg_probackup-2.4.9 from SOURCE CODE #315

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
hunterhuang8810 opened this issue Feb 3, 2021 · 4 comments
Closed

can't build pg_probackup-2.4.9 from SOURCE CODE #315

hunterhuang8810 opened this issue Feb 3, 2021 · 4 comments

Comments

@hunterhuang8810
Copy link

I downloaded 2.4.9 source code and tried to build on my centos server,but I can't build success
looks like miss some file, please help to check , thanks.

[root@localhost pg_probackup-2.4.9]# pwd
/root/temp/pg_probackup-2.4.9
[root@localhost pg_probackup-2.4.9]# ls
doc gen_probackup_project.pl LICENSE Makefile README.md src tests travis
[root@localhost pg_probackup-2.4.9]#

[root@localhost pg_probackup-2.4.9]# make USE_PGXS=1 PG_CONFIG=/usr/local/postgresql_12.5/bin/pg_config top_srcdir=/root/temp/pg_probackup-2.4.9
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -DFRONTEND -I. -I./ -I/usr/local/postgresql_12.5/include/server -I/usr/local/postgresql_12.5/include/internal -D_GNU_SOURCE -I/usr/local/postgresql_12.5/include -pthread -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -Isrc -I/root/temp/pg_probackup-2.4.9//src -c -o src/utils/configuration.o src/utils/configuration.c
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -DFRONTEND -I. -I./ -I/usr/local/postgresql_12.5/include/server -I/usr/local/postgresql_12.5/include/internal -D_GNU_SOURCE -I/usr/local/postgresql_12.5/include -pthread -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -Isrc -I/root/temp/pg_probackup-2.4.9//src -c -o src/utils/json.o src/utils/json.c
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -DFRONTEND -I. -I./ -I/usr/local/postgresql_12.5/include/server -I/usr/local/postgresql_12.5/include/internal -D_GNU_SOURCE -I/usr/local/postgresql_12.5/include -pthread -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -Isrc -I/root/temp/pg_probackup-2.4.9//src -c -o src/utils/logger.o src/utils/logger.c
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -DFRONTEND -I. -I./ -I/usr/local/postgresql_12.5/include/server -I/usr/local/postgresql_12.5/include/internal -D_GNU_SOURCE -I/usr/local/postgresql_12.5/include -pthread -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -Isrc -I/root/temp/pg_probackup-2.4.9//src -c -o src/utils/parray.o src/utils/parray.c
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -DFRONTEND -I. -I./ -I/usr/local/postgresql_12.5/include/server -I/usr/local/postgresql_12.5/include/internal -D_GNU_SOURCE -I/usr/local/postgresql_12.5/include -pthread -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -Isrc -I/root/temp/pg_probackup-2.4.9//src -c -o src/utils/pgut.o src/utils/pgut.c
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -DFRONTEND -I. -I./ -I/usr/local/postgresql_12.5/include/server -I/usr/local/postgresql_12.5/include/internal -D_GNU_SOURCE -I/usr/local/postgresql_12.5/include -pthread -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -Isrc -I/root/temp/pg_probackup-2.4.9//src -c -o src/utils/thread.o src/utils/thread.c
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -DFRONTEND -I. -I./ -I/usr/local/postgresql_12.5/include/server -I/usr/local/postgresql_12.5/include/internal -D_GNU_SOURCE -I/usr/local/postgresql_12.5/include -pthread -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -Isrc -I/root/temp/pg_probackup-2.4.9//src -c -o src/utils/remote.o src/utils/remote.c
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -DFRONTEND -I. -I./ -I/usr/local/postgresql_12.5/include/server -I/usr/local/postgresql_12.5/include/internal -D_GNU_SOURCE -I/usr/local/postgresql_12.5/include -pthread -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -Isrc -I/root/temp/pg_probackup-2.4.9//src -c -o src/utils/file.o src/utils/file.c
make: *** No rule to make target /root/temp/pg_probackup-2.4.9/src/include/portability/instr_time.h', needed by src/instr_time.h'. Stop.
[root@localhost pg_probackup-2.4.9]#

@gsmolk
Copy link
Contributor

gsmolk commented Feb 3, 2021

Hello!
As a quick fix you can use the alternative build procedure:

cd <path_to_PostgreSQL_source_tree> && git clone https://github.com/postgrespro/pg_probackup contrib/pg_probackup && cd contrib/pg_probackup && make

I will look into this problem.
Thanks for a feedback!

@gsmolk
Copy link
Contributor

gsmolk commented Feb 3, 2021

Btw, did you consider to just use the packages for Centos ?
https://github.com/postgrespro/pg_probackup#pg_probackup-for-vanilla-postgresql

@hunterhuang8810
Copy link
Author

Hello!
As a quick fix you can use the alternative build procedure:

cd <path_to_PostgreSQL_source_tree> && git clone https://github.com/postgrespro/pg_probackup contrib/pg_probackup && cd contrib/pg_probackup && make

I will look into this problem.
Thanks for a feedback!

@hunterhuang8810
Copy link
Author

Btw, did you consider to just use the packages for Centos ?
https://github.com/postgrespro/pg_probackup#pg_probackup-for-vanilla-postgresql

yes, I can use this Centos packages first. But I still need to build from source code for those offline circumstances.
thanks a lot for you quick response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants