[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pc_x86_64 build under CentOS 6.2 bash issue



OK!

This is interesting. It seems to be a build problem; something about
the host
is making unhappiness for the target build process, at least for bash.

Maybe the bash configuration script reads too much stuff from the host
environment to figure what to build. Most package maintainers seem to
think
it is a good idea to interrogate the host to figure how to build the
target code,
but it is a completely broken idea for cross-building, cause many
hoops for
me to jump through. <end rant> I cannot think of anything specific for
this
for bash, except if /bin/sh is a symlink to something other than bash
and that
is somehow causing a problem.

Or, the host build tools are not up to the job of building the target
code. Check
if bash uses yacc/bison for making its syntax parsing code. Maybe you
need
a better, newer bison. Maybe just try updating to a newer bison.

On Mar 8, 5:04 am, Robert Lanning <[email protected]> wrote:
> On Wednesday, March 7, 2012 10:36:54 PM UTC-8, djerome wrote:
>
> > Robert Lanning wrote:
> > > When I build the iso (make dist), the bash that comes out of that does
> > > not seem to parse $() correctly.
>
> > > The ISO boots ok, but all bash scripts fail if they contain the $()
> > > notation.
>
> > > -bash-4.2# echo  $(ls)
> > > -bash: command substitution: line 3: syntax error near unexpected token
> > `)'
> > > -bash: command substitution: line 3: `ls)'
> > > -bash-4.2# echo `ls`
> > > bin boot dev etc home lib lost+found mnt proc root sbin sys tmp usr var
> > > -bash-4.2#
>
> > > Does anyone have any idea what would cause this?
>
> > I'm not seeing this problem in any of the
> > distributed ISO
>
> > I'm thinking it isn't a bash build problem, unless
> > you are missing a patch that would cause this. There
> > should be 20 patches in
> > <path>/ttylinux-build-10.0/pkg-cfg/bash-4.2/patch/
>
> > You might check the shell run-time environment. I
> > see that you don't have the normal ttylinux shell
> > prompt; maybe there's some /etc/profile or ~/.bashrc
> > or something like that.
>
> > Or maybe a character issue wherein the ')' is not
> > the ')' you think it is. Are the files in /etc/i18n
> > something different from the normal ttylinux files?
>
> > I'm running out of odd things to think of...
>
> The distributed ISOs work just fine.
>
> I have all 20 patches.
>
> The bash prompt is the default because all the setup scripts are error'ing
> out.
> The "command substitution" error as stated happens everywhere.
> The rc scripts fail.  Network interfaces won't come up.
>
> Because $() no longer works, most of the environment nulls out.
>
> I can tar the build environment and put it up for you to download and see.
>
> All I do is un-tar your build system, run the make in the xbuild, then run
> the make getcfg;make dload;make dist. (though I have to copy some source
> tar files from the source iso, since kernel.org is missing some older
> versions of software)
>
> About an hour later, I have an iso that I boot in vmware and its bash has a
> problem with $().
>
> The build vm is an up-to-date "CentOS release 6.2 (Final)".
>
> The package list is:
> TTYLINUX_PACKAGE[i++]="ttylinux-basefs-1.0"
> # TTYLINUX_PACKAGE[i++]="ttylinux-devfs-1.0"
> # TTYLINUX_PACKAGE[i++]="glibc-2.9"
> TTYLINUX_PACKAGE[i++]="glibc-2.13"
> #TTYLINUX_PACKAGE[i++]="glibc-devel-2.13"
> # TTYLINUX_PACKAGE[i++]="uClibc-0.9.32"
> TTYLINUX_PACKAGE[i++]="ncurses-5.7"
> #TTYLINUX_PACKAGE[i++]="gmp-4.3.2"
> #TTYLINUX_PACKAGE[i++]="mpfr-2.4.2"
> #TTYLINUX_PACKAGE[i++]="alsa-lib-1.0.25"
> TTYLINUX_PACKAGE[i++]="bash-4.2"
> TTYLINUX_PACKAGE[i++]="busybox-1.19.3"
> TTYLINUX_PACKAGE[i++]="e2fsprogs-1.42"
> TTYLINUX_PACKAGE[i++]="iptables-1.4.12"
> #TTYLINUX_PACKAGE[i++]="lilo-23.2"
> TTYLINUX_PACKAGE[i++]="module-init-tools-3.16"
> #TTYLINUX_PACKAGE[i++]="ntfs-3g_ntfsprogs-2012.1.15"
> TTYLINUX_PACKAGE[i++]="ttylinux-utils-1.3"
> TTYLINUX_PACKAGE[i++]="udev-163"
> TTYLINUX_PACKAGE[i++]="util-linux-ng-2.18"
> # TTYLINUX_PACKAGE[i++]="yaboot-1.3.13"
> TTYLINUX_PACKAGE[i++]="binutils-2.22"
> #TTYLINUX_PACKAGE[i++]="gcc-4.4.6"
> TTYLINUX_PACKAGE[i++]="make-3.82"
> TTYLINUX_PACKAGE[i++]="dropbear-0.53.1"
> #TTYLINUX_PACKAGE[i++]="gpm-1.20.6"
> #TTYLINUX_PACKAGE[i++]="ppp-2.4.5"
> TTYLINUX_PACKAGE[i++]="thttpd-2.25b"
> #TTYLINUX_PACKAGE[i++]="alsa-utils-1.0.25"
> TTYLINUX_PACKAGE[i++]="retawq-0.2.6c"
> TTYLINUX_PACKAGE[i++]="calc-2.12.4.4"
>
> And I set the filesystem to 256M.