Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 431240 - interactive installer: fails on amd64-linux in stage3 (sles) - bash/m4 problem?
Summary: interactive installer: fails on amd64-linux in stage3 (sles) - bash/m4 problem?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-13 14:17 UTC by Jeremy Olexa (darkside) (RETIRED)
Modified: 2012-08-13 16:41 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2012-08-13 14:17:49 UTC
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.
Comment 1 Fabian Groffen gentoo-dev 2012-08-13 15:45:39 UTC
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)
Comment 2 Fabian Groffen gentoo-dev 2012-08-13 15:51:27 UTC
pls verify with ./bootstrap-prefix ${EPREFIX}/tmp m4 && ./bootstrap-prefix ${EPREFIX} stage3
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2012-08-13 15:53:01 UTC
(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$
Comment 4 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2012-08-13 16:11:38 UTC
(In reply to comment #2)
> pls verify with ./bootstrap-prefix ${EPREFIX}/tmp m4 && ./bootstrap-prefix
> ${EPREFIX} stage3

Impossible test, bug 431254
Comment 5 Fabian Groffen gentoo-dev 2012-08-13 16:12:54 UTC
set PATH, CHOST, EPREFIX, MAKEOPTS  (PATH should be enough if you didn't change bitness)
Comment 6 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2012-08-13 16:22:40 UTC
(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
Comment 7 Fabian Groffen gentoo-dev 2012-08-13 16:33:36 UTC
why bison?
Comment 8 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2012-08-13 16:37:43 UTC
(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
Comment 9 Fabian Groffen gentoo-dev 2012-08-13 16:41:31 UTC
ok, I introduced a version requirement