make install-world fails sometimes in Mac M1

Поиск
Список
Период
Сортировка
От Gaddam Sai Ram
Тема make install-world fails sometimes in Mac M1
Дата
Msg-id 181ca352dfd.123fe936c382.7542457510138476487@zohocorp.com
обсуждение исходный текст
Ответы Re: make install-world fails sometimes in Mac M1  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi team, 

      We are using a script to install Postgres from source, the script works fine in ubuntu and Mac(intel) but mostly fails(works sometimes) in Mac M1. 

Configure and make world works fine. But fails during make install-world.

/Applications/Xcode.app/Contents/Developer/usr/bin/make -C ./src/backend generated-headers

/Applications/Xcode.app/Contents/Developer/usr/bin/make -C catalog distprep generated-header-symlinks

make[2]: Nothing to be done for `distprep'.

make[2]: Nothing to be done for `generated-header-symlinks'.

/Applications/Xcode.app/Contents/Developer/usr/bin/make -C utils distprep generated-header-symlinks

make[2]: Nothing to be done for `distprep'.

make[2]: Nothing to be done for `generated-header-symlinks'.

/Applications/Xcode.app/Contents/Developer/usr/bin/make -C doc install

/Applications/Xcode.app/Contents/Developer/usr/bin/make -C src install

/Applications/Xcode.app/Contents/Developer/usr/bin/make -C sgml install

/bin/sh ../../../config/install-sh -c -d '/Users/sairam/work/postgresql-11.14/share/doc/'/html '/Users/sairam/work/postgresql-11.14/share/man'/man1 '/Users/sairam/work/postgresql-11.14/share/man'/man3 '/Users/sairam/work/postgresql-11.14/share/man'/man7

cp -R `for f in ./html; do test -r $f && echo $f && break; done` '/Users/sairam/work/postgresql-11.14/share/doc/'

cp -R `for f in ./man1; do test -r $f && echo $f && break; done` `for f in ./man3; do test -r $f && echo $f && break; done` `for f in ./man7; do test -r $f && echo $f && break; done` '/Users/sairam/work/postgresql-11.14/share/man'

/Applications/Xcode.app/Contents/Developer/usr/bin/make -C src install

/Applications/Xcode.app/Contents/Developer/usr/bin/make -C common install

/bin/sh ../../config/install-sh -c -d '/Users/sairam/work/postgresql-11.14/lib'

/usr/bin/install -c -m 644  libpgcommon.a '/Users/sairam/work/postgresql-11.14/lib/libpgcommon.a'

/Applications/Xcode.app/Contents/Developer/usr/bin/make -C port install

/bin/sh ../../config/install-sh -c -d '/Users/sairam/work/postgresql-11.14/lib'

/usr/bin/install -c -m 644  libpgport.a '/Users/sairam/work/postgresql-11.14/lib/libpgport.a'

/Applications/Xcode.app/Contents/Developer/usr/bin/make -C timezone install

/Applications/Xcode.app/Contents/Developer/usr/bin/make -C ../../src/port all

make[3]: Nothing to be done for `all'.

/Applications/Xcode.app/Contents/Developer/usr/bin/make -C ../../src/common all

make[3]: Nothing to be done for `all'.

/bin/sh ../../config/install-sh -c -d '/Users/sairam/work/postgresql-11.14/share'

./zic -d '/Users/sairam/work/postgresql-11.14/share/timezone' -p 'US/Eastern' -b fat  ./data/tzdata.zi

make[2]: *** [install] Killed: 9

make[1]: *** [install-timezone-recurse] Error 2

make: *** [install-world-src-recurse] Error 2

2



It's not like it fails every time, sometimes the same script works just fine. Sometimes after few retries it works.

I have also noticed that, if it works without issue, binaries generated does't work immediately. i.e when I tried to query pg_config, the command waits for sometime and gets killed. After a few retries, it works there onwards.

I'm wondering what could be the issue. I'm attaching the script to the same, kindly go through it and help me understand the issue.

Postgres Version: 11.14
Machine details: MacBook Pro (13-inch, M1, 2020), Version 12.4

Regards
G. Sai Ram


Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: automatically generating node support functions
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Change timeline field of IDENTIFY_SYSTEM to int8