mips64-ultra-elf-gcc-stage1
The package downloads GCC and ISL source tarballs from official project hosts and a Git repository from GitHub; the non-standard host is GitHub via git+https, which is common and low risk for AUR packages, and the build process is transparent and follows standard GCC cross-compilation practices.
Triggered rules
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads GCC and ISL source tarballs from official project hosts and a Git repository from GitHub; the non-standard host is GitHub via git+https, which is common and low risk for AUR packages, and the build process is transparent and follows standard GCC cross-compilation practices.
1 higher static finding superseded - not the current verdict (shown for transparency)
source_untrusted_domain
One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).
-
PKGBUILD:17
"https://libisl.sourceforge.io/isl-${_islver}.tar.bz2"
PKGBUILD
1 offending line(s) highlighted# Maintainer: Joey Dumont <joey.dumont@gmail.com>
_target=mips64-ultra-elf
pkgname=${_target}-gcc-stage1
_gccver=15.2.0
_islver=0.27
pkgver=15.2.0_r225.be7ccd0
pkgrel=1
pkgdesc="The GNU Compiler Collection. Stage 1 for toolchain building (${_target})"
arch=('x86_64')
license=('GPL' 'LGPL' 'FDL')
url="http://www.gnu.org/software/gcc/"
depends=(libmpc zstd)
makedepends=(gmp mpfr git "${_target}-binutils")
optdepends=("${_target}-newlib: Standard C library optimized for embedded systems")
options=(!emptydirs)
source=("http://gcc.gnu.org/pub/gcc/releases/gcc-${_gccver}/gcc-${_gccver}.tar.xz"
"https://libisl.sourceforge.io/isl-${_islver}.tar.bz2"
"git+https://github.com/glankk/n64.git#branch=n64-ultra"
"gcc13-Wno-format-security.patch")
sha256sums=('438fd996826b0c82485a29da03a72d71d6e3541a83ec702df4271f6fe025d24e'
'626335529331f7c89fec493de929e2e92fb3d8cc860fc7af554e0518ee0029ee'
'SKIP'
'75bcf36e10fd50f7b21d80db4fcc9b58d2c658f2c749b7cf2f9369b31f147a6d')
pkgver() {
cd "${srcdir}/n64/"
printf "%s_r%s.%s" "${_gccver}" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "gcc-${_gccver}"
# link isl for in-tree builds
ln -s "../isl-$_islver" isl
echo "${_gccver}" > gcc/BASE-VER
# hack! - some configure tests for header files using "$CPP $CPPFLAGS"
sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" {libiberty,gcc}/configure
# -- Patch Werror=format-security issues.
patch --strip=1 --input="$srcdir"/gcc13-Wno-format-security.patch
mkdir "${srcdir}"/build-gcc
# -- Copy the files from the source.
CP_DIR="${srcdir}/gcc-${_gccver}"
cd "${srcdir}/n64"
cp config/gcc/mips/* "${CP_DIR}/gcc/config/mips/"
cat config/gcc/config.gcc.ultra >> "${CP_DIR}/gcc/config.gcc"
}
build() {
cd build-gcc
export CFLAGS="$CFLAGS -Wno-format-security"
export CXXFLAGS="$CXXFLAGS -Wno-format-security"
export CFLAGS_FOR_TARGET="-Os -g -ffunction-sections -fdata-sections"
export CXXFLAGS_FOR_TARGET="-Os -g -ffunction-sections -fdata-sections"
"${srcdir}"/gcc-${_gccver}/configure \
--prefix=/usr \
--libdir=/usr/${_target}/lib \
--libexecdir=/usr/${_target}/lib \
--target=${_target} \
--host="$CHOST" \
--build="$CHOST" \
--with-arch=vr4300 \
--with-abi=32 \
--with-sysroot=/usr/${_target}/n64-sysroot/ \
--enable-languages=c \
--enable-sjlj-exceptions \
--with-gnu-as \
--with-gnu-ld \
--with-python-dir=share/gcc-${_target} \
--with-newlib \
--without-headers \
--without-included-gettext \
--enable-checking=release \
--disable-build-format-warnings \
--disable-decimal-float \
--disable-gold \
--disable-libatomic \
--disable-libgcj \
--disable-libgomp \
--disable-libitm \
--disable-libquadmath \
--disable-libquadmath-support \
--disable-libsanitizer \
--disable-libssp \
--disable-libunwind-exceptions \
--disable-libvtv \
--enable-multilib \
--disable-nls \
--disable-shared \
--disable-threads \
--disable-werror \
--enable-plugin
make
}
package() {
cd build-gcc
make DESTDIR="${pkgdir}" install
# strip target binaries
find "$pkgdir"/usr/${_target}/lib/gcc/$_target/${_gccver} "$pkgdir"/usr/$_target/lib -type f -and \( -name \*.a -or -name \*.o \) -exec $_target-objcopy -R .comment -R .note -R .debug_info -R .debug_aranges -R .debug_pubnames -R .debug_pubtypes -R .debug_abbrev -R .debug_line -R .debug_str -R .debug_ranges -R .debug_loc '{}' \;
# strip host binaries
find "$pkgdir"/usr/bin/ "$pkgdir"/usr/${_target}/lib/gcc/$_target/${_gccver} -type f -and \( -executable \) -exec strip '{}' \;
# Remove files that conflict with host gcc package
rm -r "$pkgdir"/usr/share/man/man7
rm -r "$pkgdir"/usr/share/info
rm "$pkgdir"/usr/${_target}/lib/libcc1.*
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-17 00:27:14 | Low | 2 |
| 2026-09-16 00:03:17 | Low | 2 |
| 2026-09-15 00:25:31 | Low | 2 |
| 2026-09-14 00:27:57 | Low | 2 |
| 2026-09-13 00:19:54 | Low | 2 |
| 2026-09-12 00:25:17 | Low | 2 |
| 2026-09-11 00:19:22 | Low | 2 |
| 2026-09-10 00:22:44 | Low | 2 |
| 2026-09-09 00:04:09 | Low | 2 |
| 2026-09-08 00:18:08 | Low | 2 |
| 2026-09-07 00:30:15 | Low | 2 |
| 2026-09-06 00:17:06 | Low | 2 |
| 2026-09-05 00:16:27 | Low | 2 |
| 2026-09-04 00:03:13 | Low | 2 |
| 2026-09-03 00:15:47 | Low | 2 |
| 2026-09-02 00:02:31 | Low | 2 |
| 2026-09-01 00:11:19 | Low | 2 |
| 2026-08-31 00:19:57 | Low | 2 |
| 2026-08-30 00:04:14 | Low | 2 |
| 2026-08-29 00:29:17 | Low | 2 |