This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: The compiling problems about Gcc-3.0.x
- To: Ming-Shae Wu <shair at dragon dot ee dot nctu dot edu dot tw>
- Subject: Re: The compiling problems about Gcc-3.0.x
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 10 Sep 2001 01:29:08 -0300
- Cc: gcc at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <3B9C3494.B20C37A2@dragon.ee.nctu.edu.tw>
On Sep 10, 2001, Ming-Shae Wu <shair@dragon.ee.nctu.edu.tw> wrote:
> There are some problems when I comples gcc-3.0 or . gcc-3.0.1.
> First :
> When I use "make bootstrap" after "configure", the procedure stops at
> gcc-3.0.1/sparc-sun-solaris2.6/libstdc++-v3/../gcc/gthr.h . I find
> that
> the directory "gcc-3.0.1/sparc-sun-solaris2.6/libstdc++-v3/../gcc"
> does
> not exist. I link it to gcc-3.0.1/gcc, and it works. Did I do it
> right?
Kind of. You started wrong. You should have used a separate build
tree, as per the manual, in which case this work-around would not have
been necessary.
> If I installed "bintool" before. The compiling procedure will try to
> use
> "/usr/local/sparc-sun-solaris2.6/bin/ld" when the second stage
> compiles.
> It seems that "gnu ld" can not recognize the format of libgcc.map
> which
> is made by gawk during compiling procedure. If I remove
> "/usr/local/sparc-sun-solaris2.6", it uses /usr/ccs/bin/ld, but fails
> to use
> /usr/ccs/bin/as. Finally, I use /usr/ccs/bin/ld and
> /usr/local/sparc-sun-solaris2.6/bin/as to complete the compilation.
You have to configure --with-gnu-ld in this case. And you have have
to point GCC at the exact linker name
--with-ld=/usr/local/sparc-sun-solaris2.6/bin/ld too.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me