From owner-freebsd-arm@freebsd.org Tue Jan 5 21:22:08 2016 Return-Path: Delivered-To: freebsd-arm@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 52570A62C2A for ; Tue, 5 Jan 2016 21:22:08 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qg0-x22e.google.com (mail-qg0-x22e.google.com [IPv6:2607:f8b0:400d:c04::22e]) (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 056C0185C for ; Tue, 5 Jan 2016 21:22:08 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qg0-x22e.google.com with SMTP id b35so158851759qge.0 for ; Tue, 05 Jan 2016 13:22:07 -0800 (PST) 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:date:message-id:subject :from:to:cc:content-type; bh=PbsMnvMLYxa342moJWWaa3tr1CzXbwBFh2t8YrF3qGM=; b=j1RuLe8n+XpIWGvVEUFyeKVy0OIiwyIsLUgpLNNHeX9qZCSeLbB28F5wNYS8w2dTnw aRmSYLYufXJHQusf75JRfBOhZ70zCdteXb6I0d4PpGXgLOKlenV3Imdu+hJ9jKQ+a+Xs q6gH7KdtSHYUM1kfmlpE1/f8CB28Rj6Dm1Yqwf4Z+DSW234krt+NU/IqPpFSqwHq8vVD JYpIxowUQmCZCUUGrgnn16smgSHmB62L7nlgjEaenpJdT/l+NlT9+nD3Di8uiVCAqTMQ EaYK+X3pWvd3vs7Bc1OooImKLwcIrHiT948IB2YllkVZWrois8JnWVwzcE/nYYAMH6T6 5ufQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=PbsMnvMLYxa342moJWWaa3tr1CzXbwBFh2t8YrF3qGM=; b=DgprMGDFIO1S8XtwYhBOdJcm6Rzm0kLEvQxHMyzhqlxkIDjPMqagy7nDjH6q031z6y fanE9C5Hdcc/zpRY5l/qM8/etTeT9RRyqFSbMCZXM/k9Kzp4I4Pz4AVyflKw4HjrdXgH TrDKkrOs3+IaAAO+yn3bR8Q4k2sIaJMMLIofRO0K0u38TlSZljmO7/Tq/bihi6hurBZG O8qJOWeaKitOM8TM8vWAj/lEbkl0ezxwFlFcFyHXrGktqSgv1bFl+ZvwEmra3s9HCki9 pFVn4E6WwkumSqaKyCCUzsZ2aLG5cj9kdvpfhopAVpkgwmf+YGDXwrE+djGcEQb923hz g+wg== X-Gm-Message-State: ALoCoQm2M+VCSic2CzbzJsxtFXPcUsdrk3AlaUMH74vWoBFYN1tAyDiZiOJxAZOXHImkKfOZT3pw97H+vrOiGjjomReWdz6GbQ== MIME-Version: 1.0 X-Received: by 10.140.250.70 with SMTP id v67mr134417140qhc.43.1452028927077; Tue, 05 Jan 2016 13:22:07 -0800 (PST) Sender: wlosh@bsdimp.com Received: by 10.140.27.181 with HTTP; Tue, 5 Jan 2016 13:22:06 -0800 (PST) X-Originating-IP: [2601:280:4900:3700:a188:e7cd:b123:bb4b] In-Reply-To: References: <568C1919.2090407@denninger.net> <568C1B27.3050206@denninger.net> <568C2258.1040605@denninger.net> <568C2A57.2070406@denninger.net> Date: Tue, 5 Jan 2016 14:22:06 -0700 X-Google-Sender-Auth: AbVXxgqIDzuXJljO04BVXyo8QiQ Message-ID: Subject: Re: How did I manage to break this?! From: Warner Losh To: Karl Denninger Cc: "freebsd-arm@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jan 2016 21:22:08 -0000 It looks like this is unintended fallout from the abi variation stuff I committed a few days ago. I've disabled that and can no longer reproduce your problem. Please try r293226 or newer. I'll keep this as a test case. Warner On Tue, Jan 5, 2016 at 1:42 PM, Warner Losh wrote: > I'm reasonably sure you are right: armv6hf isn't involved for either > one of us. It may be the pkg repo. There's a small chance that something > I did to the linker may have caused this. Lemme build an image w/o > the recent change to see if that's at fault. > > Warner > > On Tue, Jan 5, 2016 at 1:40 PM, Karl Denninger wrote: > >> I'm reasonably sure that armv6hf isn't involved; I canvassed the system >> that was updated and unless I missed something really ridiculous there's >> no hf-code left on the box. >> >> This looks like something got broken in the pkg repo that is being >> picked up by the pkg utility... I can of course build the ports myself >> but was hoping to not need to. >> >> On 1/5/2016 14:39, Warner Losh wrote: >> > On a newly built nanobsd image that I hacked to allow enough space to >> > install packages, >> > I've recreated this problem with armv6hf being in the loop at all. >> > >> > Warner >> > >> > On Tue, Jan 5, 2016 at 1:06 PM, Karl Denninger > > > wrote: >> > >> > $ readelf -h git >> > ELF Header: >> > Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 >> > Class: ELF32 >> > Data: 2's complement, little endian >> > Version: 1 (current) >> > OS/ABI: NONE >> > ABI Version: 0 >> > Type: EXEC (Executable file) >> > Machine: ARM >> > Version: 0x1 >> > Entry point address: 0xbe08 >> > Start of program headers: 52 (bytes into file) >> > Start of section headers: 1623892 (bytes into file) >> > Flags: 0x5000202, Version5 EABI, has >> > entry >> > point, software FP >> > Size of this header: 52 (bytes) >> > Size of program headers: 32 (bytes) >> > Number of program headers: 8 >> > Size of section headers: 40 (bytes) >> > Number of section headers: 28 >> > Section header string table index: 27 >> > >> > And the allegedly-not-there shared library: >> > >> > ELF Header: >> > Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 >> > Class: ELF32 >> > Data: 2's complement, little endian >> > Version: 1 (current) >> > OS/ABI: NONE >> > ABI Version: 0 >> > Type: DYN (Shared object file) >> > Machine: ARM >> > Version: 0x1 >> > Entry point address: 0x1830 >> > Start of program headers: 52 (bytes into file) >> > Start of section headers: 37324 (bytes into file) >> > Flags: 0x5000202, Version5 EABI, has >> > entry >> > point, software FP >> > Size of this header: 52 (bytes) >> > Size of program headers: 32 (bytes) >> > Number of program headers: 5 >> > Size of section headers: 40 (bytes) >> > Number of section headers: 29 >> > Section header string table index: 26 >> > >> > >> > >> > On 1/5/2016 14:00, Warner Losh wrote: >> > > what dpes readelf -h on all the affected files tell you? You're >> > most >> > > interested in the line: >> > > >> > > Flags: 0x5000202, Version5 EABI, has >> > > entry point, software FP >> > > >> > > >> > > Warner >> > > >> > > On Tue, Jan 5, 2016 at 12:36 PM, Karl Denninger >> > >> > > >> wrote: >> > > >> > > $ uname -v >> > > FreeBSD 11.0-CURRENT #0 r293189: Tue Jan 5 08:44:05 CST 2016 >> > > >> > karl@NewFS.denninger.net: >> /pics/CrossBuild/obj/arm.armv6/pics/CrossBuild/src/sys/RPI2 >> > > >> > > Built a few hours ago, svn'd this morning. rm -r'd both the >> > > object and >> > > export directories before starting to prevent the risk of a >> > > carry-over. >> > > >> > > And no, I pkg delete'd all the packages on the machine >> > (including pkg >> > > itself!) and then rm -r'd the entire /usr/local/lib directory, >> > > then used >> > > pkg to reload them. >> > > >> > > No chance they're leftovers. >> > > >> > > On 1/5/2016 13:33, Warner Losh wrote: >> > > > what revision are you at? >> > > > >> > > > Could these be left-over hard-float libraries? >> > > > >> > > > Warner >> > > > >> > > > On Tue, Jan 5, 2016 at 12:27 PM, Karl Denninger >> > > >> > > >> > > > >> > >>> wrote: >> > > > >> > > > Went back from arm6hf to arm6 on a Pi2 (cross-built the >> > > world and >> > > > kernel, then rsync'd it), and now I'm getting this >> > with two >> > > packages >> > > > that I loaded from the "pkg add" command (which, >> > > incidentally, was the >> > > > reason to do it in the first place, since arm6hf has >> > no package >> > > > repository) >> > > > >> > > > The system itself is running fine. >> > > > >> > > > $ git >> > > > Shared object "libintl.so.8" not found, required by >> "git" >> > > > >> > > > Bee-ess >> > > > >> > > > $ ldconfig -r|grep intl >> > > > 134:-lintl.8 => /usr/local/lib/libintl.so.8 >> > > > 135:-lintl.9 => /usr/local/lib/libintl.so.9 >> > > > >> > > > $ ls -al /usr/local/lib/*intl* >> > > > -rw-r--r-- 1 root wheel 74122 Dec 7 12:58 >> > > /usr/local/lib/libintl.a >> > > > lrwxr-xr-x 1 root wheel 16 Dec 7 12:58 >> > > > /usr/local/lib/libintl.so >> > > > -> libintl.so.8.1.4 >> > > > lrwxr-xr-x 1 root wheel 16 Dec 7 12:58 >> > > > /usr/local/lib/libintl.so.8 -> libintl.so.8.1.4 >> > > > -rw-r--r-- 1 root wheel 51832 Dec 7 12:58 >> > > > /usr/local/lib/libintl.so.8.1.4 >> > > > lrwxr-xr-x 1 root wheel 12 Dec 7 12:58 >> > > > /usr/local/lib/libintl.so.9 -> libintl.so.8 >> > > > >> > > > That all came in from the pkg add, so why is the loader >> > > > complaining that >> > > > libintl.so.8 not there? Incidentally, bash throws up >> > on the >> > > same >> > > > error. >> > > > >> > > > -- >> > > > Karl Denninger >> > > > karl@denninger.net >> > > >> > > >> > >> >> > > > >> > > >> > > >> > >>> >> > > > /The Market Ticker/ >> > > > /[S/MIME encrypted email preferred]/ >> > > > >> > > > >> > > >> > > -- >> > > Karl Denninger >> > > karl@denninger.net >> > > >> > > >> > >> >> > > /The Market Ticker/ >> > > /[S/MIME encrypted email preferred]/ >> > > >> > > >> > >> > -- >> > Karl Denninger >> > karl@denninger.net >> > > >> > /The Market Ticker/ >> > /[S/MIME encrypted email preferred]/ >> > >> > >> >> -- >> Karl Denninger >> karl@denninger.net >> /The Market Ticker/ >> /[S/MIME encrypted email preferred]/ >> > >