I'm trying to compile BASH 3.2 on Minix. In the very first attemp, I
couldn't even execute 'configure' file because of not enough memory.
That one was easy one because I can just increase the memory stack
size of shell by using chmem.

During the compile, it was complaining about 'ld' so I made a symbolic
link to /bin from the i386-pc-minix directory so it was also solved.

After those, it seems to me the configure file worked out okay so it's
the time for executing 'make' file!

However, it had another weird error message about memory exhaustion of
command 'm4' so I did chmem for m4 like I did for bash.

Now I got this error message that I have no idea at all. I googled
this message but not a good one (or probably my searching ability
sucks).

I've just realized that the configure file sets the makefile uses
Minix CC not GCC. I created another symbolic link for gcc and re-
executed the configure file and it seems it's not using GCC but
haven't compile yet.

Another error. In this time there was an error in the source codes...
I guess I really do need to start coding on some codes in order to
port bash for minix...

cheers,
AK

07-20-2008, 10:36 PM

unix

Re: Compiling problem for BASH 3.2

Alexander Dong Back Kim wrote ...[color=blue]
> On Jul 12, 3:12 pm, Alexander Dong Back Kim wrote:[color=green]
> >
> > I'm trying to compile BASH 3.2 on Minix. In the very first attempt, I
> > couldn't even execute 'configure' file because of not enough memory.
> > That one was easy one because I can just increase the memory-stack
> > size of shell by using chmem.
> > During the compile, it was complaining about 'ld', so I made a symbolic
> > link to /bin/ from the i386-pc-minix/ directory; so, it also was solved.
> > After those, it seems to me the configure file worked out OK; so, it's
> > the time for executing 'make' file!
> > However, it had another weird error message about memory exhaustion of
> > command 'm4'; so, I did chmem for m4 as I did for bash.
> >[/color][/color]
[... snip ...][color=blue][color=green]
> >
> > The reason why I'm doing this is that the current bash doesn't really
> > seem
> > to like to be run on Minix machine; so, I'm hoping this newer version
> > works
> > OK with Minix 3.1.2a.[/color]
>
> I've just realized that the configure file sets the makefile to use
> Minix CC, not GCC. I created another symbolic link for gcc, and re-
> executed the configure file; and, it seems it's now using GCC, but
> haven't compiled yet.[/color]

Is that symbolic link really needed? Maybe, there is a simpler work-around
for that configure bug: re-arrange the order of the paths in your PATH
environment variable. Put ":/usr/gnu/bin" in front of ":/bin:/usr/bin".
(Then, those broken configure scripts will find "gcc" before they find
"cc".)