From: Tom Lane <tgl@sss.pgh.pa.us>
To: arjunshetty955@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17160: PostgreSQL13.4:Build failure with GNU Compiler.
Date: Wed, 25 Aug 2021 11:40:06 -0400
Message-ID: <583403.1629906006@sss.pgh.pa.us> (raw)
In-Reply-To: <17160-79ee3343280829ff@postgresql.org>
References: <17160-79ee3343280829ff@postgresql.org>
PG Bug reporting form <noreply@postgresql.org> writes:
> GCC Build Command:
> CC=gcc CXX=g++ ../configure --prefix=<pathtoInstall> CFLAGS='-O3
> -march=native -flto' CXXFLAGS='-O3 -march=native -flto'
> build errror:
> /tmp/zic.soWwyC.ltrans0.ltrans.o:<artificial>:(.text.startup+0xf7b): more
> undefined references to `pg_fprintf' follow
> /tmp/zic.soWwyC.ltrans0.ltrans.o: In function `main':
> <artificial>:(.text.startup+0xfe9): undefined reference to `pg_strerror'
> <artificial>:(.text.startup+0x1009): undefined reference to `pg_fprintf'
> collect2: error: ld returned 1 exit status
> make[2]: *** [Makefile:55: zic] Error 1
> without flto build was success
Well, there's your answer. We don't support -flto, and I've not
heard any developers express great interest in making it work.
If somebody were to send in a patch, we might accept it; but
we're not going to treat this as a bug.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, arjunshetty955@gmail.com, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17160: PostgreSQL13.4:Build failure with GNU Compiler.
In-Reply-To: <583403.1629906006@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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