Re: ELF binary type "3" not known.

2017-03-21 Thread Chris H
On Tue, 21 Mar 2017 13:47:23 +0100 Gary Jennejohn <gljennj...@gmail.com> wrote

> On Tue, 21 Mar 2017 10:15:35 +0100
> Mathieu Arnold <m...@freebsd.org> wrote:
> 
> > Le 21/03/2017 __ 06:22, Chris H a __crit :
> > > On Tue, 21 Mar 2017 13:14:56 +0800 Kevin Lo <ke...@freebsd.org> wrote
> > >  
> > >> On Mon, Mar 20, 2017 at 09:11:44PM -0700, Chris H wrote:  
> > >>> On Mon, 20 Mar 2017 20:56:05 -0700 "Chris H" <bsd-li...@bsdforge.com>
> > >>> 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  
> > >>> Sorry. Forgot to add the ports revision.
> > >>>
> > >>> revision 435383  
> > >> Did you do kldload linux64 ?  
> > > Thanks for the reply, Kevin.
> > > Yes. Both before building/installing nvidia-driver,
> > > and via loader.conf(5):
> > >
> > > linux_load="YES"
> > > nvidia-modeset_load="YES"
> > >  
> > 
> > So your answer is not "Yes" but "No", you don't have linux64, you need
> > linux64_load=yes too.
> > 
> 
> Or remove the option for Linux support (make config).  I've never
> used it myself and have no idea what benefits it's supposed to
> provide.
> 
> That would eliminate your Linux problems re nvidia-driver.
Last I checked (actually read all the data), the Linux ABI is
pretty much a requirement. As it's (nvidia-driver) actually the
Linux (version of the) driver. But since FreeBSD (can) supports
the Linux ABI, it just "works".
> 
> -- 
> Gary Jennejohn

Thanks for taking the time to reply, Gary.

--Chris


___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: ELF binary type "3" not known.

2017-03-21 Thread Gary Jennejohn
On Tue, 21 Mar 2017 10:15:35 +0100
Mathieu Arnold <m...@freebsd.org> wrote:

> Le 21/03/2017 __ 06:22, Chris H a __crit :
> > On Tue, 21 Mar 2017 13:14:56 +0800 Kevin Lo <ke...@freebsd.org> wrote
> >  
> >> On Mon, Mar 20, 2017 at 09:11:44PM -0700, Chris H wrote:  
> >>> On Mon, 20 Mar 2017 20:56:05 -0700 "Chris H" <bsd-li...@bsdforge.com> 
> >>> 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  
> >>> Sorry. Forgot to add the ports revision.
> >>>
> >>> revision 435383  
> >> Did you do kldload linux64 ?  
> > Thanks for the reply, Kevin.
> > Yes. Both before building/installing nvidia-driver,
> > and via loader.conf(5):
> >
> > linux_load="YES"
> > nvidia-modeset_load="YES"
> >  
> 
> So your answer is not "Yes" but "No", you don't have linux64, you need
> linux64_load=yes too.
> 

Or remove the option for Linux support (make config).  I've never
used it myself and have no idea what benefits it's supposed to
provide.

That would eliminate your Linux problems re nvidia-driver.

-- 
Gary Jennejohn
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: ELF binary type "3" not known.

2017-03-21 Thread Mathieu Arnold
Le 21/03/2017 à 06:22, Chris H a écrit :
> On Tue, 21 Mar 2017 13:14:56 +0800 Kevin Lo <ke...@freebsd.org> wrote
>
>> On Mon, Mar 20, 2017 at 09:11:44PM -0700, Chris H wrote:
>>> On Mon, 20 Mar 2017 20:56:05 -0700 "Chris H" <bsd-li...@bsdforge.com> 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
>>> Sorry. Forgot to add the ports revision.
>>>
>>> revision 435383
>> Did you do kldload linux64 ?
> Thanks for the reply, Kevin.
> Yes. Both before building/installing nvidia-driver,
> and via loader.conf(5):
>
> linux_load="YES"
> nvidia-modeset_load="YES"
>

So your answer is not "Yes" but "No", you don't have linux64, you need
linux64_load=yes too.


-- 
Mathieu Arnold




signature.asc
Description: OpenPGP digital signature


Re: ELF binary type "3" not known.

2017-03-20 Thread Chris H
On Mon, 20 Mar 2017 22:32:53 -0700 (PDT) Don Lewis <truck...@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
>  51 0x82643000 ac488linux.ko
>  64 0x826f e5d0 linux_common.ko
>  71 0x826ff000 99bb8linux64.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 AddressSize Name
 1   20 0x8020 13c1810  kernel
 23 0x815c3000 ac568linux.ko
 33 0x8167 e000 linux_common.ko
 41 0x8167e000 115128   nvidia-modeset.ko
 52 0x81794000 ff44b8   nvidia.ko
 61 0x82d11000 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


___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: ELF binary type "3" not known.

2017-03-20 Thread Don Lewis
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
 51 0x82643000 ac488linux.ko
 64 0x826f e5d0 linux_common.ko
 71 0x826ff000 99bb8linux64.ko

They will get loaded on boot if you have this in /boot/loader.conf:

linux_load="YES"
linux64_load="YES"

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: ELF binary type "3" not known.

2017-03-20 Thread Chris H
On Tue, 21 Mar 2017 13:14:56 +0800 Kevin Lo <ke...@freebsd.org> wrote

> On Mon, Mar 20, 2017 at 09:11:44PM -0700, Chris H wrote:
> > 
> > On Mon, 20 Mar 2017 20:56:05 -0700 "Chris H" <bsd-li...@bsdforge.com> 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
> > Sorry. Forgot to add the ports revision.
> > 
> > revision 435383
> 
> Did you do kldload linux64 ?
Thanks for the reply, Kevin.
Yes. Both before building/installing nvidia-driver,
and via loader.conf(5):

linux_load="YES"
nvidia-modeset_load="YES"

Thanks again!

--Chris
> 
> > > 
> > > 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?
> > > 
> > > Thanks.
> > > 
> > > --Chris
> 
> Kevin
> ___
> freebsd-po...@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: ELF binary type "3" not known.

2017-03-20 Thread Kevin Lo
On Mon, Mar 20, 2017 at 09:11:44PM -0700, Chris H wrote:
> 
> On Mon, 20 Mar 2017 20:56:05 -0700 "Chris H" <bsd-li...@bsdforge.com> 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
> Sorry. Forgot to add the ports revision.
> 
> revision 435383

Did you do kldload linux64 ?

> > 
> > 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?
> > 
> > Thanks.
> > 
> > --Chris

Kevin
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: ELF binary type "3" not known.

2017-03-20 Thread O. Hartmann
On Mon, 20 Mar 2017 21:11:44 -0700
"Chris H" <bsd-li...@bsdforge.com> wrote:

> On Mon, 20 Mar 2017 20:56:05 -0700 "Chris H" <bsd-li...@bsdforge.com> 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  
> Sorry. Forgot to add the ports revision.
> 
> revision 435383
> 
> > 
> > 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?
> > 
> > Thanks.
> > 
> > --Chris
[...]

I see this in poudriere builds, too. I haven't seen with which builds this
occurs, but it occurs quite often.

oh
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: ELF binary type "3" not known.

2017-03-20 Thread Chris H
On Mon, 20 Mar 2017 20:56:05 -0700 "Chris H" <bsd-li...@bsdforge.com> 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
Sorry. Forgot to add the ports revision.

revision 435383

> 
> 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?
> 
> Thanks.
> 
> --Chris
> 
> 
> ___
> freebsd-po...@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


ELF binary type "3" not known.

2017-03-20 Thread Chris H
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?

Thanks.

--Chris


___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"