Maybe m4 needs to be built before emerging bash? /tmp/jolexa/test/tmp/usr/share/bison/yacc.c:1071: /usr/bin/m4: Warning: Excess arguments to built-in `_m4_popdef' ignored rm -f sig.o gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-pc-linux-gnu"' -DCONF_VENDOR='"pc"' -DLOCALEDIR='"/tmp/jolexa/test/usr/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -I/tmp/jolexa/test/usr/include -I/tmp/jolexa/test/tmp/usr/include -DDEFAULT_PATH_VALUE='"/tmp/jolexa/test/usr/sbin:/tmp/jolexa/test/usr/bin:/tmp/jolexa/test/sbin:/tmp/jolexa/test/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"' -DSTANDARD_UTILS_PATH='"/tmp/jolexa/test/bin:/tmp/jolexa/test/usr/bin:/tmp/jolexa/test/sbin:/tmp/jolexa/test/usr/sbin:/bin:/usr/bin:/sbin:/usr/sbin"' -DSYS_BASHRC='"/tmp/jolexa/test/etc/bash/bashrc"' -DSYS_BASH_LOGOUT='"/tmp/jolexa/test/etc/bash/bash_logout"' -DNON_INTERACTIVE_LOGIN_SHELLS -DSSH_SOURCE_BASHRC -O2 -pipe -c sig.c NONE:0: /usr/bin/m4: ERROR: EOF in string bison: subsidiary program `/usr/bin/m4' failed (exit status 1) make: *** [y.tab.c] Error 1 make: *** Waiting for unfinished jobs.... mkbuiltins.c: In function 'array_add': mkbuiltins.c:400: warning: passing argument 1 of 'xrealloc' from incompatible pointer type gcc -L/tmp/jolexa/test/usr/lib -Wl,-rpath=/tmp/jolexa/test/usr/lib -L/tmp/jolexa/test/lib -Wl,-rpath=/tmp/jolexa/test/lib -L/tmp/jolexa/test/tmp/usr/lib -Wl,-rpath=/tmp/jolexa/test/tmp/usr/lib -rdynamic -O2 -pipe -rdynamic -O2 -pipe -o mkbuiltins mkbuiltins.o -ldl ./mkbuiltins -externfile builtext.h -structfile builtins.c \ -noproduction -D . ./alias.def ./bind.def ./break.def ./builtin.def ./caller.def ./cd.def ./colon.def ./command.def ./declare.def ./echo.def ./enable.def ./eval.def ./getopts.def ./exec.def ./exit.def ./fc.def ./fg_bg.def ./hash.def ./help.def ./history.def ./jobs.def ./kill.def ./let.def ./read.def ./return.def ./set.def ./setattr.def ./shift.def ./source.def ./suspend.def ./test.def ./times.def ./trap.def ./type.def ./ulimit.def ./umask.def ./wait.def ./reserved.def ./pushd.def ./shopt.def ./printf.def ./complete.def ./mapfile.def make[1]: Leaving directory `/tmp/jolexa/test/var/tmp/portage/app-shells/bash-4.2_p10/work/bash-4.2/builtins' emake failed * ERROR: app-shells/bash-4.2_p10 failed (compile phase): * make failed * * Call stack: * ebuild.sh, line 85: Called src_compile * environment, line 2443: Called die * The specific snippet of code: * emake || die "make failed"; * * If you need support, post the output of `emerge --info '=app-shells/bash-4.2_p10'`, * the complete build log and the output of `emerge -pqv '=app-shells/bash-4.2_p10'`. * The complete build log is located at '/tmp/jolexa/test/var/tmp/portage/app-shells/bash-4.2_p10/temp/build.log'. * The ebuild environment file is located at '/tmp/jolexa/test/var/tmp/portage/app-shells/bash-4.2_p10/temp/environment'. * Working directory: '/tmp/jolexa/test/var/tmp/portage/app-shells/bash-4.2_p10/work/bash-4.2' * S: '/tmp/jolexa/test/var/tmp/portage/app-shells/bash-4.2_p10/work/bash-4.2' >>> Failed to emerge app-shells/bash-4.2_p10, Log file: >>> '/tmp/jolexa/test/var/tmp/portage/app-shells/bash-4.2_p10/temp/build.log' * Messages for package app-shells/bash-4.2_p10: * ERROR: app-shells/bash-4.2_p10 failed (compile phase): * make failed * * Call stack: * ebuild.sh, line 85: Called src_compile * environment, line 2443: Called die * The specific snippet of code: * emake || die "make failed"; * * If you need support, post the output of `emerge --info '=app-shells/bash-4.2_p10'`, * the complete build log and the output of `emerge -pqv '=app-shells/bash-4.2_p10'`. * The complete build log is located at '/tmp/jolexa/test/var/tmp/portage/app-shells/bash-4.2_p10/temp/build.log'. * The ebuild environment file is located at '/tmp/jolexa/test/var/tmp/portage/app-shells/bash-4.2_p10/temp/environment'. * Working directory: '/tmp/jolexa/test/var/tmp/portage/app-shells/bash-4.2_p10/work/bash-4.2' * S: '/tmp/jolexa/test/var/tmp/portage/app-shells/bash-4.2_p10/work/bash-4.2' Hmmmm, I was already affraid of this to happen. Running ./bootstrap-prefix.sh "/tmp/jolexa/test" stage3 somewhere failed :( I have no clue, really. Please find friendly folks in #gentoo-prefix on freenet, 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.
we can't, because then portage goes boom about shebangs m4 should have been bootstrapped by stage1 in your case. what does mv --version return for you? (we likely need to pin it down to a minimum version)
pls verify with ./bootstrap-prefix ${EPREFIX}/tmp m4 && ./bootstrap-prefix ${EPREFIX} stage3
(In reply to comment #1) > we can't, because then portage goes boom about shebangs > > m4 should have been bootstrapped by stage1 in your case. > > what does mv --version return for you? (we likely need to pin it down to a > minimum version) bash-3.1$ type -a m4 m4 is /usr/bin/m4 bash-3.1$ m4 --version |head -n1 GNU M4 1.4.4 bash-3.1$
(In reply to comment #2) > pls verify with ./bootstrap-prefix ${EPREFIX}/tmp m4 && ./bootstrap-prefix > ${EPREFIX} stage3 Impossible test, bug 431254
set PATH, CHOST, EPREFIX, MAKEOPTS (PATH should be enough if you didn't change bitness)
(In reply to comment #2) > pls verify with ./bootstrap-prefix ${EPREFIX}/tmp m4 && ./bootstrap-prefix > ${EPREFIX} stage3 after installing m4-1.4.16 from bootstrap-prefix.sh (and reinstalling bison), then stage3 continues
why bison?
(In reply to comment #7) > why bison? because the bootstrapped bison ($EPREFIX/tmp/usr/bin/yacc) still used the host's m4 (/usr/bin/m4) until bison was rebuilt
ok, I introduced a version requirement