reported here(1) on the forum (1) https://forums.gentoo.org/viewtopic-t-1053976-postdays-0-postorder-asc-start-0.html * * * the following are missing in the portage, therefore v4.9.3 fails * * * /usr/portage/dev-lang/gnat-gcc/ files/ gnat-gcc-4.3.5.ebuild gnat-gcc-4.4.7-r1.ebuild gnat-gcc-4.6.4-r1.ebuild gnat-gcc-3.4.6.ebuild gnat-gcc-4.3.6.ebuild gnat-gcc-4.5.4.ebuild gnat-gcc-4.9.3.ebuild gnat-gcc-4.1.2.ebuild gnat-gcc-4.3.6-r1.ebuild gnat-gcc-4.5.4-r1.ebuild Manifest gnat-gcc-4.2.3.ebuild gnat-gcc-4.4.7.ebuild gnat-gcc-4.6.4.ebuild metadata.xml /usr/portage/dev-lang/gnat-gcc/files/ gnat-gcc-4.5.4-tex-version-workaround.patch patches/
v4.3.6 and v4.6.4 fail with the following error /bin/sh: line 3: cd: host-i686-pc-linux-gnu/fixincludes: No such file or directory Makefile:4750: recipe for target 'install-fixincludes' failed make[1]: *** [install-fixincludes] Error 1 make[1]: Leaving directory '/var/tmp/portage/dev-lang/gnat-gcc-4.6.4/work/gcc-4.6.4' Makefile:2689: recipe for target 'install' failed make: *** [install] Error 2 * ERROR: dev-lang/gnat-gcc-4.6.4::gentoo failed (install phase): * emake failed
it seems related to this(1) (1) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48445
1) Please post your `emerge --info` output in a comment. 2) Please attach the entire build log to this bug report. 3) File one bug report per issue.
*** Bug 607786 has been marked as a duplicate of this bug. ***
Created attachment 462746 [details] build.log
Created attachment 462748 [details] emetge --info
What's going on here is that the gnatbuild.eclass sets the exported functions incorrectly. It sets EXPORT_FUNCTIONS as an environment; it should be a function call, so when emerge does the install it uses the default src_install instead of the one from gnatbuild and it runs make install inside the wrong directory. EXPORT_FUNCTIONS="pkg_setup .... src_compile src_install" Should be: EXPORT_FUNCTIONS pkg_setup .... src_compile src_install After that, I found that it failed later with an error about lto. I've added lto to IUSE to get around this.
Created attachment 470096 [details, diff] gnatbuild.eclass patch
removed