[Mono-list] problem building mono
Gaurav Vaish
gaurav.vaish@amsoft.net
Fri, 6 Sep 2002 09:08:04 +0530
> Dear gaurav,
> Thanks a lot for the prompt reply.
> Yeah you are right. the option was gcc -mno-cygwin
> well, I uninstalled the gcc that I had and shifted
> back to the old one: 2.95.3-5 and everything worked fine.
Great.
Enjoy working on it.
Happy hacking,
Gaurav
http://mastergaurav.virtualave.net/iitk
----------------------------
> The error which I had overlooked was "gcc: installtion problem:
> C compliler can't ........" well, the 'make' was fine but
> I could not figure out what might have been the probelm with
> the latest version of gcc that forced me to go back
> to the older version.
>
> Thanks again,
> Piyush Garyali
>
> HONEYWELL SSL,
> Real Time Operating Environment,
> Research and Technology Group,
> 151/1 Doraisanipalya, Bannerghatta Road,
> Bangalore 560 076, INDIA
> +91-80-6585751 x: 2202
>
>
>
> > -----Original Message-----
> > From: Gaurav Vaish [mailto:gaurav.vaish@amsoft.net]
> > Sent: Thursday, September 05, 2002 9:39 AM
> > To: Piyush, Garyali (IE10); Monkey Business
> > Subject: Re: [Mono-list] problem building mono
> >
> >
> > > Hello gaurav,
> > > Thanks a lot for the prompt reply.
> > > I checked the "configure" file and found that it compiles
> > the following
> > > dummy program
> > > to find whether we are not using a cross compiler @line 1300,
> > > #line 1303 "configure"
> > > #include "confdefs.h"
> > > main() {return (0); }
> > >
> > > where the "confdefs.h" has the following lines of code
> > > #define
> > > #define
> > > #define
> > >
> > > It is compiling the above program using the options
> > > " ${CC-cc} -o conftest$(ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS
> > > conftest.$ac-ext "
> > > which comes down as
> > > gcc -o conftest.exe -mno -cygwin conftest.c
> >
> > Ummm....
> > Well, I guess, it should have been "-mno-cygwin" (expanded to "-m
> > no-cygwin"). This option is available only for the cygwin gcc
> > as is the case
> > with you.
> >
> > I really don't understand from where does the extra blank
> > space come
> > from? In configure.in, line #15 reads
> >
> > CC="gcc -mno-cygwin"
> >
> > while line #423 reads
> >
> > CFLAGS="$CFLAGS -mno-cygwin"
> >
> > which should never expand to "-mno -cygwin". Just cross
> > check whether
> > it's actually "-mno-cygwin" or "-mno -cygwin".
> > Let's see what others have to say!
> >
> >
> > Happy hacking,
> > Gaurav
> > http://mastergaurav.virtualave.net/iitk
> >
> >
> > >
> > > Now it appears that gcc is no able to recognize the options -mno
> > > and -cygwin. and it sends an error which is reflected
> > > in the configure and it come out with the error message " C Compiler
> > > can't create executables".
> > >
> > > I tried to find about the gcc -mno -cygwin.. but failed to
> > find anything
> > > in "info gcc"
> > >
> > > U had asked to compile some which is indicated in the
> > configure file.
> > > I tried compiling it with plain gcc -o and it works... I could not
> > > understand the reasom for keeping gcc -mno -cygwin
> > >
> > > I would be highly obliged if you could reply within a couple of days
> > >
> > > thanks and regards,
> > > Piyush Garyali, Honeywell India
> > > (+91 80 6585751, x:2202)
> > >
> > >
> > > > -----Original Message-----
> > > > From: Gaurav Vaish [mailto:gaurav.vaish@amsoft.net]
> > >
> > > > Sent: Wednesday, September 04, 2002 9:47 AM
> > > > To: Piyush, Garyali (IE10); mono-list@ximian.com
> > > > Cc: Piyush, Garyali (IE10)
> > > > Subject: Re: [Mono-list] problem building mono
> > > >
> > > >
> > > > > ./configure --prefix=c:/mono
> > > > > I got an error, gcc -mno-cywin... C Compliler can't
> > > > > create executables...
> > > >
> > > > This means the executable is unable to link itself to the
> > > > libraries at
> > > > the runtime.
> > > > Just try a simple program that uses at least some
> > > > library, or may be the
> > > > one that is given in "configure" file (look for the code near
> > > > the lines with
> > > > something like "Checking if gcc works fine"). Compile it and
> > > > execute it.
> > > >
> > > > I faced a similar problem only to find that the files
> > required at
> > > > runtime were not been made available.
> > > >
> > > >
> > > > Happy Hacking,
> > > > Gaurav
> > > > http://mastergaurav.virtualave.net/iitk
> > > >
> > > >
> >