4.6.5 build error
Jerry Needell
jerry.needell at unh.edu
Fri Oct 7 13:03:55 UTC 2005
Joel Sherrill <joel at OARcorp.com> wrote:
> Jerry Needell wrote:
>
>> Joel Sherrill <joel at OARcorp.com> wrote:
>>
>>> Jerry Needell wrote:
>>>
>>>> OK - here is my first attempt to build rtems-4.6.5 for the sparc.
>>>> My configuration file is:
>>>>
>>>> #! /bin/sh
>>>> ../rtems-4.6.5/configure --target=sparc-rtems --disable-posix
>>>> --disable-itron --enable-tcpip --enable-networking --disable-cxx
>>>> --enable-tests --enable-rtemsbsp="leon2 leon3 erc32"
>>>> --prefix=/home/needell/leon/rtems/install
>>>>
>>>> The build fails with the following:
>>>>
>>>>
>>>> gmake[4]: Entering directory
>>>> `/home/needell/leon/rtems/build/b-rtems/sparc-rtems/c/leon2/exec/score'
>>>>
>>>> Making all in .
>>>> gmake[5]: Entering directory
>>>> `/home/needell/leon/rtems/build/b-rtems/sparc-rtems/c/leon2/exec/score'
>>>>
>>>> mkdir o-optimize
>>>> gcc32 --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: bad value (cypress) for -mcpu= switch
>>>> gmake[5]: *** [o-optimize/apiext.o] Error 1
>>>> gmake[5]: Leaving directory
>>>> `/home/needell/leon/rtems/build/b-rtems/sparc-rtems/c/leon2/exec/score'
>>>>
>>>> gmake[4]: *** [all-recursive] Error 1
>>>> gmake[4]: Leaving directory
>>>> `/home/needell/leon/rtems/build/b-rtems/sparc-rtems/c/leon2/exec/score'
>>>>
>>>> gmake[3]: *** [all-recursive] Error 1
>>>> gmake[3]: Leaving directory
>>>> `/home/needell/leon/rtems/build/b-rtems/sparc-rtems/c/leon2/exec'
>>>> gmake[2]: *** [all-recursive] Error 1
>>>> gmake[2]: Leaving directory
>>>> `/home/needell/leon/rtems/build/b-rtems/sparc-rtems/c/leon2'
>>>> gmake[1]: *** [all-recursive] Error 1
>>>> gmake[1]: Leaving directory
>>>> `/home/needell/leon/rtems/build/b-rtems/sparc-rtems/c'
>>>> make: *** [all-recursive] Error 1
>>>>
>>>>
>>>>
>>>>
>>>> Any suggestions? I am puzzlesd by why it is using my native
>>>> compiler here "gcc32" rather than the cross compiler.
>>>
>>>
>>>
>>>
>>> Doesn't make sense. How did you configure? I tested that BSP on two
>>> different hosts so I don't see why it would do that.
>>>
>>> --joel
>>
>>
>>
>> At lest I'm not the only one :-)
>>
>> here are my bin-utils and gcc configuration files.
>> #! /bin/sh
>> ../binutils-2.13.2.1/configure --target=sparc-rtems
>> --prefix=/home/needell/leon/rtems/install
>>
>>
>> #! /bin/sh
>>
>> ../gcc-3.2.3/configure --target=sparc-rtems --with-gnu-as
>> --with-newlib --disable-nls --enable-version-specific-runtime-libs
>> --with-gnu-ld --verbose --enable-languages=c,c++
>> --enable-threads=rtems --prefix=/home/needell/leon/rtems/install
>
>
> Is the environment variable CC set in your environment?
>
>
>>
>> - Jerry
>
>
>
yes - good catch! I have CC set to gcc32 because I am building on a
system with gcc 4.0 as the native. I needed this for the gcc build to
work. It failed under gcc 4 :-(
I now see that the Makefiles generated for the rtems build also use CC!
When I remove my defeinition of CC for the rtems build it works. (at
least it gets beyond this problem!)
Thanks!
Have a great trip to Munich!
- Jerry
More information about the users
mailing list