aocc
maintainer disc-kuraudo
· 5 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package downloads a compiler tarball from AMD's official domain (download.amd.com), which is the project's legitimate source; despite the static analyzer flag for a non-whitelisted host, this is a normal build-from-official-source scenario with no code execution risk beyond the compiled software itself.
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 package downloads a compiler tarball from AMD's official domain (download.amd.com), which is the project's legitimate source; despite the static analyzer flag for a non-whitelisted host, this is a normal build-from-official-source scenario with no code execution risk beyond the compiled software itself.
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:19
"https://download.amd.com/developer/eula/aocc/aocc-${_major}/aocc-compiler-${pkgver}.tar"
PKGBUILD
1 offending line(s) highlighted
1
# shellcheck disable=SC2034,SC2086,SC2128,SC2148,SC2154,SC2164
2
# Maintainer: Toria <ninetailedtori@uwu.gal>
3
# Maintainer: Darjan Krijan [https://disc-kuraudo.eu]
4
DLAGENTS=("https::/usr/bin/curl -A 'Mozilla' -fLC - --retry 3 --retry-delay 3 -o %o %u")
5
url="https://www.amd.com/en/developer/aocc.html"
6
_fetch_data=$(curl -sA 'Mozilla' "$url")
7
8
pkgname=aocc
9
_major=$(echo "$_fetch_data" | grep -oP 'aocc-\K\d+-\d+(?=-eula)' -- | head -1)
10
pkgver=$(echo "$_fetch_data" | grep -oP 'aocc-compiler-\K\d+\.\d+\.\d+' -- | head -1)
11
pkgrel=1
12
pkgdesc="AMD Optimizing C/C++ Compiler"
13
arch=('x86_64')
14
license=('custom')
15
makedepends=('curl')
16
options=('staticlibs' '!strip' 'libtool')
17
optdepends=('env-modules')
18
source=(
19
"https://download.amd.com/developer/eula/aocc/aocc-${_major}/aocc-compiler-${pkgver}.tar"
20
"modulefile"
21
)
22
install=aocc.install
23
sha256sums=(
24
"$(echo "$_fetch_data" | grep -oP '\w{64}(?=</td>)' | sed -n '1p')"
25
'1740216760f755dc031d54f06c29333bca73f728d89a706f405b41e737bfc56f'
26
)
27
# Default compiler flags
28
# This by default sets your flags to CFLAGS, but you may replace them.
29
_default_flags="$CFLAGS"
30
31
# path hardcoded in aocc.install. if you change this, change paths there as well
32
_aocc_prefix=/opt/aocc
33
34
package() {
35
prefix=${pkgdir}${_aocc_prefix}
36
mkdir -p ${prefix}
37
38
cp -rp ${srcdir}/${pkgname}-compiler-${pkgver}/* ${prefix}
39
40
ln -s ${_aocc_prefix}/bin/clang ${prefix}/bin/aocc-clang
41
ln -s ${_aocc_prefix}/bin/clang++ ${prefix}/bin/aocc-clang++
42
ln -s ${_aocc_prefix}/bin/flang ${prefix}/bin/aocc-flang
43
44
# Default flags the compilers should use
45
# This only works together with calling the "aocc-" prefixed symlinks above
46
# Verbose output should read "Configuration file: /opt/aocc/bin/aocc.cfg"
47
echo "${_default_flags}" > ${prefix}/bin/aocc.cfg
48
49
# env-modules (optional)
50
cp ${srcdir}/modulefile ${prefix}
51
mkdir -p ${pkgdir}/etc/modules/modulefiles
52
ln -s ${_aocc_prefix}/modulefile ${pkgdir}/etc/modules/modulefiles/${pkgname}
53
}
54
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 |