Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 602148 - app-crypt/pinentry-1.0.0 failes to compile with GCC 6.2.0 and LTO
Summary: app-crypt/pinentry-1.0.0 failes to compile with GCC 6.2.0 and LTO
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Kristian Fiskerstrand (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2016-12-09 12:06 UTC by Steffen Hau
Modified: 2024-03-12 01:57 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Hau 2016-12-09 12:06:29 UTC
Please include http://git.gnupg.org/cgi-bin/gitweb.cgi?p=pinentry.git;a=commit;h=c5c7bee68730c9f66a27f9bb0d023480623a2bfb in ethe ebuild.

This solves the following compiler error:
x86_64-pc-linux-gnu-gcc  -march=native -O2 -pipe -ggdb -fpredictive-commoning -fgcse-after-reload -ftree-partial-pre -floop-nest-optimize -fgraphite-identity -ftree-vectorize -ftree-loop-distribution -fira-loop-pressure -flto=5 -fuse-linker-plugin -Wall -Wno-pointer-sign -Wpointer-arith  -Wl,-O1 -Wl,--as-needed -march=native -O2 -pipe -ggdb -fpredictive-commoning -fgcse-after-reload -ftree-partial-pre -floop-nest-optimize -fgraphite-identity -ftree-vectorize -ftree-loop-distribution -fira-loop-pressure -flto=5 -fuse-linker-plugin -Wl,-znow -Wl,--sort-common -Wl,--hash-style=gnu -Wl,--enable-new-dtags -o pinentry-tty pinentry-tty.o ../pinentry/libpinentry.a ../secmem/libsecmem.a -L/usr/lib64 -lassuan -lgpg-error -lgpg-error  -lcap  
pinentry-curses.h:30:5: error: variable ‘curses_cmd_handler’ redeclared as function
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/6.2.0/x86_64-pc-linux-gnu-gcc returned 1 exit status
Comment 1 Alon Bar-Lev (RETIRED) gentoo-dev 2016-12-10 08:28:56 UTC
Added, thanks!