Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E7578CCD19D for ; Wed, 18 Sep 2024 11:14:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 881D5608E4; Wed, 18 Sep 2024 11:14:18 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id v8YO677U-Vy5; Wed, 18 Sep 2024 11:14:17 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.34; helo=ash.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 9AA9960768 Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id 9AA9960768; Wed, 18 Sep 2024 11:14:17 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 03A251BF29C for ; Wed, 18 Sep 2024 11:14:17 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id E727880C4A for ; Wed, 18 Sep 2024 11:14:16 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id EhZNYG-R7_9I for ; Wed, 18 Sep 2024 11:14:16 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2001:4b98:dc4:8::223; helo=relay3-d.mail.gandi.net; envelope-from=peter@korsgaard.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp1.osuosl.org 0168C80B97 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 0168C80B97 Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::223]) by smtp1.osuosl.org (Postfix) with ESMTPS id 0168C80B97 for ; Wed, 18 Sep 2024 11:14:15 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id F344060004; Wed, 18 Sep 2024 11:14:12 +0000 (UTC) Received: from peko by dell.be.48ers.dk with local (Exim 4.96) (envelope-from ) id 1sqsdQ-00DBpP-1A; Wed, 18 Sep 2024 13:14:12 +0200 From: Peter Korsgaard To: Dario Binacchi References: <20240820172343.2124306-1-dario.binacchi@amarulasolutions.com> Date: Wed, 18 Sep 2024 13:14:12 +0200 In-Reply-To: <20240820172343.2124306-1-dario.binacchi@amarulasolutions.com> (Dario Binacchi's message of "Tue, 20 Aug 2024 19:23:43 +0200") Message-ID: <87ttedrz7f.fsf@dell.be.48ers.dk> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 X-GND-Sasl: peter@korsgaard.com X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dmarc=none (p=none dis=none) header.from=korsgaard.com Subject: Re: [Buildroot] [PATCH v2] package/ntpsec: fix host building X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amarula@amarulasolutions.com, Thomas Petazzoni , buildroot@buildroot.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" >>>>> "Dario" == Dario Binacchi writes: > The following build failure on xtensa: > Waf: Entering directory `/home/buildroot/instance-0/output-1/build/ntpsec-1.2.3/build/host' > [1/2] Processing ntpd/ntp_parser.y > [2/2] Compiling build/host/ntpd/ntp_parser.tab.c > gcc: error: unrecognized command-line option '-mlongcalls' > gcc: error: unrecognized command-line option '-mauto-litpools' > reveals that the target's CFLAGS are being used for host compilation. > The patch fixes the host compilation by correctly setting the CFLAGS to > be used. > It should be noted that the build script used by ntpsec applies CFLAGS > for host compilation and --cross-cflags for target compilation. > Fixes: > - http://autobuild.buildroot.org/results/9321a637f2c340ce8dcb24249676bb6c44d0dfc6 > Signed-off-by: Dario Binacchi > --- > Changes v1 -> v2: > - Rework the patch following the suggestion of Thomas Petazzoni. > - Update the commit message Committed to 2024.02.x, thanks. -- Bye, Peter Korsgaard _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot