Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 716508 - sys-devel/gcc-9.3.0[ada] configure: error: GNAT is required to build ada
Summary: sys-devel/gcc-9.3.0[ada] configure: error: GNAT is required to build ada
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux ADA team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-07 01:15 UTC by Alessandro Barbieri
Modified: 2020-04-08 18:50 UTC (History)
3 users (show)

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


Attachments
gcc-9.3.0:20200407-003859.log (gcc-9.3.0:20200407-003859.log,19.01 KB, text/plain)
2020-04-07 01:15 UTC, Alessandro Barbieri
Details
info (info,14.25 KB, text/plain)
2020-04-07 01:16 UTC, Alessandro Barbieri
Details
gcc-build-logs.tar.bz2 (gcc-build-logs.tar.bz2,8.91 KB, application/x-bzip2)
2020-04-07 01:17 UTC, Alessandro Barbieri
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Barbieri 2020-04-07 01:15:21 UTC
configure: error: GNAT is required to build ada
 * ERROR: sys-devel/gcc-9.3.0::gentoo failed (configure phase):
 *   failed to run configure
 *
 * Call stack:
 *     ebuild.sh, line  125:  Called src_configure
 *   environment, line 3858:  Called toolchain_src_configure
 *   environment, line 5239:  Called die
 * The specific snippet of code:
 *       CONFIG_SHELL="${EPREFIX}/bin/bash" bash "${S}"/configure "${confgcc[@]}" || die "failed to run configure";
 *
 * If you need support, post the output of `emerge --info '=sys-devel/gcc-9.3.0::gentoo'`
Comment 1 Alessandro Barbieri 2020-04-07 01:15:46 UTC
Created attachment 630914 [details]
gcc-9.3.0:20200407-003859.log

buildlog
Comment 2 Alessandro Barbieri 2020-04-07 01:16:06 UTC
Created attachment 630916 [details]
info

emerge --info
Comment 3 Alessandro Barbieri 2020-04-07 01:17:32 UTC
Created attachment 630918 [details]
gcc-build-logs.tar.bz2

gcc-logs
Comment 4 Tupone Alfredo gentoo-dev 2020-04-07 19:15:06 UTC
ada use flags is masked for sys-devel/gcc.

isn't it ?
Comment 5 Alessandro Barbieri 2020-04-07 19:20:58 UTC
equery h ada tells me that the packages on my system with the ada useflag are ncurses and gcc
Comment 6 Sergei Trofimovich (RETIRED) gentoo-dev 2020-04-07 20:20:50 UTC
Somehow it's not masked: 

$ USE=ada emerge -pv1 sys-devel/gcc

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   *] sys-devel/gcc-10.0.1_pre9999:10::gentoo  USE="ada* (cxx) fortran go graphite (multilib) nls nptl openmp pch (pie) sanitize ssp vtv (-altivec) -d -debug -doc (-fixed-point) (-hardened) (-jit) (-libssp) -lto -objc -objc++ -objc-gc -pgo -systemtap -test -vanilla -zstd" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

Let's see why (on amd64):

  profiles/ $ fgrep -R ada | fgrep mask | fgrep -v '#'
  arch/base/use.mask:ada
  arch/amd64/use.mask:-ada
  base/package.use.mask:sys-devel/gcc ada

Looks like it should still be masked. dev-portage@, does it sound about right?

Or does 'arch/amd64/use.mask:-ada' have an overriding effect on 'base/package.use.mask:sys-devel/gcc ada'?
Comment 7 Alessandro Barbieri 2020-04-07 20:27:36 UTC
Why not force mask it?
Comment 8 Mike Gilbert gentoo-dev 2020-04-07 21:16:59 UTC
(In reply to Sergei Trofimovich from comment #6)

I believe portage is working as intended here. It applies use.mask and package.use.mask for each parent profile. arch/amd64 is processed after base.

You'll need to add it to arch/amd64/pacakge.use.mask as well.
Comment 9 Sergei Trofimovich (RETIRED) gentoo-dev 2020-04-07 23:18:44 UTC
(In reply to Mike Gilbert from comment #8)
> (In reply to Sergei Trofimovich from comment #6)
> 
> I believe portage is working as intended here. It applies use.mask and
> package.use.mask for each parent profile. arch/amd64 is processed after base.
> 
> You'll need to add it to arch/amd64/pacakge.use.mask as well.

Yeah, glancing at algorithm https://dev.gentoo.org/~ulm/pms/head/pms.html#x1-54002r1 use.mask and package.use.mask are really one namespace in each profile.
Comment 10 Tupone Alfredo gentoo-dev 2020-04-08 18:50:13 UTC
ada USE flags is now correctly masked. Thanks!