commit: cb2198e6a21b1957dc332d5838c8ba57016db312
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 21 08:19:40 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Aug 21 08:19:40 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb2198e6
llvm-runtimes/libgcc: Remove old
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
llvm-runtimes/libgcc/Manifest | 5 -
llvm-runtimes/libgcc/libgcc-21.1.0_rc2.ebuild | 172 --------------------
.../libgcc/libgcc-22.0.0_pre20250726.ebuild | 172 --------------------
.../libgcc/libgcc-22.0.0_pre20250802.ebuild | 172 --------------------
.../libgcc/libgcc-22.0.0_pre20250809.ebuild | 175 ---------------------
5 files changed, 696 deletions(-)
diff --git a/llvm-runtimes/libgcc/Manifest b/llvm-runtimes/libgcc/Manifest
index 8ed67887d0c2..e3c8b0dec691 100644
--- a/llvm-runtimes/libgcc/Manifest
+++ b/llvm-runtimes/libgcc/Manifest
@@ -1,15 +1,10 @@
DIST llvm-project-19.1.7.src.tar.xz 141249332 BLAKE2B
1259ed7f9aca7b35e89d818befdee20fd8bed4d2dc2c2c6f6f56451fd43d35ac03a0a5a406e142d22b25137999dc5b17471c196f8fcf79f20a8296832d900f6d
SHA512
c7d63286d662707a9cd54758c9e3aaf52794a91900c484c4a6efa62d90bc719d5e7a345e4192feeb0c9fd11c82570d64677c781e5be1d645556b6aa018e47ec8
DIST llvm-project-19.1.7.src.tar.xz.sig 438 BLAKE2B
4015140f4ba77de45039bdbdfbaf6f30e75705123d067ea97175d91d7a5b6a75008df01d99ae7aa16aaa3b101f3f41e38d01f04158f95a261d617b3ede0254cd
SHA512
195797b06ac80a742e0ccbc03a50dc06dd2e04377d783d5474e3e72c5a75203b60292b047929312a411d22b137a239943fba414a4d136a2be14cbff978eb6bda
-DIST llvm-project-190fcc28af585cb06480b026afd14ed87b18adb8.tar.gz 243483242
BLAKE2B
f53d743ca332dfffe1f98d51f0528e14b61e4c11904ec20c4b4c9b285f8ca7eb25eb2ce8549e21566e63ab393697c74acd4a41fddc7bab282535aa8ccf9195da
SHA512
b6bcf8647f35fee209fbd8a8c297f7d89f1aac9cac4e3c62abd73171350c4c7a98572ccd175ca0a8fce8d2fe00bf5cfbeea329689b687ab6261586e894397150
DIST llvm-project-1c7720ef78dc5eb9196d6c178afe03b60f201b78.tar.gz 245239122
BLAKE2B
74342ef3a8105915201f6260aa8c633ccd67821894d33605d82ca0f02d0d0766fe3198e834c4c5cae8123d911b5a20849c04ea02aea52f57f8d1a09e17c18199
SHA512
10a63bdf7d790c5964274414dc01b480a976318f27b5807ca47d9149b97106530264a75930c689ca7cc417de3df44142280cd92559ff7873190f1045d79e7856
DIST llvm-project-20.1.7.src.tar.xz 147245448 BLAKE2B
f7c57d1eba4e97e875b624dec3fb1b261a0203de7200366de5b3edcfbca2a170c41df46e91cd9cb78ae2af66120aef95334f5eb9628a1489e921c6bdf4cccfe8
SHA512
c2dbf6a468a8152409db7ff52902ecf8768a1d0328e386999f4f3672613903e1c10bddbba66b8553a6222952f8edb66266947f1fb21d0b09ae741e6249b6d1fa
DIST llvm-project-20.1.7.src.tar.xz.sig 566 BLAKE2B
72ce2a18c211cfce9581a9e3e71f1c55cf18672aa355267581220e1a89e3327f9e16107970b69bb8f10f390baa5e286487bdc4cc0a7d9155ec13a4977cd3f472
SHA512
eff885059d547f57b98bda1fc9631f716ca6c650cd48203d9ed5443a6afb9a2d4d91d3f5c8618e307c0a44b3040bce61fdc6bce965073adc537655755d9f2112
DIST llvm-project-20.1.8.src.tar.xz 147242952 BLAKE2B
7657ac0b26acc5affb1bfc91b912ade3191c5d77f3979d5a80d5f6ce52f56a7d1c448bd257398390bf10838f02faa6f3ece37a7327cced69d165ec2e2e699316
SHA512
f330e72e6a1da468569049437cc0ba7a41abb816ccece7367189344f7ebfef730f4788ac7af2bef0aa8a49341c15ab1d31e941ffa782f264d11fe0dc05470773
DIST llvm-project-20.1.8.src.tar.xz.sig 566 BLAKE2B
85beedfcff1195a974fab2c667b9efd4b715b3480c1b44b1b887fe32c69f72aca0d3b8fb276c03b6cc5a866622f669047aeee5ccb976640b4008ccd31dce77a4
SHA512
d74369bdb4d1b82775161ea53c9c5f3a23ce810f4df5ff617123023f9d8ce720e7d6ecc9e17f8ebd39fd9e7a9de79560abdf2ffe73bcb907a43148d43665d619
-DIST llvm-project-21.1.0-rc2.src.tar.xz 158947868 BLAKE2B
8de20b0bf5219de12240561c3049de09a3253e1ebe33f84533d3f1f2ee9794b09fe2b6aca0b2fb15542b37b901be7bd3e00306cfd266ab59e2703046bcbcaf3d
SHA512
0599cbe3d11d9135c355d5c60fdfda98a9689768f41baba0b8981769cc836eba8d226364d601031413c5f43ae1c4dda080ab910d60c983367b438fa32903d173
-DIST llvm-project-21.1.0-rc2.src.tar.xz.sig 438 BLAKE2B
7090c7a98e01e7bf600e4fbb23ad28d2e3bd8e72938863b59c7be8be0de2e1b3e3e2a981955165b833a95992ee086fd525919af7bcd7761073800486b3be3363
SHA512
dbe6cdd544b84d18b51f187e612de8ec05eeb9f1b462b7c4921697aaf6c6b0a00a6f4d3cf320a61cf57a886f11d47049bb5fa817f8bf835991a01b5e4a2d8c0a
DIST llvm-project-21.1.0-rc3.src.tar.xz 158924056 BLAKE2B
5f3f46a499120c810a944361468cdea64cc29fa41a1c1f4549b1a845e6a36c891cd4af0a9fafda00663f73de61ef2658bf0640b68020cdebb7cb8446ba1cbf09
SHA512
3b84b2c9d8b164983890f797301591b5e20a54adc035b196db9a7f6a19e6ac13fe24d1c7816fe62ac87f853e5b4b9decf177046c43caed8e62ab8e8df574a2ef
DIST llvm-project-21.1.0-rc3.src.tar.xz.sig 438 BLAKE2B
1a339fe00c27cddc508b369c4007e501266df42fbe0f448df3eecbf853ffa2915a6beef26e69c38169d37c12edcf60ac7c8ca5c0ae671b4c593356ccc6f3e3d5
SHA512
df8b3f747858fbb8c662899e6ea792556405cee2318be125a04e7b94c6dcebbed3ff01890f5e0c52e13b251243cfd1194806cf5ef52b482ae67d68be585574ad
-DIST llvm-project-92164faf17d553359418b9f49c1a41d680d0de49.tar.gz 245033829
BLAKE2B
7bf707e6455259417864a40c53beba4c4a9f6e4cf983671075016b95e537d2c249f97444089734718b5f2c989a2614028bd22142ccadae9c382e66b28758ecab
SHA512
bf4105173144e6bb9cdc99ae67b7350228b37eae248c15aae2ce29877a8ee4cb76781a6beff366961fa366d31683b43421d684d019e25f0280735ccd6c22a432
-DIST llvm-project-b075dadbd3e0e928bdeddb3d36af64e8a383e305.tar.gz 244584834
BLAKE2B
e6924d5fcc90431bdf859c3d728e44c348fa8ec336967c95fa9d253519c7bf9b3b200048ff8910eea78e5481a11704330ad72960fe753930036f75bca5b163b7
SHA512
80232cd00a2981392cf9fb22daceb164f965d5d5c9edb431226713a5e2f75ba5aaf747329ae5f4b852fd5e7f0be62ad978529080b4dce1bac7af480905b61c3b
DIST llvm-project-d76bb2bb894a4641ed62447327b40a347a6ae883.tar.gz 245754836
BLAKE2B
487e6396f1b381743dfbbd13e8f55728f1f915c042c717433e498127ecdeb4405a67e998059f5eb1f84e851437b805ba9e9c0e390c61092c7ee336a801d6f342
SHA512
42e38f917357918e8d62d8893a1ba34b431cd8aabf924b89e5352013bb8984c10c0b2796fa9a725bab71e52f99216604b75606bde3b795d20082d97d0f7a82ad
diff --git a/llvm-runtimes/libgcc/libgcc-21.1.0_rc2.ebuild
b/llvm-runtimes/libgcc/libgcc-21.1.0_rc2.ebuild
deleted file mode 100644
index 285e3592a666..000000000000
--- a/llvm-runtimes/libgcc/libgcc-21.1.0_rc2.ebuild
+++ /dev/null
@@ -1,172 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{11..14} )
-
-inherit cmake crossdev flag-o-matic llvm.org llvm-utils python-any-r1
-inherit toolchain-funcs
-
-DESCRIPTION="Compiler runtime library for clang, compatible with libgcc_s"
-HOMEPAGE="https://llvm.org/"
-
-LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )"
-SLOT="0"
-IUSE="debug test"
-
-DEPEND="
- ~llvm-runtimes/libunwind-${PV}[static-libs]
-"
-RDEPEND="
- ${DEPEND}
- !sys-devel/gcc
-"
-BDEPEND="
- llvm-core/clang:${LLVM_MAJOR}
- test? (
- $(python_gen_any_dep ">=dev-python/lit-15[\${PYTHON_USEDEP}]")
- =llvm-core/clang-${LLVM_VERSION}*:${LLVM_MAJOR}
- )
- !test? (
- ${PYTHON_DEPS}
- )
-"
-
-LLVM_COMPONENTS=( compiler-rt cmake llvm/cmake llvm-libgcc third-party/siphash
)
-LLVM_TEST_COMPONENTS=( llvm/include/llvm/TargetParser )
-llvm.org_set_globals
-
-python_check_deps() {
- use test || return 0
- python_has_version ">=dev-python/lit-15[${PYTHON_USEDEP}]"
-}
-
-pkg_setup() {
- if target_is_not_host || tc-is-cross-compiler ; then
- # strips vars like CFLAGS="-march=x86_64-v3" for non-x86
architectures
- CHOST=${CTARGET} strip-unsupported-flags
- # overrides host docs otherwise
- DOCS=()
- fi
- python-any-r1_pkg_setup
-}
-
-src_configure() {
- # We need to build a separate copy of compiler-rt, because we need to
disable the
- # COMPILER_RT_BUILTINS_HIDE_SYMBOLS option - compatibility with libgcc
requires
- # visibility of all symbols.
-
- llvm_prepend_path "${LLVM_MAJOR}"
-
- # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844
- use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG"
-
- export CC=${CTARGET}-clang CXX=${CTARGET}-clang++
- strip-unsupported-flags
-
- local mycmakeargs=(
-
-DCOMPILER_RT_INSTALL_PATH="${EPREFIX}/usr/lib/clang/${LLVM_MAJOR}"
-
- -DCOMPILER_RT_INCLUDE_TESTS=$(usex test)
- -DCOMPILER_RT_BUILD_CRT=OFF
- -DCOMPILER_RT_BUILD_CTX_PROFILE=OFF
- -DCOMPILER_RT_BUILD_LIBFUZZER=OFF
- -DCOMPILER_RT_BUILD_MEMPROF=OFF
- -DCOMPILER_RT_BUILD_ORC=OFF
- -DCOMPILER_RT_BUILD_PROFILE=OFF
- -DCOMPILER_RT_BUILD_SANITIZERS=OFF
- -DCOMPILER_RT_BUILD_XRAY=OFF
-
- -DCOMPILER_RT_BUILTINS_HIDE_SYMBOLS=OFF
-
- -DPython3_EXECUTABLE="${PYTHON}"
- )
-
- # disable building non-native runtimes since we don't do multilib
- if use amd64; then
- mycmakeargs+=(
- -DCAN_TARGET_i386=OFF
- )
- fi
-
- if use test; then
- mycmakeargs+=(
- -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit"
- -DLLVM_LIT_ARGS="$(get_lit_flags)"
-
-
-DCOMPILER_RT_TEST_COMPILER="${EPREFIX}/usr/lib/llvm/${LLVM_MAJOR}/bin/clang"
-
-DCOMPILER_RT_TEST_CXX_COMPILER="${EPREFIX}/usr/lib/llvm/${LLVM_MAJOR}/bin/clang++"
- )
- fi
-
- cmake_src_configure
-}
-
-# Usage: deps
-gen_ldscript() {
- local output_format
- output_format=$($(tc-getCC) ${CFLAGS} ${LDFLAGS} -Wl,--verbose 2>&1 |
sed -n 's/^OUTPUT_FORMAT("\([^"]*\)",.*/\1/p')
- [[ -n ${output_format} ]] && output_format="OUTPUT_FORMAT (
${output_format} )"
-
- cat <<-END_LDSCRIPT
-/* GNU ld script
- Include missing dependencies
-*/
-${output_format}
-GROUP ( $@ )
-END_LDSCRIPT
-}
-
-src_compile() {
- cmake_src_compile
-
- local rtlib=$(
- "${CC}" -rtlib=compiler-rt -resource-dir="${BUILD_DIR}" \
- -print-libgcc-file-name || die
- )
-
- # Use the llvm-libgcc's version script to produce libgcc.{a,so}, which
- # combines compiler-rt and libunwind into a libgcc replacement.
- #
- # What we do here is similar to what upstream does[0], with the
following
- # differences:
- #
- # * We build the local copy of compiler-rt manually, to have a full
control
- # over CMake options.
- # * Upstream links the locally built copy of libunwind statically. We
link the
- # system-wide libunwind dynamically.
- #
- # [0]
https://github.com/llvm/llvm-project/blob/llvmorg-19.1.7/llvm-libgcc/CMakeLists.txt#L102-L120
- "${CC}" -E -xc \
- "${WORKDIR}/llvm-libgcc/gcc_s.ver.in" \
- -o gcc_s.ver || die
- "${CC}" -nostdlib \
- ${LDFLAGS} \
- -Wl,--version-script,gcc_s.ver \
- -Wl,--undefined-version \
- -Wl,--whole-archive \
- "${rtlib}" \
- -Wl,-soname,libgcc_s.so.1.0 \
- -lc -lunwind -shared \
- -o libgcc_s.so.1.0 || die
- # Generate libgcc_s.so ldscript for inclusion of libunwind as a
- # dependency so that `clang -lgcc_s` works out of the box.
- gen_ldscript libgcc_s.so.1.0 libunwind.so.1.0 > libgcc_s.so || die
- cp "${rtlib}" libgcc.a || die
-}
-
-src_test() {
- # respect TMPDIR!
- local -x LIT_PRESERVES_TMP=1
-
- cmake_build check-builtins
-}
-
-src_install() {
- local libdir=$(get_libdir)
- dolib.so libgcc_s.so.1.0 libgcc_s.so
- dolib.a libgcc.a
- dosym libgcc_s.so.1.0 "/usr/${libdir}/libgcc_s.so.1"
- dosym libunwind.a "/usr/${libdir}/libgcc_eh.a"
-}
diff --git a/llvm-runtimes/libgcc/libgcc-22.0.0_pre20250726.ebuild
b/llvm-runtimes/libgcc/libgcc-22.0.0_pre20250726.ebuild
deleted file mode 100644
index a3b9a91d2a2e..000000000000
--- a/llvm-runtimes/libgcc/libgcc-22.0.0_pre20250726.ebuild
+++ /dev/null
@@ -1,172 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{11..14} )
-
-inherit cmake crossdev flag-o-matic llvm.org llvm-utils python-any-r1
-inherit toolchain-funcs
-
-DESCRIPTION="Compiler runtime library for clang, compatible with libgcc_s"
-HOMEPAGE="https://llvm.org/"
-
-LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )"
-SLOT="0"
-IUSE="debug test"
-
-DEPEND="
- ~llvm-runtimes/libunwind-${PV}[static-libs]
-"
-RDEPEND="
- ${DEPEND}
- !sys-devel/gcc
-"
-BDEPEND="
- llvm-core/clang:${LLVM_MAJOR}
- test? (
- $(python_gen_any_dep ">=dev-python/lit-15[\${PYTHON_USEDEP}]")
- =llvm-core/clang-${LLVM_VERSION}*:${LLVM_MAJOR}
- )
- !test? (
- ${PYTHON_DEPS}
- )
-"
-
-LLVM_COMPONENTS=( compiler-rt cmake llvm/cmake llvm-libgcc )
-LLVM_TEST_COMPONENTS=( llvm/include/llvm/TargetParser )
-llvm.org_set_globals
-
-python_check_deps() {
- use test || return 0
- python_has_version ">=dev-python/lit-15[${PYTHON_USEDEP}]"
-}
-
-pkg_setup() {
- if target_is_not_host || tc-is-cross-compiler ; then
- # strips vars like CFLAGS="-march=x86_64-v3" for non-x86
architectures
- CHOST=${CTARGET} strip-unsupported-flags
- # overrides host docs otherwise
- DOCS=()
- fi
- python-any-r1_pkg_setup
-}
-
-src_configure() {
- # We need to build a separate copy of compiler-rt, because we need to
disable the
- # COMPILER_RT_BUILTINS_HIDE_SYMBOLS option - compatibility with libgcc
requires
- # visibility of all symbols.
-
- llvm_prepend_path "${LLVM_MAJOR}"
-
- # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844
- use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG"
-
- export CC=${CTARGET}-clang CXX=${CTARGET}-clang++
- strip-unsupported-flags
-
- local mycmakeargs=(
-
-DCOMPILER_RT_INSTALL_PATH="${EPREFIX}/usr/lib/clang/${LLVM_MAJOR}"
-
- -DCOMPILER_RT_INCLUDE_TESTS=$(usex test)
- -DCOMPILER_RT_BUILD_CRT=OFF
- -DCOMPILER_RT_BUILD_CTX_PROFILE=OFF
- -DCOMPILER_RT_BUILD_LIBFUZZER=OFF
- -DCOMPILER_RT_BUILD_MEMPROF=OFF
- -DCOMPILER_RT_BUILD_ORC=OFF
- -DCOMPILER_RT_BUILD_PROFILE=OFF
- -DCOMPILER_RT_BUILD_SANITIZERS=OFF
- -DCOMPILER_RT_BUILD_XRAY=OFF
-
- -DCOMPILER_RT_BUILTINS_HIDE_SYMBOLS=OFF
-
- -DPython3_EXECUTABLE="${PYTHON}"
- )
-
- # disable building non-native runtimes since we don't do multilib
- if use amd64; then
- mycmakeargs+=(
- -DCAN_TARGET_i386=OFF
- )
- fi
-
- if use test; then
- mycmakeargs+=(
- -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit"
- -DLLVM_LIT_ARGS="$(get_lit_flags)"
-
-
-DCOMPILER_RT_TEST_COMPILER="${EPREFIX}/usr/lib/llvm/${LLVM_MAJOR}/bin/clang"
-
-DCOMPILER_RT_TEST_CXX_COMPILER="${EPREFIX}/usr/lib/llvm/${LLVM_MAJOR}/bin/clang++"
- )
- fi
-
- cmake_src_configure
-}
-
-# Usage: deps
-gen_ldscript() {
- local output_format
- output_format=$($(tc-getCC) ${CFLAGS} ${LDFLAGS} -Wl,--verbose 2>&1 |
sed -n 's/^OUTPUT_FORMAT("\([^"]*\)",.*/\1/p')
- [[ -n ${output_format} ]] && output_format="OUTPUT_FORMAT (
${output_format} )"
-
- cat <<-END_LDSCRIPT
-/* GNU ld script
- Include missing dependencies
-*/
-${output_format}
-GROUP ( $@ )
-END_LDSCRIPT
-}
-
-src_compile() {
- cmake_src_compile
-
- local rtlib=$(
- "${CC}" -rtlib=compiler-rt -resource-dir="${BUILD_DIR}" \
- -print-libgcc-file-name || die
- )
-
- # Use the llvm-libgcc's version script to produce libgcc.{a,so}, which
- # combines compiler-rt and libunwind into a libgcc replacement.
- #
- # What we do here is similar to what upstream does[0], with the
following
- # differences:
- #
- # * We build the local copy of compiler-rt manually, to have a full
control
- # over CMake options.
- # * Upstream links the locally built copy of libunwind statically. We
link the
- # system-wide libunwind dynamically.
- #
- # [0]
https://github.com/llvm/llvm-project/blob/llvmorg-19.1.7/llvm-libgcc/CMakeLists.txt#L102-L120
- "${CC}" -E -xc \
- "${WORKDIR}/llvm-libgcc/gcc_s.ver.in" \
- -o gcc_s.ver || die
- "${CC}" -nostdlib \
- ${LDFLAGS} \
- -Wl,--version-script,gcc_s.ver \
- -Wl,--undefined-version \
- -Wl,--whole-archive \
- "${rtlib}" \
- -Wl,-soname,libgcc_s.so.1.0 \
- -lc -lunwind -shared \
- -o libgcc_s.so.1.0 || die
- # Generate libgcc_s.so ldscript for inclusion of libunwind as a
- # dependency so that `clang -lgcc_s` works out of the box.
- gen_ldscript libgcc_s.so.1.0 libunwind.so.1.0 > libgcc_s.so || die
- cp "${rtlib}" libgcc.a || die
-}
-
-src_test() {
- # respect TMPDIR!
- local -x LIT_PRESERVES_TMP=1
-
- cmake_build check-builtins
-}
-
-src_install() {
- local libdir=$(get_libdir)
- dolib.so libgcc_s.so.1.0 libgcc_s.so
- dolib.a libgcc.a
- dosym libgcc_s.so.1.0 "/usr/${libdir}/libgcc_s.so.1"
- dosym libunwind.a "/usr/${libdir}/libgcc_eh.a"
-}
diff --git a/llvm-runtimes/libgcc/libgcc-22.0.0_pre20250802.ebuild
b/llvm-runtimes/libgcc/libgcc-22.0.0_pre20250802.ebuild
deleted file mode 100644
index a3b9a91d2a2e..000000000000
--- a/llvm-runtimes/libgcc/libgcc-22.0.0_pre20250802.ebuild
+++ /dev/null
@@ -1,172 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{11..14} )
-
-inherit cmake crossdev flag-o-matic llvm.org llvm-utils python-any-r1
-inherit toolchain-funcs
-
-DESCRIPTION="Compiler runtime library for clang, compatible with libgcc_s"
-HOMEPAGE="https://llvm.org/"
-
-LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )"
-SLOT="0"
-IUSE="debug test"
-
-DEPEND="
- ~llvm-runtimes/libunwind-${PV}[static-libs]
-"
-RDEPEND="
- ${DEPEND}
- !sys-devel/gcc
-"
-BDEPEND="
- llvm-core/clang:${LLVM_MAJOR}
- test? (
- $(python_gen_any_dep ">=dev-python/lit-15[\${PYTHON_USEDEP}]")
- =llvm-core/clang-${LLVM_VERSION}*:${LLVM_MAJOR}
- )
- !test? (
- ${PYTHON_DEPS}
- )
-"
-
-LLVM_COMPONENTS=( compiler-rt cmake llvm/cmake llvm-libgcc )
-LLVM_TEST_COMPONENTS=( llvm/include/llvm/TargetParser )
-llvm.org_set_globals
-
-python_check_deps() {
- use test || return 0
- python_has_version ">=dev-python/lit-15[${PYTHON_USEDEP}]"
-}
-
-pkg_setup() {
- if target_is_not_host || tc-is-cross-compiler ; then
- # strips vars like CFLAGS="-march=x86_64-v3" for non-x86
architectures
- CHOST=${CTARGET} strip-unsupported-flags
- # overrides host docs otherwise
- DOCS=()
- fi
- python-any-r1_pkg_setup
-}
-
-src_configure() {
- # We need to build a separate copy of compiler-rt, because we need to
disable the
- # COMPILER_RT_BUILTINS_HIDE_SYMBOLS option - compatibility with libgcc
requires
- # visibility of all symbols.
-
- llvm_prepend_path "${LLVM_MAJOR}"
-
- # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844
- use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG"
-
- export CC=${CTARGET}-clang CXX=${CTARGET}-clang++
- strip-unsupported-flags
-
- local mycmakeargs=(
-
-DCOMPILER_RT_INSTALL_PATH="${EPREFIX}/usr/lib/clang/${LLVM_MAJOR}"
-
- -DCOMPILER_RT_INCLUDE_TESTS=$(usex test)
- -DCOMPILER_RT_BUILD_CRT=OFF
- -DCOMPILER_RT_BUILD_CTX_PROFILE=OFF
- -DCOMPILER_RT_BUILD_LIBFUZZER=OFF
- -DCOMPILER_RT_BUILD_MEMPROF=OFF
- -DCOMPILER_RT_BUILD_ORC=OFF
- -DCOMPILER_RT_BUILD_PROFILE=OFF
- -DCOMPILER_RT_BUILD_SANITIZERS=OFF
- -DCOMPILER_RT_BUILD_XRAY=OFF
-
- -DCOMPILER_RT_BUILTINS_HIDE_SYMBOLS=OFF
-
- -DPython3_EXECUTABLE="${PYTHON}"
- )
-
- # disable building non-native runtimes since we don't do multilib
- if use amd64; then
- mycmakeargs+=(
- -DCAN_TARGET_i386=OFF
- )
- fi
-
- if use test; then
- mycmakeargs+=(
- -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit"
- -DLLVM_LIT_ARGS="$(get_lit_flags)"
-
-
-DCOMPILER_RT_TEST_COMPILER="${EPREFIX}/usr/lib/llvm/${LLVM_MAJOR}/bin/clang"
-
-DCOMPILER_RT_TEST_CXX_COMPILER="${EPREFIX}/usr/lib/llvm/${LLVM_MAJOR}/bin/clang++"
- )
- fi
-
- cmake_src_configure
-}
-
-# Usage: deps
-gen_ldscript() {
- local output_format
- output_format=$($(tc-getCC) ${CFLAGS} ${LDFLAGS} -Wl,--verbose 2>&1 |
sed -n 's/^OUTPUT_FORMAT("\([^"]*\)",.*/\1/p')
- [[ -n ${output_format} ]] && output_format="OUTPUT_FORMAT (
${output_format} )"
-
- cat <<-END_LDSCRIPT
-/* GNU ld script
- Include missing dependencies
-*/
-${output_format}
-GROUP ( $@ )
-END_LDSCRIPT
-}
-
-src_compile() {
- cmake_src_compile
-
- local rtlib=$(
- "${CC}" -rtlib=compiler-rt -resource-dir="${BUILD_DIR}" \
- -print-libgcc-file-name || die
- )
-
- # Use the llvm-libgcc's version script to produce libgcc.{a,so}, which
- # combines compiler-rt and libunwind into a libgcc replacement.
- #
- # What we do here is similar to what upstream does[0], with the
following
- # differences:
- #
- # * We build the local copy of compiler-rt manually, to have a full
control
- # over CMake options.
- # * Upstream links the locally built copy of libunwind statically. We
link the
- # system-wide libunwind dynamically.
- #
- # [0]
https://github.com/llvm/llvm-project/blob/llvmorg-19.1.7/llvm-libgcc/CMakeLists.txt#L102-L120
- "${CC}" -E -xc \
- "${WORKDIR}/llvm-libgcc/gcc_s.ver.in" \
- -o gcc_s.ver || die
- "${CC}" -nostdlib \
- ${LDFLAGS} \
- -Wl,--version-script,gcc_s.ver \
- -Wl,--undefined-version \
- -Wl,--whole-archive \
- "${rtlib}" \
- -Wl,-soname,libgcc_s.so.1.0 \
- -lc -lunwind -shared \
- -o libgcc_s.so.1.0 || die
- # Generate libgcc_s.so ldscript for inclusion of libunwind as a
- # dependency so that `clang -lgcc_s` works out of the box.
- gen_ldscript libgcc_s.so.1.0 libunwind.so.1.0 > libgcc_s.so || die
- cp "${rtlib}" libgcc.a || die
-}
-
-src_test() {
- # respect TMPDIR!
- local -x LIT_PRESERVES_TMP=1
-
- cmake_build check-builtins
-}
-
-src_install() {
- local libdir=$(get_libdir)
- dolib.so libgcc_s.so.1.0 libgcc_s.so
- dolib.a libgcc.a
- dosym libgcc_s.so.1.0 "/usr/${libdir}/libgcc_s.so.1"
- dosym libunwind.a "/usr/${libdir}/libgcc_eh.a"
-}
diff --git a/llvm-runtimes/libgcc/libgcc-22.0.0_pre20250809.ebuild
b/llvm-runtimes/libgcc/libgcc-22.0.0_pre20250809.ebuild
deleted file mode 100644
index eebc5d612900..000000000000
--- a/llvm-runtimes/libgcc/libgcc-22.0.0_pre20250809.ebuild
+++ /dev/null
@@ -1,175 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{11..14} )
-
-inherit cmake crossdev flag-o-matic llvm.org llvm-utils python-any-r1
-inherit toolchain-funcs
-
-DESCRIPTION="Compiler runtime library for clang, compatible with libgcc_s"
-HOMEPAGE="https://llvm.org/"
-
-LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )"
-SLOT="0"
-IUSE="debug test"
-
-DEPEND="
- ~llvm-runtimes/libunwind-${PV}[static-libs]
-"
-RDEPEND="
- ${DEPEND}
- !sys-devel/gcc
-"
-BDEPEND="
- llvm-core/clang:${LLVM_MAJOR}
- test? (
- $(python_gen_any_dep ">=dev-python/lit-15[\${PYTHON_USEDEP}]")
- =llvm-core/clang-${LLVM_VERSION}*:${LLVM_MAJOR}
- )
- !test? (
- ${PYTHON_DEPS}
- )
-"
-
-LLVM_COMPONENTS=( compiler-rt cmake llvm/cmake llvm-libgcc )
-LLVM_TEST_COMPONENTS=( llvm/include/llvm/TargetParser )
-llvm.org_set_globals
-
-python_check_deps() {
- use test || return 0
- python_has_version ">=dev-python/lit-15[${PYTHON_USEDEP}]"
-}
-
-pkg_setup() {
- if target_is_not_host || tc-is-cross-compiler ; then
- # strips vars like CFLAGS="-march=x86_64-v3" for non-x86
architectures
- CHOST=${CTARGET} strip-unsupported-flags
- # overrides host docs otherwise
- DOCS=()
- fi
- python-any-r1_pkg_setup
-}
-
-src_configure() {
- # We need to build a separate copy of compiler-rt, because we need to
disable the
- # COMPILER_RT_BUILTINS_HIDE_SYMBOLS option - compatibility with libgcc
requires
- # visibility of all symbols.
-
- if use clang || use test; then
- llvm_prepend_path -b "${LLVM_MAJOR}"
- fi
-
- # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844
- use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG"
-
- export CC=${CTARGET}-clang CXX=${CTARGET}-clang++
- strip-unsupported-flags
-
- local mycmakeargs=(
-
-DCOMPILER_RT_INSTALL_PATH="${EPREFIX}/usr/lib/clang/${LLVM_MAJOR}"
- -DLLVM_ROOT="${ESYSROOT}/usr/lib/llvm/${LLVM_MAJOR}"
-
- -DCOMPILER_RT_INCLUDE_TESTS=$(usex test)
- -DCOMPILER_RT_BUILD_CRT=OFF
- -DCOMPILER_RT_BUILD_CTX_PROFILE=OFF
- -DCOMPILER_RT_BUILD_LIBFUZZER=OFF
- -DCOMPILER_RT_BUILD_MEMPROF=OFF
- -DCOMPILER_RT_BUILD_ORC=OFF
- -DCOMPILER_RT_BUILD_PROFILE=OFF
- -DCOMPILER_RT_BUILD_SANITIZERS=OFF
- -DCOMPILER_RT_BUILD_XRAY=OFF
-
- -DCOMPILER_RT_BUILTINS_HIDE_SYMBOLS=OFF
-
- -DPython3_EXECUTABLE="${PYTHON}"
- )
-
- # disable building non-native runtimes since we don't do multilib
- if use amd64; then
- mycmakeargs+=(
- -DCAN_TARGET_i386=OFF
- )
- fi
-
- if use test; then
- mycmakeargs+=(
- -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit"
- -DLLVM_LIT_ARGS="$(get_lit_flags)"
-
-
-DCOMPILER_RT_TEST_COMPILER="${EPREFIX}/usr/lib/llvm/${LLVM_MAJOR}/bin/clang"
-
-DCOMPILER_RT_TEST_CXX_COMPILER="${EPREFIX}/usr/lib/llvm/${LLVM_MAJOR}/bin/clang++"
- )
- fi
-
- cmake_src_configure
-}
-
-# Usage: deps
-gen_ldscript() {
- local output_format
- output_format=$($(tc-getCC) ${CFLAGS} ${LDFLAGS} -Wl,--verbose 2>&1 |
sed -n 's/^OUTPUT_FORMAT("\([^"]*\)",.*/\1/p')
- [[ -n ${output_format} ]] && output_format="OUTPUT_FORMAT (
${output_format} )"
-
- cat <<-END_LDSCRIPT
-/* GNU ld script
- Include missing dependencies
-*/
-${output_format}
-GROUP ( $@ )
-END_LDSCRIPT
-}
-
-src_compile() {
- cmake_src_compile
-
- local rtlib=$(
- "${CC}" -rtlib=compiler-rt -resource-dir="${BUILD_DIR}" \
- -print-libgcc-file-name || die
- )
-
- # Use the llvm-libgcc's version script to produce libgcc.{a,so}, which
- # combines compiler-rt and libunwind into a libgcc replacement.
- #
- # What we do here is similar to what upstream does[0], with the
following
- # differences:
- #
- # * We build the local copy of compiler-rt manually, to have a full
control
- # over CMake options.
- # * Upstream links the locally built copy of libunwind statically. We
link the
- # system-wide libunwind dynamically.
- #
- # [0]
https://github.com/llvm/llvm-project/blob/llvmorg-19.1.7/llvm-libgcc/CMakeLists.txt#L102-L120
- "${CC}" -E -xc \
- "${WORKDIR}/llvm-libgcc/gcc_s.ver.in" \
- -o gcc_s.ver || die
- "${CC}" -nostdlib \
- ${LDFLAGS} \
- -Wl,--version-script,gcc_s.ver \
- -Wl,--undefined-version \
- -Wl,--whole-archive \
- "${rtlib}" \
- -Wl,-soname,libgcc_s.so.1.0 \
- -lc -lunwind -shared \
- -o libgcc_s.so.1.0 || die
- # Generate libgcc_s.so ldscript for inclusion of libunwind as a
- # dependency so that `clang -lgcc_s` works out of the box.
- gen_ldscript libgcc_s.so.1.0 libunwind.so.1.0 > libgcc_s.so || die
- cp "${rtlib}" libgcc.a || die
-}
-
-src_test() {
- # respect TMPDIR!
- local -x LIT_PRESERVES_TMP=1
-
- cmake_build check-builtins
-}
-
-src_install() {
- local libdir=$(get_libdir)
- dolib.so libgcc_s.so.1.0 libgcc_s.so
- dolib.a libgcc.a
- dosym libgcc_s.so.1.0 "/usr/${libdir}/libgcc_s.so.1"
- dosym libunwind.a "/usr/${libdir}/libgcc_eh.a"
-}