From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RDNS_NONE autolearn=no autolearn_force=no version=3.4.1 From: Michael Shigorin To: Alexey Gladkov , make-initrd@lists.altlinux.org Date: Wed, 18 Aug 2021 19:21:15 +0300 Message-Id: <20210818162115.2813079-3-mike@altlinux.org> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20210818162115.2813079-1-mike@altlinux.org> References: <20210818162115.2813079-1-mike@altlinux.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [make-initrd] [PATCH 2/2] [e2k] ftbfs workaround (disable TLS) X-BeenThere: make-initrd@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: make-initrd@lists.altlinux.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Aug 2021 16:21:35 -0000 Archived-At: List-Archive: The problem looks like this: lcc: "/usr/include/bits/byteswap.h", line 105: error #1348: declaration hides variable "__x" (declared at line 706 of "/usr/src/RPM/BUILD/make-initrd-2.20.1/external/busybox/upstream/networking/tls.c") [-Werror=shadow=global] ({ register __uint64_t __v, __x = (x); \ ^ in expansion of macro "__bswap_64" at line 37 of "/usr/include/byteswap.h" in expansion of macro "bswap_64" at line 198 of "/usr/src/RPM/BUILD/make-initrd-2.20.1/external/busybox/upstream/include/platform.h" in expansion of macro "bb_bswap_64" at line 214 of "/usr/src/RPM/BUILD/make-initrd-2.20.1/external/busybox/upstream/include/platform.h" in expansion of macro "SWAP_BE64" at line 706 of "/usr/src/RPM/BUILD/make-initrd-2.20.1/external/busybox/upstream/networking/tls.c" in expansion of macro "SWAP_BE64" at line 706 of "/usr/src/RPM/BUILD/make-initrd-2.20.1/external/busybox/upstream/networking/tls.c" tls->write_seq64_be = SWAP_BE64(1 + SWAP_BE64(tls->write_seq64_be)); ^ We think it's improper for toolchain to define quite common single-character symbols like this, thus I've filed mcst bug #6061. --- make-initrd.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/make-initrd.spec b/make-initrd.spec index bc48e97..907d3ed 100644 --- a/make-initrd.spec +++ b/make-initrd.spec @@ -204,6 +204,11 @@ Feature adds smart card daemon and smart card utilities. %prep %setup +%ifarch %e2k +# avoid ftbfs due to __v shadowing in /usr/include/bits/byteswap.h (mcst#6061) +sed -i -r 's,^CONFIG_(TLS|SSL_CLIENT|FEATURE_WGET_HTTPS)=y,CONFIG_\1=n,' \ + external/busybox/config +%endif %build ./autogen.sh -- 2.25.4