This is the mail archive of the
mailing list for the newlib project.
Re: Build fails for mips1
- From: Joel Sherrill <Joel dot Sherrill at OARcorp dot com>
- To: Ivan Sichmann Freitas <ivansichfreitas at gmail dot com>
- Cc: "newlib at sourceware dot org" <newlib at sourceware dot org>
- Date: Sun, 10 Feb 2013 15:28:45 -0600
- Subject: Re: Build fails for mips1
I have a hack of a patch to get mips-rtems to build. I thought I had posted it but maybe I didn't.
I think it is a bug in the new implementation.
Ivan Sichmann Freitas <firstname.lastname@example.org> wrote:
Up to version 1.20.0, I could build a toolchain for cross compiling code
for mips1 using newlib (plus gcc and binutils) just fine. But with 2.0.0
or git HEAD the compilation fails (see log attached) when trying to use
prefetch instructions, which don't exist in mips1 ISA.
All my toolchain uses --target=mips-elf, and gcc 4.7.2 is configured as
shown in the attached log (there is, however, a custom specfile added to
this gcc buid, which is not run by default, so I'm not ruling out
problemas with my toolchain). The error occurs in memcpy.S (see the
probing of _MIPS_ISA in lines 52 to 57), recently rewritten in pure
assembly. Adding -DDISABLE-PREFETCH fixes the build, but that wasn't
needed before (adding -mips1 to CFLAGS doesn't seem to change anything).
At this point, I'm unsure of the real cause of the problem. Is
-DDISABLE-PREFETCH mandatory from now on? Was --target=mips-elf supposed
to generate mips1 code? Is it a bug in memcpy.S or in my toolchain?
Ivan Sichmann Freitas
GNU/Linux user #509059
SDF Arpa Member http://isf.sdf.org/about.html
Phone: +55 (19) 8227 8610