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

Bug 911526

Summary: sys-devel/m4-1.4.19-r2 - ac-wrapper: autoheader: error: Unable to locate any usuable version of autoconf
Product: Gentoo/Alt Reporter: Martin Mokrejš <mmokrejs>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: UNCONFIRMED ---    
Severity: normal CC: base-system, prefix
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: stage1.log.bz2
stage2.log.bz2
stage3.log.bz2
m4.build.log.bz2
emerge.log.bz2

Description Martin Mokrejš 2023-07-31 16:06:20 UTC
Hi,
  with MAKEOPTS=-j1 I can almost finish stage3 but I get:

(CDPATH="${ZSH_VERSION+.}:" && cd .. && /auto/vestec1-elixir/projects/biocev/mmokrejs/gentoo/tmp/usr/bin/bash '/auto/vestec1-elixir/projects/biocev/mmokrejs/gentoo/var/tmp/portage/sys-devel/m4-1.4.19-r2/work/m4-1.4.19/build-aux/missing' autoheader)
ac-wrapper: autoheader: error: Unable to locate any usuable version of autoconf.
 	I tried these versions: 9999 2.71 2.70 2.69 2.68 2.67 2.66 2.65 2.64 2.63 2.62 2.61 2.60 2.59 2.58 2.57 2.56 2.55 2.54 2.53 2.52 2.51 2.50 2.99 2.98 2.97 2.96 2.95 2.94 2.93 2.92 2.91 2.90 2.89 2.88 2.87 2.86 2.85 2.84 2.83 2.82 2.81 2.80 2.79 2.78 2.77 2.76 2.75 2.74 2.73 2.72 2.71 9999
 	With a base name of '/auto/vestec1-elixir/projects/biocev/mmokrejs/gentoo/usr/bin/autoheader'.
make[2]: *** [Makefile:2524: config.hin] Error 1
make[2]: Leaving directory '/auto/vestec1-elixir/projects/biocev/mmokrejs/gentoo/var/tmp/portage/sys-devel/m4-1.4.19-r2/work/m4-1.4.19/lib'
make[1]: *** [Makefile:2018: all-recursive] Error 1
make[1]: Leaving directory '/auto/vestec1-elixir/projects/biocev/mmokrejs/gentoo/var/tmp/portage/sys-devel/m4-1.4.19-r2/work/m4-1.4.19'
make: *** [Makefile:1974: all] Error 2
 * ERROR: sys-devel/m4-1.4.19-r2::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=sys-devel/m4-1.4.19-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/m4-1.4.19-r2::gentoo'`.
 * The complete build log is located at '/auto/vestec1-elixir/projects/biocev/mmokrejs/gentoo/var/tmp/portage/sys-devel/m4-1.4.19-r2/temp/build.log'.
 * The ebuild environment file is located at '/auto/vestec1-elixir/projects/biocev/mmokrejs/gentoo/var/tmp/portage/sys-devel/m4-1.4.19-r2/temp/environment'.
 * Working directory: '/auto/vestec1-elixir/projects/biocev/mmokrejs/gentoo/var/tmp/portage/sys-devel/m4-1.4.19-r2/work/m4-1.4.19'
 * S: '/auto/vestec1-elixir/projects/biocev/mmokrejs/gentoo/var/tmp/portage/sys-devel/m4-1.4.19-r2/work/m4-1.4.19'



 * GNU info directory index is up-to-date.

 * IMPORTANT: config file '/auto/vestec1-elixir/projects/biocev/mmokrejs/gentoo/etc/hosts' needs updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.

Hmmmm, I was already afraid of this to happen.  Running
  /auto/vestec1-elixir/projects/biocev/mmokrejs/gentoo/bin/bash ./bootstrap-prefix.sh "/auto/vestec1-elixir/projects/biocev/mmokrejs/gentoo" stage3
somewhere failed :(  Details might be found in the build log:
  /auto/vestec1-elixir/projects/biocev/mmokrejs/gentoo/var/tmp/portage/sys-devel/m4-1.4.19-r2/temp/build.log
I have no clue, really.  Please find friendly folks in #gentoo-prefix on
irc.gentoo.org, gentoo-alt@lists.gentoo.org mailing list, or file a bug
at bugs.gentoo.org under Gentoo/Alt, Prefix Support.  This is most
inconvenient, and it crushed my ego.  Sorry, I give up.
Should you want to give it a try, there is /auto/vestec1-elixir/projects/biocev/mmokrejs/gentoo/stage3.log

  CHOST:     x86_64-pc-linux-gnu
  IDENT:     x86_64-rap-linux-debian11
$

$ find /auto/vestec1-elixir/projects/biocev/mmokrejs/gentoo -name autoconf
/auto/vestec1-elixir/projects/biocev/mmokrejs/gentoo/usr/bin/autoconf
...
$
$ grep autoconf stage3.log |  grep merged
>>> sys-devel/autoconf-wrapper-20221207-r1 merged.
>>> sys-devel/autoconf-archive-2023.02.20 merged.
$
Comment 1 Martin Mokrejš 2023-07-31 16:12:13 UTC
Created attachment 866720 [details]
stage1.log.bz2
Comment 2 Martin Mokrejš 2023-07-31 16:12:34 UTC
Created attachment 866721 [details]
stage2.log.bz2
Comment 3 Martin Mokrejš 2023-07-31 16:12:51 UTC
Created attachment 866722 [details]
stage3.log.bz2
Comment 4 Martin Mokrejš 2023-07-31 16:13:14 UTC
Created attachment 866723 [details]
m4.build.log.bz2
Comment 5 Martin Mokrejš 2023-07-31 16:13:32 UTC
Created attachment 866724 [details]
emerge.log.bz2
Comment 6 Martin Mokrejš 2023-08-01 09:44:49 UTC
The order or packages is wrong. Here is from stage3.log the package order. Note sys-devel/autoconf-wrapper-20221207-r1 appears quite early but much further is sys-devel/m4-1.4.19-r2 and finally later on comes sys-devel/autoconf-2.71-r7 itself. Looks like sys-devel/m4-1.4.19-r2 should depend on sys-devel/autoconf .

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

Calculating dependencies  ... done!
Dependency resolution took 3.73 s.

[ebuild  N     ] sys-libs/ncurses-6.4_p20230401:0/6::gentoo  USE="(split-usr) (tinfo) -ada -cxx -debug -doc (-gpm) -minimal -profile (-stack-realign) -static-libs -test -trace -verify-sig" 0 KiB
[ebuild  N     ] virtual/libiconv-0-r2::gentoo  0 KiB
[ebuild  N     ] sys-apps/sed-4.9::gentoo  USE="-acl -nls (-selinux) -static -verify-sig" 0 KiB
[ebuild  N     ] sys-apps/findutils-4.9.0-r2::gentoo  USE="-nls (-selinux) -static -test -verify-sig" 1 999 KiB
[ebuild  N     ] sys-devel/patch-2.7.6-r5::gentoo  USE="-static -test -verify-sig -xattr" 0 KiB
[ebuild  N     ] virtual/libintl-0-r2::gentoo  0 KiB
[ebuild  N     ] sys-devel/autoconf-wrapper-20221207-r1::gentoo  4 KiB
[ebuild  N     ] sec-keys/openpgp-keys-gentoo-release-20230329::gentoo  USE="-test" 17 KiB
[ebuild  N     ] dev-util/gperf-3.1-r1::gentoo  1 188 KiB
[ebuild  N     ] dev-libs/libffi-3.4.4-r1:0/8::gentoo  USE="-debug (-exec-static-trampoline) -pax-kernel -static-libs -test" 0 KiB
[ebuild  N     ] dev-python/gentoo-common-1::gentoo  0 KiB
[ebuild  N     ] app-misc/mime-types-2.1.54::gentoo  USE="-nginx" 28 KiB
[ebuild  N     ] sys-devel/autoconf-archive-2023.02.20::gentoo  663 KiB
[ebuild  N     ] dev-python/ensurepip-pip-23.2.1::gentoo  2 038 KiB
[ebuild  N     ] dev-python/ensurepip-setuptools-68.0.0::gentoo  786 KiB
[ebuild  N     ] dev-util/re2c-2.2::gentoo  USE="-debug -test" 1 427 KiB
[ebuild  N     ] acct-group/root-0-r1::gentoo  0 KiB
[ebuild  N     ] dev-lang/python-exec-conf-2.4.6:2::gentoo  PYTHON_TARGETS="python3_11 -pypy3 -python3_10 -python3_12" 86 KiB
[ebuild  N     ] acct-group/portage-0-r1::gentoo  0 KiB
[ebuild  N     ] sys-devel/automake-wrapper-20221207::gentoo  0 KiB
[ebuild  N     ] dev-util/pkgconf-1.8.1:0/3::gentoo  USE="-test" 296 KiB
[ebuild  N     ] app-arch/xz-utils-5.4.3::gentoo  USE="extra-filters (split-usr) -doc -nls -static-libs -verify-sig" 0 KiB
[ebuild  N     ] virtual/libcrypt-2-r1:0/2::gentoo  USE="-static-libs" 0 KiB
[ebuild  N     ] sys-libs/libseccomp-2.5.4::gentoo  USE="(-experimental-loong) -python -static-libs -test" PYTHON_TARGETS="python3_11 -python3_10" 623 KiB
[ebuild  N     ] dev-libs/popt-1.19::gentoo  USE="-nls -static-libs" 583 KiB
[ebuild  N     ] app-alternatives/awk-4::gentoo  USE="gawk (split-usr) -busybox -mawk -nawk" 0 KiB
[ebuild  N     ] virtual/os-headers-0-r2::gentoo  0 KiB
[ebuild  N     ] virtual/pkgconfig-2-r1::gentoo  0 KiB
[ebuild  N     ] dev-lang/python-exec-2.4.10:2::gentoo  USE="(native-symlinks) -test" PYTHON_TARGETS="(pypy3) (python3_10) (python3_11) (python3_12)" 83 KiB
[ebuild  N     ] acct-user/portage-0-r2::gentoo  0 KiB
[ebuild  N     ] dev-python/ensurepip-wheels-100::gentoo  0 KiB
[ebuild  N     ] sys-libs/readline-8.2_p1:0/8::gentoo  USE="(split-usr) (unicode) -static-libs -utils -verify-sig" 0 KiB
[ebuild  N     ] sys-devel/m4-1.4.19-r2::gentoo  USE="-examples -nls -verify-sig" 0 KiB
[ebuild  N     ] dev-libs/libxml2-2.11.4:2::gentoo  USE="ftp -debug -examples -icu -lzma -python -readline -static-libs -test" PYTHON_TARGETS="python3_11 -python3_10 -python3_12" 2 566 KiB
[ebuild  N     ] dev-libs/libltdl-2.4.7-r1::gentoo  USE="-static-libs" 993 KiB
[ebuild  N     ] app-portage/portage-utils-0.96.1::gentoo  USE="openmp -qmanifest -qtegrity -static" 1 765 KiB
[ebuild  N     ] app-arch/bzip2-1.0.8-r4:0/1::gentoo  USE="(split-usr) -static -static-libs -verify-sig" 792 KiB
[ebuild  N     ] app-alternatives/bzip2-1::gentoo  USE="reference (split-usr) -lbzip2 -pbzip2" 0 KiB
[ebuild  N     ] sys-apps/file-5.45::gentoo  USE="bzip2 seccomp zlib -lzip -lzma -python -static-libs -verify-sig -zstd" PYTHON_TARGETS="python3_11 -python3_10" 1 218 KiB
[ebuild  N     ] dev-libs/libpcre2-10.42-r1:0/3::gentoo  USE="bzip2 jit pcre16 (split-usr) unicode zlib -libedit -pcre32 -readline -static-libs -valgrind -verify-sig" 1 758 KiB
[ebuild  N     ] app-arch/unzip-6.0_p27-r1::gentoo  USE="bzip2 (unicode) -natspec" 1 369 KiB
[ebuild  N     ] sys-apps/util-linux-2.39.1::gentoo  USE="cramfs hardlink logger ncurses (split-usr) suid (unicode) -audit -build -caps -cryptsetup -fdformat -kill -magic -nls (-pam) -python -readline (-rtas) (-selinux) -slang -static-libs -su (-systemd) -test -tty-helpers -udev -verify-sig" PYTHON_TARGETS="python3_11 -python3_10" 8 156 KiB
[ebuild  N     ] app-arch/tar-1.35::gentoo  USE="-acl -minimal -nls (-selinux) -verify-sig -xattr" 2 263 KiB
[ebuild  N     ] app-alternatives/tar-0::gentoo  USE="gnu (split-usr) -libarchive" 0 KiB
[ebuild  N     ] app-arch/gzip-1.12-r4::gentoo  USE="-pic -static -verify-sig" 807 KiB
[ebuild  N     ] app-alternatives/gzip-0::gentoo  USE="reference (split-usr) -pigz" 0 KiB
[ebuild  N     ] dev-lang/perl-5.38.0-r1:0/5.38::gentoo  USE="-berkdb -debug -doc -gdbm -ithreads -minimal -quadmath" 13 386 KiB
[ebuild  N     ] virtual/perl-Data-Dumper-2.188.0::gentoo  0 KiB
[ebuild  N     ] virtual/perl-Encode-3.190.0::gentoo  0 KiB
[ebuild  N     ] virtual/perl-CPAN-2.360.0::gentoo  0 KiB
[ebuild  N     ] virtual/perl-Test-Harness-3.440.0-r1::gentoo  0 KiB
[ebuild  N     ] perl-core/File-Temp-0.231.100::gentoo  76 KiB
[ebuild  N     ] virtual/perl-File-Temp-0.231.100::gentoo  0 KiB
[ebuild  N     ] sys-devel/autoconf-2.71-r7:2.71::gentoo  USE="-emacs" 1 263 KiB
Comment 7 Martin Mokrejš 2023-08-01 09:48:33 UTC
$ find /auto/vestec1-elixir/projects/biocev/mmokrejs/gentoo/ -name autoconf* | sort |  grep -v '/var/db/repos/' |  grep -v '/var/db/pkg' |  grep -v '/var/tmp/portage' |  grep -v '/var/cache/distfiles'
/auto/vestec1-elixir/projects/biocev/mmokrejs/gentoo/usr/bin/autoconf
/auto/vestec1-elixir/projects/biocev/mmokrejs/gentoo/usr/share/doc/autoconf-archive-2023.02.20
/auto/vestec1-elixir/projects/biocev/mmokrejs/gentoo/usr/share/info/autoconf-archive.info.bz2
/auto/vestec1-elixir/projects/biocev/mmokrejs/gentoo/usr/share/info/autoconf-archive.info-1.bz2
/auto/vestec1-elixir/projects/biocev/mmokrejs/gentoo/usr/share/info/autoconf-archive.info-2.bz2
/auto/vestec1-elixir/projects/biocev/mmokrejs/gentoo/usr/share/info/autoconf-archive.info-3.bz2
/auto/vestec1-elixir/projects/biocev/mmokrejs/gentoo/usr/share/info/autoconf-archive.info-4.bz2
$


The following obviously fails then.

$ /auto/vestec1-elixir/projects/biocev/mmokrejs/gentoo/usr/lib64/misc/ac-wrapper.sh
ac-wrapper: ac-wrapper.sh: error: Unable to locate any usuable version of autoconf.
 	I tried these versions: 9999 2.71 2.70 2.69 2.68 2.67 2.66 2.65 2.64 2.63 2.62 2.61 2.60 2.59 2.58 2.57 2.56 2.55 2.54 2.53 2.52 2.51 2.50 2.99 2.98 2.97 2.96 2.95 2.94 2.93 2.92 2.91 2.90 2.89 2.88 2.87 2.86 2.85 2.84 2.83 2.82 2.81 2.80 2.79 2.78 2.77 2.76 2.75 2.74 2.73 2.72 2.71 9999
 	With a base name of '/auto/vestec1-elixir/projects/biocev/mmokrejs/gentoo/usr/lib64/misc/ac-wrapper.sh'.
$
Comment 8 Martin Mokrejš 2023-08-01 11:59:25 UTC
I added to $prefix/var/db/repos/gentoo/sys-devel/m4/m4-1.4.19-r2.ebuild under DEPEND sys-devel/autoconf but ended up with circular deps.


USE=-acl -berkdb -fortran -gdbm -git -libcxx -nls -pcre -python -qmanifest -qtegrity -readline -sanitize bootstrap clang internal-glib PKG=app-shells/bash
!!! BINPKG_COMPRESS unsupported zstd. Missing package: app-arch/zstd
These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 3.39 s.


/var/db/repos/gentoo/sys-devel/m4/m4-1.4.19-r2.ebuild
[nomerge       ] app-shells/bash-5.2_p15-r6::gentoo  USE="net (readline) -afs -bashlogger -examples -mem-scramble -nls -pgo -plugins -verify-sig" 
[nomerge       ]  sys-devel/bison-3.8.2-r2::gentoo  USE="-examples -nls -static -test -verify-sig" 
[nomerge       ]   sys-devel/flex-2.6.4-r6::gentoo  USE="-nls -static -test" 
[ebuild  N     ]    app-alternatives/lex-0-r1::gentoo  USE="flex -reflex" 0 KiB
[ebuild  N     ]     sys-devel/flex-2.6.4-r6::gentoo  USE="-nls -static -test" 0 KiB
[ebuild  N     ]   app-alternatives/yacc-1-r2::gentoo  USE="bison -byacc -reference" 0 KiB
[ebuild  N     ]    sys-devel/bison-3.8.2-r2::gentoo  USE="-examples -nls -static -test -verify-sig" 0 KiB
[nomerge       ] sys-devel/bison-3.8.2-r2::gentoo  USE="-examples -nls -static -test -verify-sig" 
[nomerge       ]  sys-devel/gettext-0.22-r1::gentoo  USE="cxx ncurses openmp (xattr) -acl -doc -emacs -git -java -nls -static-libs -verify-sig" 
[nomerge       ]   dev-libs/expat-2.5.0::gentoo  USE="unicode -examples -static-libs -test" 
[nomerge       ]    sys-devel/autoconf-2.71-r7:2.71::gentoo  USE="-emacs" 
[nomerge       ]     dev-lang/perl-5.38.0-r1:0/5.38::gentoo  USE="-berkdb -debug -doc -gdbm -ithreads -minimal -quadmath" 
[nomerge       ]      app-admin/perl-cleaner-2.31::gentoo  USE="-pkgcore" 
[nomerge       ]       sys-apps/portage-3.0.49-r2::gentoo  USE="(ipc) -apidoc -build -debug -doc -gentoo-dev (-native-extensions) -rsync-verify (-selinux) -test -xattr" PYTHON_TARGETS="python3_11 -pypy3 -python3_10 -python3_12" 
[nomerge       ]        dev-python/setuptools-68.0.0-r1::gentoo  USE="-test" PYTHON_TARGETS="python3_11 -pypy3 -python3_10 -python3_12" 
[ebuild  N     ]         dev-python/setuptools-scm-7.1.0::gentoo  USE="-test" PYTHON_TARGETS="python3_11 -pypy3 -python3_10 -python3_12" 0 KiB
[ebuild  N     ]         dev-python/certifi-3021.3.16-r3::gentoo  USE="-test" PYTHON_TARGETS="python3_11 -pypy3 -python3_10 -python3_12" 0 KiB
[ebuild  N     ]      app-admin/perl-cleaner-2.31::gentoo  USE="-pkgcore" 0 KiB
[ebuild  N     ]       sys-apps/portage-3.0.49-r2::gentoo  USE="(ipc) -apidoc -build -debug -doc -gentoo-dev (-native-extensions) -rsync-verify (-selinux) -test -xattr" PYTHON_TARGETS="python3_11 -pypy3 -python3_10 -python3_12" 0 KiB
[ebuild  N     ]        sys-apps/sandbox-2.37::gentoo  USE="nnp" 0 KiB
[ebuild  N     ]        app-arch/zstd-1.5.5:0/1::gentoo  USE="lzma (split-usr) zlib -lz4 -static-libs -test" 0 KiB
[ebuild  N     ]        app-misc/pax-utils-1.3.7::gentoo  USE="-caps -man -python (-seccomp) -test" PYTHON_SINGLE_TARGET="python3_11 -python3_10" 0 KiB
[ebuild  N     ]         dev-util/meson-1.2.0::gentoo  USE="(-test)" PYTHON_TARGETS="python3_11 -pypy3 -python3_10 -python3_12" 0 KiB
[ebuild  N     ]          dev-python/setuptools-68.0.0-r1::gentoo  USE="-test" PYTHON_TARGETS="python3_11 -pypy3 -python3_10 -python3_12" 0 KiB
[nomerge       ] sys-apps/portage-3.0.49-r2::gentoo  USE="(ipc) -apidoc -build -debug -doc -gentoo-dev (-native-extensions) -rsync-verify (-selinux) -test -xattr" PYTHON_TARGETS="python3_11 -pypy3 -python3_10 -python3_12" 
[nomerge       ]  dev-lang/python-3.11.4:3.11::gentoo  USE="ensurepip ncurses sqlite ssl -bluetooth -build -debug -examples -gdbm -libedit -lto -pgo -readline -test -tk -valgrind -verify-sig" 
[ebuild  N     ]   dev-db/sqlite-3.42.0:3::gentoo  USE="-debug -doc -icu -readline -secure-delete -static-libs -tcl -test -tools" 0 KiB
[ebuild  N     ]    dev-lang/tcl-8.6.13-r1:0/8.6::gentoo  USE="threads -debug" 0 KiB
[ebuild  N     ]   app-crypt/libb2-0.98.1-r3::gentoo  USE="openmp -native-cflags -static-libs" 0 KiB
[ebuild  N     ] sys-devel/gettext-0.22-r1::gentoo  USE="cxx ncurses openmp (xattr) -acl -doc -emacs -git -java -nls -static-libs -verify-sig" 0 KiB
[ebuild  N     ]  dev-libs/expat-2.5.0::gentoo  USE="unicode -examples -static-libs -test" 0 KiB
[nomerge       ] sys-devel/bison-3.8.2-r2::gentoo  USE="-examples -nls -static -test -verify-sig" 
[ebuild  N     ]  sys-devel/m4-1.4.19-r2::gentoo  USE="-examples -nls -verify-sig" 0 KiB
[nomerge       ] dev-python/setuptools-scm-7.1.0::gentoo  USE="-test" PYTHON_TARGETS="python3_11 -pypy3 -python3_10 -python3_12" 
[nomerge       ]  dev-python/setuptools-68.0.0-r1::gentoo  USE="-test" PYTHON_TARGETS="python3_11 -pypy3 -python3_10 -python3_12" 
[nomerge       ]   dev-lang/python-3.11.4:3.11::gentoo  USE="ensurepip ncurses sqlite ssl -bluetooth -build -debug -examples -gdbm -libedit -lto -pgo -readline -test -tk -valgrind -verify-sig" 
[nomerge       ]    dev-libs/expat-2.5.0::gentoo  USE="unicode -examples -static-libs -test" 
[ebuild  N     ]     sys-devel/libtool-2.4.7-r1:2::gentoo  USE="-vanilla" 0 KiB
[ebuild  N     ]      sys-devel/automake-1.16.5-r1:1.16::gentoo  USE="-test" 0 KiB
[ebuild  N     ]       sys-devel/autoconf-2.71-r7:2.71::gentoo  USE="-emacs" 0 KiB
[ebuild  N     ]   dev-python/wheel-0.41.0::gentoo  USE="-test" PYTHON_TARGETS="python3_11 -pypy3 -python3_10 -python3_12" 0 KiB
[ebuild  N     ]   dev-python/nspektr-0.4.0::gentoo  USE="-test" PYTHON_TARGETS="python3_11 -pypy3 -python3_10 -python3_12" 0 KiB
[ebuild  N     ]    dev-python/packaging-23.1::gentoo  USE="-test" PYTHON_TARGETS="python3_11 -pypy3 -python3_10 -python3_12" 0 KiB
[ebuild  N     ]     dev-python/pyparsing-3.1.1::gentoo  USE="-examples -test" PYTHON_TARGETS="python3_11 -pypy3 -python3_10 -python3_12" 0 KiB
[ebuild  N     ]  dev-python/typing-extensions-4.7.1::gentoo  USE="-test" PYTHON_TARGETS="python3_11 -pypy3 -python3_10 -python3_12" 0 KiB
[nomerge       ] dev-python/certifi-3021.3.16-r3::gentoo  USE="-test" PYTHON_TARGETS="python3_11 -pypy3 -python3_10 -python3_12" 
[nomerge       ]  dev-python/setuptools-68.0.0-r1::gentoo  USE="-test" PYTHON_TARGETS="python3_11 -pypy3 -python3_10 -python3_12" 
[ebuild  N     ]   dev-python/platformdirs-3.10.0::gentoo  USE="-test" PYTHON_TARGETS="python3_11 -pypy3 -python3_10 -python3_12" 0 KiB
[ebuild  N     ]   dev-python/ordered-set-4.1.0::gentoo  USE="-test" PYTHON_TARGETS="python3_11 -pypy3 -python3_10 -python3_12" 0 KiB
[ebuild  N     ]   dev-python/jaraco-text-3.11.1-r1::gentoo  USE="-test" PYTHON_TARGETS="python3_11 -pypy3 -python3_10 -python3_12" 0 KiB
[ebuild  N     ]    dev-python/jaraco-functools-3.8.0::gentoo  USE="-test" PYTHON_TARGETS="python3_11 -pypy3 -python3_10 -python3_12" 0 KiB
[ebuild  N     ]    dev-python/jaraco-context-4.3.0::gentoo  USE="-test" PYTHON_TARGETS="python3_11 -pypy3 -python3_10 -python3_12" 0 KiB
[ebuild  N     ]   dev-python/more-itertools-10.0.0::gentoo  USE="-doc -test" PYTHON_TARGETS="python3_11 -pypy3 -python3_10 -python3_12" 0 KiB
[ebuild  N     ]    dev-python/flit-core-3.9.0::gentoo  USE="-test" PYTHON_TARGETS="python3_11 -pypy3 -python3_10 -python3_12" 0 KiB
[ebuild  N     ]     dev-python/gpep517-13::gentoo  USE="-test" PYTHON_TARGETS="python3_11 -pypy3 -python3_10 -python3_12" 0 KiB
[ebuild  N     ]      dev-python/installer-0.7.0::gentoo  USE="-test" PYTHON_TARGETS="python3_11 -pypy3 -python3_10 -python3_12" 0 KiB
[ebuild  N     ]   dev-python/tomli-2.0.1-r1::gentoo  USE="-test" PYTHON_TARGETS="python3_11 -pypy3 -python3_10 -python3_12" 0 KiB
[nomerge       ] sys-apps/sandbox-2.37::gentoo  USE="nnp" 
[nomerge       ]  app-misc/pax-utils-1.3.7::gentoo  USE="-caps -man -python (-seccomp) -test" PYTHON_SINGLE_TARGET="python3_11 -python3_10" 
[ebuild  N     ]   dev-util/meson-format-array-0::gentoo  PYTHON_TARGETS="python3_11 -python3_10 -python3_12" 0 KiB
[ebuild  N     ]   dev-util/ninja-1.11.1-r2::gentoo  USE="-doc -emacs -test" 0 KiB
[ebuild  N     ]    dev-lang/python-3.11.4:3.11::gentoo  USE="ensurepip ncurses sqlite ssl -bluetooth -build -debug -examples -gdbm -libedit -lto -pgo -readline -test -tk -valgrind -verify-sig" 0 KiB
[nomerge       ] dev-python/certifi-3021.3.16-r3::gentoo  USE="-test" PYTHON_TARGETS="python3_11 -pypy3 -python3_10 -python3_12" 
[nomerge       ]  app-misc/ca-certificates-20230311.3.90::gentoo  USE="-cacert" 
[nomerge       ]   sys-apps/debianutils-5.8::gentoo  USE="installkernel -static" 
[ebuild  N     ]    sys-kernel/installkernel-gentoo-7::gentoo  USE="-grub" 0 KiB
[ebuild  N     ]     sys-apps/debianutils-5.8::gentoo  USE="installkernel -static" 0 KiB
[ebuild  N     ]  app-misc/ca-certificates-20230311.3.90::gentoo  USE="-cacert" 0 KiB
[ebuild  N     ] app-shells/bash-5.2_p15-r6::gentoo  USE="net (readline) -afs -bashlogger -examples -mem-scramble -nls -pgo -plugins -verify-sig" 0 KiB

Total: 44 packages (44 new), Size of downloads: 0 KiB

 * Error: circular dependencies:

(sys-devel/autoconf-2.71-r7:2.71/2.71::gentoo, ebuild scheduled for merge) depends on
 (sys-devel/m4-1.4.19-r2:0/0::gentoo, ebuild scheduled for merge) (buildtime)
  (sys-devel/autoconf-2.71-r7:2.71/2.71::gentoo, ebuild scheduled for merge) (buildtime)

 * Note that circular dependencies can often be avoided by temporarily
 * disabling USE flags that trigger optional dependencies.
Comment 9 Martin Mokrejš 2023-08-01 14:48:54 UTC
My FIX:

I added 4 lines with zlib bzip2 perl autoconf to bootstrap-prefix.sh . Maybe zlib was not needed but I was not certain whether perl build failed due to missing zlib.h or bzlib.h due to some TTY controling chars I was not sure if it is bzlib.h or zlib.h.


2078                 # avoid circular deps with sys-libs/pam, bug#712020
2079                 pkgs=(
2080                         sys-apps/attr
2081                         sys-libs/libcap
2082                         sys-libs/libxcrypt
2083                         sys-libs/zlib
2084                         app-arch/bzip2
2085                         dev-lang/perl
2086                         sys-devel/autoconf
2087                 )
2088                 BOOTSTRAP_RAP=yes \
2089                 USE="${USE} -pam" \
2090                 pre_emerge_pkgs --nodeps "${pkgs[@]}" || return 1
2091         else
Comment 10 Martin Mokrejš 2023-08-03 13:48:51 UTC
So here is what helped me go forward and succeed in get RAP installed:

--- bootstrap-prefix.sh.ori	2023-08-02 12:43:04.671112000 +0200
+++ gentoo/bootstrap-prefix.sh	2023-08-02 16:17:00.979157000 +0200
@@ -2080,6 +2080,11 @@
 			sys-apps/attr
 			sys-libs/libcap
 			sys-libs/libxcrypt
+			sys-libs/zlib
+			app-arch/bzip2
+			dev-lang/perl
+			sys-devel/autoconf
+			sys-devel/autoconf-wrapper
 		)
 		BOOTSTRAP_RAP=yes \
 		USE="${USE} -pam" \
@@ -2206,6 +2211,8 @@
 	# e.g. bug #901101
 	export USE="-git -crypt -http2"
 
+	USE="-readline -nls" emerge -uN1 sys-devel/autoconf sys-devel/autoconf-wrapper
+
 	# Portage should figure out itself what it needs to do, if anything.
 	einfo "running emerge -uDNv system"
 	estatus "stage3: emerge -uDNv system"



I did not investigate whether either zlib or bzip2 was unnecessary. Also, one of the two places where sys-devel/autoconf-wrapper is installed is also possibly unnecessary but the "emerge -uN1" makes it a cosmetic issue.
Comment 11 Mike Gilbert gentoo-dev 2023-08-03 14:25:06 UTC
The m4 build system should not be calling autoheader at all.

There is code in the gentoo ebuild specifically to avoid this:

    # touch generated files after patching m4, to avoid activating maintainer
    # mode
    # remove when loong-fix-build.patch is no longer necessary
    touch ./aclocal.m4 ./lib/config.hin ./configure ./doc/stamp-vti || die
    find . -name Makefile.in -exec touch {} + || die


You should focus on figuring out why maintainer mode is being triggered on prefix.