Skip to content

Commit 1b98873

Browse files
committed
ci: fix tricore-elf-gcc cc1 permissions
The aurix-gcc-toolchain release zip ships libexec/ contents without the unix exec bit. The previous chmod only covered bin/ and tricore-elf/bin/, leaving cc1, cc1plus, lto1, lto-wrapper and collect2 non-executable. Result was a hard-to-diagnose failure during devicetree preprocessing: tricore-elf-gcc: fatal error: cannot execute 'cc1': execvp: No such file or directory Recursively chmod +x the three known dirs and add a smoke compile at image build time so this never silently passes again. Signed-off-by: Parthiban Nallathambi <parthiban@linumiz.com>
1 parent 699c5a0 commit 1b98873

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

Dockerfile.ci

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,13 @@ RUN <<EOF
4141
wget ${WGET_ARGS} https://github.com/Linumiz/aurix-gcc-toolchain/releases/download/v11.3.0/aurixgcc_03-2026_Linux_x86-x64.zip
4242
mkdir -p /opt/toolchains/tricore-elf
4343
unzip -o aurixgcc_03-2026_Linux_x86-x64.zip -d /opt/toolchains/tricore-elf
44-
chmod +x /opt/toolchains/tricore-elf/bin/*
45-
chmod +x /opt/toolchains/tricore-elf/tricore-elf/bin/*
44+
chmod -R +x /opt/toolchains/tricore-elf/bin \
45+
/opt/toolchains/tricore-elf/tricore-elf/bin \
46+
/opt/toolchains/tricore-elf/libexec
4647
rm aurixgcc_03-2026_Linux_x86-x64.zip
48+
echo 'int main(void){return 0;}' > /tmp/__tricore_smoke.c
49+
/opt/toolchains/tricore-elf/bin/tricore-elf-gcc -c /tmp/__tricore_smoke.c -o /tmp/__tricore_smoke.o
50+
rm /tmp/__tricore_smoke.c /tmp/__tricore_smoke.o
4751
fi
4852
EOF
4953

0 commit comments

Comments
 (0)