[Clfs-support] Fwd: Re: bin86 install and chroot(ABLE) test: x86_64 build

b-vol bvl at btconnect.com
Fri Jan 18 06:10:28 PST 2008


----------  Forwarded Message  ----------

Subject: Re: [Clfs-support] bin86 install and chroot(ABLE) test: x86_64 build
Date: Friday 18 January 2008
From: b-vol <bvl at btconnect.com>
To: CLFS Support <clfs-support at lists.cross-lfs.org>

On Thursday 17 January 2008 06:27:41 pm Ken Moffat wrote:
> On Thu, Jan 17, 2008 at 05:07:08PM +0000, b-vol wrote:
> > Greetings
> >
> >
> > ###########  7.12. Bin86-0.16.17
> >
> > its a good idea to put the following two lines in any update of the book
> > otherwise lilo will not install:
> >
> > cd /cross-tools/bin
> > ln -s /cross-tools/bin/x86_64-unknown-linux-gnu-as86
> > /cross-tools/bin/as86 ln -s
> > /cross-tools/bin/x86_64-unknown-linux-gnu-ld86 /cross-tools/bin/ld86
>
>  If I can quote from your posting yesterday:
> |############7.13. Lilo-22.8 install
> |
> |AS86 version 0.16.10 or later is required
> |as86 is not present
> |
> |LD86 version 0.16.10 or later is required
> |ld86 is not present
> |
> |BCC version 0.16.10 or later is recommended
> |bcc is not present
> |You will not be able to make floppy2, diag2.img, or lilo.com
> |make: *** [test.img] Error 1
> |
> |#########
>
>  You made me start to question whether this version of the book had
> become broken, so I looked at the patch for lilo, and it hardcodes
> the prefix as x86_64-unknown-linux-gnu which matches the value shown
> in section 5.4.
>
>  If I try to build lilo on he ppc I'm currently using,
> unsurprisingly it fails to boot, but my messages are a little
> different from yours:
> ken at AD5 ~/lilo-22.8 $make lilo.static
> ./checkit
> GCC version 2.91 or later is required
> gcc version 4.2.2
> OKAY
>
> AS86 version 0.16.10 or later is required
> x86_64-unknown-linux-gnu-as86 is not present
>
> LD86 version 0.16.10 or later is required
> x86_64-unknown-linux-gnu-ld86 is not present
>
> BCC version 0.16.10 or later is recommended
> bcc is not present
> You will not be able to make floppy2, diag2.img, or lilo.com
> make: *** [test.img] Error 1
>
>  So it's clear that you didn't apply the patch.

root:/home/clfs# cd '/mnt/clfs/cross-tools/bin'
root:/mnt/clfs/cross-tools/bin#
root:/mnt/clfs/cross-tools/bin#
root:/mnt/clfs/cross-tools/bin# rm as86
rm: remove symbolic link `as86'? yes
root:/mnt/clfs/cross-tools/bin#
root:/mnt/clfs/cross-tools/bin# rm ld86
rm: remove symbolic link `ld86'? yes
root:/mnt/clfs/cross-tools/bin#
root:/mnt/clfs/cross-tools/bin#
root:/mnt/clfs/cross-tools/bin# cd '/mnt/clfs/sources-clfsX64Jn08'
root:/mnt/clfs/sources-clfsX64Jn08# tar xzvf lilo-22.8.src.tar.gz
lilo-22.8/README
lilo-22.8/README.bitmaps
lilo-22.8/README.common.problems
lilo-22.8/README.disk
lilo-22.8/README.nokeyboard
lilo-22.8/README.pseudo
lilo-22.8/README.raid1
lilo-22.8/README.volumeID
lilo-22.8/INCOMPAT
lilo-22.8/CHANGES
lilo-22.8/COPYING
lilo-22.8/COPYRIGHT
lilo-22.8/QuickInst
lilo-22.8/lilo.lsm
lilo-22.8/checkit
lilo-22.8/Makefile
lilo-22.8/bdata.h
lilo-22.8/bitmap.h
lilo-22.8/boot.h
lilo-22.8/bsect.h
lilo-22.8/cfg.h
lilo-22.8/common.h
lilo-22.8/config.h
lilo-22.8/device.h
lilo-22.8/edit.h
lilo-22.8/geometry.h
lilo-22.8/identify.h
lilo-22.8/lilo.h
lilo-22.8/loader.h
lilo-22.8/map.h
lilo-22.8/md-int.h
lilo-22.8/partition.h
lilo-22.8/probe.h
lilo-22.8/raid.h
lilo-22.8/shs2.h
lilo-22.8/temp.h
lilo-22.8/version.h
lilo-22.8/vesainfo.h
lilo-22.8/activate.c
lilo-22.8/boot.c
lilo-22.8/bsect.c
lilo-22.8/cfg.c
lilo-22.8/common.c
lilo-22.8/device.c
lilo-22.8/edit.c
lilo-22.8/geometry.c
lilo-22.8/identify.c
lilo-22.8/lilo.c
lilo-22.8/map.c
lilo-22.8/partition.c
lilo-22.8/probe.c
lilo-22.8/raid.c
lilo-22.8/shs2.c
lilo-22.8/temp.c
lilo-22.8/biosdata.S
lilo-22.8/bitmap.S
lilo-22.8/bootsect.S
lilo-22.8/chain.S
lilo-22.8/crt.S
lilo-22.8/disk.S
lilo-22.8/display4.S
lilo-22.8/dparam.S
lilo-22.8/dump.S
lilo-22.8/first.S
lilo-22.8/graph.S
lilo-22.8/mapper.S
lilo-22.8/mbr.S
lilo-22.8/menu.S
lilo-22.8/pseudo.S
lilo-22.8/read.S
lilo-22.8/second.S
lilo-22.8/shs3.S
lilo-22.8/strlen.S
lilo-22.8/volume.S
lilo-22.8/mkbdist
lilo-22.8/mksdist
lilo-22.8/mkrescue
lilo-22.8/keytab-lilo.pl
lilo-22.8/sample/ins64a.bmp
lilo-22.8/sample/ins64a.dat
lilo-22.8/sample/logo64a.bmp
lilo-22.8/sample/logo64a.dat
lilo-22.8/sample/lilo.raid.conf
lilo-22.8/sample/lilo.sample.conf
lilo-22.8/sample/blue.bmp
lilo-22.8/sample/blue.dat
lilo-22.8/sample/README
lilo-22.8/diagnose/bios.c
lilo-22.8/diagnose/cprintf.c
lilo-22.8/diagnose/test4.c
lilo-22.8/diagnose/test5.c
lilo-22.8/diagnose/sector.S
lilo-22.8/diagnose/GPLicence
lilo-22.8/diagnose/LGPLicence
lilo-22.8/diagnose/README
lilo-22.8/diagnose/README.diagnostic
lilo-22.8/diagnose/Makefile
lilo-22.8/manPages/lilo.8
lilo-22.8/manPages/lilo.conf.5
lilo-22.8/manPages/mkrescue.8
lilo-22.8/dos/README
lilo-22.8/dos/Makefile
lilo-22.8/doc/README
lilo-22.8/doc/Makefile
lilo-22.8/doc/bootloader.tex
lilo-22.8/doc/image.tex
lilo-22.8/doc/map.tex
lilo-22.8/doc/other.tex
lilo-22.8/doc/parameter.tex
lilo-22.8/doc/tech.tex
lilo-22.8/doc/user.tex
lilo-22.8/doc/bootloader.fig
lilo-22.8/doc/image.fig
lilo-22.8/doc/map.fig
lilo-22.8/doc/other.fig
lilo-22.8/doc/parameter.fig
lilo-22.8/doc/fullpage.sty
lilo-22.8/doc/rlatex
lilo-22.8/doc/t2a.pl
root:/mnt/clfs/sources-clfsX64Jn08# cd lilo-22.8
root:/mnt/clfs/sources-clfsX64Jn08/lilo-22.8#
root:/mnt/clfs/sources-clfsX64Jn08# cd lilo-22.8
root:/mnt/clfs/sources-clfsX64Jn08/lilo-22.8# 
patch -Np1 -i ../patches-clfsX64Jn08/lilo-22.8-cross_compile_x86_64-1.patch
patching file Makefile
Hunk #1 succeeded at 109 with fuzz 2 (offset 15 lines).
Hunk #2 succeeded at 456 (offset 32 lines).
root:/mnt/clfs/sources-clfsX64Jn08/lilo-22.8# make lilo.static
./checkit
GCC version 2.91 or later is required
gcc version 4.1.2
OKAY

AS86 version 0.16.10 or later is required
as86 is not present

LD86 version 0.16.10 or later is required
ld86 is not present

BCC version 0.16.10 or later is recommended
bcc is not present
You will not be able to make floppy2, diag2.img, or lilo.com
make: *** [test.img] Error 1
root:/mnt/clfs/sources-clfsX64Jn08/lilo-22.8#

Please note   also  that  after  manually  placing  the links  for as86  and 
ld86 and  installing lilo;   a running lilo  looked for /etc/lilo.conf  not 
$CLFS/etc/lilo.conf.  This may be helpful  in any update of the patch.
 



> > clfs:~$ /tools/bin/gcc -v
> > /tools/bin/gcc: error while loading shared libraries: libgcc_s.so.1:
> > cannot open shared object file: No such file or directory
> > clfs:~$
> >
> > ##and libgcc_S.so.1 was not found
> >
> >
> > suggestions of a fix would be welcomed
>
>  My suggestion is that you do what it says in section 8.8, or if you
> think you have already done that, make sure all the symlinks are
> actually present in the correct directories, and also that the files
> they point to are present.
>
>  Perhaps I should point out that very little in the (trunk) books
> is optional.  So, make sure that you follow all the instructions,
> and take whatever measures will enable you to check that things
> worked.
>
>  If you are scripting the build, check the status ($?) of commands.
> If you are typing them in, you should be able to see the error
> messages when things fail.
>
> ĸen



-------------------------------------------------------



More information about the Clfs-support mailing list