m68k/mvme162 build problem on solaris-7

Ralf Corsepius corsepiu at faw.uni-ulm.de
Mon Dec 29 07:02:45 UTC 2003


On Mon, 2003-12-29 at 07:47, Paul Cadaret wrote:
> Hello,
> I'm having trouble building RTEMS for a m68k-rtems target and a mvme162 
> bsp;  something I thought would be
> pretty stable.
> My configure scipt is attached;  The important part is:
> 
>       export   CC_FOR_BUILD=/tools/local/bin/gcc
>       export  CXX_FOR_BUILD=/tools/local/bin/g++
>       export    CC_FOR_HOST=/tools/local/bin/gcc
>       export   CXX_FOR_HOST=/tools/local/bin/g++
>       export  CC_FOR_TARGET=/tools/local.m68k-elf/bin/m68k-elf-gcc
>       export CXX_FOR_TARGET=/tools/local.m68k-elf/bin/m68k-elf-g++
>       ${SHELL}  ${SRCDIR}/configure                                 \
>             --prefix=$LOCAL                                         \
>             --target=m68k-rtems                                     \
>             --program-prefix=m68k-elf-                              \
>             --disable-rtems-inlines                                 \
>             --disable-posix                                         \
>             --disable-networking                                    \
>             --disable-cxx                                           \
>             --enable-rtemsbsp="mvme162"                             \
>             #

export PATH=/tools/local/bin:/tools/local.m68k-elf/bin:$PATH
<path-to-rtems>/configure --target=m68k-rtems
should automatically do what you want.

Furthermore: Using a m68k-elf-gcc won't work with RTEMS. 

> where:
> 
>     rtems> /tools/local/bin/gcc --version
>     2.95.2
> 
> This is my old reliable gcc for solaris
This should be irrelevant. Any arbitrary cc is supposed to work here.

>     rtems> /tools/local.m68k-elf/bin/m68k-elf-gcc --version
>     m68k-elf-gcc (GCC) 3.4.0 20031224 (experimental)
>     Copyright (C) 2003 Free Software Foundation, Inc.
>     This is free software; see the source for copying conditions.  There
>     is NO
>     warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
>     PURPOSE.
>     rtems>
> 
> The above is a new m68k gcc cross compiler that seems to work (judged by 
> looking at the assembly code)
It will probably not work out of the box. m68k-rtems-gcc is not
identical to m68k-elf-gcc.

Ralf.





More information about the users mailing list