Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 495DFE00C12; Sat, 8 Jul 2017 18:40:38 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from cpanel2.indieserve.net (cpanel2.indieserve.net [199.212.143.6]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id C07E6E00C05 for ; Sat, 8 Jul 2017 18:40:35 -0700 (PDT) Received: from cpec03f0ed08c7f-cm68b6fcf980b0.cpe.net.cable.rogers.com ([174.118.92.171]:40968 helo=localhost.localdomain) by cpanel2.indieserve.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1dU1D8-0004vA-Sf; Sat, 08 Jul 2017 21:40:34 -0400 Date: Sat, 8 Jul 2017 21:40:32 -0400 (EDT) From: "Robert P. J. Day" X-X-Sender: rpjday@localhost.localdomain To: Kursad Oney CW In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (LFD 67 2015-01-07) MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel2.indieserve.net X-AntiAbuse: Original Domain - yoctoproject.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - crashcourse.ca X-Get-Message-Sender-Via: cpanel2.indieserve.net: authenticated_id: rpjday+crashcourse.ca/only user confirmed/virtual account not confirmed X-Authenticated-Sender: cpanel2.indieserve.net: rpjday@crashcourse.ca X-Source: X-Source-Args: X-Source-Dir: Cc: "meta-freescale@yoctoproject.org" Subject: Re: building core-image-minimal fort1042d4rdb* failsbuilding hypervisor X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Jul 2017 01:40:38 -0000 Content-Type: text/plain; charset=US-ASCII On Sun, 9 Jul 2017, Kursad Oney CW wrote: > Robert, > > > to make a long story (hopefully) short, i was trying to build both > > the 32- and 64-bit versions of t1042d4rdb, and both failed in exactly > > the same place, trying to build the hypervisor recipe, so i'm open to > > suggestions (this is on a fully-updated fedora system): > > > > [...truncated...] > > | /home/rpjday/oe/builds/t1042d4rdb-64b/tmp/work/ppc64e5500-poky-linux/hypervisor/git-r3/git/libos/lib/sprintf.c: In function 'sprintf': > > | /home/rpjday/oe/builds/t1042d4rdb-64b/tmp/work/ppc64e5500-poky-linux/hypervisor/git-r3/git/libos/lib/sprintf.c:459:6: error: specified bound 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Werror=format-truncation=] > > | int ret = vsnprintf(buf, ULONG_MAX, str, args); > > | ^~~ > > | cc1: all warnings being treated as errors > > I think gcc is complaining about ULONG_MAX being the size argument. > Since vsnprintf() returns int, it can print at most LONG_MAX characters to > the buffer. I'd probably just change that argument to LONG_MAX. > > I believe the format-truncation flag is a gcc 7 thing. i suspected as much, but i'm curious as to why this error still exists, and wasn't flagged by regular build testing. i don't just want to hack the code without hearing from others as to why this issue exists. rday -- ======================================================================== Robert P. J. Day Ottawa, Ontario, CANADA http://crashcourse.ca Twitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday ========================================================================