This page contains RPMs for the Renesas H8/300[HS] series that I packaged for convenience. Use them at your own risk. Comments or suggestions are welcome.
The RPMS for RedHat Linux 8.x (i386) and source RPMS are available at:
http://sourceforge.net/project/showfiles.php?group_id=24580
For release notes, click on the release number in the above page.
Here is the instructions that are roughly the same as what's done in the above RPM packages.
Download the following files and put them under one directory (or you can have linkes to them in one directory).
I assume GNU make has been installed on your system. Most Linux systems, if not all, should have this installed by default. Note that the 'prefix'/bin must be in your PATH when you build gcc. For example, if you specify --prefix=/usr/local, then /usr/local/bin must be in your PATH.
tar xfj binutils-2.13.2.tar.bz2 cd binutils-2.13.2 mkdir objdir cd objdir ../configure --prefix=/usr/local --target=h8300-hms gmake CFLAGS="-O2 -fomit-frame-pointer" all gmake install #this has to be done by root
export PATH=$PATH:/usr/local/bin tar xfj gcc-3.2.1-core.tar.bz2 tar xfz newlib-1.11.0.tar.gz cd gcc-3.2.1 ln -s ../newlib-1.11.0/newlib . patch -p1 < ../h8300-hms-gcc-3.1-1.patch mkdir objdir cd objdir ../configure \ --prefix=/usr/local --target=h8300-hms \ --enable-languages=c --with-newlib gmake CFLAGS="-O2 -fomit-frame-pointer" all gmake install #this has to be done by root
tar xfj gdb-5.2.1.tar.bz2 cd gdb-5.2.1 mkdir objdir cd objdir ../configure --prefix=/usr/local --target=h8300-hms gmake CFLAGS="-O2 -fomit-frame-pointer" all gmake install #this has to be done by root
If you modify the compiler, it is always a good idea to run the testsuite to see if there are any regressions. Here is what I have been doing.
load_lib "framework.exp" # # Determine target machines for all known targets # verbose "Global Config File: target_triplet is $target_triplet" 2 global target_list case "$target_triplet" in { { "h8300-*-*" } { set target_list { "h8300-sim{-mno-h,-mh,-ms,-mh -mint32,-ms -mint32}" } } }
output will contain the result of running the testsuite. I keep it for each modified version of gcc and compare one against another to find regressions.
Of course, you will replace /home/you/... and somewhere/gcc-3.2.1/... accordingly.
http://sourceforge.net/tracker/?atid=381812&group_id=24580&func=browse
Kazu Hirata <kazu@cs.umass.edu> (either in Japanese or in English)
Last Updated: Jun 16, 2003