From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 282751581F3 for ; Sat, 30 Nov 2024 10:38:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B5C20E07EE; Sat, 30 Nov 2024 10:38:20 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4B0FBE07E6 for ; Sat, 30 Nov 2024 10:38:18 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 05AE1342FB0 for ; Sat, 30 Nov 2024 10:38:17 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5E248D81 for ; Sat, 30 Nov 2024 10:38:15 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1732963058.0e3008ddccb1bccfa7225fb20a9db7694d2752d9.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-libs/newlib/newlib-4.4.0.20231231.ebuild sys-libs/newlib/newlib-9999.ebuild X-VCS-Directories: sys-libs/newlib/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 0e3008ddccb1bccfa7225fb20a9db7694d2752d9 X-VCS-Branch: master Date: Sat, 30 Nov 2024 10:38:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 373dca2b-f5bf-4f46-8acd-c898bdb79744 X-Archives-Hash: aaa08d34cb209b0f50ecfe930b674676 commit: 0e3008ddccb1bccfa7225fb20a9db7694d2752d9 Author: Sam James gentoo org> AuthorDate: Sat Nov 30 10:21:26 2024 +0000 Commit: Sam James gentoo org> CommitDate: Sat Nov 30 10:37:38 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e3008dd sys-libs/newlib: pass -Wa,--no-verify for nvptx nvptx-tools performs verification if CUDA is installed, otherwise it skips it. newlib fails to build with that veriifcation, so punt it for now. Bug: https://bugs.gentoo.org/945296 Signed-off-by: Sam James gentoo.org> sys-libs/newlib/newlib-4.4.0.20231231.ebuild | 24 ++++++++++++++++++++++++ sys-libs/newlib/newlib-9999.ebuild | 24 ++++++++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/sys-libs/newlib/newlib-4.4.0.20231231.ebuild b/sys-libs/newlib/newlib-4.4.0.20231231.ebuild index d29d3f10e0d1..8b83f40af6e9 100644 --- a/sys-libs/newlib/newlib-4.4.0.20231231.ebuild +++ b/sys-libs/newlib/newlib-4.4.0.20231231.ebuild @@ -85,6 +85,12 @@ src_configure() { export "CFLAGS_FOR_TARGET=${CFLAGS_ORIG} ${CFLAGS_FULL}" export "CCASFLAGS=${CCASFLAGS_ORIG} ${CFLAGS_FULL}" + + [[ ${CTARGET} == nvptx* ]] && { + CFLAGS_FOR_TARGET+=" -Wa,--no-verify" + CCASFLAGS+=" -Wa,--no-verify" + } + ECONF_SOURCE=${S} \ econf \ $(use_enable unicode newlib-mb) \ @@ -98,6 +104,12 @@ src_configure() { cd "${NEWLIBNANOBUILD}" || die export "CFLAGS_FOR_TARGET=${CFLAGS_ORIG} ${CFLAGS_NANO}" export "CCASFLAGS=${CCASFLAGS_ORIG} ${CFLAGS_NANO}" + + [[ ${CTARGET} == nvptx* ]] && { + CFLAGS_FOR_TARGET+=" -Wa,--no-verify" + CCASFLAGS+=" -Wa,--no-verify" + } + ECONF_SOURCE=${S} \ econf \ $(use_enable unicode newlib-mb) \ @@ -118,11 +130,23 @@ src_configure() { src_compile() { export "CFLAGS_FOR_TARGET=${CFLAGS_ORIG} ${CFLAGS_FULL}" export "CCASFLAGS=${CCASFLAGS_ORIG} ${CFLAGS_FULL}" + + [[ ${CTARGET} == nvptx* ]] && { + CFLAGS_FOR_TARGET+=" -Wa,--no-verify" + CCASFLAGS+=" -Wa,--no-verify" + } + emake -C "${NEWLIBBUILD}" if use nano ; then export "CFLAGS_FOR_TARGET=${CFLAGS_ORIG} ${CFLAGS_NANO}" export "CCASFLAGS=${CCASFLAGS_ORIG} ${CFLAGS_NANO}" + + [[ ${CTARGET} == nvptx* ]] && { + CFLAGS_FOR_TARGET+=" -Wa,--no-verify" + CCASFLAGS+=" -Wa,--no-verify" + } + emake -C "${NEWLIBNANOBUILD}" fi } diff --git a/sys-libs/newlib/newlib-9999.ebuild b/sys-libs/newlib/newlib-9999.ebuild index d29d3f10e0d1..8b83f40af6e9 100644 --- a/sys-libs/newlib/newlib-9999.ebuild +++ b/sys-libs/newlib/newlib-9999.ebuild @@ -85,6 +85,12 @@ src_configure() { export "CFLAGS_FOR_TARGET=${CFLAGS_ORIG} ${CFLAGS_FULL}" export "CCASFLAGS=${CCASFLAGS_ORIG} ${CFLAGS_FULL}" + + [[ ${CTARGET} == nvptx* ]] && { + CFLAGS_FOR_TARGET+=" -Wa,--no-verify" + CCASFLAGS+=" -Wa,--no-verify" + } + ECONF_SOURCE=${S} \ econf \ $(use_enable unicode newlib-mb) \ @@ -98,6 +104,12 @@ src_configure() { cd "${NEWLIBNANOBUILD}" || die export "CFLAGS_FOR_TARGET=${CFLAGS_ORIG} ${CFLAGS_NANO}" export "CCASFLAGS=${CCASFLAGS_ORIG} ${CFLAGS_NANO}" + + [[ ${CTARGET} == nvptx* ]] && { + CFLAGS_FOR_TARGET+=" -Wa,--no-verify" + CCASFLAGS+=" -Wa,--no-verify" + } + ECONF_SOURCE=${S} \ econf \ $(use_enable unicode newlib-mb) \ @@ -118,11 +130,23 @@ src_configure() { src_compile() { export "CFLAGS_FOR_TARGET=${CFLAGS_ORIG} ${CFLAGS_FULL}" export "CCASFLAGS=${CCASFLAGS_ORIG} ${CFLAGS_FULL}" + + [[ ${CTARGET} == nvptx* ]] && { + CFLAGS_FOR_TARGET+=" -Wa,--no-verify" + CCASFLAGS+=" -Wa,--no-verify" + } + emake -C "${NEWLIBBUILD}" if use nano ; then export "CFLAGS_FOR_TARGET=${CFLAGS_ORIG} ${CFLAGS_NANO}" export "CCASFLAGS=${CCASFLAGS_ORIG} ${CFLAGS_NANO}" + + [[ ${CTARGET} == nvptx* ]] && { + CFLAGS_FOR_TARGET+=" -Wa,--no-verify" + CCASFLAGS+=" -Wa,--no-verify" + } + emake -C "${NEWLIBNANOBUILD}" fi }