RTEMS-4.6.2 patches and 'build' scripts (Was: RE: Getting reacquainted -- Cygwin/powerpc-rtems Build Error)

Joel Sherrill <joel@OARcorp.com> joel.sherrill at OARcorp.com
Thu Jan 6 23:24:05 UTC 2005


Mark Dean wrote:
> thanks for that John, I'll give it a go. Looks like you are using later versions of gcc and binutils than I was trying. I was using the versions identified by the 'download helper' so I'll try these new ones at some point next week if I can get the time. I'll let you know how it goes...

John started with tools normally used with the 4.7 development
tree.  He asked earlier how to know and I didn't have a
good answer.  The best I can offer is that

http://www.rtems.com/ftp/pub/rtems/linux/redhat/7.3/i386/rpms/rtems-4.6/

has the tools that are matched to 4.6 and are used to test with.

Replace 4.6 with 4.7 in the above URL and you end up with the tools for 
the development tree (CVS head).  The RPMs are built to install into
/opt/rtems-4.6 and /opt/rtems-4.7 and the intent is that you would
switch toolsets as you switch between RTEMS versions.

In general, it should be possible to use a newer toolset if you
stick with the 4.6 newlib versions and patches.  But we don't
test that way.  Once a release branch is cut, the toolsets doesn't
get major updates.  It is just too dangerous.

In this particular case, gcc 3.2.x is that last series that
cross-Ada seemed to work well.  gcc 3.3.x looks good for
C and C++ on the development trunk.  I am flushing out warnings
with it.  I have used gcc 3.4.3 with patches and it also
seems OK.  We really need to focus on resolving issues in the
upcoming 4.x gcc series.

--joel


>    cheers,
>       Mark.
> 
> -----Original Message-----
> From: Mills, John M. [mailto:Mills.J at ems-t.com]
> Sent: 06 January 2005 14:59
> To: RTEMS Users (E-mail)
> Cc: Mark Dean; J. M. Mills (E-mail)
> Subject: RTEMS-4.6.2 patches and 'build' scripts (Was: RE: Getting
> reacquainted -- Cygwin/powerpc-rtems Build Error)
> 
> 
> Mark Dean, all -
> 
> MD-   Looks to me that you are trying exactly the config we're trying to
> use. I've had 
> MD- nothing but problems with RTEMS/cygwin. If you get a configuration
> working I'd be REALLY 
> MD- REALLY interested to know what versions of RTEMS and the tools you used
> (and any 
> MD- patches).
> 
> Status: now builds all PPC targets except 'tests/tmtests/tm27' for mvme2307,
> mcp750, mtx603e. No RTEMS execution tests yet.
> 
> My Cygwin 'powerpc-rtems' installation used the following sources:
> 
> rtems-4.6.2.tar.bz2 (release from RTEMS.com - no CVS updates)
> 
> gcc-3.3.5.tar.bz2
> gcc-3.3.5-rtems-20041030.diff
> 
> binutils-2.15.tar.bz2
> binutils-2.15-rtems-20040519.diff
> 
> newlib-1.11.0.tar.bz2
> newlib-1.11.0-rtems-20031113.diff
> 
> I unpacked the sources, applied the patches, and soft-linked
> '/usr/src/newlib-1.11.0/newlib' as '/usr/src/gcc-3.3.5/newlib'.
> 
> (Note: some lines of the scripts were wrapped by 'Outlook' - cleanup as
> needed.)
> 
> 'binutils' build script:
> ============================================================================
> ==========
> #!/bin/sh
> export SRCDIR=/usr/src/binutils-2.15
> export INST_PREFIX=/opt/rtems-4.6
> $SRCDIR/configure --target=powerpc-rtems --prefix=$INST_PREFIX
> make
> make install
> ============================================================================
> ==========
> 
> 'gcc' build script:
> ============================================================================
> ==========
> #!/bin/sh
> export SRCDIR=/usr/src/gcc-3.3.5
> export INST_PREFIX=/opt/rtems-4.6
> export PATH=$PATH:$INST_PREFIX/bin
> $SRCDIR/configure --target=powerpc-rtems --enable-languages=c,c++
> --enable-threads=rtems --with-newlib --disable-nls --prefix=$INST_PREFIX
> --enable-version-specific-runtime-libs
> make
> make install
> ============================================================================
> ==========
> 
> RTEMS-4.6.2 build script:
> ============================================================================
> ==========
> #!/bin/sh
> export SRCDIR=/usr/src/rtems-4.6.2
> export INSTDIR=/opt/rtems-4.6
> $SRCDIR/configure --target=powerpc-rtems --enable-cxx --enable-tests
> --prefix=$INSTDIR
> make
> make install
> ============================================================================
> ==========
> 
> Comments, critiques and suggestions are naturally welcome.
> 
> Regards.
>  - Mills
> 
> John M. Mills
> Staff Engineer
> EMS Technologies
> 660 Engineering Drive
> Norcross, GA 30092
> 770.263.9200 ext4882


-- 
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