| Message ID | 20240820172343.2124306-1-dario.binacchi@amarulasolutions.com |
|---|---|
| State | New |
| Headers |
Return-Path:
<linux-amarula+bncBCQ4XFG47UFRBKFCSO3AMGQEGWJYZWY@amarulasolutions.com>
X-Original-To: linux-amarula@patchwork.amarulasolutions.com
Delivered-To: linux-amarula@patchwork.amarulasolutions.com
Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com
[209.85.128.70])
by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 9F40D3F176
for <linux-amarula@patchwork.amarulasolutions.com>;
Tue, 20 Aug 2024 19:23:53 +0200 (CEST)
Received: by mail-wm1-f70.google.com with SMTP id
5b1f17b1804b1-4281f8994adsf50204995e9.0
for <linux-amarula@patchwork.amarulasolutions.com>;
Tue, 20 Aug 2024 10:23:53 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1724174633; cv=pass;
d=google.com; s=arc-20160816;
b=TmMsvH6a0HzoEsCKHyK1WbBhJSmEuf11g8HJkD7oCAlkFLR4n+KQ/GfSV0zUmPjGHe
f6uWV1Rkx3sFv73IwOvf6XZJJcBA8Uyyr9CgeWUkHh2eZQaHBOJfDMzyrB6EGgc0ajIy
NUMqfAXEbonXlWhBycV100zVTG0yTFx/+FyC7tv7aRgjgltxLw+JLt6XYIzObAOnEPuN
aoOSuKgbv3Gu4OV6w0aQUp58I/eSPgWWNFUYpKd0jKnBOw8NIoSnYJU/0kurVzq42uwz
nCFjwDAnd3tAg+rJQ+DEO5JB37U2LtRhmH4qXjR10uvErnab8oANufntuUNliDafitGZ
TrSA==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20160816;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:mime-version:message-id:date:subject:cc:to
:from:dkim-signature;
bh=Syc625wmkT6sX0+kRKfV5TBJOCQ5hwrMWk8+zoZpu1w=;
fh=k/gnTI88D4iGZVBhNTp+JX6GlMUYGNP1B80RMLo2BlU=;
b=OO+Kw0+tb2WCK/P8SNWAGxAe0T9NGUAY/hA4VgBLgtnAWSqL2agxu/WuRK0UN4Yb6M
BH+tpoJ1nPevYLUIuLv01Dj+48aOcyq3h2u008oT4hGX7zY0UUgDs5QQm+FO53QdVSd6
5dtOw+YgVZQQZte1ccoWh0ToevW5GFCGp0CyXFP158FuqS5qCcH6o5IFLcT851Ydnhn+
06s7isbYj6tS70Jy0+QKl9MF7Qnn2VohJegXQYayvuK554hIFK1ROT3kw4dXrEyLuldT
lQVb82Dm7RCAxPEXrDqEcYZLwMuh2UVsUI3gawBJJ4iwQTU1cjmklad4Jjc+QJZ8OPYa
szKQ==;
darn=patchwork.amarulasolutions.com
ARC-Authentication-Results: i=2; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=B1sESHZe;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=amarulasolutions.com; s=google; t=1724174633; x=1724779433;
darn=patchwork.amarulasolutions.com;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:x-original-authentication-results
:x-original-sender:mime-version:message-id:date:subject:cc:to:from
:from:to:cc:subject:date:message-id:reply-to;
bh=Syc625wmkT6sX0+kRKfV5TBJOCQ5hwrMWk8+zoZpu1w=;
b=MxnMS/Jr9JTOHBkNFbp1K6FfRKrfK6GvAwwUbt8rs/QDnsXjPnTJ3Np3WeHw5ANwPQ
9zgpvK1DmrVfl7ZqRHdfCcvFSTUgaoOnjO58CxdMW/i/usgV47SGxPyqs8jA+98XJU2X
QdIrLtPnfRK2qRLAEW5r9bnpPLp/mg4MEnJCA=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1724174633; x=1724779433;
h=list-unsubscribe:list-archive:list-help:list-post
:x-spam-checked-in-group:list-id:mailing-list:precedence
:x-original-authentication-results:x-original-sender:mime-version
:message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state
:from:to:cc:subject:date:message-id:reply-to;
bh=Syc625wmkT6sX0+kRKfV5TBJOCQ5hwrMWk8+zoZpu1w=;
b=jc2sGUkCrDIBjhpBazyjnigVlD1kgWu09oEuHZ/f0GKaqjL0/wjXIE5945I1Z2iic0
cytfLp9ogr0o5qPT7BpPz6VZrsjumZp3DRKgE6vqYwMl3INQpYkGpIdsgdAtA3Z8g7r0
V8mJ8mRfXw/NzStSuY0xM+0EsxrZ486lp4q82sypmSTDvazTDpia6YK+x7egw7fgIdi0
1+4E508i1GCfgJZaFLpGfCraooC8bridhLbMA3Mo1xdUBSwvST2rZFlA6KC6CaxpGW7w
jMsorJL6dyb7tZR9cS4QiTF//7UrHhumCfE04PJrCOLkAnMD/Y4J0od1LiBYPDE2w40u
wZhw==
X-Forwarded-Encrypted: i=2;
AJvYcCXLwdFsvA55qpIkOk8VxtKzq9wcYjgKzUW56I5mnCef7fN6r0SlG5Zadqcu5PrXzjrx1pGp9WGFiH4Yv0WeFBKxBGl5k6ABpvXs70rAq4ZPYQjHEVVLys7yioRYKQ==
X-Gm-Message-State: AOJu0Yxud4LsI55a28HpzJapfb4l972lytdeEKNQ+lnz7348kkc44noM
vnqvUUIhWCeRqbAwVAcFz7noBW+IxBJDJVSEhIhgZ8vLd8zlE5/Aq/q7JY0BKFi/fQ==
X-Google-Smtp-Source:
AGHT+IHvhVitXoRrGJYLueg0y+eU0py2lVJtbYRJC9ombDcPJ7Gj/YtPIQS/d+ZikQKoged+J/SuKg==
X-Received: by 2002:adf:b307:0:b0:368:255e:ab13 with SMTP id
ffacd0b85a97d-3719468ef4dmr9748874f8f.50.1724174632695;
Tue, 20 Aug 2024 10:23:52 -0700 (PDT)
X-BeenThere: linux-amarula@amarulasolutions.com
Received: by 2002:a05:600c:1c8d:b0:426:6eea:e7ea with SMTP id
5b1f17b1804b1-429e23dec90ls19299755e9.1.-pod-prod-09-eu; Tue, 20 Aug 2024
10:23:51 -0700 (PDT)
X-Forwarded-Encrypted: i=2;
AJvYcCXGcHsLK7PgCxSymJvaecIcta8ZSsnwA2u6pBisPWEl/B+4kWYGcddsxxl3at+CQlNKjO4w9lv2yNPOv2pasqE3/ZubUycF9y7F+eRjM+ltOhyA
X-Received: by 2002:a5d:4e42:0:b0:371:88a1:3e49 with SMTP id
ffacd0b85a97d-371946a03d8mr9426702f8f.53.1724174631016;
Tue, 20 Aug 2024 10:23:51 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1724174630; cv=none;
d=google.com; s=arc-20160816;
b=PJ2v/b1oFOQVeiNhA4CBrbCvbkez7Z1rg00FrXqezZ2Azm/Co+EsGY9meTHl6R5H/i
bomNe1Vqj+6Wn4pxEz6aMsWLJ2g0jlUISRD6IXG6daKqqKadQ/7p/RK7090AITZoC3oS
flI4IhnQMGEyOEEJcD8oROiBg6EL0S36kXgjmfzMelFuGFCuAzHVz64SomNy84pF2OY0
M4FAoQ5Dg4/4fFIdw4X3ahyTBvv7WGGAe9bk/WOiTQikzanBlv8yAcnVdAi8gtIhgV9X
2lCIcrj7qoMNTTYSrw1yhlzsZfhZWE/QsvjGdnTnlz2gRTQVIHKrChh8MxFY2hDLgzqg
nRZQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20160816;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:dkim-signature;
bh=Ozp/CFFdjD1gxqcrP2/HowDfzXtKTV5Nn0YDkr9HTB4=;
fh=wjbeKTNePoRCAhqhjk3Z7mTsMEEYAlT3eCFspHz65JM=;
b=PNIXpf7k1Njb/P3RUSu65Wl3xIHMqdG9SMn0Bj9o2HGoZQJL76FFlu+04seZ2Nocli
nZuzm9gwC1BkJp0IVdp0DjBkEMn8zkvq3khvvq8/fSgMJYniI9GYY+292PD/LXtBp+So
AfxZ1TQzBhRoVhowbYeZBge2jaUMcFzXuYFw6JK7bh73ggjPNXOIxqCbuYRbMQ80NLZh
e926lH+OC1+07TgV6VM5kwO/I/Tz1mwE8ZGW5qdWp1ApNpsRfTiK/e6wdUc9QAxwJbkS
UZb8wrprsIyLsuGPiLXapdaQImx4q7nUnyiQo7G8PCnV1zycFgq5L7JnXOfezanP7J3J
pTfA==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=B1sESHZe;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
Received: from mail-sor-f41.google.com (mail-sor-f41.google.com.
[209.85.220.41])
by mx.google.com with SMTPS id
ffacd0b85a97d-371898bc5a0sor2466679f8f.8.2024.08.20.10.23.50
for <linux-amarula@amarulasolutions.com>
(Google Transport Security);
Tue, 20 Aug 2024 10:23:50 -0700 (PDT)
Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Forwarded-Encrypted: i=1;
AJvYcCVvtD7R6IRfNcRzCJyGYpL1AMrWGqTrIaMOYLufXfDt33ybHawfff2LlD5DhETSucgoDX0F1xqGZgIpwEy4bFHUG/bu4skHl98VT7RQ+1yUWjf1
X-Received: by 2002:a05:6000:e4d:b0:371:7d3c:51b9 with SMTP id
ffacd0b85a97d-3719468f004mr8830788f8f.43.1724174630378;
Tue, 20 Aug 2024 10:23:50 -0700 (PDT)
Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com ([2.196.40.87])
by smtp.gmail.com with ESMTPSA id
ffacd0b85a97d-3718985a6ddsm13602321f8f.58.2024.08.20.10.23.49
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Tue, 20 Aug 2024 10:23:50 -0700 (PDT)
From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
To: buildroot@buildroot.org
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
linux-amarula@amarulasolutions.com,
Dario Binacchi <dario.binacchi@amarulasolutions.com>
Subject: [PATCH v2] package/ntpsec: fix host building
Date: Tue, 20 Aug 2024 19:23:43 +0200
Message-ID: <20240820172343.2124306-1-dario.binacchi@amarulasolutions.com>
X-Mailer: git-send-email 2.43.0
MIME-Version: 1.0
X-Original-Sender: dario.binacchi@amarulasolutions.com
X-Original-Authentication-Results: mx.google.com; dkim=pass
header.i=@amarulasolutions.com header.s=google header.b=B1sESHZe;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
Content-Type: text/plain; charset="UTF-8"
Precedence: list
Mailing-list: list linux-amarula@amarulasolutions.com;
contact linux-amarula+owners@amarulasolutions.com
List-ID: <linux-amarula.amarulasolutions.com>
X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com
X-Google-Group-Id: 476853432473
List-Post:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>,
<mailto:linux-amarula@amarulasolutions.com>
List-Help:
<https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>,
<mailto:linux-amarula+help@amarulasolutions.com>
List-Archive:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/>
List-Unsubscribe:
<mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>,
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe>
|
| Series |
[v2] package/ntpsec: fix host building
|
|
Commit Message
Dario Binacchi
Aug. 20, 2024, 5:23 p.m. UTC
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 <dario.binacchi@amarulasolutions.com>
---
Changes v1 -> v2:
- Rework the patch following the suggestion of Thomas Petazzoni.
- Update the commit message
package/ntpsec/ntpsec.mk | 1 +
1 file changed, 1 insertion(+)
Comments
On Tue, 20 Aug 2024 19:23:43 +0200 Dario Binacchi <dario.binacchi@amarulasolutions.com> wrote: > 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 <dario.binacchi@amarulasolutions.com> > --- > Changes v1 -> v2: > - Rework the patch following the suggestion of Thomas Petazzoni. > - Update the commit message Meh, the ntpsec build system really sucks... But not your fault, so: patch applied to master, thanks! Thomas
Dario, All, On 2024-08-20 19:23 +0200, Dario Binacchi spake thusly: > 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 I've added a little blurb that explains how long it has been happening, so what branches it should be backported to. > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> Applied to master, thanks. Regards, Yann E. MORIN. > --- > Changes v1 -> v2: > - Rework the patch following the suggestion of Thomas Petazzoni. > - Update the commit message > > package/ntpsec/ntpsec.mk | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/package/ntpsec/ntpsec.mk b/package/ntpsec/ntpsec.mk > index 661af788423c..3acf7745cf07 100644 > --- a/package/ntpsec/ntpsec.mk > +++ b/package/ntpsec/ntpsec.mk > @@ -42,6 +42,7 @@ NTPSEC_DEPENDENCIES = \ > # --cross-compiler > NTPSEC_CONF_OPTS = \ > CC="$(HOSTCC)" \ > + CFLAGS="$(HOST_CFLAGS)" \ > PYTHON_CONFIG="$(STAGING_DIR)/usr/bin/python3-config" \ > --libdir=/usr/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages/ntp \ > --cross-compiler="$(TARGET_CC)" \ > -- > 2.43.0 > > _______________________________________________ > buildroot mailing list > buildroot@buildroot.org > https://lists.buildroot.org/mailman/listinfo/buildroot
Dario, All, On 2024-08-20 23:36 +0200, Yann E. MORIN spake thusly: > On 2024-08-20 19:23 +0200, Dario Binacchi spake thusly: > > The following build failure on xtensa: [--SNIP--] > > Fixes: > > - http://autobuild.buildroot.org/results/9321a637f2c340ce8dcb24249676bb6c44d0dfc6 > I've added a little blurb that explains how long it has been happening, > so what branches it should be backported to. > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > Applied to master, thanks. Thomas was slightly faster than me, so he pushed to master. Regards, Yann E. MORIN.
>>>>> "Dario" == Dario Binacchi <dario.binacchi@amarulasolutions.com> 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 <dario.binacchi@amarulasolutions.com> > --- > Changes v1 -> v2: > - Rework the patch following the suggestion of Thomas Petazzoni. > - Update the commit message Committed to 2024.02.x, thanks.
diff --git a/package/ntpsec/ntpsec.mk b/package/ntpsec/ntpsec.mk index 661af788423c..3acf7745cf07 100644 --- a/package/ntpsec/ntpsec.mk +++ b/package/ntpsec/ntpsec.mk @@ -42,6 +42,7 @@ NTPSEC_DEPENDENCIES = \ # --cross-compiler NTPSEC_CONF_OPTS = \ CC="$(HOSTCC)" \ + CFLAGS="$(HOST_CFLAGS)" \ PYTHON_CONFIG="$(STAGING_DIR)/usr/bin/python3-config" \ --libdir=/usr/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages/ntp \ --cross-compiler="$(TARGET_CC)" \