On Sun, Oct 25, 2015 at 11:26 AM, Michael Havens <bmi...@gmail.com> wrote:
> when I first began playing with LFS I was instructed to script my build so > that is what I do. I was also instructed to build it on a virtual machine > but because you can get recycled computers from universities I decided to > build lfs on one of those instead (I got an optiplex 755 for less than > $25.... that is less than what two thumb drives cost in the USA). > > First I write the build script and then copy it from the main computer to > the LFS machine: > > scp bmike1@192.168.0.2:/home/bmike1/Documents/LFS/7.8/build/5.5build.txt > $LFS/sources > bmike1@192.168.0.2's password: > 5.5build.txt 100% 1700 1.7KB/s > 00:00 > > then I run the script. I do not think it is acting correctly because the > the errors appear immediately; gcc doesn't unpack. > > here is an example of the script: > > #5.5 > tar -xjf gcc-5.2.0.tar.bz2 > cd gcc-5.2.0 > cp ../mpfr-3.1.3.tar.xz . > cp ../mpc-1.0.3.tar.gz . > cp ../gmp-6.0.0a.tar.xz . > tar -xJf ../mpfr-3.1.3.tar.xz > mv -v mpfr-3.1.3 mpfr > tar -xJf ../gmp-6.0.0a.tar.xz > mv -v gmp-6.0.0 gmp > tar -xzf ../mpc-1.0.3.tar.gz > mv -v mpc-1.0.3 mpc > for file in \ > $(find gcc/config -name linux64.h -o -name linux.h -o -name sysv4.h) > do > cp -uv $file{,.orig} > sed -e 's@/lib\(64\)\?\(32\)\?/ld@/tools&@g' \ > -e 's@/usr@/tools@g' $file.orig > $file > echo ' > #undef STANDARD_STARTFILE_PREFIX_1 > #undef STANDARD_STARTFILE_PREFIX_2 > #define STANDARD_STARTFILE_PREFIX_1 "/tools/lib/" > #define STANDARD_STARTFILE_PREFIX_2 ""' >> $file > touch $file.orig > done > mkdir -v ../gcc-build > cd ../gcc-build > ../gcc-5.2.0/configure \ > --target=$LFS_TGT \ > --prefix=/tools \ > --with-glibc-version=2.11 \ > --with-sysroot=$LFS \ > --with-newlib \ > --without-headers \ > --with-local-prefix=/tools \ > --with-native-system-header-dir=/tools/include \ > --disable-nls \ > --disable-shared \ > --disable-multilib \ > --disable-decimal-float \ > --disable-threads \ > --disable-libatomic \ > --disable-libgomp \ > --disable-libquadmath \ > --disable-libssp \ > --disable-libvtv \ > --disable-libstdcxx \ > --enable-languages=c,c++ > ( make 2>&1 | tee ../5.5.compile.log && exit $PIPESTATUS ) && echo GOOD > make install > > -- > http://lists.linuxfromscratch.org/listinfo/lfs-support > FAQ: http://www.linuxfromscratch.org/blfs/faq.html > Unsubscribe: See the above information page > > Do not top post on this list. > > A: Because it messes up the order in which people normally read text. > Q: Why is top-posting such a bad thing? > A: Top-posting. > Q: What is the most annoying thing in e-mail? > > http://en.wikipedia.org/wiki/Posting_style > > Try removing the j's and z's
-- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style