Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: trouble installing grub on -current amd64



# mv ld.elf_so ld.elf_so.bak
# cp /emul/netbsd32/libexec/ld.elf_so ld.elf_so
# file ld.elf_so
ld.elf_so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), for NetBSD 4.0, not stripped
# ktrace -f grub.out /usr/pkg/sbin/grub-install /dev/rwd0d
Probing devices to guess BIOS drives. This may take a long time.
Installation finished. No error reported.
This is the contents of the device map /grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(fd0)   /dev/rfd0a
(hd0)   /dev/rwd0d

This problem is solved. Now I will proceed to address the problem that prompted me to install
-current  in the  first place.

P.S. I was very very close to submitting a PR and installing i386. Thanks for all your help.



On Thu, Jun 19, 2008 at 2:58 PM, David Laight <david%l8s.co.uk@localhost> wrote:
On Thu, Jun 19, 2008 at 09:06:13PM +0000, Michael van Elst wrote:
> michael%schmong.org@localhost ("Michael Litchard") writes:
>
> >here's what I see right now
> >25000      1 sh       NAMI  "/usr/pkg/sbin/grub"
> > 25000      1 sh       NAMI  "/emul/netbsd32"
> > 25000      1 sh       NAMI  "/emul/netbsd32/usr/libexec/ld.elf_so"
> > 25000      1 sh       NAMI  "/usr/libexec/ld.elf_so"
> > 25000      1 sh       RET   execve -1 errno 8 Exec format error
>
> >and
> ># file /emul/netbsd32/libexec/ld.elf_so
> >/emul/netbsd32/libexec/ld.elf_so: ELF 32-bit LSB shared object, Intel 80386,
> >version 1 (SYSV), for NetBSD 4.0, not stripped
> >this file seems to be the problem.
> >what next?
>
>
> Apparently
>
> /emul/netbsd32/usr/libexec/ld.elf_so   cannot be found
> /emul/netbsd32/libexec/ld.elf_so       is what 'file' can analyze
>
> /emul/netbsd32/usr/libexec/ld.elf_so
> should be a symlink to /libexec/ld.elf_so

namei() won't trace when it follows symlinks.
Have you checked what happens if you make a copy of the file?
The error might be elsewhere!

       David

--
David Laight: david%l8s.co.uk@localhost



Home | Main Index | Thread Index | Old Index