Hi Ho!

On Saturday, October 11, 2008, "Zhang Le" <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> Another problem when cross building the native mips compiler.
> I.e. build=x86, host=target=mipsel
> I have done some search, but haven't found any related discussion.

Please have a look at:
http://gcc.gnu.org/ml/gcc/2008-09/msg00376.html

Also, I think Jay has done a research to solve that particular problem:
http://gcc.gnu.org/ml/gcc-help/2008-08/msg00315.html
http://gcc.gnu.org/ml/gcc/2008-09/msg00009.html

> The install path of libgcc contains gcc version.
> Currently in libgcc/Makefile.in, gcc version is get like this:
>   version := $(shell $(CC) -dumpversion)
> 
> This will lead to a problem that I have only experienced when cross building
> the native compiler. The problem is that crtbegin.o/crtend.o/etc. will be
> installed into old gcc's path, overwrite existing ones. New gcc will have no
> crtbegin.o...
> 
> There is no problem when natively building native compiler.
> 
> I don't understand why the problem only happens when cross building native
> compiler. I know I need to study how gcc is built. Just want make you aware of
> this problem. And I have a suggestion to this problem.
> 
> I have observed that in other components, the version is get like this:
> version := $(shell cat $(srcdir)/../gcc/BASE-VER)
> 
> So what about we do the same in libgcc/Makefile.in?
> Because this can ensure that the install dir will be new gcc's path.
> 
> If this is ok, I will post a little patch.
> 
> Zhang Le

Best regards,
Eus


      

Reply via email to