make install-world fails sometimes in Mac M1

From: Gaddam Sai Ram <gaddamsairam(dot)n(at)zohocorp(dot)com>
To: "pgsql-hackers" <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Cc: "Mahendranath Parandhamulu" <mahendranath(at)zohocorp(dot)com>
Subject: make install-world fails sometimes in Mac M1
Date: 2022-07-04 17:14:51
Message-ID: 181ca352dfd.123fe936c382.7542457510138476487@zohocorp.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Attachment Content-Type Size
install_pg.sh application/octet-stream 1.3 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2022-07-04 17:32:43 Re: pgsql: Change timeline field of IDENTIFY_SYSTEM to int8
Previous Message Tom Lane 2022-07-04 16:59:20 Re: automatically generating node support functions