Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

garble build failure #707

Closed
BigCatGit opened this issue Mar 21, 2023 · 1 comment
Closed

garble build failure #707

BigCatGit opened this issue Mar 21, 2023 · 1 comment

Comments

@BigCatGit
Copy link

BigCatGit commented Mar 21, 2023

What version of Garble and Go are you using?

$ garble mvdan.cc/garble v0.9.3

$ go 1.20.2

What environment are you running Garble on?

GO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/xxx/Library/Caches/go-build"
GOENV="/Users/xxx/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/xxx/Documents/Golang/pkg/mod"
GONOPROXY=""
GONOSUMDB="github.com/galeone/tensorflow"
GOOS="darwin"
GOPATH="/Users/bigcat/Documents/Golang"
GOPRIVATE="
"
GOPROXY="https://goproxy.io,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.20.2"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK=""
CGO_CFLAGS="-O2 -g"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-O2 -g"
CGO_FFLAGS="-O2 -g"
CGO_LDFLAGS="-O2 -g"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/sp/qktwd0pn1nl7cv2_klqn_nk40000gn/T/go-build512719906=/tmp/go-build -gno-record-gcc-switches -fno-common"

go env Output
$ go env

package main

import (
"fmt"
)

func main() {
fmt.Println("aaa")
}

`~/Desktop/test  garble build

cannot get modified linker: expected 2 applied patches, actually 0:

正在检查补丁 cmd/link/internal/ld/pcln.go...
正在检查补丁 cmd/link/internal/ld/pcln.go...
成功应用补丁 cmd/link/internal/ld/pcln.go。
成功应用补丁 cmd/link/internal/ld/pcln.go。

exit status 1

@pagran
Copy link
Member

pagran commented Mar 21, 2023

Try garble from master, this bug is already fixed

Dublicate #698

@pagran pagran closed this as completed Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants