On Tue, 4 Dec 2001, George Horvath wrote:

> Michael Widenius wrote:
> > 
> > Hi!
> > 
> > >>>>> "Michael" == Michael Stassen <[EMAIL PROTECTED]> writes:
> > 
> > <cut>
> > 
> > Michael>   * everyone who has reported this was using the precompiled binary of gcc
> > Michael>   (either 2.95.2 or 2.95.3) from Sunfreeware to build MySQL for Solaris 8
> > Michael>   sparc.
> > 
> > Michael>   * No one has spoken up to report success with this combination.
> > 
> > Michael>   * No one who built gcc from source has reported this problem.
> > 
> > Michael> Unless a new piece of information comes in, it seems clear to me that
> > Michael> configure doesn't like sunfreeware's pre-compiled copy of gcc for Solaris
> > Michael> 8 sparc.  It would be nice if someone from MySQL would tell us just what
> > Michael> configure is doing when it declares sunfreeware's gcc a cross-compiler,
> > Michael> and could confirm whether this is a configure problem or a gcc problem.
> > 
> > I have now added a note about this in our online manual.
> > (Sorry, I thought we already had done this).
> > 
> > The bottom line seems to be that one should not use the gcc compiler
> > from sunfreeware but instead use the SFW version of gcc that comes
> > with Solaris 2.8 or download the gcc source and compile it.
> > 
> > The reason configure declares sunfreeware a cross compiler is that
> > gcc succeed in compiling a simple test program but the program would
> > not run. Based on this configure concludes that the compiler doesn't
> > generate a working binary for this architecture and must thus be a
> > cross compiler to another architecture.
> 
> Ok, I followed your advice and removed the soaris built gcc from
> sunfreeware and downloaded the source instead.  How ever now I am
> getting this message when I try to compile gcc:
> 
> # /usr/local/gcc-2.95.3/configure --prefix=/usr/local/gnu
> Configuring for a sparc-sun-solaris2.8 host.
> Created "Makefile" in /usr/local/objdir using "mh-frag"
> /usr/ucb/cc:  language optional software package not installed
> *** The command '/usr/ucb/cc -o conftest -g   conftest.c' failed.
> *** You must set the environment variable CC to a working compiler.
> 
> How do I find out what package am I missing?  Can someone point to a
> site with a good solaris 8 build of gcc I can use instead of
> sunfreeware.  I really prefer not to spend time on debugging the Sun
> compiler.  Unless of course it's just a simple addition of a package.
> 
> 
> Thanks,
> George
> 

First, let me acknowledge that a couple of people have reported success
building mysql with sunfreeware's precompiled gcc 2.95.3 since I wrote
this.  That was news to me, but it would imply that there may be a way to
install it (precompiled gcc 2.95.3) that causes problems (perhaps it
expects something else which is missing), or perhaps a set of mysql
configure options which don't interact well with it.

Second, I'm afraid you've misunderstood me, which probably means I wasn't
clear.  Sorry.  /usr/ucb/cc is not a fully functional compiler and cannot
be used to build software.  Many people recommend removing /usr/ucb from
your PATH for this reason, though I find putting it last, after the
location of gcc, works just as well.  You need a functional c compiler to
build gcc.  The usual procedure is to download and install sunfreeware's
precompiled gcc 2.95.3, then use it to build gcc 2.95.3 from source.  You
can find directions at http://gcc.gnu.org/install/

Finally, I want to clarify that I don't claim that sunfreeware's
precompiled gcc is broken.  Many people use it without trouble.  
Personally, I found it quirky.  It worked for most things, but didn't
quite work for a few packages.  Once I built and installed gcc from source
using the binary, these quirks went away.  YMMV.

Michael



---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to