HOPEFULLY LAST ERROR: [Mono-dev] Mono Compile Error in Solaris 8

Zoltan Varga vargaz at gmail.com
Mon Aug 22 15:26:39 EDT 2005


                                       Hi,

  You have some program on your system which has the same name as mcs, our
C# compiler. Remove it from the system, or at least from your PATH.

               Zoltan

On 8/22/05, Nit Bha <nithelp at gmail.com> wrote:
> hey guys!  I got past that error by installing a new version of gmake
> on solaris 8.  I am still getting this error, and it seems like the
> makefile i using bad arguments for mcs.  If anybody can tell me where
> the error is, I would greatley appreciate it!!
> 
> 
> 
> make[6]: Entering directory `/export/home/users/niteesh/mono/mono-1.1.8.3/mcs'
> usage: mcs [-cdpVz] [-a string] [-n name] file ...
> make[6]: *** [build/deps/basic-profile-check.exe] Error 1
> make[6]: Leaving directory `/export/home/users/niteesh/mono/mono-1.1.8.3/mcs'
> *** The compiler 'mcs' doesn't appear to be usable.
> *** Falling back to using pre-compiled binaries.  Be warned, this may not work.
> make[6]: Entering directory
> `/export/home/users/niteesh/mono/mono-1.1.8.3/mcs/jay'
> make all-local
> make[7]: Entering directory
> `/export/home/users/niteesh/mono/mono-1.1.8.3/mcs/jay'
> cc -DSKEL_DIRECTORY=\""/usr/local//share/jay"\" -g -O2 -c -o closure.o closure.c
> <command line>:1:1: warning: "__GNUC__" redefined
> <built-in>:2:1: warning: this is the location of the previous definition
> <command line>:2:1: warning: "__GNUC_MINOR__" redefined
> <built-in>:3:1: warning: this is the location of the previous definition
> <command line>:16:12: warning: "system" re-asserted
> <command line>:17:12: warning: "system" re-asserted
> <command line>:20:10: warning: "cpu" re-asserted
> <command line>:21:14: warning: "machine" re-asserted
> cpp: -lang-c: linker input file unused because linking not done
> cc: installation problem, cannot exec `cc1': No such file or directory
> make[7]: *** [closure.o] Error 1
> make[7]: Leaving directory
> `/export/home/users/niteesh/mono/mono-1.1.8.3/mcs/jay'
> make[6]: *** [do-all] Error 2
> make[6]: Leaving directory
> `/export/home/users/niteesh/mono/mono-1.1.8.3/mcs/jay'
> make[6]: Entering directory
> `/export/home/users/niteesh/mono/mono-1.1.8.3/mcs/mcs'
> Creating ../build/deps/basic_mcs.exe.makefrag ...
> make[6]: Leaving directory
> `/export/home/users/niteesh/mono/mono-1.1.8.3/mcs/mcs'
> make[6]: Entering directory
> `/export/home/users/niteesh/mono/mono-1.1.8.3/mcs/mcs'
> ../jay/jay -ctv < ../jay/skeleton.cs cs-parser.jay > jay-tmp.out && mv
> jay-tmp.out cs-parser.cs
> /bin/sh: ../jay/jay: not found
> make[6]: *** [cs-parser.cs] Error 1
> make[6]: Leaving directory
> `/export/home/users/niteesh/mono/mono-1.1.8.3/mcs/mcs'
> ./mcs/cs-parser.cs: No such file or directory
> make[6]: Entering directory
> `/export/home/users/niteesh/mono/mono-1.1.8.3/mcs/jay'
> make all-local
> make[7]: Entering directory
> `/export/home/users/niteesh/mono/mono-1.1.8.3/mcs/jay'
> cc -DSKEL_DIRECTORY=\""/usr/local//share/jay"\" -g -O2 -c -o closure.o closure.c
> <command line>:1:1: warning: "__GNUC__" redefined
> <built-in>:2:1: warning: this is the location of the previous definition
> <command line>:2:1: warning: "__GNUC_MINOR__" redefined
> <built-in>:3:1: warning: this is the location of the previous definition
> <command line>:16:12: warning: "system" re-asserted
> <command line>:17:12: warning: "system" re-asserted
> <command line>:20:10: warning: "cpu" re-asserted
> <command line>:21:14: warning: "machine" re-asserted
> cpp: -lang-c: linker input file unused because linking not done
> cc: installation problem, cannot exec `cc1': No such file or directory
> make[7]: *** [closure.o] Error 1
> make[7]: Leaving directory
> `/export/home/users/niteesh/mono/mono-1.1.8.3/mcs/jay'
> make[6]: *** [do-all] Error 2
> make[6]: Leaving directory
> `/export/home/users/niteesh/mono/mono-1.1.8.3/mcs/jay'
> make[5]: *** [all-recursive] Error 1
> make[5]: Leaving directory `/export/home/users/niteesh/mono/mono-1.1.8.3/mcs'
> make[4]: *** [profile-do--basic--all] Error 2
> make[4]: Leaving directory `/export/home/users/niteesh/mono/mono-1.1.8.3/mcs'
> make[3]: *** [profiles-do--all] Error 2
> make[3]: Leaving directory `/export/home/users/niteesh/mono/mono-1.1.8.3/mcs'
> make[2]: *** [all-local] Error 2
> make[2]: Leaving directory
> `/export/home/users/niteesh/mono/mono-1.1.8.3/runtime'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/export/home/users/niteesh/mono/mono-1.1.8.3'
> *** Error code 2
> make: Fatal error: Command failed for target `all'
> 
> On 8/20/05, Niteesh Bharara <teeshy23 at gmail.com> wrote:
> > ahh.. worked wonders!  found ar and included it in my path.  thanks!
> >
> > I have a few more errors now though! :(  I have glib 2.6.2 installed from
> > sunfreeware and I am getting the following error log when I compile
> > mono.  It goes on longer then I have pasted.  I pasted teh beginning, and
> > then I pasted what it has in the end.
> >
> > If anybody can help me I would really really appreciate it!  Thanks again
> > for all your help!
> >
> >
> >
> >
> > ------------------------------------------------------------------------------
> >
> > if /bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H  -I.
> > -I. -I../.. -I../.. -I../../mono -I../../libgc/include -threads
> > -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
> > -I/usr/local/include/glib-2.0
> > -I/usr/local/lib/glib-2.0/include  -DGC_SOLARIS_THREADS
> > -DGC_SOLARIS_PTHREADS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
> > -D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D__EXTENSIONS__
> > -D_XOPEN_SOURCE_EXTENDED=1 -DNO_UNALIGNED_ACCESS   -g -O2
> > -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused
> > -Wmissing-prototypes -Wmissing-declarations
> > -Wstrict-prototypes  -Wmissing-prototypes -Wnested-externs -Wpointer-arith
> > -Wno-cast-qual -Wcast-align -Wwrite-strings -Wno-char-subscripts
> > -Wno-cast-align -MT mono-hash.lo -MD -MP -MF ".deps/mono-hash.Tpo" -c -o
> > mono-hash.lo mono-hash.c; \
> > then mv -f ".deps/mono-hash.Tpo" ".deps/mono-hash.Plo"; else rm -f
> > ".deps/mono-hash.Tpo"; exit 1; fi
> >  gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../mono
> > -I../../libgc/include -threads -I/usr/local/include/glib-2.0
> > -I/usr/local/lib/glib-2.0/include -I/usr/local/include/glib-2.0
> > -I/usr/local/lib/glib-2.0/include -DGC_SOLARIS_THREADS
> > -DGC_SOLARIS_PTHREADS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
> > -D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D__EXTENSIONS__
> > -D_XOPEN_SOURCE_EXTENDED=1 -DNO_UNALIGNED_ACCESS -g -O2
> > -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused
> > -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes
> > -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual
> > -Wcast-align -Wwrite-strings -Wno-char-subscripts -Wno-cast-align -MT
> > mono-hash.lo -MD -MP -MF .deps/mono-hash.Tpo -c mono-hash.c  -fPIC -DPIC -o
> > .libs/mono-hash.o
> > In file included from /usr/local/include/glib-2.0/glib/galloca.h:30,
> >                  from /usr/local/include/glib-2.0/glib.h:30,
> >                  from mono-hash.c:39:
> > /usr/local/include/glib-2.0/glib/gtypes.h:41: error: syntax error before
> > "typedef"
> > In file included from /usr/local/include/glib-2.0/glib.h:31,
> >                  from mono-hash.c:39:
> > /usr/local/include/glib-2.0/glib/garray.h:32: error: parse error before
> > "G_BEGIN_DECLS"
> > /usr/local/include/glib-2.0/glib/garray.h:34: error: syntax error before
> > "typedef"
> > In file included from /usr/local/include/glib-2.0/glib/gerror.h:24,
> >                  from /usr/local/include/glib-2.0/glib/gthread.h:30,
> >                  from /usr/local/include/glib-2.0/glib/gasyncqueue.h:30,
> >                  from /usr/local/include/glib-2.0/glib.h:32,
> >                  from mono-hash.c:39:
> > /usr/local/include/glib-2.0/glib/gquark.h:32: error: parse error before
> > "G_BEGIN_DECLS"
> > /usr/local/include/glib-2.0/glib/gquark.h:34: error: syntax error before
> > "typedef"
> > /usr/local/include/glib-2.0/glib/gquark.h:41: error: syntax error before
> > "gchar"
> > /usr/local/include/glib-2.0/glib/gquark.h:41: error: parse error before
> > "G_GNUC_CONST"
> > /usr/local/include/glib-2.0/glib/gquark.h:41: warning: type defaults to
> > `int' in declaration of `G_GNUC_CONST'
> > /usr/local/include/glib-2.0/glib/gquark.h:41: warning: data definition has
> > no type or storage class
> > In file included from /usr/local/include/glib-2.0/glib/gthread.h:30,
> >                  from /usr/local/include/glib-2.0/glib/gasyncqueue.h:30,
> >                  from /usr/local/include/glib-2.0/glib.h:32,
> >                  from mono-hash.c:39:
> > /usr/local/include/glib-2.0/glib/gerror.h:26: error: parse error before
> > "G_BEGIN_DECLS"
> > /usr/local/include/glib-2.0/glib/gerror.h:28: error: syntax error before
> > "typedef"
> > /usr/local/include/glib-2.0/glib/gerror.h:40: error: parse error before
> > "G_GNUC_PRINTF"
> > /usr/local/include/glib-2.0/glib/gerror.h:40: warning: type defaults to
> > `int' in declaration of `G_GNUC_PRINTF'
> > /usr/local/include/glib-2.0/glib/gerror.h:40: warning: function declaration
> > isn't a prototype
> > /usr/local/include/glib-2.0/glib/gerror.h:40: warning: data definition has
> > no type or storage class
> > /usr/local/include/glib-2.0/glib/gerror.h:60: error: parse error before
> > "G_GNUC_PRINTF"
> > /usr/local/include/glib-2.0/glib/gerror.h:60: warning: type defaults to
> > `int' in declaration of `G_GNUC_PRINTF'
> > /usr/local/include/glib-2.0/glib/gerror.h:60: warning: function declaration
> > isn't a prototype
> > /usr/local/include/glib-2.0/glib/gerror.h:60: warning: data definition has
> > no type or storage class
> > In file included from /usr/local/include/glib-2.0/glib/gthread.h:32,
> >                  from /usr/local/include/glib-2.0/glib/gasyncqueue.h:30,
> >                  from /usr/local/include/glib-2.0/glib.h:32,
> >                  from mono-hash.c:39:
> >
> > ------------------------------------------------------------------------------------------------------------------------------
> >
> > keeps giving errors like this and then ends with:
> >
> >
> > -------------------------------------------------------------------------------------------------------------------------------------
> > In file included from ../../libgc/include/gc.h:33,
> >                  from ../../mono/os/gc_wrapper.h:33,
> >                  from mono-hash.c:40:
> > ../../libgc/include/gc_config_macros.h:9:1: warning: "GC_SOLARIS_THREADS"
> > redefined
> > <command line>:4:1: warning: this is the location of the previous definition
> > mono-hash.c: In function `mono_g_hash_table_new_full':
> > mono-hash.c:163: error: `g_direct_hash' undeclared (first use in this function)
> > mono-hash.c:163: error: (Each undeclared identifier is reported only once
> > mono-hash.c:163: error: for each function it appears in.)
> > mono-hash.c:164: error: `g_direct_equal' undeclared (first use in this
> > function)
> > *** Error code 1
> > make: Fatal error: Command failed for target `mono-hash.lo'
> > Current working directory
> > /export/home/users/niteesh/mono/mono-1.1.8.3/mono/utils
> > *** Error code 1
> > make: Fatal error: Command failed for target `all-recursive'
> > Current working directory /export/home/users/niteesh/mono/mono-1.1.8.3/mono
> > *** Error code 1
> > make: Fatal error: Command failed for target `all-recursive'
> > Current working directory /export/home/users/niteesh/mono/mono-1.1.8.3
> > *** Error code 1
> > make: Fatal error: Command failed for target `all'
> >
> > ---------------------------------------------------------------------------------------------------------------------------------
> >
> >
> >
> > _______________________________________________
> > Mono-devel-list mailing list
> > Mono-devel-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-devel-list
> >
>



More information about the Mono-devel-list mailing list