4.6.5 build error
Joel Sherrill <joel@OARcorp.com>
joel.sherrill at OARcorp.com
Fri Oct 7 12:49:14 UTC 2005
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
--
Joel Sherrill, Ph.D. Director of Research & Development
joel at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the users
mailing list