From owner-freebsd-stable@freebsd.org Wed Jan 11 22:40:11 2017 Return-Path: Delivered-To: freebsd-stable@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 3C26DCABE74 for ; Wed, 11 Jan 2017 22:40:11 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C19371811 for ; Wed, 11 Jan 2017 22:40:10 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:7b8:3a7::7049:d69d:d97f:c66f] (unknown [IPv6:2001:7b8:3a7:0:7049:d69d:d97f:c66f]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 1CB6D25543; Wed, 11 Jan 2017 23:40:08 +0100 (CET) Content-Type: multipart/signed; boundary="Apple-Mail=_83952FD6-D0D9-43A7-9849-662618F5B091"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: 10.3-RELEASE-p13 "unsupported file layout" From: Dimitry Andric In-Reply-To: <63bc650f-60d3-4f24-0c5f-4b02f602e21d@m5p.com> Date: Wed, 11 Jan 2017 23:40:07 +0100 Cc: FreeBSD Stable Mailing List Message-Id: <3095417A-E707-42C2-A3DA-F7E07AFED9F8@FreeBSD.org> References: <63bc650f-60d3-4f24-0c5f-4b02f602e21d@m5p.com> To: George Mitchell X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jan 2017 22:40:11 -0000 --Apple-Mail=_83952FD6-D0D9-43A7-9849-662618F5B091 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=windows-1252 On 11 Jan 2017, at 23:35, George Mitchell wrote: > > On 01/11/17 17:25, Dimitry Andric wrote: >> On 11 Jan 2017, at 21:24, George Mitchell wrote: ... >>> building shared library libc.so.7 >>> cc (a very long compile line) >>> ./libc.so.7: unsupported file layout >> >> If things went correctly, the libc.so.7 file should be in >> /usr/obj/usr/src/lib/libc. If so, can you post the output of: >> >> file /usr/obj/usr/src/lib/libc/libc.so.7 >> readelf -h /usr/obj/usr/src/lib/libc/libc.so.7 >> >> -Dimitry >> > root@sullivan:/usr/src # file /usr/obj/usr/src/lib/libc/libc.so.7 > /usr/obj/usr/src/lib/libc/libc.so.7: ELF 64-bit LSB shared object, > x86-64, version 1 (FreeBSD), dynamically linked, not stripped > root@sullivan:/usr/src # readelf -h /usr/obj/usr/src/lib/libc/libc.so.7 > ELF Header: > Magic: 7f 45 4c 46 02 01 01 09 00 00 00 00 00 00 00 00 > Class: ELF64 > Data: 2's complement, little endian > Version: 1 (current) > OS/ABI: UNIX - FreeBSD > ABI Version: 0 > Type: DYN (Shared object file) > Machine: Advanced Micro Devices X86-64 > Version: 0x1 > Entry point address: 0x3aee0 > Start of program headers: 64 (bytes into file) > Start of section headers: 1644696 (bytes into file) > Flags: 0x0 > Size of this header: 64 (bytes) > Size of program headers: 56 (bytes) > Number of program headers: 6 > Size of section headers: 64 (bytes) > Number of section headers: 40 > Section header string table index: 37 > > That isn't the only libc.so.7 in my build tree, though: > > /usr/obj/usr/src/tmp/lib/libc.so.7: ELF 64-bit LSB shared object, > x86-64, version 1 (FreeBSD), dynamically linked, not stripped > /usr/obj/usr/src/lib/libc/libc.so.7: ELF 64-bit LSB shared object, > x86-64, version 1 (FreeBSD), dynamically linked, not stripped > /usr/obj/lib32/usr/src/lib/libc/libc.so.7: ELF 32-bit LSB shared object, > Intel 80386, version 1 (FreeBSD), dynamically linked, not stripped Hm, that all looks perfectly normal, supposing that you are on amd64. Maybe it's the stripping that fails? Do you have STRIP defined in your environment, or make.conf? -Dimitry --Apple-Mail=_83952FD6-D0D9-43A7-9849-662618F5B091 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.30 iEYEARECAAYFAlh2tEcACgkQsF6jCi4glqMt6QCgpZjlSMtEvSPpf72sb2BheqZG EEAAnR1KCUxkUT/RrRu+885S6g5PXnNf =XyRj -----END PGP SIGNATURE----- --Apple-Mail=_83952FD6-D0D9-43A7-9849-662618F5B091--