armv7l-gcc
The source is a Git checkout from sourceware.org, the official GCC project host, making it a legitimate build of the project's own code despite the non-whitelisted domain; this is normal AUR cross-compiler packaging.
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 source is a Git checkout from sourceware.org, the official GCC project host, making it a legitimate build of the project's own code despite the non-whitelisted domain; this is normal AUR cross-compiler packaging.
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:21
source=(git+https://sourceware.org/git/gcc.git#commit=${_commit})
PKGBUILD
1 offending line(s) highlighted# Maintainer: graysky <therealgraysky AT proton DOT me>
# Contributor: Christer Solskogen <christer.solskogen@gmail.com>
# Build order: armv7l-binutils -> armv7l-linux-api-headers -> armv7l-gcc-bootstrap -> armv7l-glibc -> armv7l-gcc -> armv7l-glibc (again)
_arch=armv7l
_target=$_arch-unknown-linux-gnueabihf
pkgname=$_arch-gcc
pkgver=16.1.1+r346+g4e03491b401d
# https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git
_commit=4e03491b401dce0658543dd90524ddb92063836e
pkgrel=1
pkgdesc='The GNU Compiler Collection - cross compiler for armv7l - bootstrap compiler'
arch=(x86_64)
url='https://gcc.gnu.org/'
license=('GPL-3.0-or-later WITH GCC-exception-3.1' GFDL-1.3-or-later)
depends=(libmpc zstd libisl $_arch-glibc $_arch-binutils)
makedepends=($_arch-binutils git $_arch-linux-api-headers)
provides=($_arch-gcc)
conflicts=($_arch-gcc)
options=(!emptydirs !strip staticlibs)
source=(git+https://sourceware.org/git/gcc.git#commit=${_commit})
sha256sums=('73dca834e44d5e4501efa3f68a190a902d0a83c66f4cf4fd5b3da24e2cefdaf4')
validpgpkeys=(F3691687D867B81B51CE07D9BBE43771487328A9 # bpiotrowski@archlinux.org
86CFFCA918CF3AF47147588051E8B148A9999C34 # evangelos@foutrelis.com
13975A70E63C361C73AE69EF6EEB81F8981C74C7 # richard.guenther@gmail.com
D3A93CAD751C2AF4F8C7AD516C35B99309B5FA62) # Jakub Jelinek <jakub@redhat.com>
prepare() {
cd $_basedir
rm -rf "$srcdir"/gcc-build
mkdir "$srcdir"/gcc-build
}
build() {
cd gcc-build
# using -pipe causes spurious test-suite failures
# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48565
CFLAGS=${CFLAGS/-pipe/}
CXXFLAGS=${CXXFLAGS/-pipe/}
# Credits @allanmcrae
# https://github.com/allanmcrae/toolchain/blob/f18604d70c5933c31b51a320978711e4e6791cf1/gcc/PKGBUILD
# TODO: properly deal with the build issues resulting from this
CFLAGS=${CFLAGS/-Werror=format-security/}
CXXFLAGS=${CXXFLAGS/-Werror=format-security/}
"$srcdir"/gcc/configure \
--prefix=/usr \
--with-sysroot=/usr/$_target/sys-root \
--libexecdir=/usr/lib \
--target=$_target \
--disable-nls --enable-default-pie \
--enable-languages=c,c++ \
--with-system-zlib --enable-__cxa_atexit \
--enable-linker-build-id \
--enable-plugin \
--with-linker-hash-style=gnu --enable-gnu-indirect-function \
--disable-multilib --disable-werror \
--enable-checking=release --enable-host-shared --disable-libssp --disable-libstdcxx-pch \
--with-arch=armv7-a --with-float=hard --with-fpu=neon
make
}
package() {
cd gcc-build
make install-strip DESTDIR="$pkgdir"
ln -s $_target-gcc "$pkgdir"/usr/bin/$_target-cc
# Remove files that conflict with host gcc package
rm -rf "$pkgdir"/usr/{include,lib/libcc*,share}
}
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 |