limits.h bug in gcc
Andrew Stubbs
Andrew.Stubbs@st.com
Thu Sep 13 04:57:00 GMT 2001
On Wed, 12 Sep 2001 rob@welcomehome.org wrote:
> On Wed, Sep 12, 2001 at 07:54:45PM +0200, Gerald Pfeifer wrote:
>
> > That would be great, thanks! (Would you mind sending the announcement
> > also to gcc@gcc.gnu.org in this case?)
>
> This is probably a stupid question, but is gcc 3.0.1 going to be fixed so
> it'll build as a cross compiler ? I'm trying to get it to build for arm-elf
> or sh-elf, so I can test the cross testing support in DejaGnu. I saw the same
> bug in GCC 3.0, where the script that generates the limits.h file was hardcoded
> to only work on a native system.
>
> I guess I'll drop back to gcc 2.95.3 to build a cross complier, but I was
> hoping 3.0.1 would have this fixed. Gcc 3.0.1 also doesn't build natively with
> --enable-threads either...
>
> from ../../../../gcc-3.0.1/gcc/libgcc2.c:1166:
> /home/rob/projects/gnu/obj/redhat/arm-elf/gcc/include/limits.h:125:75: limits.h: No such file or directory
> make[2]: *** [libgcc/./_fixunsdfsi.o] Error 1
>
> - rob -
I have absolutly no trouble building and using an sh-elf cross compiler
under cygwin, solaris and linux using newlib. I have successfully built
both 3.0 and 3.0.1. As far as I am concerned the target can be added to
the list on the web site.
On the other hand I did have a lot of trouble getting dejagnu working - I
have managed to get it cobbled together after a lot of grief so that it
works. Best of luck fixing it!
------------------------------------------------------------------------
| Andrew Stubbs, | E-mail: Andrew.Stubbs@st.com |
| STMicroelectronics Ltd., | or stubbsa@bristol.st.com |
| 1000 Aztec West, | |
| Almondsbury, | Tel: +44 (0)1454 462325 |
| Bristol, BS32 4SQ, U.K. | Fax: +44 (0)1454 617910 |
------------------------------------------------------------------------
More information about the Gcc-bugs
mailing list