Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 602338 - dev-lang/gnat-gcc-4.3.6 - /bin/sh: line 3: cd: host-x86_64-pc-linux-gnu/fixincludes: No such file or directory
Summary: dev-lang/gnat-gcc-4.3.6 - /bin/sh: line 3: cd: host-x86_64-pc-linux-gnu/fixin...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
: 607786 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-12-11 13:18 UTC by Carlo
Modified: 2017-08-30 18:53 UTC (History)
2 users (show)

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


Attachments
build.log (build.log.gz,189.76 KB, application/gzip)
2017-02-07 08:18 UTC, Thoma HAUC
Details
emetge --info (emerge.info,5.76 KB, application/x-info)
2017-02-07 08:19 UTC, Thoma HAUC
Details
gnatbuild.eclass patch (gnatbuild.eclass.patch,546 bytes, patch)
2017-04-15 13:51 UTC, Bruce Schultz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Carlo 2016-12-11 13:18:33 UTC
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/
Comment 1 Carlo 2016-12-11 13:20:06 UTC
 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
Comment 2 Carlo 2016-12-13 07:48:50 UTC
it seems related to this(1)


(1) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48445
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2016-12-26 21:36:16 UTC
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.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2017-01-31 10:43:46 UTC
*** Bug 607786 has been marked as a duplicate of this bug. ***
Comment 5 Thoma HAUC 2017-02-07 08:18:33 UTC
Created attachment 462746 [details]
build.log
Comment 6 Thoma HAUC 2017-02-07 08:19:39 UTC
Created attachment 462748 [details]
emetge --info
Comment 7 Bruce Schultz 2017-04-15 13:48:58 UTC
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.
Comment 8 Bruce Schultz 2017-04-15 13:51:43 UTC
Created attachment 470096 [details, diff]
gnatbuild.eclass patch
Comment 9 Pacho Ramos gentoo-dev 2017-08-30 18:53:08 UTC
removed