On 09/03/2012 01:24 PM, Israel Silberg wrote:
Thaks all for the replies,
Richard, what do you mean by puting it in a script to what is going
on? How do I make the script write me the data I need?
I know some bash scripting but clearly not enogh :-)
And another question, if I want in the end tohave a LFS or BLFS system
without gcc in it, shold I keep it in the toolchain or should I remove
it when the system is done?
How can I remove it? Should I keep its installation folder and not
delete it in order to do make remove?
On Sep 3, 2012 7:24 PM, "Richard Melville"
<richard.melvill...@googlemail.com
<mailto:richard.melvill...@googlemail.com>> wrote:
I extracted all of these packages from within the GCC-4.7.1 folder
and the configure and make are from gcc-build
Here is the output for ls -lah of gcc-4.7.1
lfs@kitt-Lenovo-Product:/mnt/lfs/sources/gcc-4.7.1$ ls -lah
total 11M
drwxr-xr-x 33 lfs lfs 4.0K Sep 3 09:25 .
drwxrwxrwt 4 lfs lfs 4.0K Sep 3 09:27 ..
-rw-r--r-- 1 lfs lfs 38K Jul 4 2003 ABOUT-NLS
-rw-r--r-- 1 lfs lfs 18K Jul 14 2005 COPYING
-rw-r--r-- 1 lfs lfs 26K Jul 14 2005 COPYING.LIB
-rw-r--r-- 1 lfs lfs 3.3K Apr 9 2009 COPYING.RUNTIME
-rw-r--r-- 1 lfs lfs 35K Jul 17 2007 COPYING3
-rw-r--r-- 1 lfs lfs 7.5K Jul 17 2007 COPYING3.LIB
-rw-r--r-- 1 lfs lfs 524K Jun 14 11:27 ChangeLog
-rw-r--r-- 1 lfs lfs 3.2K May 13 2004 ChangeLog.tree-ssa
drwxr-xr-x 2 lfs lfs 4.0K Jun 14 11:48 INSTALL
-rw-r--r-- 1 lfs lfs 58 Jun 14 11:48 LAST_UPDATED
-rw-r--r-- 1 lfs lfs 22K Feb 17 2012 MAINTAINERS
-rw-r--r-- 1 lfs lfs 6.0M Jun 14 13:01 MD5SUMS
-rw-r--r-- 1 lfs lfs 25K Jan 2 2012 Makefile.def
-rw-r--r-- 1 lfs lfs 1.4M May 16 18:54 Makefile.in
-rw-r--r-- 1 lfs lfs 67K May 16 18:54 Makefile.tpl
-rw-r--r-- 1 lfs lfs 579K Jun 14 11:48 NEWS
-rw-r--r-- 1 lfs lfs 815 Oct 10 2009 README
drwxr-xr-x 7 lfs lfs 4.0K Jun 14 11:35 boehm-gc
-rwxr-xr-x 1 lfs lfs 3.7K Aug 22 2009 compile
drwxr-xr-x 2 lfs lfs 4.0K Jun 14 11:35 config
-rw-r--r-- 1 lfs lfs 25K Mar 22 2011 config-ml.in
<http://config-ml.in>
-rwxr-xr-x 1 lfs lfs 44K Jun 6 2011 config.guess
-rwxr-xr-x 1 lfs lfs 15K Feb 13 2011 config.rpath
-rwxr-xr-x 1 lfs lfs 35K Nov 2 2011 config.sub
-rwxr-xr-x 1 lfs lfs 458K Feb 2 2012 configure
-rw-r--r-- 1 lfs lfs 101K Feb 2 2012 configure.ac
<http://configure.ac>
drwxr-xr-x 5 lfs lfs 4.0K Jun 14 11:35 contrib
-rwxr-xr-x 1 lfs lfs 19K Aug 22 2009 depcomp
drwxr-xr-x 3 lfs lfs 4.0K Jun 14 11:48 fixincludes
drwxr-xr-x 17 lfs lfs 20K Sep 3 09:27 gcc
drwxr-xr-x 14 lfs lfs 4.0K May 6 14:20 gmp
drwxr-xr-x 2 lfs lfs 4.0K Jun 14 11:37 gnattools
drwxr-xr-x 2 lfs lfs 4.0K Jun 14 11:35 include
-rwxr-xr-x 1 lfs lfs 14K Aug 22 2009 install-sh
drwxr-xr-x 2 lfs lfs 4.0K Jun 14 11:34 intl
drwxr-xr-x 2 lfs lfs 4.0K Jun 14 11:48 libada
drwxr-xr-x 4 lfs lfs 4.0K Jun 14 11:48 libcpp
drwxr-xr-x 4 lfs lfs 4.0K Jun 14 11:37 libdecnumber
drwxr-xr-x 7 lfs lfs 4.0K Jun 14 11:48 libffi
drwxr-xr-x 4 lfs lfs 4.0K Jun 14 11:37 libgcc
drwxr-xr-x 9 lfs lfs 4.0K Jun 14 11:48 libgfortran
drwxr-xr-x 6 lfs lfs 4.0K Jun 14 11:47 libgo
drwxr-xr-x 4 lfs lfs 4.0K Jun 14 12:02 libgomp
drwxr-xr-x 4 lfs lfs 4.0K Jun 14 11:35 libiberty
drwxr-xr-x 4 lfs lfs 4.0K Jun 14 13:01 libitm
drwxr-xr-x 15 lfs lfs 4.0K Jun 14 11:37 libjava
drwxr-xr-x 3 lfs lfs 4.0K Jun 14 11:34 libmudflap
drwxr-xr-x 4 lfs lfs 4.0K Jun 14 11:47 libobjc
drwxr-xr-x 5 lfs lfs 4.0K Jun 14 12:49 libquadmath
drwxr-xr-x 3 lfs lfs 4.0K Jun 14 11:48 libssp
drwxr-xr-x 11 lfs lfs 4.0K Jun 14 11:34 libstdc++-v3
-rwxr-xr-x 1 lfs lfs 3.3K Sep 20 2007 libtool-ldflags
-rw-r--r-- 1 lfs lfs 258K Nov 21 2011 libtool.m4
-rw-r--r-- 1 lfs lfs 1.8K Sep 26 2008 ltgcc.m4
-rw-r--r-- 1 lfs lfs 244K Jan 13 2011 ltmain.sh
drwxr-xr-x 2 lfs lfs 4.0K Jun 14 11:35 lto-plugin
-rw-r--r-- 1 lfs lfs 12K Dec 5 2009 ltoptions.m4
-rw-r--r-- 1 lfs lfs 4.3K Sep 26 2008 ltsugar.m4
-rw-r--r-- 1 lfs lfs 703 Dec 5 2009 ltversion.m4
-rw-r--r-- 1 lfs lfs 6.0K Dec 5 2009 lt~obsolete.m4
drwxr-xr-x 2 lfs lfs 4.0K Jun 14 11:37 maintainer-scripts
-rwxr-xr-x 1 lfs lfs 12K Aug 22 2009 missing
-rwxr-xr-x 1 lfs lfs 2.2K Jul 22 2000 mkdep
-rwxr-xr-x 1 lfs lfs 3.5K Aug 22 2009 mkinstalldirs
-rwxr-xr-x 1 lfs lfs 2.6K Feb 12 2011 move-if-change
drwxr-xr-x 6 lfs lfs 4.0K Jul 19 15:46 mpc
drwxr-xr-x 9 lfs lfs 4.0K Jul 3 18:02 mpfr
-rwxr-xr-x 1 lfs lfs 2.3K Jul 14 2005 symlink-tree
-rwxr-xr-x 1 lfs lfs 6.1K Aug 22 2009 ylwrap
drwxr-xr-x 11 lfs lfs 4.0K Jun 14 11:34 zlib
I know it's frustrating -- it's the same bug that I and numerous
others have experienced, but none of the team will accept that
it's a bug. It took me four or five attempts to get GCC to build,
but my problem was at pass 2. At one attempt I even copied and
pasted the whole instruction set and it still failed at the same
point that you've found.
Bruce suggested wrapping the commands in a script so you can see
what's happening, and that seems like a good idea, however I had
already built it by then by doing nothing different -- just trying
it yet again.
I'd still be interested to know why we build GMP, MPC, and MPFR
inside GCC except on the final build where they are built separately.
Richard
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page
The following script is for LFS-7.1 gcc-pass-1 so you will need to
change it for whatever gcc verision you are working with.
builder.sh
#!/bin/bash
set -o errexit # exit if error
set -o nounset # exit if variable not initalized
set +h # disable hashall
pkgname=gcc
pkgver=4.6.2
srcname=${pkgname}-${pkgver}.tar.bz2
srcdir=${pkgname}-${pkgver}
function unpack() {
tar xf ${srcname}
}
function clean() {
rm -rf ${srcdir} gcc-build
}
function build() {
tar -jxf ../mpfr-3.1.0.tar.bz2
mv -v mpfr-3.1.0 mpfr
tar -xf ../gmp-5.0.4.tar.xz
mv -v gmp-5.0.4 gmp
tar -zxf ../mpc-0.9.tar.gz
mv -v mpc-0.9 mpc
patch -Np1 -i ../${pkgname}-${pkgver}-cross_compile-1.patch
mkdir -v ../gcc-build
cd ../gcc-build
../${pkgname}-${pkgver}/configure \
--target=$LFS_TGT --prefix=/tools \
--disable-nls --disable-shared --disable-multilib \
--disable-decimal-float --disable-threads \
--disable-libmudflap --disable-libssp \
--disable-libgomp --disable-libquadmath \
--disable-target-libiberty --disable-target-zlib \
--enable-languages=c --without-ppl --without-cloog \
--with-mpfr-include=$(pwd)/../${pkgname}-${pkgver}/mpfr/src \
--with-mpfr-lib=$(pwd)/mpfr/src/.libs
make
make -j1 install
ln -vs libgcc.a `$LFS_TGT-gcc -print-libgcc-file-name | sed
's/libgcc/&_eh/'`
}
clean;unpack;pushd ${srcdir};build;popd;clean
The call builder.sh with something like this
( ./build.sh |& tee build.log ) || false
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page