Обсуждение: BUG #15897: make failed postgres 11.4 at 32 bit build

Поиск
Список
Период
Сортировка

BUG #15897: make failed postgres 11.4 at 32 bit build

От
PG Bug reporting form
Дата:
The following bug has been logged on the website:

Bug reference:      15897
Logged by:          Raphael Geng
Email address:      raphael.geng@bizerba.com
PostgreSQL version: 11.4
Operating system:   sles 12.1
Description:

Hello,

i tryied to build postgres 11.4 on 32 bit sles 12.1.

---------------------------------------------------------------------------------------
../configure  --with-libxml
+
make -j10 DESTDIR=/postgres/src/workdir/result install

error is:
-->
make[4]: Entering directory
`/postgres/src/workdir/postgresql-11.4/build_directory/src/timezone/tznames'
/bin/mkdir -p
'/postgres/src/workdir/result/usr/local/pgsql/share/timezonesets'
/usr/bin/install -c -m 644
/postgres/src/workdir/postgresql-11.4/build_directory/../src/timezone/tznames/Africa.txt
/postgres/src/workdir/postgresql-11.4/build_directory/../src/timezone/tznames/America.txt
/postgres/src/workdir/postgresql-11.4/build_directory/../src/timezone/tznames/Antarctica.txt
/postgres/src/workdir/postgresql-11.4/build_directory/../src/timezone/tznames/Asia.txt
/postgres/src/workdir/postgresql-11.4/build_directory/../src/timezone/tznames/Atlantic.txt
/postgres/src/workdir/postgresql-11.4/build_directory/../src/timezone/tznames/Australia.txt
/postgres/src/workdir/postgresql-11.4/build_directory/../src/timezone/tznames/Etc.txt
/postgres/src/workdir/postgresql-11.4/build_directory/../src/timezone/tznames/Europe.txt
/postgres/src/workdir/postgresql-11.4/build_directory/../src/timezone/tznames/Indian.txt
/postgres/src/workdir/postgresql-11.4/build_directory/../src/timezone/tznames/Pacific.txt
'/postgres/src/workdir/result/usr/local/pgsql/share/timezonesets'
/usr/bin/install -c -m 644
/postgres/src/workdir/postgresql-11.4/build_directory/../src/timezone/tznames/Default
/postgres/src/workdir/postgresql-11.4/build_directory/../src/timezone/tznames/Australia
/postgres/src/workdir/postgresql-11.4/build_directory/../src/timezone/tznames/India
'/postgres/src/workdir/result/usr/local/pgsql/share/timezonesets'
make[4]: Leaving directory
`/postgres/src/workdir/postgresql-11.4/build_directory/src/timezone/tznames'
make[3]: Leaving directory
`/postgres/src/workdir/postgresql-11.4/build_directory/src/timezone'
storage/lmgr/lwlock.o: In function `CreateLWLocks':
lwlock.c:(.text+0x62e): undefined reference to `MainLWLockNames'
collect2: error: ld returned 1 exit status
<--

---------------------------------------------------------------------------------------
gcc: 4.8.1
make: 3.82
src: postgresql-11.4

---------------------------------------------------------------------------------------
additional components:
zypper --no-gpg-checks --non-interactive install tar
zypper --no-gpg-checks --non-interactive install libreadline6
zypper --no-gpg-checks --non-interactive install readline-devel
zypper --no-gpg-checks --non-interactive install zlib-devel
zypper --no-gpg-checks --non-interactive install libxml2-devel
zypper --no-gpg-checks --non-interactive install bison
zypper --no-gpg-checks --non-interactive install flex
zypper --no-gpg-checks --non-interactive install make
zypper --no-gpg-checks --non-interactive install gettext
zypper --no-gpg-checks --non-interactive install tcl
zypper --no-gpg-checks --non-interactive install perl
zypper --no-gpg-checks --non-interactive install libopenssl0_9_8
zypper --no-gpg-checks --non-interactive install openssl
zypper --no-gpg-checks --non-interactive install openssl-devel
zypper --no-gpg-checks --non-interactive install pam-devel
zypper --no-gpg-checks --non-interactive install pam
zypper --no-gpg-checks --non-interactive install timezone


Re: BUG #15897: make failed postgres 11.4 at 32 bit build

От
Robert Haas
Дата:
On Fri, Jul 5, 2019 at 7:11 AM PG Bug reporting form
<noreply@postgresql.org> wrote:
> storage/lmgr/lwlock.o: In function `CreateLWLocks':
> lwlock.c:(.text+0x62e): undefined reference to `MainLWLockNames'
> collect2: error: ld returned 1 exit status

MainLWLockNames is defined in a generated .c file - see
generate-lwlocknames.pl. This error seems to indicate that this file
either wasn't compiled or didn't have the right contents.  I can't
guess why that happened based on the information provided, but if I
were you, I'd try again after making sure that you have a completely
clean source tree with no leftovers in it from previous build
attempts.  If using 'git', try 'git clean -dfx'.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



Re: BUG #15897: make failed postgres 11.4 at 32 bit build

От
Tom Lane
Дата:
PG Bug reporting form <noreply@postgresql.org> writes:
> i tryied to build postgres 11.4 on 32 bit sles 12.1.
> make -j10 DESTDIR=/postgres/src/workdir/result install

Not sure that anyone really tests going directly to "install" with
such a high -j factor.  You might've found a parallelism weakness
in the makefiles.  I tend to do "make -j8 all" and then "make install"
and have never seen a problem with that.

            regards, tom lane