ELF binary type "3" not known.

Chris H bsd-lists at bsdforge.com
Tue Mar 21 05:42:36 UTC 2017


On Mon, 20 Mar 2017 22:32:53 -0700 (PDT) Don Lewis <truckman at FreeBSD.org> wrote

> On 20 Mar, Chris H wrote:
> > I'm not sure which of the two lists I'm directing
> > this to is the best/correct one. So I picked both.
> > 
> > To the point; I received this message during a big
> > build session. I was only able to catch the one from
> > x11/nvidia-driver in such a way as to actually get
> > the entire message:
> > 
> > Installing nvidia-driver-375.26_1...
> > ELF binary type "3" not known.
> > /bin/sh: /compat/linux/sbin/ldconfig: Exec format error
> > 
> > I built && installed emulators/linux_base-c7 *prior*
> > to installing this. This is on a:
> > 
> > FreeBSD 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r314700:
> > Sun Mar 5 09:01:30 PST 2017 amd64
> > 
> > Should I anticipate any problems? All and all, it seems
> > to work. But are there going to be some subtle repercussions?
> > 
> > Is this a 32bit-v-64bit problem with linux_base || the nvidia
> > blob?
> 
> You should have these kernel modules loaded:
> 
> %kldstat | grep linux
>  5    1 0xffffffff82643000 ac488    linux.ko
>  6    4 0xffffffff826f0000 e5d0     linux_common.ko
>  7    1 0xffffffff826ff000 99bb8    linux64.ko
> 
> They will get loaded on boot if you have this in /boot/loader.conf:
> 
> linux_load="YES"
> linux64_load="YES"
Thanks for the reply, Don.

this is what I have:
# kldstat
Id Refs Address            Size     Name
 1   20 0xffffffff80200000 13c1810  kernel
 2    3 0xffffffff815c3000 ac568    linux.ko
 3    3 0xffffffff81670000 e000     linux_common.ko
 4    1 0xffffffff8167e000 115128   nvidia-modeset.ko
 5    2 0xffffffff81794000 ff44b8   nvidia.ko
 6    1 0xffffffff82d11000 a954     linprocfs.ko

Which seems to be missing linux64.ko

Looks like I'll need to add it to loader.conf(5)
and seems to me to explain the error message.

Should I rebuild/install the nvidia-driver?

Thanks again, Don!

--Chris




More information about the freebsd-current mailing list