[Mono-dev] Build problems on Solaris 9/sparc

Raja R Harinath rharinath at novell.com
Mon Sep 5 02:30:29 EDT 2005


Jason Downs <downsj at downsj.com> writes:

> I've been trying to get mono built on Solaris 9/sparc.  It's not
> going very well.  The first problem encountered is when the build process
> attempts to use mcs for the first time.  mcs is there, and is a working
> .exe, but it appears to be *invoking* it wrong (note the usage line):
> [...]
> make[3]: Entering directory `/usr/local/src/build/mono-1.1/mono-'
> make profile-do--default--all profile-do--net_2_0--all
> make[4]: Entering directory `/usr/local/src/build/mono-1.1/mono-'
> make PROFILE=basic all
> make[5]: Entering directory `/usr/local/src/build/mono-1.1/mono-'
> make[6]: Entering directory `/usr/local/src/build/mono-1.1/mono-'
> usage: mcs [-cdpVz] [-a string] [-n name] file ...
> make[6]: *** [build/deps/basic-profile-check.exe] Error 1
> make[6]: Leaving directory `/usr/local/src/build/mono-1.1/mono-'
> *** The compiler 'mcs' doesn't appear to be usable.
> *** Falling back to using pre-compiled binaries.  Be warned, this may
> not work.

This is expected.

> make[6]: Entering directory `/usr/local/src/build/mono-1.1/mono-'
> make all-local
> make[7]: Entering directory `/usr/local/src/build/mono-1.1/mono-'
> gcc -DSKEL_DIRECTORY=\""/usr/local/share/jay"\" -g -O2 -c -o closure.o closure.c
> [...]
> I've went through all of the various Makefile fragments looking for what could
> be the problem, but I've not found it.
> Perhaps unsurprisingly, the build then eventually fails while compiling the
> classes:
> [...]
> make[8]: Entering directory `/usr/local/src/build/mono-1.1/mono-'
> make[8]: *** No rule to make target `Mono.Math.Prime.Generator/SequentialSearchPrimeGeneratorBase.cs', needed by `../../class/lib/net_1_1_bootstrap/Mono.Security.dll'.  Stop.
> make[8]: Leaving directory `/usr/local/src/build/mono-1.1/mono-'
> make[7]: *** [do-all] Error 2
> make[7]: Leaving directory `/usr/local/src/build/mono-1.1/mono-'
> make[6]: *** [all-recursive] Error 1
> [...]
> Anyone have any ideas why this will not build?  It's just Solaris 9 w/ GNU,
> nothing particularly special about the environment.  Using gcc-3.4.4.

Hmm, for some reason, your tarball or your tar is broken.  I suspect
that you used the Solaris 'tar' program on your machine to extract the
source from the tarball.  Try using 'pax' or 'cpio' or GNU tar instead.

- Hari

More information about the Mono-devel-list mailing list