[Mono-list] Bootstrap docs available?

Matt Zinkevicius mattzink@attbi.com
Tue, 15 Jan 2002 02:36:43 -0700


Howdy,
I am a complete mono newbie, but am very interested in digging in to the
project. One problem... no idea how to do the initial setup. Now that mono
is self-hosting I don't need a windows machine at all, right? I couldn't
find any documentation on how to do the initial bootstrap. Any pointers?
Anyway here is what I tried, on a redhat 7.1 x86 box using
mono-snapshot-14-Jan-02.tar.gz:

% cd mcs
% make linux
for i in jay mcs class tools; do    \
 (cd $i; make linux)  \
done
make[1]: Entering directory `/root/mono/mono-14-Jan-02/mcs/jay'
cc    -c -o closure.o closure.c
cc    -c -o error.o error.c
cc    -c -o lalr.o lalr.c
cc    -c -o lr0.o lr0.c
cc    -c -o main.o main.c
cc    -c -o mkpar.o mkpar.c
cc    -c -o output.o output.c
cc    -c -o reader.o reader.c
cc    -c -o symtab.o symtab.c
cc    -c -o verbose.o verbose.c
cc    -c -o warshall.o warshall.c
cc -o jay  closure.o error.o lalr.o lr0.o main.o mkpar.o output.o reader.o
symtab.o verbose.o warshall.o
main.o: In function `create_file_names':
main.o(.text+0x51b): the use of `mktemp' is dangerous, better use `mkstemp'
make[1]: Leaving directory `/root/mono/mono-14-Jan-02/mcs/jay'
make[1]: Entering directory `/root/mono/mono-14-Jan-02/mcs/mcs'
../jay/jay -ctv < ../jay/skeleton.cs cs-parser.jay > cs-parser.cs
../jay/jay: 2 rules never reduced
../jay/jay: 15 shift/reduce conflicts, 1 reduce/reduce conflict.
/cygdrive//microsoft.net/framework/v1.0.2914/csc.exe /nologo /debug+
/debug:full  /optimize /unsafe /target:exe /r:System.dll /out:mcs.exe
assign.cs driver.cs cs-parser.cs cs-tokenizer.cs tree.cs location.cs
class.cs delegate.cs attribute.cs codegen.cs const.cs constant.cs decl.cs
enum.cs ecore.cs expression.cs genericparser.cs interface.cs literal.cs
modifiers.cs namespace.cs parameter.cs report.cs rootcontext.cs statement.cs
statementCollection.cs support.cs typemanager.cs
make[1]: /cygdrive//microsoft.net/framework/v1.0.2914/csc.exe: Command not
found
make[1]: *** [mcs.exe] Error 127
make[1]: Leaving directory `/root/mono/mono-14-Jan-02/mcs/mcs'
make[1]: Entering directory `/root/mono/mono-14-Jan-02/mcs/class'
../nant/NAnt.exe linux
../nant/NAnt.exe: ../nant/NAnt.exe: cannot execute binary file
make[1]: *** [linux] Error 126
make[1]: Leaving directory `/root/mono/mono-14-Jan-02/mcs/class'
make[1]: Entering directory `/root/mono/mono-14-Jan-02/mcs/tools'
/cygdrive//microsoft.net/framework/v1.0.2914/csc.exe /nologo /debug+
/debug:full  verifier.cs
make[1]: /cygdrive//microsoft.net/framework/v1.0.2914/csc.exe: Command not
found
make[1]: *** [verifier.exe] Error 127
make[1]: Leaving directory `/root/mono/mono-14-Jan-02/mcs/tools'
make: *** [linux] Error 2

Need some tools from visual studio .net?
Then tried:

% cd ../mono
% ./autogen.sh
**Warning**: I am going to run `configure' with no arguments.
If you wish to pass any to it, please specify them on the
`./autogen.sh' command line.

Running libtoolize...
You should add the contents of `/usr/share/aclocal/libtool.m4' to
`aclocal.m4'.
Running aclocal  ...
Running autoheader...
configure.in:109: warning: AC_TRY_RUN called without default to allow cross
compiling
configure.in:112: warning: AC_TRY_RUN called without default to allow cross
compiling
configure.in:213: warning: AC_TRY_RUN called without default to allow cross
compiling
Running automake --gnu  ...
automake: configure.in: installing `./install-sh'
automake: configure.in: installing `./mkinstalldirs'
automake: configure.in: installing `./missing'
automake: Makefile.am: installing `./INSTALL'
automake: Makefile.am: installing `./COPYING'
Running autoconf ...
configure.in:16: warning: AC_TRY_RUN called without default to allow cross
compiling
configure.in:109: warning: AC_TRY_RUN called without default to allow cross
compiling
configure.in:112: warning: AC_TRY_RUN called without default to allow cross
compiling
configure.in:213: warning: AC_TRY_RUN called without default to allow cross
compiling
Running ./configure --enable-maintainer-mode --enable-compile-warnings ...
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... yes
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking build system type... i686-pc-linux-gnu
checking for ranlib... ranlib
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
updating cache ./config.cache
checking for object suffix... o
checking for executable suffix... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions ... yes
checking if gcc static flag -static works... -static
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking command to parse /usr/bin/nm -B output... ok
checking how to hardcode library paths into programs... immediate
checking for /usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
loading cache ./config.cache
checking size of void *... 4
./configure: line 1874: syntax error near unexpected token
`PKG_CHECK_MODULES(BASE_DEPENDENCIES,'
./configure: line 1874: `PKG_CHECK_MODULES(BASE_DEPENDENCIES, glib-2.0 >=
$GLIB_REQUIRED_VERSION)'

Hmm... need newer version of bash (2.04)? Anyway I don't see any other
obvious starting points at getting a mono dev environment setup, hence this
email. Any advice or pointers to documentation would be greatly appreciated!

--Matt Zinkevicius