Kernel 2.4.26 with new toolchain

Steve Martin srm at netcomuk.co.uk
Tue Jul 13 13:58:59 PDT 2004


Hi all,

Following on from my previous question about 2.4.x support and
development in LFS here are the details of my build with the 2.4.26 
kernel and the following toolchain:

binutils-2.15
gcc-3.4.1
glibc-2.3.4-20040701

My, this was fun!

All the patches, extra to the normal LFS patches (I hope I haven't
replicated too many!), are attached.  I have also attached a complete
list of packages used in the build, it is an alphabetical list and some
of them are not in LFS.  The build sequence is exactly that described in
LFS 5.x.

First up, the host kernel needs to be fairly recent or upgraded.  My
host had a 2.4.18 kernel which was too old, ie glibc produces executable
stack errors!  I tested against a 2.4.22 kernel and that was fine.  So,
first up, make sure your host kernel is up to the job.  I upgraded the
host to 2.4.26 before starting the build.

After that everything goes like a dream (if you use the attached
patches), GCC needs the finish_decl patch (or it just won't compile) on
the first pass (and every succeeding pass).  The kernel patch should be
applied even for the headers as some of them are changed, although there
are no showstoppers for glibc in there.  Follow the book and it works.

Thanks for your time!
-- 
Steve Martin <srm at netcomuk.co.uk>

Still can't think of anything witty to write here.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-3.4.1.finish_decl.patch.gz
Type: application/x-gzip
Size: 354 bytes
Desc: not available
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-dev/attachments/20040713/539c899a/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-3.4.1.libstc++.exp.patch.gz
Type: application/x-gzip
Size: 4352 bytes
Desc: not available
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-dev/attachments/20040713/539c899a/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linux-2.4.26.i386-gcc-3.4.1.patch.gz
Type: application/x-gzip
Size: 17289 bytes
Desc: not available
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-dev/attachments/20040713/539c899a/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: net-tools-1.60.hostname.patch.gz
Type: application/x-gzip
Size: 295 bytes
Desc: not available
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-dev/attachments/20040713/539c899a/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: net-tools-1.60.inet_sr.patch.gz
Type: application/x-gzip
Size: 232 bytes
Desc: not available
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-dev/attachments/20040713/539c899a/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: net-tools-1.60.mii-usage.patch.gz
Type: application/x-gzip
Size: 584 bytes
Desc: not available
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-dev/attachments/20040713/539c899a/attachment-0005.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shadow-4.0.4.1.xmalloc.patch.gz
Type: application/x-gzip
Size: 291 bytes
Desc: not available
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-dev/attachments/20040713/539c899a/attachment-0006.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sysklogd-1.4.1.man-dir.patch.gz
Type: application/x-gzip
Size: 337 bytes
Desc: not available
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-dev/attachments/20040713/539c899a/attachment-0007.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sysklogd-1.4.1.optimization.patch.gz
Type: application/x-gzip
Size: 318 bytes
Desc: not available
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-dev/attachments/20040713/539c899a/attachment-0008.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sysklogd-1.4.1.signal.patch.gz
Type: application/x-gzip
Size: 324 bytes
Desc: not available
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-dev/attachments/20040713/539c899a/attachment-0009.bin>
-------------- next part --------------
autoconf-2.59.tar.bz2
automake-1.8.5.tar.bz2
bash-2.05b.tar.gz
bc-1.06.tar.gz
binutils-2.15.tar.bz2
bison-1.875.tar.gz
bzip2-1.0.2.tar.gz
coreutils-5.2.1.tar.bz2
cpio-2.5.tar.gz
dark-net-0.2.tar.gz (my own version of /etc/{services/protocols})
dejagnu-1.4.4.tar.gz
devfsd-v1.3.25.tar.gz (yes, I use this)
diffutils-2.8.1.tar.gz
e2fsprogs-1.35.tar.gz
ed-0.2.tar.gz*
expect-5.41.tar.gz
file-4.09.tar.gz
findutils-4.1.20.tar.gz
flex-2.5.4a.tar.gz*
gawk-3.1.3.tar.gz
gcc-3.4.1.finish_decl.patch.gz  (from gcc bugzilla)
gcc-3.4.1.libstc++.exp.patch.gz (from gcc bugzilla)
gcc-3.4.1.tar.bz2
gettext-0.14.1.tar.gz
glibc-2.3.4-20040701.tar.bz2
grep-2.5.1.tar.gz
groff-1.19.1.tar.gz
grub-0.95.tar.gz
gzip-1.3.5.tar.gz
inetutils-1.4.2.tar.gz
kbd-1.12.tar.gz
less-382.tar.gz
lfs-bootscripts-1.12.tar.bz2  (yes, I need to upgrade)
libtool-1.5.6.tar.gz
linux-2.4.26.i386-gcc-3.4.1.patch.gz (a real labour of love, took days to 
					sort out all the problems)
linux-2.4.26.tar.gz
m4-1.4.1.tar.gz
make-3.80.tar.gz
man-1.5m2.tar.gz
man-pages-1.67.tar.gz
mktemp-1.5.tar.gz
modutils-2.4.27.tar.gz
ncurses-5.4.tar.gz
net-tools-1.60.hostname.patch.gz
net-tools-1.60.inet_sr.patch.gz
net-tools-1.60.mii-usage.patch.gz
net-tools-1.60.tar.gz*
nvi-1.79.tar.gz	(yes, it's vi, it's old and I like it ;-)
openssh-3.8.1p1.tar.gz
openssl-0.9.7d.tar.gz
patch-2.5.4.tar.gz*
perl-5.8.4.tar.bz2
procinfo-18.tar.gz*
procps-3.2.0.tar.gz
psmisc-21.5.tar.gz
sed-4.1.tar.gz
shadow-4.0.4.1.tar.bz2
shadow-4.0.4.1.xmalloc.patch.gz
sysklogd-1.4.1.man-dir.patch.gz
sysklogd-1.4.1.optimization.patch.gz
sysklogd-1.4.1.signal.patch.gz
sysklogd-1.4.1.tar.gz*
sysvinit-2.85.tar.gz
tar-1.14.tar.gz
tcl8.4.6-src.tar.gz
texinfo-4.7.tar.bz2
util-linux-2.12.tar.gz
which-2.16.tar.gz
zlib-1.2.1.tar.bz2


More information about the lfs-dev mailing list