compiler-explorer / compiler-explorer/compiler-explorer

[BUG]: clang++ error cannot specify -o when generating multiple output files

Open
#4,563 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
19.1k
Forks
2.1k
Avg merge
3d 15h
Merged PRs (30d)
67

Description

### Describe the bug

In my local host of compiler explorer, I am adding a clang++ compiler to language CUDA C++. I am providing path to exe and also specifying options='-nocudalib -nocudainc' and compilerType='clang-cuda'. But I am getting the following error

clang-11: error: cannot specify -o when generating multiple output files
Compiler returned: 1

These are compilation options

-o /tmp/compiler-explorer-compiler202309-2508-84mot7.86hlo/output.s -g1 -S -nocudalib -nocudainc -fcolor-diagnostics -fno-crash-diagnostics /tmp/compiler-explorer-compiler202309-2508-84mot7.86hlo/example.cu

### Steps to reproduce

Doing in on my local version on local version of Compiler Explorer so not sure how to reproduce

### Expected behavior

Compiler should return 0

### Reproduction link

Not applicable

### Screenshots

Not applicable

### Operating System

_No response_

### Browser version

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.