aocc
The package downloads a prebuilt compiler tarball from a non-whitelisted but plausible official host (download.amd.com); while the source is unverifiable due to a dynamically fetched and uncheckable checksum, it is a legitimate AMD product, and the worst case is a compromised compiler toolchain.
Triggered rules
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:24
"https://download.amd.com/developer/eula/aocc/aocc-${_major}/aocc-compiler-${pkgver}.tar"
llm_review
An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is MEDIUM (confidence 90%): The package downloads a prebuilt compiler tarball from a non-whitelisted but plausible official host (download.amd.com); while the source is unverifiable due to a dynamically fetched and uncheckable checksum, it is a legitimate AMD product, and the worst case is a compromised compiler toolchain.
PKGBUILD
1 offending line(s) highlighted# shellcheck disable=SC2034,SC2086,SC2128,SC2148,SC2154,SC2164
# Maintainer: Toria <ninetailedtori@uwu.gal>
# Maintainer: Darjan Krijan [https://disc-kuraudo.eu]
url="https://www.amd.com/en/developer/aocc.html"
_major=5-2
pkgver=5.2.0
_fetch_data=$(curl -sA 'Mozilla' "${url}") && {
_major=$(echo "${_fetch_data}" | grep -oP 'aocc-\K\d+-\d+(?=-eula)' -- | head -1)
pkgver=$(echo "${_fetch_data}" | grep -oP 'aocc-compiler-\K\d+\.\d+\.\d+' -- | head -1)
}
DLAGENTS=("https::/usr/bin/curl -A 'Mozilla' -fLC - --retry 3 --retry-delay 3 -o %o %u")
pkgname=aocc
pkgrel=1
pkgdesc="AMD Optimizing C/C++ Compiler"
arch=('x86_64')
license=('custom')
makedepends=('curl')
options=('staticlibs' '!strip' 'libtool')
optdepends=('environment-modules')
source=(
"https://download.amd.com/developer/eula/aocc/aocc-${_major}/aocc-compiler-${pkgver}.tar"
"modulefile"
)
install=aocc.install
sha256sums=(
"$(echo "${_fetch_data}" | grep -oP '\w{64}(?=</td>)' | sed -n '1p')"
'1740216760f755dc031d54f06c29333bca73f728d89a706f405b41e737bfc56f'
)
# Default compiler flags
# This by default sets your flags to CFLAGS, but you may replace them.
_default_flags="${CFLAGS}"
# path hardcoded in aocc.install. if you change this, change paths there as well
_aocc_prefix=/opt/aocc
package() {
prefix=${pkgdir}${_aocc_prefix}
mkdir -p ${prefix}
cp -rp ${srcdir}/${pkgname}-compiler-${pkgver}/* ${prefix}
ln -s ${_aocc_prefix}/bin/clang ${prefix}/bin/aocc-clang
ln -s ${_aocc_prefix}/bin/clang++ ${prefix}/bin/aocc-clang++
ln -s ${_aocc_prefix}/bin/flang ${prefix}/bin/aocc-flang
# Default flags the compilers should use
# This only works together with calling the "aocc-" prefixed symlinks above
# Verbose output should read "Configuration file: /opt/aocc/bin/aocc.cfg"
echo "${_default_flags}" > ${prefix}/bin/aocc.cfg
# env-modules (optional)
cp ${srcdir}/modulefile ${prefix}
mkdir -p ${pkgdir}/etc/modules/modulefiles
ln -s ${_aocc_prefix}/modulefile ${pkgdir}/etc/modules/modulefiles/${pkgname}
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-17 00:27:14 | Medium | 2 |
| 2026-09-16 00:03:17 | Medium | 2 |
| 2026-09-15 00:25:31 | Medium | 2 |
| 2026-09-14 00:27:57 | Medium | 2 |
| 2026-09-13 00:19:54 | Medium | 2 |
| 2026-09-12 00:25:17 | Medium | 2 |
| 2026-09-11 00:19:22 | Medium | 2 |
| 2026-09-10 00:22:44 | Medium | 2 |
| 2026-09-09 00:04:09 | Medium | 2 |
| 2026-09-08 00:18:08 | Medium | 2 |
| 2026-09-07 00:30:15 | Medium | 2 |
| 2026-09-06 00:17:06 | Medium | 2 |
| 2026-09-05 00:16:27 | Medium | 2 |
| 2026-09-04 00:03:13 | Medium | 2 |
| 2026-09-03 00:15:47 | Medium | 2 |
| 2026-09-02 00:02:31 | Medium | 2 |
| 2026-09-01 00:11:19 | Medium | 2 |
| 2026-08-31 00:19:57 | Medium | 2 |
| 2026-08-30 00:04:14 | Medium | 2 |
| 2026-08-29 00:29:17 | Medium | 2 |