From owner-freebsd-current@freebsd.org Wed Mar 14 17:39:15 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 21FAFF2DA46 for ; Wed, 14 Mar 2018 17:39:15 +0000 (UTC) (envelope-from wlosh@bsdimp.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 A3FAE6CEB6 for ; Wed, 14 Mar 2018 17:39:14 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mailman.ysv.freebsd.org (Postfix) id 5B1E4F2DA44; Wed, 14 Mar 2018 17:39:14 +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 1E3E0F2DA42 for ; Wed, 14 Mar 2018 17:39:14 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-io0-x22b.google.com (mail-io0-x22b.google.com [IPv6:2607:f8b0:4001:c06::22b]) (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 A143B6CEB0 for ; Wed, 14 Mar 2018 17:39:13 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-io0-x22b.google.com with SMTP id m22so5302414iob.12 for ; Wed, 14 Mar 2018 10:39:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=dG568dSp2hB8cH5QatXBsbpoHX60J4+rnLJp3D+4zJY=; b=R/oF7cxnM/vyAgwiki48GxCuEiu/hsGAnP2thxYuUtY2J9zwejDgJjAuUIDn1Dld6Z otXNgaf5ZGe+VcHojIWTrQUSSk5o4OQ4WsEqAvl9hvmQBkIuJEK/FK6fh70kbzBzLZ0V j9W4ZdSqqCZNJ81MNB2tIfxwldvs/EJ5BgVcC2DKw0N3E/6IxPyNhNeUfne8gSC60seq QBG6EGJvLskPILeck0UQZAxOK0n3oKyUeL5KvdbGc6zfj1q7mdGFnlUD9/F3M/8fUWvX Q5zDqW+Lz7gJXEVRkV6QwaiToLNvExJIesSolAReqej9SltGLKfQaMLc7KT+dtfZImTE mBjw== 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=dG568dSp2hB8cH5QatXBsbpoHX60J4+rnLJp3D+4zJY=; b=lFVe/RaKyelUhLLAZVdpz7+Tq9R4zFuwsBVbN0i5C+qosOunKFnMf4/8sZsRDfti1B IOoquKi9CMqcRuB6C44UaKldGIGXKW+RjtxP8cR4p1UacBqp4BcehnmGe/B5EBCNBQbs VefVRUm309/mumsWgf2GbuWnTjHF/QJAk9H2u4OjXUKjgaWF/X0spcklq1v8GhucdeM3 IPApIZ1x/4bG6evWiPZYKgGj7bw4oxOqn3Q2X46VDRnLBrLatolaMG03Xr2nGUXpRFG4 UTMMGCytqDLbQEfUK7KxDo4TDrYkHEv2eNcoKaeuPrwlhKEFeMgrKMtfLKLNZxret1B4 2owQ== X-Gm-Message-State: AElRT7ES9E5f1b0BfA5+fHBY4TKYwKjB7jBwTdyXKLn4N/FIc1Ui0FW1 dmzCug7z2rytHz6wJ7K2vLi5VXXhx+4C5KN4myNC8Q== X-Google-Smtp-Source: AG47ELvD/w5ii789ccKVp4ezgG7hnuJVscGkcC8mBemJuObMT7/AECr7JRWpPSkpfsMV6MjsDzgP2P4o0shwci2xH3Q= X-Received: by 10.107.18.162 with SMTP id 34mr5607824ios.168.1521049152835; Wed, 14 Mar 2018 10:39:12 -0700 (PDT) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.203.196 with HTTP; Wed, 14 Mar 2018 10:39:12 -0700 (PDT) X-Originating-IP: [2603:300b:6:5100:1052:acc7:f9de:2b6d] In-Reply-To: References: <20180313084010.GA13194@brick> <6A1A6820-5A7E-410F-8C0F-F049CDBD9E4A@cs.huji.ac.il> <4c4f2a9c-be75-29f1-3ec6-d1ac774b0015@FreeBSD.org> From: Warner Losh Date: Wed, 14 Mar 2018 11:39:12 -0600 X-Google-Sender-Auth: DnTVjy4sUPMVWs2rXhH7_VYSazc Message-ID: Subject: Re: devdmatch: Can't read linker file. To: Edward Napierala 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 17:39:15 -0000 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 nativ= e >>> host and fix things that way. Nobody has care enough to do that, though >>> 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 due >>>> 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 >>>>>> > >>>>>>> >>>>>> wrote: >>>>>> >>>>>>> >>>>>>> Hi, >>>>>>>> the above i get on arm/nanopi-neo. (it=E2=80=99s the only platform= 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" >>> >>> >