/[cmucl]/src/BUILDING
ViewVC logotype

Diff of /src/BUILDING

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by rtoy, Tue Jan 24 04:40:48 2006 UTC revision 1.20 by agoncharov, Tue Mar 25 15:16:36 2008 UTC
# Line 1  Line 1 
1  -*- Mode: text -*-  -*- Mode: text -*-
2    
3  Building CMU CL  Building CMU CL
4  ===============  ===============
5    
# Line 626  same file system, via NFS or something e Line 627  same file system, via NFS or something e
627    
628  1. As above, we need to create directories for the cross-compiler and  1. As above, we need to create directories for the cross-compiler and
629     compiled target.  We assume we are on ppc/darwin.  So, when running     compiled target.  We assume we are on ppc/darwin.  So, when running
630     create-target.sh we need to specify the target.     create-target.sh we need to specify the target:
631    
632            src/tools/create-target.sh x86-cross x86
633            src/tools/create-target.sh x86-target x86
634    
635  2. Adjust the cross-compilation script.  An example for ppc/darwin to  2. Adjust the cross-compilation script.  An example for ppc/darwin to
636     x86/linux is in src/tools/cross-scripts/cross-ppc-x86.lisp.     x86/linux is in src/tools/cross-scripts/cross-ppc-x86.lisp.
637    
638  3. Build the cross compiler and target, as above, using the specified  3. Build the cross compiler and target, as above, using the specified
639     cross-compile script.     cross-compile script:
640    
641            src/tools/cross-build-world.sh x86-target x86-cross cross.lisp [ppc binary]
642    
643       where cross.lisp is the cross-compile script from 2) above.
644    
645  4. Everything has now been compiled for the x86/linux target.  We need  4. Everything has now been compiled for the x86/linux target.  We need
646     to compile the C code for x86 and create a lisp.core from the     to compile the C code for x86 and create a lisp.core from the
# Line 644  same file system, via NFS or something e Line 652  same file system, via NFS or something e
652     Note carefully that you may have to edit lisp/internals.h and/or     Note carefully that you may have to edit lisp/internals.h and/or
653     lisp/internals.inc to have the correct features.  This is a known     lisp/internals.inc to have the correct features.  This is a known
654     bug in the generation of these files during cross-compilation.     bug in the generation of these files during cross-compilation.
655    
656       Compile the lisp code:
657    
658            src/tools/rebuild-lisp.sh x86-target
659    
660  5. Now run load-world.sh to create the desired lisp.core from lisp and  5. Now run load-world.sh to create the desired lisp.core from lisp and
661     kernel.core.  As above, PCL has not been compiled, so select     kernel.core.  As above, PCL has not been compiled, so select
662     restart 3 (return nil from pclload) to create lisp.core     restart 3 (return nil from pclload) to create lisp.core
663    
664            src/tools/load-world.sh x86-target "new x86"
665    
666  At this point, you will have a shiny new lisp on the new platform.  At this point, you will have a shiny new lisp on the new platform.
667  Since it's missing PCL, you will need to do at least one normal build  Since it's missing PCL, you will need to do at least one normal build
668  to get PCL included.  This is also a good check to see if everything  to get PCL included.  This is also a good check to see if everything
669  was compiled properly.  A full set of builds via build.sh might be  was compiled properly.  A full set of builds via build.sh might be
670  good at this point too.  good at this point too.
671    
   
   
   

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.20

  ViewVC Help
Powered by ViewVC 1.1.5