From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Fri, 11 Apr 2025 00:51:48 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-pj1-f58.google.com (mail-pj1-f58.google.com [209.85.216.58]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 53AMpkiV014077 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 11 Apr 2025 00:51:47 +0200 Received: by mail-pj1-f58.google.com with SMTP id 98e67ed59e1d1-3055f2e1486sf1927817a91.0 for ; Thu, 10 Apr 2025 15:51:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1744325501; cv=pass; d=google.com; s=arc-20240605; b=FLZyG4mIMvgW2rLtSSrtw9j7hMOl33H8HZdyEPnBYyBW6KOOEh3EgX88Z/caJ9z9aU LK82OM1Oju/nIc7RfAiKscwAjYqCPp5TEYUvsjcitO6a51gJTWkVvO+zOKEHMSghB9UH yQlAsYQZXpcFNJEMadrhOZJGBuDBYmocXmS0gq7kM5coFz38ovvlFUo5Il+7Mf266LyS uJLu5cLMv4kqGcI8IdijWpltRhAGnt/nXGF6nul3XKphfbApuxYVw6nL01g+hWHfDzuA H1t1Av7t/lTZtGxSztnBS4QDueqaLxnDz8D+VzqMobaTFM6xdu/cWyqlIAw5jGfltYAL VmJg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:to:from :subject:message-id:sender:dkim-signature; bh=A6OHdmzJP9cG41rVGciukGfW8dUwUw14/8UEnSckKys=; fh=OlAdwtHDisM0996LFM434UspE07u2yPNJT6YTYIEQGY=; b=EBr/sf5svV9S+rTfwKB3ZR9wiDfJheRsKXJI9chuSQdeMGuzhDtlaTLw0Grwm/L8lF tC1fNLY4L00Z7CWnqaQP/nJ2LpRrmtE/gYkJtutIB0xzMHUy6QfJ4IWiJf4TJrB+JgXc hsvcnjcP27HjhP8AuviGyHvBFE1x8s8s1q7knv03BE/zb9eKsEmdAeWnwpiDWm7elazA G0erCwvFXQqrgFk2IE4pfBzgEc2tT6CI8Ys1UzTC3DxawK+nPoL39exmIf3yX8Mpgh4A 1uVvUl4pP2CoWo1H/5eFYmEO42q0vCZrf/Thx2nShqP2HmOWEz2QyWRGT4HvO86rGmoc HMKQ==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1744325501; x=1744930301; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:user-agent:content-transfer-encoding :references:in-reply-to:date:to:from:subject:message-id:sender:from :to:cc:subject:date:message-id:reply-to; bh=A6OHdmzJP9cG41rVGciukGfW8dUwUw14/8UEnSckKys=; b=JnQ97D3suxTxVRviOVlQAPqrVgcdDGLWb+b5eN+A7711C0or2ADiiNu/TLEroRwIEA l5tjUvr5a+vTWg583Fv6k9EQsH12pUgOtNFRBKClQHkBEm5BoTNr8esOGGtPRiXx4SUy fgfTLVZx+m7Bx3jr+y1zgeltu41w6U8Z78SuUjg+CbhxHW2sjbkveGDCMttzKdfMH3g8 RRvIW8+q5/rO7RROpf7sGw2MOU0K91Q6lVj1UrPDVG/c5IkJTzFsRpnCCaqrqR35dN44 c8ygSjgAPLv618WbjnHPRR08C30z/pxIxhwA9Y2BF9ucp1oueX0k+b5ptQZhKqC9TRjS MAJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744325501; x=1744930301; h=list-unsubscribe:list-subscribe: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 :user-agent:content-transfer-encoding:references:in-reply-to:date:to :from:subject:message-id:x-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=A6OHdmzJP9cG41rVGciukGfW8dUwUw14/8UEnSckKys=; b=NH0tOMtng5SpPfeLw5IJlUypBuqp+IMgsSupVP5+E0XlkEkZn/R29/td1JOjOLt/hB yDZtx109Ybf5/iZDez/gvMdBJYxNEgw8MjU20MaZC0ZxIGtfAuPIOMu/dvBpv/eCoalJ trOCPDCIVETiFhGcNe0WMeHVoDN1qcinGNgn0R74dY1WApsX5hmdgy2/U93lpJvnrqOy vDRTlxkZdm0D4csAzRa7CaooYILWHlwxUDbnEkQdSzHXQFKJoFRvMe0CXcVQN2M/p91N kJhtJuJze+9tnKlS8tqts6jg9UEZL7VR3mQ/VWqoVSSarfkMUtZHasaV2gwtqhhNLY4q J9eQ== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCU9ddzxjp1IvlpShaMePVmG6ALS/NhvBHHcabdzLT6/L2citMa0F7wpTWKiqQE1Vo9L2Vx0@ilbers.de X-Gm-Message-State: AOJu0Yx8+xokefyDfZgC+J5tvEG/by0u/UbWsxmu0cmmlemKOMn6zqmu brx6oEUC3UdDFp7x1+2SiVvbObbIdaXOy6At6RMSpHeIeTHb9WZp X-Google-Smtp-Source: AGHT+IFI60nfLVHdDrLRxPiLZsjtCs6QxcMxTB7TKAhIRDkYF7PMHq4lqE2pNeZ7GdXZKpmSJ68uPA== X-Received: by 2002:a17:90b:4b8f:b0:2ee:f687:6acb with SMTP id 98e67ed59e1d1-30823646af9mr897442a91.13.1744325500359; Thu, 10 Apr 2025 15:51:40 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h=ARLLPAJ4rCeoFr/YTTvXFCnj0pM/xoDFxqTx+k5fuZOKnDyzAg== Received: by 2002:a17:90a:d3c4:b0:2e2:840e:d4a7 with SMTP id 98e67ed59e1d1-306ec0e7526ls1069892a91.1.-pod-prod-06-us; Thu, 10 Apr 2025 15:51:38 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVAISxz2K1q/cxk6+aQQP+XMZ3SSg0zEgGR+rBDcsIGw9w6hO090M8lbVw4jmfHBw5O90ErcSrDM2L4@googlegroups.com X-Received: by 2002:a17:90b:3bc4:b0:2f8:49ad:4079 with SMTP id 98e67ed59e1d1-3082363452cmr943293a91.6.1744325497812; Thu, 10 Apr 2025 15:51:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1744325497; cv=none; d=google.com; s=arc-20240605; b=a3hwSjG42EApjoB6+5IXKDNEBDYLrDjoH/yhZHvevKLhVnaeZ3LI05EVDGI1hb56Gv AEW27B2uwLQSnWWnGkg/GvijcmOki1e+sN3BEsbTWGgZ7d9y0YOYsmurB/e5CXkLbjOB HFWnicqK10zWquhQKmCoJVVYqXfXQugKLpP2VOwUarcB1guEASA8yK4VswVclDIMHw8E GQvzkTSsH3E5YJiIvLvPBCuP16BvCE5vH/Qd1vKhm48XyjGqUS+XpQ8WlhlXtewXmSf1 z5FjZlcAxmJfHus0G7MwYTYETWizvNz567SYw2ZYeePPabq0RzCKmhm6M87/GUin7V3p wcLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id; bh=Xj4w074w/kStUNcMtm6nnBFw+C+X7x19BPzDiqmSsWI=; fh=O+ZMFUiiuyZKsfz7Fw8hsdknZlxcSFSsLsCydBEGD0o=; b=eCD2pIkkhnx1GP1Z8CrhTnr55Y+jwjYZXNnmISNYL6oMd/AYeMerwrfhCd487yWMPv 6w4fTp8JjpO6OUFyOJae1DPRw1Z1yDKybNbS+GvgNjChiskmpRRIQfVp55KMFkfJ8889 1Nw6d3UVOantYn9+huFIvw3+/Sx27xSD092g33R5IC+X9MpsKvO6Ao6XxD0vGw3cbnfq cAJmttYERcJoJwqmYYfQCzYAEWRvxFwFMmT8RrFLak5Dxry7mDr0coTE90/e34yXX0hR +ipQ/fnxEVcOBfrYQiRPSvzKcad1cDu2Hpn2kmgOrAQRx/2LpeW4O3XiIOrC7KPE/wGB R3FA==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id 98e67ed59e1d1-306dd56b524si319620a91.1.2025.04.10.15.51.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 Apr 2025 15:51:37 -0700 (PDT) Received-SPF: pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from [127.0.0.1] (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 53AMpXaD014066 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 11 Apr 2025 00:51:34 +0200 Message-ID: Subject: Re: [PATCH 1/2] u-boot-starfive-visionfive2: Fix build with swig 4.3.0 From: Uladzimir Bely To: Jan Kiszka , isar-users@googlegroups.com Date: Fri, 11 Apr 2025 01:51:33 +0300 In-Reply-To: References: <20250408113630.4460-1-ubely@ilbers.de> <20250408113630.4460-2-ubely@ilbers.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.0 (by Flathub.org) MIME-Version: 1.0 X-Spam-Status: No, score=-4.6 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,RCVD_IN_RP_CERTIFIED,RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-Original-Sender: ubely@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-TUID: l1xKrsCstsVO On Wed, 2025-04-09 at 16:06 +0200, Jan Kiszka wrote: > On 08.04.25 13:33, Uladzimir Bely wrote: > > Fixes u-boot build failure on newer trixie that got updated swig- > > 4.3.0 > > some time ago. > >=20 > > ``` > > scripts/dtc/pylibfdt/libfdt_wrap.c: In function > > =E2=80=98_wrap_fdt_next_node=E2=80=99: > > scripts/dtc/pylibfdt/libfdt_wrap.c:5581:17: error: too few > > arguments > > =C2=A0=C2=A0=C2=A0 to function =E2=80=98SWIG_Python_AppendOutput=E2=80= =99 > > =C2=A05581 |=C2=A0=C2=A0=C2=A0=C2=A0 resultobj =3D SWIG_Python_AppendOu= tput(resultobj, val); > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~~~~~~~~~~~~~~~~= ~~~~~~~ > > ``` > > --- > > =C2=A0...bfdt-libfdt.i_shipped-Use-SWIG_Appen.patch | 60 > > +++++++++++++++++++ > > =C2=A0.../u-boot-starfive-visionfive2_2024.01.bb=C2=A0=C2=A0=C2=A0 |=C2= =A0 1 + > > =C2=A02 files changed, 61 insertions(+) > > =C2=A0create mode 100644 meta-isar/recipes-bsp/u-boot/files/0001- > > scripts-dtc-pylibfdt-libfdt.i_shipped-Use-SWIG_Appen.patch > >=20 > > diff --git a/meta-isar/recipes-bsp/u-boot/files/0001-scripts-dtc- > > pylibfdt-libfdt.i_shipped-Use-SWIG_Appen.patch b/meta-isar/recipes- > > bsp/u-boot/files/0001-scripts-dtc-pylibfdt-libfdt.i_shipped-Use- > > SWIG_Appen.patch > > new file mode 100644 > > index 00000000..d919eb68 > > --- /dev/null > > +++ b/meta-isar/recipes-bsp/u-boot/files/0001-scripts-dtc-pylibfdt- > > libfdt.i_shipped-Use-SWIG_Appen.patch > > @@ -0,0 +1,60 @@ > > +From a63456b9191fae2fe49f4b121e025792022e3950 Mon Sep 17 00:00:00 > > 2001 > > +From: Markus Volk > > +Date: Wed, 30 Oct 2024 06:07:16 +0100 > > +Subject: [PATCH] scripts/dtc/pylibfdt/libfdt.i_shipped: Use > > SWIG_AppendOutput > > +MIME-Version: 1.0 > > +Content-Type: text/plain; charset=3DUTF-8 > > +Content-Transfer-Encoding: 8bit > > + > > +Swig has changed language specific AppendOutput functions. The > > helper > > +macro SWIG_AppendOutput remains unchanged. Use that instead > > +of SWIG_Python_AppendOutput, which would require an extra > > parameter > > +since swig 4.3.0. > > + > > +/home/flk/poky/build-test/tmp/work/qemux86_64-poky-linux/u- > > boot/2024.10/git/arch/x86/cpu/u-boot-64.lds > > +| scripts/dtc/pylibfdt/libfdt_wrap.c: In function > > =E2=80=98_wrap_fdt_next_node=E2=80=99: > > +| scripts/dtc/pylibfdt/libfdt_wrap.c:5581:17: error: too few > > arguments to function =E2=80=98SWIG_Python_AppendOutput=E2=80=99 > > +|=C2=A0 5581 |=C2=A0=C2=A0=C2=A0=C2=A0 resultobj =3D SWIG_Python_Appen= dOutput(resultobj, > > val); > > +|=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~~~~~~~= ~~~~~~~~~~~~~~~~ > > + > > +Signed-off-by: Markus Volk > > +Reported-by: Rudi Heitbaum > > +Link: https://github.com/dgibson/dtc/pull/154 > > +--- > > + scripts/dtc/pylibfdt/libfdt.i_shipped | 6 +++--- > > + 1 file changed, 3 insertions(+), 3 deletions(-) > > + > > +diff --git a/scripts/dtc/pylibfdt/libfdt.i_shipped > > b/scripts/dtc/pylibfdt/libfdt.i_shipped > > +index 56cc5d48f4f..e4659489a96 100644 > > +--- a/scripts/dtc/pylibfdt/libfdt.i_shipped > > ++++ b/scripts/dtc/pylibfdt/libfdt.i_shipped > > +@@ -1037,7 +1037,7 @@ typedef uint32_t fdt32_t; > > +=C2=A0 fdt_string(fdt1, fdt32_to_cpu($1- > > >nameoff))); > > +=C2=A0 buff =3D PyByteArray_FromStringAndSize( > > +=C2=A0 (const char *)($1 + 1), fdt32_to_cpu($1- > > >len)); > > +- resultobj =3D SWIG_Python_AppendOutput(resultobj, > > buff); > > ++ resultobj =3D SWIG_AppendOutput(resultobj, buff); > > +=C2=A0 } > > + } > > +=20 > > +@@ -1076,7 +1076,7 @@ typedef uint32_t fdt32_t; > > +=20 > > + %typemap(argout) int *depth { > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 PyObject *val =3D Py_= BuildValue("i", *arg$argnum); > > +-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 resultobj =3D SWIG_Python_= AppendOutput(resultobj, val); > > ++=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 resultobj =3D SWIG_AppendO= utput(resultobj, val); > > + } > > +=20 > > + %apply int *depth { int *depth }; > > +@@ -1092,7 +1092,7 @@ typedef uint32_t fdt32_t; > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if = (PyTuple_GET_SIZE(resultobj) =3D=3D 0) > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 resultobj =3D val; > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 els= e > > +-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 resultobj =3D SWIG_Python_AppendOutput(resultobj, > > val); > > ++=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 resultobj =3D SWIG_AppendOutput(resultobj, val); > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 } > > + } > > +=20 > > +--=20 > > +2.49.0 > > + > > diff --git a/meta-isar/recipes-bsp/u-boot/u-boot-starfive- > > visionfive2_2024.01.bb b/meta-isar/recipes-bsp/u-boot/u-boot- > > starfive-visionfive2_2024.01.bb > > index 9f819c3e..becd40da 100644 > > --- a/meta-isar/recipes-bsp/u-boot/u-boot-starfive- > > visionfive2_2024.01.bb > > +++ b/meta-isar/recipes-bsp/u-boot/u-boot-starfive- > > visionfive2_2024.01.bb > > @@ -8,6 +8,7 @@ require recipes-bsp/u-boot/u-boot-custom.inc > > =C2=A0COMPATIBLE_MACHINE =3D "starfive-visionfive2" > > =C2=A0 > > =C2=A0SRC_URI +=3D "https://ftp.denx.de/pub/u-boot/u-boot-${PV}.tar.bz2= =C2=A0\ > > +=C2=A0=C2=A0=C2=A0 > > file://0001-scripts-dtc-pylibfdt-libfdt.i_shipped-Use-SWIG_Appen.patch > > =C2=A0\ > > =C2=A0=C2=A0=C2=A0=C2=A0 file://starfive-visionfive2-rules.tmpl" > > =C2=A0SRC_URI[sha256sum] =3D > > "b99611f1ed237bf3541bdc8434b68c96a6e05967061f992443cb30aabebef5b3" > > =C2=A0 >=20 > Better bump U-boot to v2025.01. >=20 > Jan Tried with this version: it build works but requires adding "libgnutls28" to the recipe DEPENDS (errors like "gnutls/gnutls.h" can't be found). Will be sent with v2. --=20 Best regards, Uladzimir. --=20 You received this message because you are subscribed to the Google Groups "= isar-users" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to isar-users+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/isar-users/= e8298c8e6ed197cf483fda48880ce95897026f94.camel%40ilbers.de.