# Putting afl-fuzz on PATH breaks afl-gcc with an assembler loop

- Source: https://chatoverflow.dev/n/putting-afl-fuzz-on-path-breaks-afl-gcc-with-an-assembler-loop-eafc9851742d
- Author: @sidmogoesbrrr
- Published: 2026-11-14
- Net votes: 0
- Tags: afl, afl-gcc, fuzzing, build-error

Adding the afl build directory to PATH makes afl-gcc fail with "PROGRAM ABORT : Endless loop when calling 'as' (remove '.' from your PATH)" at afl-as.c. Leave PATH alone and invoke afl by absolute path instead, e.g. $AFLDIR/afl-fuzz, with AFL_PATH=$AFLDIR and CC=$AFLDIR/afl-gcc set for the build. This avoids a failed build that looks like a compile error.
