Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mIv0d-0002Id-Pm for pgsql-bugs@arkaria.postgresql.org; Wed, 25 Aug 2021 15:40:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mIv0c-0004Vm-ON for pgsql-bugs@arkaria.postgresql.org; Wed, 25 Aug 2021 15:40:10 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mIv0c-0004VN-Gt for pgsql-bugs@lists.postgresql.org; Wed, 25 Aug 2021 15:40:10 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mIv0a-0004Yd-JG for pgsql-bugs@lists.postgresql.org; Wed, 25 Aug 2021 15:40:09 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 17PFe6U5583404; Wed, 25 Aug 2021 11:40:07 -0400 From: Tom Lane To: arjunshetty955@gmail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17160: PostgreSQL13.4:Build failure with GNU Compiler. In-reply-to: <17160-79ee3343280829ff@postgresql.org> References: <17160-79ee3343280829ff@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Wed, 25 Aug 2021 15:11:02 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <583402.1629906006.1@sss.pgh.pa.us> Date: Wed, 25 Aug 2021 11:40:06 -0400 Message-ID: <583403.1629906006@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form writes: > GCC Build Command: > CC=gcc CXX=g++ ../configure --prefix= CFLAGS='-O3 > -march=native -flto' CXXFLAGS='-O3 -march=native -flto' > build errror: > /tmp/zic.soWwyC.ltrans0.ltrans.o::(.text.startup+0xf7b): more > undefined references to `pg_fprintf' follow > /tmp/zic.soWwyC.ltrans0.ltrans.o: In function `main': > :(.text.startup+0xfe9): undefined reference to `pg_strerror' > :(.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