Toma's( Skoc(dopole wrote: > 2009/1/8 Anthony Price <[email protected]>: > >> 1. Copy gcc, mpfr and gmp sources to the /man/lfs/sources directory. >> 2. Unpack the gcc archive >> 3. cd to the gcc sunbdirectory under sources >> 4. Unpack and rename the mpfr and gmp sources *from there* >> 5. Create the gcc install directory & cd to it >> 6. Follow the build instructions in the book. >> > > Hi, > > there is little mistake - there should be /mnt/lfs/sources instead of > /man/lfs... > > There are extracted commands from book (your starting point is in the > $LFS/sources directory - there are source packages and patches): > # > # 5.5 GCC-4.3.2 - Pass 1 > # > > # Unpack source > tar xvf gcc-4.3.2.tar.bz2 > cd gcc-4.3.2 > > # Commands from book > tar -jxf ../mpfr-2.3.2.tar.bz2 > mv mpfr-2.3.2 mpfr > tar -jxf ../gmp-4.2.4.tar.bz2 > mv gmp-4.2.4 gmp > > mkdir -v ../gcc-build > cd ../gcc-build > > CC="gcc -B/usr/bin/" ../gcc-4.3.2/configure --prefix=/tools \ > --with-local-prefix=/tools --disable-nls --disable-shared > --disable-libssp \ > --enable-languages=c > > make > > make install > > ln -vs libgcc.a `gcc -print-libgcc-file-name | \ > sed 's/libgcc/&_eh/'` > > ln -vs gcc /tools/bin/cc > > # And there you should cd back to $LFS/sources and remove garbage > (gcc-4.3.2 and gcc-build). > > Regards Thomas Skocdopole > Many thanks for pointing out my typo. The path that I actually used was the subdirectory of mnt (not man). I got it right on the console and wrong on the email. Sorry.
Regards, Anthony. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
