[K42-discussion] Complete build/mambo regress with GIT Makefile.new

Livio Soares livio at eecg.toronto.edu
Thu Apr 12 03:48:23 EST 2007


  Hi Patrick,

Patrick G. Bridges writes:
> I've just pushed a number of bugfixes and some new rules to the GIT  
> tree that let the new makefiles (Makefile.new at the toplevel, and  
> Make.sub-s included from that) completely build all of the K42  
> servers, binaries, and kernel with the new Makefile on Linux. A  
> cleanly checked-out tree build with only Makefile.new sufficient to  
> run regress on mambo. Note that Makefile.new almost certainly *won't*  
> work on AIX or other places.

  Nice  job on all  the Makefile  work. Certainly  makes things  easier and
cleaner.  Thanks.

  I've tried to get things up  and running with your instructions. I've run
into a few bumps (nothing major), and thought it might be useful to send it
to the list, for documentation purposes.  Here is my log:

> Here are the commands I use to build and run regress:
> 
> # Bootstrap include files and build tools
> git-clone http://www.cs.unm.edu/~k42/git/kitchsrc.git &&
>   cd kitchsrc &&
>   git-checkout k42-port &&
>   make -f Makefile.new bootstrap

  No problems here.

> # Build linux object files that K42 needs
>   cd .. &&
>   git-clone http://www.cs.unm.edu/~k42/git/linux-030.git &&
>   cd linux-030 &&
>   git-checkout k42-port &&

  I tried the checkout and got the following:

error: pathspec 'k42-port' did not match any file(s) known to git. 
Did you forget to 'git add'? 

  Now, I admit to knowing anything of how GIT works. Since I didn't want to
spend the time  learning it, or understading what could  be wrong, I simply
hacked the git meta-data, in the following way, and things _seemed_ to work
fine. Please yell if I have committed some atrocity with the following:

    cd linux-030
    cp .git/refs/remotes/origin/k42-port .git/refs/heads/
    git-checkout k42-port

>   make ARCH=ppc64 CROSS_COMPILE=powerpc64-linux- \
>    CROSS32_COMPILE=powerpc-linux- k42_defconfig &&
>   make -f Makefile.k42 MKANCHOR=~/k42 \
>    CROSS_COMPILE=powerpc64-linux- CROSS32_COMPILE=powerpc-linux- k42libs

  This is probably obvious, but I had to do:

ln -s $MY_K42_DEVEL_DIRECTORY ~/k42

  Otherwise I get the infamous:

make: *** No rule to make target `/itchy-scr2/livio/home/k42/install/include/sys/arch/powerpc/asmConstants.H', needed by `arch/k42/include/asm-ppc64/asmConstants.H'.  Stop.

                                error.

  After that, this step finished fine.

> # Build and install kernel, servers, binaries, tests, users, etc.
>   cd ../kitchsrc &&
>   make -f Makefile.new all

   This also ran fine.

> # Run regression test
> k42console -m mambo -f ~/k42/powerpc/fullDeb/os/k42-vmlinux --    
> MAMBO_BOOT_VMLINUX=1 MAMBO_MAPLE=1 MAMBO_TCL_STAMP=-120305     
> MAMBO_TYPE=gpul K42_INITSCR=/home/regress/sysinit MAMBO_EXIT=yes

  This is mostly  running. I forgot to setup some of  my NFS variables, and
therefore K42 crashes when trying to  access the file-system. But I get all
the  way to  the  beginning of  login.  I  bet  that after  fixing the  NFS
problem, regress here will run fine.

  Thanks again for this,

				Livio



More information about the K42-discussion mailing list