mips64-elf-gcc-stage1

LOW
maintainer simer 2 votes scanned 2026-09-17 00:27:14.276658
View on AUR
Why flagged

The package builds GCC for a target toolchain from official GNU and SourceForge sources; the non-whitelisted host is a false positive as libisl.sourceforge.io is a legitimate project domain, and the source is used to build, not execute, untrusted code.

Triggered rules

Low AI review downgraded a static finding llm_review

The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-2507) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package builds GCC for a target toolchain from official GNU and SourceForge sources; the non-whitelisted host is a false positive as libisl.sourceforge.io is a legitimate project domain, and the source is used to build, not execute, untrusted code.

1 higher static finding superseded - not the current verdict (shown for transparency)
Medium source=() URL on a non-standard host 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:18 "https://libisl.sourceforge.io/isl-${_islver}.tar.xz"

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Simon Eriksson <simon.eriksson.1187+aur AT gmail.com>
2# Contributor: Joey Dumont <joey.dumont@gmail.com>
3
4_target=mips64-elf
5pkgname=${_target}-gcc-stage1
6pkgver=16.2.0
7_islver=0.28
8pkgrel=1
9pkgdesc="The GNU Compiler Collection. Stage 1 for toolchain building (${_target})"
10arch=('x86_64')
11license=('GPL' 'LGPL' 'FDL' 'custom')
12url="http://www.gnu.org/software/gcc/"
13depends=('libmpc' 'zstd' )
14makedepends=('gmp' 'mpfr' "${_target}-binutils")
15optdepends=("${_target}-newlib: Standard C library optimized for embedded systems")
16options=('!emptydirs' '!strip')
17source=("http://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-${pkgver}.tar.xz"
18 "https://libisl.sourceforge.io/isl-${_islver}.tar.xz"
19 "mabi32.patch")
20sha256sums=('e6738e29597f733270731aa90600f37ffdc045079dfc27ec7e8192cc81085c3e'
21 '3dc31b8e1b18329e42d5dfbf84dd55e15c59b61569a2ab246f61497d9592f727'
22 '86c06dfb12295e665204441ca17440d4e597da24b6cffad052c94268ec562169')
23
24
25prepare() {
26 cd gcc-${pkgver}
27
28 # link isl for in-tree builds
29 ln -sf ../isl-$_islver isl
30
31 # Do not run fixincludes
32 sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
33
34 # hack! - some configure tests for header files using "$CPP $CPPFLAGS"
35 sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" {libiberty,gcc}/configure
36
37 # patch multilib support for mabi=32
38 patch --strip=1 --input="${srcdir}"/mabi32.patch
39
40 rm -rf "$srcdir"/build-gcc
41 mkdir "$srcdir"/build-gcc
42}
43
44build() {
45 cd build-gcc
46
47 export CFLAGS_FOR_TARGET="-G0 -Os -pipe"
48 export CXXFLAGS_FOR_TARGET="-G0 -Os -pipe"
49
50 CFLAGS=${CFLAGS/-Werror=format-security/}
51 CXXFLAGS=${CXXFLAGS/-Werror=format-security/}
52
53 "${srcdir}"/gcc-${pkgver}/configure \
54 --prefix=/usr \
55 --target=${_target} \
56 --host="$CHOST" \
57 --build="$CHOST" \
58 --with-arch=from-abi \
59 --with-sysroot=/usr/${_target} \
60 --libdir=/usr/lib \
61 --libexecdir=/usr/lib \
62 --with-gnu-as \
63 --with-gnu-ld \
64 --with-python-dir=share/gcc-${_target} \
65 --with-newlib \
66 --without-headers \
67 --without-included-gettext \
68 --enable-checking=release \
69 --enable-languages=c \
70 --enable-lto \
71 --enable-multilib \
72 --enable-plugin \
73 --disable-decimal-float \
74 --disable-gold \
75 --disable-libatomic \
76 --disable-libgcj \
77 --disable-libgomp \
78 --disable-libitm \
79 --disable-libquadmath \
80 --disable-libquadmath-support \
81 --disable-libsanitizer \
82 --disable-libssp \
83 --disable-libunwind-exceptions \
84 --disable-libvtv \
85 --disable-nls \
86 --disable-shared \
87 --disable-werror
88
89 make all-gcc all-target-libgcc
90}
91
92package() {
93 cd build-gcc
94
95 make install-strip-gcc install-strip-target-libgcc DESTDIR="$pkgdir"
96
97 # Remove files that conflict with host gcc package
98 rm -r "$pkgdir"/usr/{include,share}
99}
100

Scan history

Scanned at (UTC)SeverityRules
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

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion