Building 4.6.6: bad value (cypress) for -mcpu= switch

Marek Prochazka Marek.Prochazka at scisys.co.uk
Mon Feb 11 09:06:40 UTC 2008


Ralf,

thanks for your help, I had some mess in my configuration, as you said,
now it works just fine.

Best regards
Marek

> -----Original Message-----
> From: rtems-users-bounces at rtems.org 
> [mailto:rtems-users-bounces at rtems.org] On Behalf Of Ralf Corsepius
> Sent: 08 February 2008 04:09
> To: Marek Prochazka
> Cc: rtems-users
> Subject: Re: Building 4.6.6: bad value (cypress) for -mcpu= switch
> 
> 
> On Thu, 2008-02-07 at 17:51 +0000, Marek Prochazka wrote:
> > Hello,
> > 
> > I've been trying to build rtems for leon2 on Ubuntu 
> 7.1/2.6.22. I was 
> > using gcc 4.1 but after I reviewed the archive of this 
> mailing list I 
> > switched to gcc 3.3.
> 3.3 is ancient, dead and unsupported for many years.
> 
> > (gcc 4.1 was complaining about using -mcpu instead of -mtune).
> 
> 
> > However, even with gcc 3.3 I have a similar problem:
> > 
> > make[5]: Entering directory
> > `/home/marek/software/rtems/build/sparc-rtems/c/leon2/exec/score'
> > mkdir o-optimize
> > gcc --pipe -DHAVE_CONFIG_H   -isystem ../../../../leon2/lib/include
> > -D__RTEMS_INSIDE__     -mcpu=cypress -msoft-float  -O2 -g 
> -Wall -ansi
> > -fasm  -o o-optimize/apiext.o -c
> > ../../../../../../rtems-4.6.5/c/src/../../cpukit/score/src/apiext.c
> > cc1: error: bad value (cypress) for -mcpu= switch
> > make[5]: *** [o-optimize/apiext.o] Error 1
> Here, you are trying to use your native compiler (gcc) to 
> compile a piece of code for the target - This can't work.
> 
> Actually, I wonder how you managed to get that far ;)
> 
> > This is the way I performed configuration:
> > 
> >  ../rtems-4.6.6/configure --host=i686-pc-linux-gnu
> > --prefix=/opt/rtems466 --target=sparc-rtems 
> --enable-rtemsbsp="leon2"
> > --enable-tests
> > 
> > I reviewed this mailing list archive and found a similar problem 
> > caused by the CC env. variable not being set to "gcc". That 
> is not my problem.
> > 
> > I would be very grateful for any help.
> Something is very broken with your set up.
> 
> Do you have a linux->sparc cross toolchain installed at all?
> 
> Ralf
> 
> 
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.com
> http://rtems.rtems.org/mailman/listinfo/rtems-users
> 
> 



More information about the users mailing list