Recent Changes - Search:

edit SideBar

GCC

Below are my notes about building GCC under Red Hat

I want to build gcj see http://gcc.gnu.org/java/build-snapshot.html for instructions

wget http://www.netgull.com/gcc/releases/gcc-4.8.0/gcc-4.8.0.tar.gz
tar -zxf gcc-4.8.0.tar.gz
ln -s gcc-4.8.0 gcc
cd gcc
contrib/download_prerequisites

wget ftp://gcc.gnu.org/pub/gcc/infrastructure/isl-0.11.1.tar.bz2
tar -jxf isl-0.11.1.tar.bz2
ln -s isl-0.11.1 isl

wget ftp://gcc.gnu.org/pub/gcc/infrastructure/cloog-0.18.0.tar.gz
tar -zxf cloog-0.18.0.tar.gz
ln -s cloog-0.18.0 cloog

wget ftp://sourceware.org/pub/java/ecj-latest.jar
mv ecj-latest.jar ecj.jar

cd ..
mkdir objdir
cd objdir
../gcc/configure --enable-threads=posix --prefix=/usr/local/gcc-4.8.0 --enable-shared --enable-languages=c++,java --with-ecj-jar=/home/cxh/src/gcc/ecj.jar
make bootstrap >& boot.out

Problems

gcj: error trying to exec 'ecj1': execvp: No such file or directory

Solution: download ecj-latest.jar, rename it and reconfigure and rebuild

Edit - History - Print - Recent Changes - Search
Page last modified on March 23, 2013, at 02:15 pm