Proper sequence of commands to build SML/NJ from SVN

View: New views
6 Messages — Rating Filter:   Alert me  

Proper sequence of commands to build SML/NJ from SVN

by Vesa Karvonen-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

What is the proper sequence of commands to fully (re)build/bootstrap
SML/NJ from a checked out SVN copy?

Specifically, I'd like to fix a couple of minor issues in SML/NJ's
Basis library implementation, verify/test the changes, and submit a
patch, but I have not been able to rebuild the compiler after the
changes to a usable state.  The instructions in
http://www.smlnj.org/doc/CM/btcomp/index.html do not work.  In
particular, instructions on the page
http://www.smlnj.org/doc/CM/btcomp/node8.html do NOT produce a working
system (at least the rm command is wrong).  Depending on what I try,
either magic numbers differ in libraries (IOW, some libraries weren't
updated properly for the newly build compiler) or some files become
missing (if I actually delete files from lib or bin).

Please write a single shell script or Makefile for the process.

-Vesa Karvonen

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Smlnj-list mailing list
Smlnj-list@...
https://lists.sourceforge.net/lists/listinfo/smlnj-list

Re: Proper sequence of commands to build SML/NJ from SVN

by vnorrman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have used below sequence in the past. Also find it in the
attachment.

If you have bad magic number then there is maybe something wrong in
config/install.sh not building everything again.

I have never used rm in this purpose. I don't know how it can destroy
build.

Maybe your modification touches some tricky parts.

  - Vesa

#!/bin/sh

# script to build smlnj

# normal install

mkdir smlnj
cd smlnj
wget http://smlnj.cs.uchicago.edu/dist/working/110.67/config.tgz
gunzip -c config.tgz | tar xf -
config/install.sh
cd ..

# build install

mv smlnj smlnj.install
mkdir smlnj
cd smlnj
svn co svn://smlnj-gforge.cs.uchicago.edu/smlnj/admin
admin/checkout-all.sh

# now insert your modification
echo Press enter to continue
read testingvariable

mv ../smlnj.install/bin .
mv ../smlnj.install/lib .
cd base/system
echo 'CMB.make();' | ../../bin/sml '$smlnj/cmb.cm'
./makeml

# optional testing
#./testml

./installml
cd ../..
config/install.sh
cd ..
exit 0



On Thu, 15 Nov 2007, Vesa Karvonen wrote:

> What is the proper sequence of commands to fully (re)build/bootstrap
> SML/NJ from a checked out SVN copy?
>
> Specifically, I'd like to fix a couple of minor issues in SML/NJ's
> Basis library implementation, verify/test the changes, and submit a
> patch, but I have not been able to rebuild the compiler after the
> changes to a usable state.  The instructions in
> http://www.smlnj.org/doc/CM/btcomp/index.html do not work.  In
> particular, instructions on the page
> http://www.smlnj.org/doc/CM/btcomp/node8.html do NOT produce a working
> system (at least the rm command is wrong).  Depending on what I try,
> either magic numbers differ in libraries (IOW, some libraries weren't
> updated properly for the newly build compiler) or some files become
> missing (if I actually delete files from lib or bin).
>
> Please write a single shell script or Makefile for the process.
>
> -Vesa Karvonen
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Smlnj-list mailing list
> Smlnj-list@...
> https://lists.sourceforge.net/lists/listinfo/smlnj-list
>
--
                                     /`---*\
                                    = ^ o ^ =
                                     `-----'
#!/bin/sh

# script to build smlnj

# normal install

mkdir smlnj
cd smlnj
wget http://smlnj.cs.uchicago.edu/dist/working/110.67/config.tgz
gunzip -c config.tgz | tar xf -
config/install.sh
cd ..

# build install

mv smlnj smlnj.install
mkdir smlnj
cd smlnj
svn co svn://smlnj-gforge.cs.uchicago.edu/smlnj/admin
admin/checkout-all.sh

# now insert your modification
echo Press enter to continue
read testingvariable

mv ../smlnj.install/bin .
mv ../smlnj.install/lib .
cd base/system
echo 'CMB.make();' | ../../bin/sml '$smlnj/cmb.cm'
./makeml

# optional testing
#./testml

./installml
cd ../..
config/install.sh
cd ..
exit 0

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Smlnj-list mailing list
Smlnj-list@...
https://lists.sourceforge.net/lists/listinfo/smlnj-list

Re: Proper sequence of commands to build SML/NJ from SVN

by Aditisaxena :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I too don't have much knowledge about the given questioned basic but still will be waiting to see the ans for this.
==========
Aditi

Addiction Recovery New Jersey

Addiction Recovery New Jersey

Re: Proper sequence of commands to build SML/NJ from SVN

by mikepradigo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It's basically a software version of 110.60 and it is necessary to build the software properly in the different operating systems. For UNIX operating systems, you have to download the file manually config.tgz and it will install automatically. For windows based operating systems we have to download the file smlnj.zip  and follow the instructions.
==================================================================
mike
good place to look forward..
look4ward

Re: Proper sequence of commands to build SML/NJ from SVN

by sacchi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am not aware of this commands to build SML/NJ FROM SVN, can i have some information on them.Which will be helpful to me.
===========================================================
sacchi
good place to look forward
http://www.lookforward.info

Re: Proper sequence of commands to build SML/NJ from SVN

by katieemily :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 SML//nj(Standard ML of New Jersey).is a compiler for sml '97 which is a open source with libraries and tools.
It was not yet fully compelted.
===================================================
katie

good place to look forward
http://www.lookforward.info