Skip to content

Compilation Error: clang-15: error: cannot specify -o when generating multiple output files #7

@yulingao

Description

@yulingao

When attempting to compile hip-analyzer, I encountered the following error:

[  1%] Generating gpu_pass_instr.ll
clang-15: error: cannot specify -o when generating multiple output files
make[2]: *** [CMakeFiles/gpu_pass_instr.dir/build.make:73: gpu_pass_instr.ll] Error 1
make[1]: *** [CMakeFiles/Makefile2:253: CMakeFiles/gpu_pass_instr.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

This issue appears to be caused by specifying the -o option while the hipcc compiler generates multiple output files. Removing the -o gpu_pass_instr.ll option might resolve the issue, but I am seeking a more appropriate solution or guidance on how to handle this correctly.

Could you please provide assistance or a fix for this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions