[llvm-bugs] [Bug 50195] New: Bindings/Go/go.test fails - lld flag treatment

via llvm-bugs llvm-bugs at lists.llvm.org
Sat May 1 20:40:51 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=50195

            Bug ID: 50195
           Summary: Bindings/Go/go.test fails - lld flag treatment
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Core LLVM classes
          Assignee: unassignedbugs at nondot.org
          Reporter: uday at polymagelabs.com
                CC: llvm-bugs at lists.llvm.org

[I couldn't find the right component to file this against. There appears to be
nothing for Go bindings or even bindings?]

commit 1977c53b2ae425541a0ef329ca10cc8d5cacd0cd (origin/main)
Date:   Wed Apr 28 11:34:45 2021 +0900

A `ninja check-all` yields this single failure.

-------------------------
FAIL: LLVM :: Bindings/Go/go.test (1362 of 44478)
******************** TEST 'LLVM :: Bindings/Go/go.test' FAILED
********************
Script:
--
: 'RUN: at line 1';   /home/uday/llvm-project-upstream/build/bin/llvm-go
go=/usr/bin/go test llvm.org/llvm/bindings/go/llvm
--
Exit Code: 1

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

--
Command Output (stderr):
--
go build runtime/cgo: invalid flag in go:cgo_ldflag: -fuse-ld=lld

--

********************
********************
Failed Tests (1):
  LLVM :: Bindings/Go/go.test


Testing Time: 35.14s
  Unsupported      : 19076
  Passed           : 25341
  Expectedly Failed:    60
  Failed           :     1
------------------

cmake -G Ninja ../llvm    -DLLVM_ENABLE_PROJECTS="mlir" 
-DLLVM_TARGETS_TO_BUILD="X86;NVPTX"    -DCMAKE_BUILD_TYPE=Release 
-DLLVM_ENABLE_ASSERTIONS=ON  -DLLVM_ENABLE_LLD=ON -DLLVM_CCACHE_BUILD=ON

$ /usr/bin/go version
go version go1.14.12 linux/amd64

$ python --version
Python 3.6.8

$ cat /etc/*release*
CentOS Linux release 8.3.2011
Derived from Red Hat Enterprise Linux 8.3
NAME="CentOS Linux"
VERSION="8"

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210502/954a0721/attachment.html>


More information about the llvm-bugs mailing list