Skip to content

cmd/asm: unactionable "invalid local variable type 0" #12658

Open

Description

@dvyukov

cmd/asm produces the following error message on the program:

TEXT T(SB),$0
TYPE
asm: T: invalid local variable type 0

The error message should contain file name and line number, otherwise it is unactionable.

go version devel +5512ac2 Wed Sep 16 17:56:14 2015 +0000 linux/amd64

Activity

  1. assigned and unassigned on Sep 17, 2015
  2. robpike commented on Sep 17, 2015

    @robpike
    Contributor

    The TYPE pseudo is not implemented by the assembler, nor was it implemented in the 1.4 assembler. The compiler emits it though. It needs to be brought into the assembler and parsed there. Or, more likely, not.

    The error message here is not the real issue.

  3. dvyukov commented on Sep 17, 2015

    @dvyukov
    MemberAuthor

    FWIW, I've got whole bunch of such messages without any location information:

        287 duplicate TEXT for C    
        198 C: invalid local variable type 0  
        176 T: invalid local variable type 0  
        126 duplicate TEXT for T    
        121 unknown TLS base register for linux  
         56 duplicate TEXT for _    
         24 "".: invalid local variable type 0  
         19 duplicate TEXT for "".    
         15 symbol T listed multiple times   
          3 duplicate TEXT for n    
          2 symbol O listed multiple times   
    
  4. robpike commented on Sep 17, 2015

    @robpike
    Contributor

    Those are all coming from the obj library, not the assembler itself. The obj library could profit by printing location information.

  5. added this to the Go1.6 milestone on Oct 23, 2015
  6. modified the milestones: Unplanned, Go1.6 on Dec 5, 2015
  7. removed their assignment
    on Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    compiler/runtimeIssues related to the Go compiler and/or runtime.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions