armv7l-gcc
maintainer graysky
· 1 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
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
LOW
AI review downgraded a static finding
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)
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:21
source=(git+https://sourceware.org/git/gcc.git#commit=${_commit})
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: graysky <therealgraysky AT proton DOT me>
2
# Contributor: Christer Solskogen <christer.solskogen@gmail.com>
3
# Build order: armv7l-binutils -> armv7l-linux-api-headers -> armv7l-gcc-bootstrap -> armv7l-glibc -> armv7l-gcc -> armv7l-glibc (again)
4
5
_arch=armv7l
6
_target=$_arch-unknown-linux-gnueabihf
7
pkgname=$_arch-gcc
8
pkgver=16.1.1+r346+g4e03491b401d
9
# https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git
10
_commit=4e03491b401dce0658543dd90524ddb92063836e
11
pkgrel=1
12
pkgdesc='The GNU Compiler Collection - cross compiler for armv7l - bootstrap compiler'
13
arch=(x86_64)
14
url='https://gcc.gnu.org/'
15
license=('GPL-3.0-or-later WITH GCC-exception-3.1' GFDL-1.3-or-later)
16
depends=(libmpc zstd libisl $_arch-glibc $_arch-binutils)
17
makedepends=($_arch-binutils git $_arch-linux-api-headers)
18
provides=($_arch-gcc)
19
conflicts=($_arch-gcc)
20
options=(!emptydirs !strip staticlibs)
21
source=(git+https://sourceware.org/git/gcc.git#commit=${_commit})
22
23
sha256sums=('73dca834e44d5e4501efa3f68a190a902d0a83c66f4cf4fd5b3da24e2cefdaf4')
24
25
validpgpkeys=(F3691687D867B81B51CE07D9BBE43771487328A9 # bpiotrowski@archlinux.org
26
86CFFCA918CF3AF47147588051E8B148A9999C34 # evangelos@foutrelis.com
27
13975A70E63C361C73AE69EF6EEB81F8981C74C7 # richard.guenther@gmail.com
28
D3A93CAD751C2AF4F8C7AD516C35B99309B5FA62) # Jakub Jelinek <jakub@redhat.com>
29
30
prepare() {
31
cd $_basedir
32
33
rm -rf "$srcdir"/gcc-build
34
mkdir "$srcdir"/gcc-build
35
}
36
37
build() {
38
cd gcc-build
39
# using -pipe causes spurious test-suite failures
40
# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48565
41
CFLAGS=${CFLAGS/-pipe/}
42
CXXFLAGS=${CXXFLAGS/-pipe/}
43
# Credits @allanmcrae
44
# https://github.com/allanmcrae/toolchain/blob/f18604d70c5933c31b51a320978711e4e6791cf1/gcc/PKGBUILD
45
# TODO: properly deal with the build issues resulting from this
46
CFLAGS=${CFLAGS/-Werror=format-security/}
47
CXXFLAGS=${CXXFLAGS/-Werror=format-security/}
48
49
"$srcdir"/gcc/configure \
50
--prefix=/usr \
51
--with-sysroot=/usr/$_target/sys-root \
52
--libexecdir=/usr/lib \
53
--target=$_target \
54
--disable-nls --enable-default-pie \
55
--enable-languages=c,c++ \
56
--with-system-zlib --enable-__cxa_atexit \
57
--enable-linker-build-id \
58
--enable-plugin \
59
--with-linker-hash-style=gnu --enable-gnu-indirect-function \
60
--disable-multilib --disable-werror \
61
--enable-checking=release --enable-host-shared --disable-libssp --disable-libstdcxx-pch \
62
--with-arch=armv7-a --with-float=hard --with-fpu=neon
63
64
make
65
}
66
67
package() {
68
cd gcc-build
69
70
make install-strip DESTDIR="$pkgdir"
71
ln -s $_target-gcc "$pkgdir"/usr/bin/$_target-cc
72
# Remove files that conflict with host gcc package
73
rm -rf "$pkgdir"/usr/{include,lib/libcc*,share}
74
75
}
76
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | LOW | 2 |
| 2026-08-02 00:16:08 | LOW | 2 |
| 2026-08-01 00:11:18 | LOW | 2 |
| 2026-07-31 00:14:10 | LOW | 2 |
| 2026-07-30 00:17:23 | LOW | 2 |
| 2026-07-29 00:25:53 | LOW | 2 |
| 2026-07-28 00:07:28 | LOW | 2 |
| 2026-07-27 00:24:32 | LOW | 2 |
| 2026-07-26 00:07:32 | LOW | 2 |
| 2026-07-25 00:13:44 | LOW | 2 |
| 2026-07-24 00:02:28 | LOW | 2 |
| 2026-07-23 00:14:47 | LOW | 2 |
| 2026-07-22 00:29:32 | LOW | 2 |
| 2026-07-21 00:24:15 | LOW | 2 |
| 2026-07-20 00:19:49 | LOW | 2 |
| 2026-07-19 00:17:08 | LOW | 2 |
| 2026-07-18 00:14:48 | LOW | 2 |
| 2026-07-17 00:06:16 | LOW | 2 |
| 2026-07-16 00:05:41 | LOW | 2 |
| 2026-07-15 00:09:25 | LOW | 2 |