From owner-freebsd-current@freebsd.org Wed Mar 14 18:10:59 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B6398F3153A for ; Wed, 14 Mar 2018 18:10:59 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 3FC4F6EB10 for ; Wed, 14 Mar 2018 18:10:59 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id EE25EF31539; Wed, 14 Mar 2018 18:10:58 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B1CD5F31538 for ; Wed, 14 Mar 2018 18:10:58 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: from mail-vk0-x230.google.com (mail-vk0-x230.google.com [IPv6:2607:f8b0:400c:c05::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 452B86EAFC; Wed, 14 Mar 2018 18:10:58 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: by mail-vk0-x230.google.com with SMTP id t126so2560992vkb.11; Wed, 14 Mar 2018 11:10:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=aJeo1YCd4ngBWSRN2GIPkULJs6ybJI4DvRAwC9Rm6es=; b=SkRw0AR4Ga+CMa3valoxhshZhg+9Gl2r9rMB2gdMvbrqlcNm5Ca1AaWAjPyuKimAGD MW5EPlj0cte61cb+5fx/mO9IB1byefWJuFyEnHnZj/oIJ1GsQSIoBt6GO2Locp+xpGlf Bm9KTmLdOMN1ZGdTCZT/uMMeF2T/nk/bdd7gz5Rrw69dkb2lMkjm7/zlvBGIpOhYsA70 kKa104u75LoTM3yiEvniwtK7JEvIMf8lhWvGQLHrIKnAxY530kux+yLQ6cJTUb4REcPa IUDbla3yzBMWZAg9ifX8SF47yvQo0AlGOKUwtW3U4xcNq6FHk4aHjBNXmNT0ha8URUTi iUeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=aJeo1YCd4ngBWSRN2GIPkULJs6ybJI4DvRAwC9Rm6es=; b=MugvMBh76R/u3RnizGM8ymo5v+HX+yiZlDntbCDlF+Kt8zbtthBSXOlbj1KtENW6Nx Bjvs2dAnBBj1H/Vyy+p2hJ1W7vyJnGg83TXZUVhdbfgUuvt24E9Di1ZGOAalU4ckkGbM E8MitvBCEjRFF5BefoY9f6ZKqTjr/sc04aSgJbyILVI5Ceb6T2RLQc5e10NjhHSLhcWD Y4P1jcvXHirjw74JR7DAomsUbyDPbOvTERxWHHu/s7m3hBDNshXynl2VjRr//YAdx+Pw EGMDQlg4pCwmCkhL0XZ5ROVzqC2B/uEBkKyV9AAjpxp5RcEJ+xLyeR1CPw+mwBrvAj8y Hy4g== X-Gm-Message-State: AElRT7E7UW2sWC0ogqCkojdGr+osNBKdhOGOfVyQazBP4yrqwIQ4fG0A /0OJw3PFTeyX5P7JL9g2ApuOUmzoRrVmKw5sR6N0VA== X-Google-Smtp-Source: AG47ELt+BNlQ3vnFDQayCglYQ/oyludm83qDwuD2GJiLfQaBqkv6ouuEYyqLx8UFVkeu6sv7OMAYOeJXuRaUILAwZ6o= X-Received: by 10.31.151.7 with SMTP id z7mr4256411vkd.113.1521051057610; Wed, 14 Mar 2018 11:10:57 -0700 (PDT) MIME-Version: 1.0 Sender: etnapierala@gmail.com Received: by 10.176.9.79 with HTTP; Wed, 14 Mar 2018 11:10:57 -0700 (PDT) In-Reply-To: References: <20180313084010.GA13194@brick> <6A1A6820-5A7E-410F-8C0F-F049CDBD9E4A@cs.huji.ac.il> <4c4f2a9c-be75-29f1-3ec6-d1ac774b0015@FreeBSD.org> From: Edward Napierala Date: Wed, 14 Mar 2018 18:10:57 +0000 X-Google-Sender-Auth: diBNKvUVxDgGgOv3UVhNL1X0hnw Message-ID: Subject: Re: devdmatch: Can't read linker file. To: Warner Losh Cc: Steve Wills , Daniel Braniss , FreeBSD Current Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 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: Wed, 14 Mar 2018 18:11:00 -0000 While making kldxref(8) crossarch-capable would be the best solution, it's also the most time consuming. The kldxref rc script doesn't do anything if the linker.hints file already exists, so it shouldn't be much of a problem. 2018-03-14 17:39 GMT+00:00 Warner Losh : > I wouldn't. It make read-only root a pain in the back side.... Better to > fix kldxref to be a build tool that can cope. > > And it isn't something that needs to be done on every boot. > > > On Wed, Mar 14, 2018 at 11:05 AM, Edward Napierala > wrote: > >> Hm. Perhaps we should make kldxref_enable default to YES by default >> on all platforms, then? The overhead is pretty much none when it has >> nothing to do - it won't try to recreate the linker.hints if it already >> exists. >> >> 2018-03-14 17:01 GMT+00:00 Steve Wills : >> >>> FWIW, I ran into this issue on an i386 image I built from an amd64 host >>> using poudriere and poudriere image. >>> >>> Steve >>> >>> >>> On 03/13/2018 14:44, Warner Losh wrote: >>> >>>> Makes sense. I'd forgotten that kldxref can't do cross-platform >>>> stuff.... >>>> One could arrange to build it targeting arch X but running on the nati= ve >>>> host and fix things that way. Nobody has care enough to do that, thoug= h >>>> perhaps this gives us a use case for why one might want to try. >>>> >>>> Warner >>>> >>>> On Tue, Mar 13, 2018 at 11:41 AM, Daniel Braniss >>>> wrote: >>>> >>>> >>>>> >>>>> On 13 Mar 2018, at 19:12, Edward Napierala wrote: >>>>> >>>>> I think it's only needed for kernels that are cross-built. That's du= e >>>>> to >>>>> kldxref(8) being unable to handle kernels for other architectures. >>>>> >>>>> my case exactly. >>>>> >>>>> 2018-03-13 13:34 GMT+00:00 Warner Losh : >>>>> >>>>> I wonder why that isn't the default, or why the linker.hints isn't at >>>>>> least >>>>>> created by the make installkernel step... >>>>>> >>>>>> Warner >>>>>> >>>>>> On Tue, Mar 13, 2018 at 2:40 AM, Edward Tomasz Napiera=C5=82a < >>>>>> trasz@freebsd.org> >>>>>> wrote: >>>>>> >>>>>> FWIW, it seems to be a common problem, see >>>>>>> https://reviews.freebsd.org/ >>>>>>> D14534. >>>>>>> >>>>>>> On 0312T1027, Warner Losh wrote: >>>>>>> >>>>>>>> Well, is there a /boot/kernel/linker.hints? >>>>>>>> >>>>>>>> Warner >>>>>>>> >>>>>>>> On Mon, Mar 12, 2018 at 9:56 AM, Daniel Braniss < >>>>>>>> danny@cs.huji.ac.il> >>>>>>>> >>>>>>> wrote: >>>>>>> >>>>>>>> >>>>>>>> Hi, >>>>>>>>> the above i get on arm/nanopi-neo. (it=E2=80=99s the only platfor= m I run >>>>>>>>> >>>>>>>> current >>>>>>> >>>>>>>> :-) >>>>>>>>> >>>>>>>>> cheers, >>>>>>>>> danny >>>>>>>>> >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>> freebsd-current@freebsd.org mailing list >>>>>>>> https://lists.freebsd.org/mailman/listinfo/freebsd-current >>>>>>>> To unsubscribe, send any mail to "freebsd-current-unsubscribe@ >>>>>>>> >>>>>>> freebsd.org" >>>>>>> >>>>>>> _______________________________________________ >>>>>> freebsd-current@freebsd.org mailing list >>>>>> https://lists.freebsd.org/mailman/listinfo/freebsd-current >>>>>> To unsubscribe, send any mail to "freebsd-current-unsubscribe@f >>>>>> reebsd.org >>>>>> " >>>>>> >>>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>> freebsd-current@freebsd.org mailing list >>>> https://lists.freebsd.org/mailman/listinfo/freebsd-current >>>> To unsubscribe, send any mail to "freebsd-current-unsubscribe@f >>>> reebsd.org" >>>> >>>> >> >