<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Bindings/Go/go.test fails with "Errorf format %d has arg newattr of wrong type llvm.org/llvm/bindings/go/llvm.Attribute""
   href="https://bugs.llvm.org/show_bug.cgi?id=40561">40561</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Bindings/Go/go.test fails with "Errorf format %d has arg newattr of wrong type llvm.org/llvm/bindings/go/llvm.Attribute"
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>hans@chromium.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org, peter@pcc.me.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The test started failing for me recently. I don't see any changes around this
code, so maybe it's my local go version that changed or something.

The error seems real to me: we're trying to print an Attribute with %d. The
test talks about "attribute masks" I'm not sure what that refers to, but I
suppose we could print the raw pointer value, since that's what the test seems
to be comparing?




--
FAIL: LLVM :: Bindings/Go/go.test (20355 of 29679)
******************** TEST 'LLVM :: Bindings/Go/go.test' FAILED
********************
Script:
--
: 'RUN: at line 1';   /work/llvm.monorepo/build.release/bin/llvm-go
go=/usr/lib/google-golang/bin/go test llvm.org/llvm/bindings/go/llvm
--
Exit Code: 1

Command Output (stdout):
--
FAIL    llvm.org/llvm/bindings/go/llvm [build failed]

--
Command Output (stderr):
--
# llvm.org/llvm/bindings/go/llvm
/tmp/lit_tmp_zx1JSU/gopath346809403/src/llvm.org/llvm/bindings/go/llvm/ir_test.go:33:3:
Errorf format %d has arg newattr of wrong type
llvm.org/llvm/bindings/go/llvm.Attribute
/tmp/lit_tmp_zx1JSU/gopath346809403/src/llvm.org/llvm/bindings/go/llvm/ir_test.go:44:3:
Errorf format %d has arg newattr of wrong type
llvm.org/llvm/bindings/go/llvm.Attribute

--</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>