From owner-freebsd-current@freebsd.org Sun Aug 6 09:35:01 2017 Return-Path: Delivered-To: freebsd-current@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 B8D33DCEA1B for ; Sun, 6 Aug 2017 09:35:01 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-it0-x22d.google.com (mail-it0-x22d.google.com [IPv6:2607:f8b0:4001:c0b::22d]) (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 7FA907EFED; Sun, 6 Aug 2017 09:35:01 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by mail-it0-x22d.google.com with SMTP id m34so7497903iti.1; Sun, 06 Aug 2017 02:35:01 -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=CcJWAiIzaR8zx0ukUz7XHQP/mAwdTlu1LU7825JwPTo=; b=KKUdwx/23yUYx5Qm0RlB1HCG5YLKNjegklL8iNQqeblRAIpp02rXBPFyQ0VOVQyN1H pSbUya0d4bClOrqwRvZgBJdf0EsQrMEvoGQt9AINgwzetzhsClsYoMFb1Vzr3gDqh0hA 3q7B6kpZOJGnrrtlt64lUWsk0EkTezASPA2JN8+OTZg6wqFn59Arw4ixt/UXo2OHE9Vx bfavdSFTME4UfRAE5ruthE3OCcJTOSysi1YfV0o0kALvtxkRVYInK0mDCPuTs9Hh+xJp Sm9OSiLFxv0BTpxWJB2CuDjK7y0AeiMk0B1ZdO7DVlBix7huusOTqi9jG5tkDfdZngmi 9vOg== 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=CcJWAiIzaR8zx0ukUz7XHQP/mAwdTlu1LU7825JwPTo=; b=P7pdN2VVt5H8i1U3IIQnpJPilq/G/8mT1ucMCJkLxCCvo42/L8Ps1gRBzVXvj3kuVm RBOghfc0mZIDK+mKA+Z/dc6JSq+vJjzas7sk088BzkNWKDT9NhLhEB5wNxAY6jR/ioqf 49K06IOeWjMdQ8txaizX7yOBupf78OgNZXxCLmfEE8H4IIyJ0Ykkvcx+uhtMxS7DfMIs nLoYk5i3H0WrT1yoN3Qj8lnXwI1Ss6SaeNPRiavw2er+KttO87O5jkJxw7IHaE+B9dC4 bBiDT9Xh9Pvfdkrg066jozYNXsDWkm5ktpoai40zAVby5ZH29HZ4johQNDELptY3CywI ER7Q== X-Gm-Message-State: AIVw110Cqy5OMyyjPQpjkNWsDjm1nghJMXDPqlitC0idUG2qB+n25lCb 4CoJAA4Rhfs4pRM44jBWQlJuZL/KShHE X-Received: by 10.36.165.5 with SMTP id k5mr467674itf.64.1502012100745; Sun, 06 Aug 2017 02:35:00 -0700 (PDT) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 10.107.24.66 with HTTP; Sun, 6 Aug 2017 02:34:40 -0700 (PDT) In-Reply-To: <37395FD6-09E5-4C11-A189-7B3050E9A541@FreeBSD.org> References: <9C14A21D-1C17-44F9-882B-4A01C311E164@FreeBSD.org> <37395FD6-09E5-4C11-A189-7B3050E9A541@FreeBSD.org> From: Ed Maste Date: Sun, 6 Aug 2017 05:34:40 -0400 X-Google-Sender-Auth: trGAEQ28hOW7YvDHgJf3H9B0x1o Message-ID: Subject: Re: buildworld fails while building static clang library To: Dimitry Andric Cc: Aijaz Baig , FreeBSD Current Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Sun, 06 Aug 2017 09:35:01 -0000 On 5 August 2017 at 16:16, Dimitry Andric wrote: > > I remember there being an issue with ar and/or ranlib choking when the > .a files become too big. Ed, does that ring any bells? Our ar (and ranlib, which is the same binary) will produce a corrupt symbol table if the .a archive output is larger than 4GB, because we support only 32-bit offsets in the older "/" symbol table format, not the "/SYM64/" format and 64-bit offsets. As with GNU ar from binutils 2.17.50 we silently truncate if the offset does not fit in 32 bits. I'll have a patch for review soon to exit on error rather than produce corrupted output, and hope to look at adding /SYM64/ support later on.