This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: internal compiler error when building newlib1.9.0 under cygwi n!


On Tue, 26 Jun 2001 10:22:07 -0700
"Tawde, Ganesh" <gtawde@opentv.com> wrote:

> Hi,
>  
> I got the same error when building newlib 1.9.0 for m68k under cygwin. But
> then I changed to newllib 1.8.2 and it works fine. I think this is a bug in
> newlib 1.9.0.

 The buggy Cygwin should always be the first to suspect...
     
> /src/newlib/newlib-1.9.0/newlib/libc/stdlib/dtoa.c: In function `_dtoa_r':
> /src/newlib/newlib-1.9.0/newlib/libc/stdlib/dtoa.c:853: Internal compiler
> error in update_equiv_regs, at local-alloc.c:1097

 I didn't get this error when building under RedHat 6.2 Linux, using gcc-2.95.3
for m68k-coff target...

 My gcc-2.95.3 for m68k-coff was compiled using the native egcs-1.1.2 and its
binaries linked against the native glibc-2.1.3. The GCC-optimisation used for
newlib-1.9.0 was '-Os' and my build produced libraries for the default '-mcpu32',
and for the '-m68000/-m68020/-m68040/-m68060/m5200' variations with/without the
'-m68881' or '-msoft-float'. None of these builds crashed...

 So your error seems to come from some buggy routine in the Cygwin C-library or
the Cygwin compiler producing buggy code for the m68k-coff target compiler...

 Anyway I would like to see if the m68k-coff targeted gcc-2.95.3 would crash in
the same way on some other hosts, Linux, Solaris2, AIX, etc.  I have never built
anything under Windoze, so although I have a Mingw-hosted and m68k-coff targeted
gcc-2.95.3 installed under Win2k, using it for trying to rebuild newlib-1.9.0
under Windoze would be too hard...  I don't need a Unix-like build-environment
under Windoze when I have (two) Linux(es) already on the same PC...

 My advice would be to try the downloadable m68k-coff target tools for Windoze
from David Fiddes (egcs-1.1.2 and gcc-2.95.2), and see whether they will crash
in the same way as your 'build-it-yourself'-compiler does... Perhaps something
went wrong in your build and you got a buggy compiler. Getting a reference
compiler, built by someone else, and used by hundreds of others is always a
good idea... I have understood the David's toolsets having quite a lot users
and they having even a maillist for the 'm68k/Coldfire'-subjects.

Cheers, Kai

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]