Compilation problem with K6 bsp
Joel Sherrill <joel@OARcorp.com>
joel.sherrill at OARcorp.com
Mon Sep 12 13:50:55 UTC 2005
John Pickwick wrote:
> Hi to all,
> trying to compile the latest 4.6.4 package for my old but good K6 PC, I
> get the following error :
>
> i386-rtems-gcc --pipe -DHAVE_CONFIG_H -isystem
> ../../../../pck6/lib/include -D
> __RTEMS_INSIDE__ -mcpu=k6 -O4 -g -Wall -ansi -fasm -o
> o-optimize/eventsurr
> ender.o -c
> ../../../../../../rtems-4.6.4/c/src/../../cpukit/rtems/src/eventsurre
> nder.c
> `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
> ../../../../../../rtems-4.6.4/c/src/../../cpukit/rtems/src/eventsurrender.c:
> In
> function '_Event_Surrender':
> ../../../../../../rtems-4.6.4/c/src/../../cpukit/rtems/src/eventsurrender.c:67:
>
> error: invalid lvalue in assignment
> ../../../../../../rtems-4.6.4/c/src/../../cpukit/rtems/src/eventsurrender.c:99:
>
> error: invalid lvalue in assignment
> make[4]: *** [o-optimize/eventsurrender.o] Error 1
> make[4]: Leaving directory
> `/usr/local/tools/b-rtems/i386-rtems/c/pck6/exec/rtem
> s'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory
> `/usr/local/tools/b-rtems/i386-rtems/c/pck6/exec'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/usr/local/tools/b-rtems/i386-rtems/c/pck6'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/local/tools/b-rtems/i386-rtems/c'
> make: *** [all-recursive] Error 1
>
> The incriminated "-mcpu=" option appears in all the previous compilation
> lines but do not cause any error.
>
> I'm using binutils 2.16 and gcc 4.0.0 and all available patches have
> been applied.
gcc 4.x is not supported for the rtems 4.6 release branch. Besides the
changes in arguments to gcc, gcc 3.4 and newer generated many warnings
and a few compile errors with the RTEMS source. Addressing these
required required many small source code changes. Stick to the tools
shipped with the release branch.
The autoconf and automake versions have similar issues. Updating the
build structure also required too many changes for a stable release
branch.
Each RTEMS release branch has a preferred toolset. The tool versions
you are using are what I expect to be for 4.7.
> If anyone can help me, thanks,
>
> John.
>
> Sharks are not evil, but snails and frogs can be.
--
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