Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 528854

Summary: dev-ada/aunit-2.03 - gnatgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: [OLD] DevelopmentAssignee: ada team [OBSOLETE] <ada+disabled>
Status: RESOLVED DUPLICATE    
Severity: normal CC: esigra, gentoo_bugs_peep, orivej, treecleaner
Priority: Normal Keywords: PMASKED
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: Pending removal: 2016-02-06
Package list:
Runtime testing required: ---
Attachments: dev-ada:aunit-2.03:20141110-024609.log

Description Toralf Förster gentoo-dev 2014-11-10 16:35:04 UTC
Created attachment 389014 [details]
dev-ada:aunit-2.03:20141110-024609.log

in a hardened ~amd64 chroot of a hardened amd64 I get :

>>> Compiling source in /var/tmp/portage/dev-ada/aunit-2.03/work/aunit-2.03 ...
 * compiling for gnat profile x86_64-pc-linux-gnu-gnat-gcc-4.6
gnatgcc -c -g -gnatQ -O1 -gnatf -gnato -gnatwae -gnaty -I- -gnatA /var/tmp/portage/dev-ada/aunit-2.03/work/LocalSource/aunit/framework/calendar/aunit_framework-time_measure.adb
gnatgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
compilation terminated.
gnatmake: "/var/tmp/portage/dev-ada/aunit-2.03/work/LocalSource/aunit/framework/calendar/aunit_framework-time_measure.adb" compilation error
gnatgcc -c -g -gnatQ -fPIC -O1 -gnatf -gnato -gnatwae -gnaty -I- -gnatA /var/tmp/portage/dev-ada/aunit-2.03/work/LocalSource/aunit/framework/calendar/aunit_framework-time_measure.adb
gnatgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
compilation terminated.
gnatmake: "/var/tmp/portage/dev-ada/aunit-2.03/work/LocalSource/aunit/framework/calendar/aunit_framework-time_measure.adb" compilation error
 * ERROR: dev-ada/aunit-2.03::gentoo failed (compile phase):
 *   failed compiling for x86_64-pc-linux-gnu-gnat-gcc-4.6
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-11 11:20:38 UTC
*** Bug 528876 has been marked as a duplicate of this bug. ***
Comment 2 Pacho Ramos gentoo-dev 2015-05-13 21:12:18 UTC
CCing treecleaners
Comment 3 Philippe Chaintreuil 2015-09-08 12:41:09 UTC
I get this same error on net-mail/topal-75 -- it seems to be an issue with the compilation environment, as gcc has installed the .so that isn't being found:

$ equery files gcc | grep -i liblto
/usr/libexec/gcc/x86_64-pc-linux-gnu/4.8.5/liblto_plugin.la
/usr/libexec/gcc/x86_64-pc-linux-gnu/4.8.5/liblto_plugin.so
/usr/libexec/gcc/x86_64-pc-linux-gnu/4.8.5/liblto_plugin.so.0
/usr/libexec/gcc/x86_64-pc-linux-gnu/4.8.5/liblto_plugin.so.0.0.0

Did you ever find a solution to this?
Comment 4 George Shapovalov (RETIRED) gentoo-dev 2016-02-10 15:59:25 UTC
Its an issue in gnat-gcc built with lto support. Lets keep discussion to one bug..

*** This bug has been marked as a duplicate of bug 501178 ***