Trying to bootstrap as described in Bug 886491: LATEST_TREE_YES=1 ACCEPT_KEYWORDS="~x64-macos" bootstrap-prefix.sh The bootstrap makes it partway through stage3 but fails when emerging bash: /opt/gentoo/MacOSX.sdk/usr/include/readline/readline.h:40:19: error: redefinition of typedef 'Function' with different type I'll attach the log. Reproducible: Always
Created attachment 854416 [details] build.log
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1a130b9525971aa5a390c21e2c8b4ca389c92f2 commit e1a130b9525971aa5a390c21e2c8b4ca389c92f2 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-02-24 18:25:54 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-02-24 18:35:43 +0000 app-shells/bash: add ~arm64-macos Closes: https://bugs.gentoo.org/896330 Signed-off-by: Sam James <sam@gentoo.org> app-shells/bash/bash-5.1_p16-r2.ebuild | 2 +- app-shells/bash/bash-5.2_p15-r2.ebuild | 2 +- app-shells/bash/bash-9999.ebuild | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) Additionally, it has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31947b3871bc8676d0f4befed6527b1f8d603239 commit 31947b3871bc8676d0f4befed6527b1f8d603239 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-02-24 18:29:15 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-02-24 18:35:54 +0000 sys-apps/groff: keyword 1.22.4 for ~arm64-macos Bug: https://bugs.gentoo.org/896330 Signed-off-by: Sam James <sam@gentoo.org> sys-apps/groff/groff-1.22.4.ebuild | 2 +- sys-apps/groff/groff-1.23.0_rc3.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67e45ab9cb4e742e7c6b50ad74a23adcaecf73ba commit 67e45ab9cb4e742e7c6b50ad74a23adcaecf73ba Author: Sam James <sam@gentoo.org> AuthorDate: 2023-02-24 18:27:42 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-02-24 18:35:46 +0000 sys-apps/sed: keyword 4.9 for ~arm64-macos Bug: https://bugs.gentoo.org/896330 Signed-off-by: Sam James <sam@gentoo.org> sys-apps/sed/sed-4.9.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0e668ea8d03e81c6b233097c57728680db678d9 commit a0e668ea8d03e81c6b233097c57728680db678d9 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-02-24 18:27:32 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-02-24 18:35:46 +0000 sys-apps/gawk: keyword 5.2.1 for ~arm64-macos Bug: https://bugs.gentoo.org/896330 Signed-off-by: Sam James <sam@gentoo.org> sys-apps/gawk/gawk-5.2.1.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=198c9a129da31c9ab536f3680e967156eb4f11b6 commit 198c9a129da31c9ab536f3680e967156eb4f11b6 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-02-24 18:27:12 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-02-24 18:35:45 +0000 sys-libs/readline: keyword for ~arm64-macos Bug: https://bugs.gentoo.org/896330 Signed-off-by: Sam James <sam@gentoo.org> sys-libs/readline/readline-8.1_p2-r1.ebuild | 4 ++-- sys-libs/readline/readline-8.2_p1.ebuild | 4 ++-- sys-libs/readline/readline-9999.ebuild | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d94f84a03f472a3ea8513c105c743f4bc64f4bc commit 7d94f84a03f472a3ea8513c105c743f4bc64f4bc Author: Sam James <sam@gentoo.org> AuthorDate: 2023-02-24 18:26:47 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-02-24 18:35:44 +0000 sys-devel/gnuconfig: keyword 20221007 for ~arm64-macos Bug: https://bugs.gentoo.org/896330 Signed-off-by: Sam James <sam@gentoo.org> sys-devel/gnuconfig/gnuconfig-20221007.ebuild | 4 ++-- sys-devel/gnuconfig/gnuconfig-99999999.ebuild | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
I've propagated ~arm64-macos to things which definitely should work (not least because people bootstrapped fine before). This might help Portage to realise newer Bash should work fine. Please let us know if other keywords are missing.
Thanks for the quick fixes! Does it take time for those to propagate somewhere? I tried this again from scratch: LATEST_TREE_YES=1 ACCEPT_KEYWORDS="~x64-macos" bootstrap-prefix.sh and after an hour or so, it failed at exactly the same point in stage3, when trying to build bash.
Is the issue that app-shells/bash-4.4_p23-r2 still needs to be fixed?
I'm not really sure why it's actually trying to build that older version of bash instead of >=5.1...
Should this be handled by Bug 886491 instead of this one? For the record, I tried to force a newer bash with this: [/opt/gentoo]$ diff bootstrap-prefix.sh.orig bootstrap-prefix.sh 2193a2194,2196 > # Use a newer bash > echo '<app-shells/bash-5.2' >> "${ROOT}"/etc/portage/package.mask > and it failed with this: !!! All ebuilds that could satisfy "virtual/pkgconfig" have been masked. !!! One of the following masked packages is required to complete your request: - virtual/pkgconfig-2-r1::gentoo_prefix (masked by: missing keyword)
(In reply to * from comment #7) > Should this be handled by Bug 886491 instead of this one? > I didn't want to clog up that bug further. I'm using this bug given nothing should be trying to build an older bash on your system. > For the record, I tried to force a newer bash with this: > > [/opt/gentoo]$ diff bootstrap-prefix.sh.orig bootstrap-prefix.sh > 2193a2194,2196 > > # Use a newer bash > > echo '<app-shells/bash-5.2' >> "${ROOT}"/etc/portage/package.mask > > > > and it failed with this: > > !!! All ebuilds that could satisfy "virtual/pkgconfig" have been masked. > !!! One of the following masked packages is required to complete your > request: > - virtual/pkgconfig-2-r1::gentoo_prefix (masked by: missing keyword) Thanks, fixed.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0393ed004010984cdfe8fcf6ec0c6c1b392ab74f commit 0393ed004010984cdfe8fcf6ec0c6c1b392ab74f Author: Sam James <sam@gentoo.org> AuthorDate: 2023-02-26 22:22:26 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-02-26 22:22:26 +0000 dev-libs/libiconv: keyword 1.17 for ~arm64-macos Bug: https://bugs.gentoo.org/896330 Signed-off-by: Sam James <sam@gentoo.org> dev-libs/libiconv/libiconv-1.17.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b8616c49e13c0e6a1f34837b804fe3adbd88f77 commit 0b8616c49e13c0e6a1f34837b804fe3adbd88f77 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-02-26 22:22:18 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-02-26 22:22:18 +0000 virtual/libiconv: keyword 0-r2 for ~arm64-macos Bug: https://bugs.gentoo.org/896330 Signed-off-by: Sam James <sam@gentoo.org> virtual/libiconv/libiconv-0-r2.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0475a51430b3d1fac4b0eaf968419b0349f33d6 commit a0475a51430b3d1fac4b0eaf968419b0349f33d6 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-02-26 22:22:06 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-02-26 22:22:06 +0000 virtual/libintl: keyword 0-r2 for ~arm64-macos Bug: https://bugs.gentoo.org/896330 Signed-off-by: Sam James <sam@gentoo.org> virtual/libintl/libintl-0-r2.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=183ceeec4438c9dcb61302f9ae3fcffa67215b1d commit 183ceeec4438c9dcb61302f9ae3fcffa67215b1d Author: Sam James <sam@gentoo.org> AuthorDate: 2023-02-26 22:21:58 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-02-26 22:21:58 +0000 dev-libs/libintl: keyword 0.21.1 for ~arm64-macos Bug: https://bugs.gentoo.org/896330 Signed-off-by: Sam James <sam@gentoo.org> dev-libs/libintl/libintl-0.21.1.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=708a5eb5bbffb026c0e6097a20987797122aa07d commit 708a5eb5bbffb026c0e6097a20987797122aa07d Author: Sam James <sam@gentoo.org> AuthorDate: 2023-02-26 22:21:50 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-02-26 22:21:50 +0000 sys-devel/gettext: keyword 0.21.1 for ~arm64-macos Bug: https://bugs.gentoo.org/896330 Signed-off-by: Sam James <sam@gentoo.org> sys-devel/gettext/gettext-0.21.1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63ac18f5f22842a2124b95bdd334af631a3be5b7 commit 63ac18f5f22842a2124b95bdd334af631a3be5b7 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-02-26 22:21:28 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-02-26 22:21:38 +0000 dev-util/pkgconf: keyword ~arm64-macos Bug: https://bugs.gentoo.org/896330 Signed-off-by: Sam James <sam@gentoo.org> dev-util/pkgconf/pkgconf-1.8.0-r1.ebuild | 2 +- dev-util/pkgconf/pkgconf-1.8.1.ebuild | 2 +- dev-util/pkgconf/pkgconf-1.9.4.ebuild | 2 +- dev-util/pkgconf/pkgconf-9999.ebuild | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c70ade482350595ea273b4b00545a7a23d3e42d commit 9c70ade482350595ea273b4b00545a7a23d3e42d Author: Sam James <sam@gentoo.org> AuthorDate: 2023-02-26 22:20:27 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-02-26 22:20:27 +0000 virtual/pkgconfig: keyword 2-r1 for ~arm64-macos Bug: https://bugs.gentoo.org/896330 Signed-off-by: Sam James <sam@gentoo.org> virtual/pkgconfig/pkgconfig-2-r1.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Thanks. Tried running this again (with my diff to use the newer bash): LATEST_TREE_YES=1 ACCEPT_KEYWORDS="~x64-macos" bootstrap-prefix.sh But it's failing in the same place: !!! All ebuilds that could satisfy "virtual/pkgconfig" have been masked. !!! One of the following masked packages is required to complete your request: - virtual/pkgconfig-2-r1::gentoo_prefix (masked by: missing keyword) I see your commit includes the ~arm64-macos for virtual/pkgconfig-2-r1 but I'm not seeing that here: [/opt/gentoo]$ grep arm ./var/db/repos/gentoo/virtual/pkgconfig/pkgconfig-2-r1.ebuild KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" Is there a delay before that gets picked up?
For easier cross-reference for future readers, please tag "Bug 886491" in the "Blocks" field of this bug report.