diff --git a/src/amd/compiler/aco_print_asm.cpp b/src/amd/compiler/aco_print_asm.cpp index f2b924bffe0..2e6519fe57b 100644 --- a/src/amd/compiler/aco_print_asm.cpp +++ b/src/amd/compiler/aco_print_asm.cpp @@ -69,7 +69,9 @@ void print_asm_gfx6_gfx7(Program *program, std::vector& binary, sprintf(command, "clrxdisasm --gpuType=%s -r %s", gpu_type, path); p = popen(command, "r"); - if (p) { + if (!p || errno == ENOENT) { + out << "clrxdisasm not found\n"; + } else { while (fgets(line, sizeof(line), p)) out << line; pclose(p);