Fabio Coatti fabio.coatti at gmail.com
Sun Nov 27 11:56:17 CET 2016

Hi all,
I'm trying to build pinentry 1.0.0 using LTO and I'm having some issues.
Without LTO active I have no issues and the compilation goes just fine.

However, with LTO I'm getting this error (maybe I'm doing something wrong, 
however 0.9.7 compiled just fine even with lto):

x86_64-pc-linux-gnu-gcc  -O2 -fpie -fpic -pipe -march=native -fstack-
protector-strong -flto=4 -fuse-linker-
plugin -Wall -Wno-pointer-sign -Wpointer-arith  -Wl,-O1 -Wl,--as-needed -O2 -
fpie -fpic -pipe -march=native
-fstack-protector-strong -flto=4 -fuse-linker-plugin -o pinentry-tty pinentry-
tty.o ../pinentry/libpinentr
y.a ../secmem/libsecmem.a -lsecret-1 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -L/
usr/lib64 -lassuan -lgpg-error -
lgpg-error  -lcap   
pinentry-curses.h:30:5: error: variable ‘curses_cmd_handler’ redeclared as 
pinentry-tty.c:561:24: note: previously declared here 
pinentry_cmd_handler_t curses_cmd_handler = NULL; 
lto1: fatal error: errors during merging of translation units 
compilation terminated. 
lto-wrapper: fatal error: /usr/x86_64-pc-linux-gnu/gcc-bin/5.4.0/x86_64-pc-
linux-gnu-gcc returned 1 exit st
compilation terminated. 
error: lto-wrapper failed 
collect2: error: ld returned 1 exit status 
make[2]: *** [Makefile:410: pinentry-tty] Error 1 
make[2]: Leaving directory '/var/tmp/portage/app-crypt/pinentry-1.0.0/work/
make[1]: *** [Makefile:460: all-recursive] Error 1 
make[1]: Leaving directory '/var/tmp/portage/app-crypt/pinentry-1.0.0/work/
make: *** [Makefile:401: all] Error 2

Output of configure phase:


       Pinentry v1.0.0 has been configured as follows: 

       Revision:    (0) 
       Platform:  x86_64-pc-linux-gnu 

       Curses Pinentry ..: yes 
       TTY Pinentry .....: yes 
       Emacs Pinentry ...: no 
       GTK+-2 Pinentry ..: yes 
       GNOME 3 Pinentry .: yes 
       Qt Pinentry ......: yes (Qt5) 
       W32 Pinentry .....: no 

       Fallback to Curses: yes 
       Emacs integration : yes 

       libsecret ........: yes 

       Default Pinentry .: pinentry-gtk-2

gcc: 5.4.0
ld: 2.27

System: gentoo.

Of course I'm available for any other info needed

-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20161127/cbbcfd0f/attachment-0001.html>

More information about the Gnupg-devel mailing list