New issue
Advanced search Search tips

Issue 591857 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Closed: Aug 2016
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug

Blocking:
issue 537368



Sign in to add a comment

clang fails to assemble file generated by clang -S

Project Member Reported by rahulchaudhry@chromium.org, Mar 4 2016

Issue description

For background, see https://bugs.chromium.org/p/chromium/issues/detail?id=585930
Upstream bug: https://llvm.org/bugs/show_bug.cgi?id=11740

To reproduce:

$ cat conftest.c 
void foo() {}
$ x86_64-cros-linux-gnu-clang -g -S -o conftest.s conftest.c
$ x86_64-cros-linux-gnu-clang -g -c -o conftest.o conftest.s
conftest.s:8:2: error: input can't have .file dwarf directives when -g is used to generate dwarf debug info for assembly code
        .file   1 "conftest.c"
        ^
conftest.s:8:8: error: file number already allocated
        .file   1 "conftest.c"
                ^

Removing "-g" flag from clang command lines "fixes" the problem.

 
Owner: zhizhouy@chromium.org
Status: Assigned (was: Untriaged)
please close :)
Blocking: 537368
Labels: VerifyIn-54

Comment 5 by dchan@chromium.org, Oct 7 2016

Labels: VerifyIn-55

Comment 6 by dchan@google.com, Nov 19 2016

Labels: VerifyIn-56

Comment 7 by dchan@google.com, Jan 21 2017

Labels: VerifyIn-57

Comment 8 by dchan@google.com, Mar 4 2017

Labels: VerifyIn-58

Comment 9 by dchan@google.com, Apr 17 2017

Labels: VerifyIn-59

Comment 10 by dchan@google.com, May 30 2017

Labels: VerifyIn-60
Labels: VerifyIn-61
Status: Verified (was: Fixed)
Closing. Please reopen it if its not fixed. Thanks!

Sign in to add a comment