From patchwork Tue Aug 9 08:19:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Kujau X-Patchwork-Id: 9270575 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B4C6A60754 for ; Tue, 9 Aug 2016 08:19:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A5A3A1FFCA for ; Tue, 9 Aug 2016 08:19:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9894F27FAB; Tue, 9 Aug 2016 08:19:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4AF561FFCA for ; Tue, 9 Aug 2016 08:19:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752183AbcHIITa (ORCPT ); Tue, 9 Aug 2016 04:19:30 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:64015 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751194AbcHIIT2 (ORCPT ); Tue, 9 Aug 2016 04:19:28 -0400 Received: from [192.168.0.114] ([73.241.193.149]) by mrelayeu.kundenserver.de (mreue104) with ESMTPSA (Nemesis) id 0LtnUL-1b7Qy62EiL-011ECV; Tue, 09 Aug 2016 10:19:23 +0200 From: Christian Kujau Subject: Re: [4.8-rc1] make bindeb-pkg O= fails References: Cc: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, Emese Revfy Message-ID: Date: Tue, 9 Aug 2016 01:19:21 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.1.0 MIME-Version: 1.0 In-Reply-To: X-Provags-ID: V03:K0:VChUQOGBUn5O00t34rST4sbzm+GNzeAP96ntBA+QmFgblGZJv7h B70EmkR5P/UyeNJKlOh6DQp8ObTFgM7GBiZhfe7iDdkZvDoPrsVDVUhVLzQjgXX6ujmyOqI H44cRbZiQB4cuO8FZ4lPQ1eVTIRmZnN9folIJdVAq74v+3cP5tFxGk1G9lFGic6ob1qfZaG ZQ3N+F7M79/DJ3WumiWLA== X-UI-Out-Filterresults: notjunk:1; V01:K0:9RzIsZqGXG4=:JhyVd3AyWGYNQhXti5RR4B 1zzcSs56z6Ap8QxQCidInLKghESl6/u+Oc0eqffdquwOuoNKUZoGY2nDxZk+duYX2RsnZ9cyp juDijiorNwmno5NoHWOiQlCcTDCL8qXJ2i0Fw2pxFwxyCiUrZ1Ve18Vrc77O5s5QWXvEHxBM7 xd0WFhnvf2D1DSA3zEh5q1tlBylrsAhFr/W2sscNcN06GETQx48rcJMmlHGuO0aZui7Df3UCy u8epsbXSqODDN4WcrgwVDTX6wUfxYA+2qH28VnKcXQA0yoc33HRIendX3q4YdlbmrLM3lIOxg seVXwPfyGqiDRMj5Y1SMho1sLULo2QRCm8hQqNB1N7NgOC95dRwVv+NJ/2EzLFjnFRt4Cbc3+ lQek35hw73oKFq11JRuFQyRyuXJv9sB4S4/QUls26JpS9j1AQCBcIzoRFooUuM/zPyi25vuo4 GA+j7rY7jFW449n9vpz8WdG1AyaG/UQHG2jpHNHqU020UVC0KPHrfHtqPkmCTOo35lDo9anUQ uVkfE7GocXEvwAwHjskM+kYE2GdtJmThp8w+uVPrLvCU/cuGDphds1BQc1934N3hAWO/vrrz+ zzSoBRVjrj3usvTkKGqfhyLOA+dicrWRNtt4ZJ2fX19wcgP70pBMXaNq9SE58l9Aad+7FR/w5 qQRNW9lDZQb9Ej2nJ/+s6eKvDg5KLzDyY1h3ajXY18amoCWGFs2GbJZdpqNQrmbCvb+WAko3H j31b1gM1O8iVDLas To: unlisted-recipients:; (no To-header on input) Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP [re-send] On Mon, 8 Aug 2016, frank paulsen wrote: > in 4.8-rc1 "make bindeb-pkg O=../debian" fails: > | find: `scripts/gcc-plugins': No such file or directory > | /usr/src/linus/scripts/package/Makefile:97: recipe for target > 'bindeb-pkg' failed > > this is due to a missing directory scripts/gcc-plugins if using O= > > removing line 335 of scripts/package/builddeb helps: > | (cd $objtree; find scripts/gcc-plugins -name \*.so -o -name > gcc-common.h) >> "$objtree/debian/hdrobjfiles" > > this clearly isn't the right fix, but i checked it anyway and the > paket gets built. This was introduced in 6b90bd4ba40b38dc13c2782469c1c77e4ed79915 ("GCC plugin infrastructure"). Not failing hard when scripts/gcc-plugins cannot be found, does the trick as well. But that too just papers over the issue. Hopefully Emese has a better idea on how to solve this :-) gcc-common.h) >> "$objtree/debian/hdrobjfiles" || true destdir=$kernel_headers_dir/usr/src/linux-headers-$version mkdir -p "$destdir" (cd $srctree; tar -c -f - -T -) < "$objtree/debian/hdrsrcfiles" | (cd $destdir; tar -xf -) Thanks, Christian. diff --git a/scripts/package/builddeb b/scripts/package/builddeb index e1c09e2..89757f6 100755 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb @@ -332,7 +332,7 @@ if grep -q '^CONFIG_STACK_VALIDATION=y' $KCONFIG_CONFIG ; then (cd $objtree; find tools/objtool -type f -executable) >> "$objtree/debian/hdrobjfiles" fi (cd $objtree; find arch/$SRCARCH/include Module.symvers include scripts -type f) >> "$objtree/debian/hdrobjfiles" -(cd $objtree; find scripts/gcc-plugins -name \*.so -o -name gcc-common.h) >> "$objtree/debian/hdrobjfiles" +(cd $objtree; find scripts/gcc-plugins -name \*.so -o -name