pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #17160: PostgreSQL13.4:Build failure with GNU Compiler.
2+ messages / 2 participants
[nested] [flat]

* BUG #17160: PostgreSQL13.4:Build failure with GNU Compiler.
@ 2021-08-25 15:11 PG Bug reporting form <noreply@postgresql.org>
  2021-08-25 15:40 ` Re: BUG #17160: PostgreSQL13.4:Build failure with GNU Compiler. Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: PG Bug reporting form @ 2021-08-25 15:11 UTC (permalink / raw)
  To: pgsql-bugs@lists.postgresql.org; +Cc: arjunshetty955@gmail.com

The following bug has been logged on the website:

Bug reference:      17160
Logged by:          arjun shetty
Email address:      arjunshetty955@gmail.com
PostgreSQL version: 13.4
Operating system:   Ubuntu 20.04.1 LTS
Description:        

Observed build errors on PostgreSQLv13.4/PostgreSQLv14beta2 with GNU
Compiler.

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 
-flto=thin supported for clang(llvm) .
GCC supports LTO(can use normal flto or GCC has an equivalent to Thin LTO:
WHOle Program optimizeR (WHOPR) i.e like -flto=fwhopr )



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #17160: PostgreSQL13.4:Build failure with GNU Compiler.
  2021-08-25 15:11 BUG #17160: PostgreSQL13.4:Build failure with GNU Compiler. PG Bug reporting form <noreply@postgresql.org>
@ 2021-08-25 15:40 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2021-08-25 15:40 UTC (permalink / raw)
  To: arjunshetty955@gmail.com; +Cc: pgsql-bugs@lists.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





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2021-08-25 15:40 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-08-25 15:11 BUG #17160: PostgreSQL13.4:Build failure with GNU Compiler. PG Bug reporting form <noreply@postgresql.org>
2021-08-25 15:40 ` Tom Lane <tgl@sss.pgh.pa.us>

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