Mailing List Archive

strange bash ebuild behaviour
Hi,

i just started a new stage1 on my U5.
i swicthed the make.profile on the dev profile
i did the bootstrap with gcc-3.3.5
switched to gcc-3.4.3
and trying to do emerge -eav system after bootstrap i have an error with
bash
when i tried manually, the same error happened :

emerge --oneshot bash
Calculating dependencies ...done!
>>> emerge (1 of 1) app-shells/bash-2.05b-r9 to /
...
gcc -c -DHAVE_CONFIG_H -DSHELL -I.
-I/var/tmp/portage/bash-2.05b-r9/work/bash-2.05b -I../.. -I../../lib
-mcpu=ultrasparc -mtune=v9 -O2 mbutil.c
rm -f xmalloc.o
gcc -c -DHAVE_CONFIG_H -DSHELL -I.
-I/var/tmp/portage/bash-2.05b-r9/work/bash-2.05b -I../.. -I../../lib
-mcpu=ultrasparc -mtune=v9 -O2 xmalloc.c
rm -f libhistory.a
ar cr libhistory.a history.o histexpand.o histfile.o histsearch.o
shell.o savestring.o mbutil.o xmalloc.o

ar: histexpand.o: No such file or directory

make[1]: *** [libhistory.a] Error 1
make[1]: Leaving directory
`/var/tmp/portage/bash-2.05b-r9/work/bash-2.05b/lib/readline'
make: *** [lib/readline/libhistory.a] Error 1
make: *** Waiting for unfinished jobs....
rm -f histfile.o
...

but if I do a ls :

ls /var/tmp/portage/bash-2.05b-r9/work/bash-2.05b/lib/readline/histecp*
/var/tmp/portage/bash-2.05b-r9/work/bash-2.05b/lib/readline/histexpand.c
/var/tmp/portage/bash-2.05b-r9/work/bash-2.05b/lib/readline/histexpand.o

so the file is there.

BUT the more crazy thing is that if I cd in the var/tmp dir and do a make :
cd /var/tmp/portage/bash-2.05b-r9/work/bash-2.05b/
make

make
make: Circular version.h <- syntax.c dependency dropped.
make: Circular version.h <- config.h dependency dropped.
make: Circular version.h <- config.h dependency dropped.
rm -f syntax.c
./mksyntax -o syntax.c

***********************************************************
* *
* GNU bash, version 2.05b.0(1)-release (sparc-unknown-linux-gnu)
* *
***********************************************************

rm -f syntax.o
gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"sparc"'
-DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"sparc-unknown-linux-gnu"'
-DCONF_VENDOR='"unknown"' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include
-I./lib -mcpu=ultrasparc -mtune=v9 -O2 -c syntax.c
making lib/readline/libhistory.a in ./lib/readline
make[1]: Entering directory
`/var/tmp/portage/bash-2.05b-r9/work/bash-2.05b/lib/readline'
rm -f libhistory.a
ar cr libhistory.a history.o histexpand.o histfile.o histsearch.o
shell.o savestring.o mbutil.o xmalloc.o
test -n "sparc-unknown-linux-gnu-ranlib" &&
sparc-unknown-linux-gnu-ranlib libhistory.a
make[1]: Leaving directory
`/var/tmp/portage/bash-2.05b-r9/work/bash-2.05b/lib/readline'

it compiles ok.

so what am I doing wrong ?


--
gentoo-sparc@gentoo.org mailing list
Re: strange bash ebuild behaviour [ In reply to ]
On Wed, 25 May 2005 09:42:03 +0200 Cedric Godin <cedric.godin@skynet.be>
wrote:
| when i tried manually, the same error happened :

This looks like it might be a parallelisation bug. What does "portageq
envvar MAKEOPTS" say for you? If you set MAKEOPTS="-j1" temporarily,
does it go away?

--
Ciaran McCreesh : Gentoo Developer (Vim, Shell tools, Fluxbox, Cron)
Mail : ciaranm at gentoo.org
Web : http://dev.gentoo.org/~ciaranm
Re: strange bash ebuild behaviour [ In reply to ]
Ciaran McCreesh wrote:

>On Wed, 25 May 2005 09:42:03 +0200 Cedric Godin <cedric.godin@skynet.be>
>wrote:
>| when i tried manually, the same error happened :
>
>This looks like it might be a parallelisation bug. What does "portageq
>envvar MAKEOPTS" say for you? If you set MAKEOPTS="-j1" temporarily,
>does it go away?
>
>
>
It was -j2.
That did the trick but but why I don't have this bug on U10 ?

Thank you.

--
gentoo-sparc@gentoo.org mailing list
Re: strange bash ebuild behaviour [ In reply to ]
On Wed, 25 May 2005 11:58:20 +0200 Cedric Godin <cedric.godin@skynet.be>
wrote:
| Ciaran McCreesh wrote:
| >On Wed, 25 May 2005 09:42:03 +0200 Cedric Godin
| ><cedric.godin@skynet.be> wrote:
| >| when i tried manually, the same error happened :
| >
| >This looks like it might be a parallelisation bug. What does
| >"portageq envvar MAKEOPTS" say for you? If you set MAKEOPTS="-j1"
| >temporarily, does it go away?
| >
| It was -j2.
| That did the trick but but why I don't have this bug on U10 ?

Either it's a certain USE flag combination (unlikely) or a matter of
luck. I suggest checking http://bugs.gentoo.org/ and filing a bug if
there isn't one already.

--
Ciaran McCreesh : Gentoo Developer (Vim, Shell tools, Fluxbox, Cron)
Mail : ciaranm at gentoo.org
Web : http://dev.gentoo.org/~ciaranm