On Tuesday 02 March 2010 09:50:00 pm Randy McMurchy wrote:
> lux-integ wrote these words on 03/02/10 13:18 CST:
> > I and having some difficulty compiling gcc-4.4.2 with ada. :-
>
> Have you attempted to use the instructions from the BLFS-dev book?
> I noticed your configure params are much different, but you are also
> using 64 bit, I built the BLFS instructions using a 32-bit machine.
>
> --
> Randy
thanks very much for the advice. I used the blfs recipe updated for
gcc-4.4.2 and pure64-bit (amd64) and it worked a treat. It is below for
those who want to have a go (please note the --disable-multilib switch in
the configure instruction.)
######## run as superuser
cd $sources
tar xzvf gnat-gpl-2009-43-x86_64-pc-linux-gnu-bin.tar.gz
cd gnat-2009-x86_64-pc-linux-gnu-bin
make ins-all prefix=/opt/gnat
rm -vfR gnat-2009-x86_64-pc-linux-gnu-bin
######## run as user
cd $sources
export PATH=/opt/gnat/bin:$PATH
tar xjvf gcc-4.4.2.tar.bz2
cd gcc-4.4.2
sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in &&
sed -i 's...@\./fixinc\...@-c true@' gcc/Makefile.in &&
sed -i 's/@have_mktemp_command@/yes/' gcc/gccbug.in &&
mkdir -v ../gcc-build &&
cd ../gcc-build &&
../gcc-4.4.2/configure --prefix=/usr --libexecdir=/usr/lib
--enable-shared
\ --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
\ --enable-languages=c,c++,ada,fortran --disable-multilib
make bootstrap &&
make -k check &&
../gcc-4.4.2/contrib/test_summary
######## run as superuser
cd $sources
cd gcc-build
make install &&
ln -v -sf ../usr/bin/cpp /lib &&
ln -v -sf gcc /usr/bin/cc &&
chown -v -R root:root /usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/include
&&
chown -v -R
root:root /usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/ada{lib,include}
ln -v -sf `find /usr/lib/gcc -name ffitarget.h` /usr/include
cd $sources
rm -vR gcc-4.4.2
rm -fR /opt/gnat
Incidently does anyone know if were to use this machine as host to build a new
lfs/clfs system if I could use the above gcc without having to use a
binary for setting up gnat?
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page