From owner-freebsd-current@freebsd.org Tue Mar 21 05:42:36 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7906CD16E72; Tue, 21 Mar 2017 05:42:36 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: from udns.ultimatedns.net (static-24-113-41-81.wavecable.com [24.113.41.81]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5B5141C2E; Tue, 21 Mar 2017 05:42:35 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: from ultimatedns.net (localhost [127.0.0.1]) by udns.ultimatedns.net (8.14.9/8.14.9) with ESMTP id v2L5gfnt003767; Mon, 20 Mar 2017 22:42:47 -0700 (PDT) (envelope-from bsd-lists@bsdforge.com) To: Don Lewis Cc: freebsd-ports@FreeBSD.org, In-Reply-To: <201703210532.v2L5WrHQ076773@gw.catspoiler.org> References: <201703210532.v2L5WrHQ076773@gw.catspoiler.org> From: "Chris H" Subject: Re: ELF binary type "3" not known. Date: Mon, 20 Mar 2017 22:42:47 -0700 Content-Type: text/plain; charset=UTF-8; format=fixed MIME-Version: 1.0 Message-id: Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Mar 2017 05:42:36 -0000 On Mon, 20 Mar 2017 22:32:53 -0700 (PDT) Don Lewis 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