From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753177AbbDADNu (ORCPT ); Tue, 31 Mar 2015 23:13:50 -0400 Received: from bh-25.webhostbox.net ([208.91.199.152]:49533 "EHLO bh-25.webhostbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751746AbbDADNq (ORCPT ); Tue, 31 Mar 2015 23:13:46 -0400 Message-ID: <551B624F.9030808@roeck-us.net> Date: Tue, 31 Mar 2015 20:13:19 -0700 From: Guenter Roeck User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Michael Ellerman CC: Greg Kroah-Hartman , Stephen Rothwell , linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, Tony Lindgren , Felipe Balbi , Ard Biesheuvel , Russell King , Arnd Bergmann , Lad@roeck-us.net, Prabhakar , Thomas Gleixner , Daniel Mack , Mikko Perttunen , Thierry Reding Subject: Re: linux-next: Tree for Mar 31 (build failures and culprits) References: <20150401000221.21961ecd@canb.auug.org.au> <20150331161640.GA16540@roeck-us.net> <20150331230749.GA6564@kroah.com> <1427844281.4256.3.camel@ellerman.id.au> <551B557A.40805@roeck-us.net> <1427857291.4256.8.camel@ellerman.id.au> In-Reply-To: <1427857291.4256.8.camel@ellerman.id.au> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Authenticated_sender: linux@roeck-us.net X-OutGoing-Spam-Status: No, score=-1.0 X-CTCH-PVer: 0000001 X-CTCH-Spam: Unknown X-CTCH-VOD: Unknown X-CTCH-Flags: 0 X-CTCH-RefID: str=0001.0A020205.551B6269.00F9,ss=1,re=0.001,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 X-CTCH-Score: 0.001 X-CTCH-ScoreCust: 0.000 X-CTCH-Rules: C_4847, X-CTCH-SenderID: linux@roeck-us.net X-CTCH-SenderID-Flags: 0 X-CTCH-SenderID-TotalMessages: 11 X-CTCH-SenderID-TotalSpam: 0 X-CTCH-SenderID-TotalSuspected: 0 X-CTCH-SenderID-TotalConfirmed: 0 X-CTCH-SenderID-TotalBulk: 0 X-CTCH-SenderID-TotalVirus: 0 X-CTCH-SenderID-TotalRecipients: 0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bh-25.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roeck-us.net X-Get-Message-Sender-Via: bh-25.webhostbox.net: mailgid no entry from get_relayhosts_entry X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/31/2015 08:01 PM, Michael Ellerman wrote: > On Tue, 2015-03-31 at 19:18 -0700, Guenter Roeck wrote: >> On 03/31/2015 04:24 PM, Michael Ellerman wrote: >>> On Wed, 2015-04-01 at 01:07 +0200, Greg Kroah-Hartman wrote: >>>> On Tue, Mar 31, 2015 at 09:16:40AM -0700, Guenter Roeck wrote: >>>>> alpha:allmodconfig >>>>> mips:allmodconfig >>>>> >>>>> samples/kdbus/kdbus-workers.c: In function ‘prime_new’: >>>>> samples/kdbus/kdbus-workers.c:930:18: error: ‘__NR_memfd_create’ undeclared >>>>> (first use in this function) >>>>> p->fd = syscall(__NR_memfd_create, "prime-area", MFD_CLOEXEC); >>>>> >>>>> Looks like the kdbus example never worked for the affected architectures. >>>>> I don't build allmodconfig for all architectures, so other architectures >>>>> may be affected as well. >>>> >>>> You need 3.17 kernel headers to have memfd_create, not much the kdbus >>>> test code can do about that. You might want to update the kernel >>>> headers for these build boxes. >>> >>> Or just 'make headers_install' before building the samples should do it. >>> >> >> Sure, that works so well in a cross build environment. > > Well yeah it does, I do it all the time. > > But what you mean is that the samples are built with HOSTCC, so having the > cross headers doesn't help. > > The real problem here is samples, they shouldn't be built with the kernel, they > should be a separate thing, like the selftests. > I "solved" the problem by disabling CONFIG_SAMPLES in my alpha and mips builds. FWIW, I think (suspect) that the samples builder does the equivalent of "make headers_install" as part of the build process, but I don't have time to track it down. Guenter