[M3devel] TOT CM3 compile.

Tony Hosking hosking at cs.purdue.edu
Fri Apr 18 16:15:51 CEST 2008


I haven't touched that portion of things (bash syntax).  Jay may be  
the culprit.  :-)

On Apr 18, 2008, at 1:37 AM, Alex Bochannek wrote:

> Tony Hosking <hosking at cs.purdue.edu> writes:
>
>> Because there is now a new target, you need to first build a  
>> bootstrap
>> compiler that understands the new target specs.  To build a bootstrap
>> compiler, compile and ship the following packages:
>
> That's what happens when I can't pay attention to the mailing list  
> for a
> while. Suddenly everything changes :-) Building right now...
>
> Couple of related things.
>
> I happened to be looking at script/boot-cm3-core.sh and noticed that
> there some Bash syntax crept in. You touched that file more recently  
> and
> since it is a bit late for me, I thought maybe you can check if I've  
> got
> the logic right in the replacement for the -ot operator
>
> Index: boot-cm3-core.sh
> ===================================================================
> RCS file: /usr/cvs/cm3/scripts/boot-cm3-core.sh,v
> retrieving revision 1.9
> diff -u -r1.9 boot-cm3-core.sh
> --- boot-cm3-core.sh    13 Apr 2008 18:22:32 -0000      1.9
> +++ boot-cm3-core.sh    18 Apr 2008 05:37:02 -0000
> @@ -25,7 +25,7 @@
> BUILDARGS="${BUILDARGS:--DM3_BOOTSTRAP=TRUE -keep}"
> M3CONFIG_SRC=${ROOT}/m3-sys/cm3/src/config/${CROSS_TARGET}
> M3CONFIG=${ROOT}/scripts/${TARGET}-${CROSS_TARGET}.cfg
> -if [ ! -f "${M3CONFIG}" -o "${M3CONFIG}" -ot "${M3CONFIG_SRC}" ] ;  
> then
> +if [ ! -f "${M3CONFIG}" -o -z `find "${M3CONFIG}" -prune -newer "$ 
> {M3CONFIG_SRC}"` ] ; then
>   sed -e "s;m3back.*=.*;m3back = \"@${ROOT}/m3-sys/m3cc/${TARGET}-$ 
> {CROSS_TARGET}/cm3cg\";" \
>     ${M3CONFIG_SRC} > ${M3CONFIG}
> fi
>
>
> I noticed that the new GCC needs GMP and MPFR. I can't install  
> anything
> in /usr on my machine (it's a zone on a Solaris server) and instead  
> use
> Blastwave, which puts things into /opt/csw. The only way to tell the
> build process where to pick up the libraries is by modifying line  
> 319 in
> m3-sys/m3cc/src/m3makefile. Is there a better way?
>
> Thanks,
>
> Alex.




More information about the M3devel mailing list