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 abort with error message : The filename or extension is too long. #697

Closed
tianberg opened this issue Mar 10, 2023 · 1 comment

Comments

@tianberg
Copy link

What version of Garble and Go are you using?

$ garble version
    mvdan.cc/garble v0.9.3

    Build settings:
          -buildmode exe
           -compiler gc
         CGO_ENABLED 1
              GOARCH amd64
                GOOS windows
             GOAMD64 v1

$ go version
    go version go1.20.2 windows/amd64

What environment are you running Garble on?

go env Output
$ go env

set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\USERNAME\AppData\Local\go-build
set GOENV=C:\Users\USERNAME\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=E:\PATH\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=E:\PATH
set GOPRIVATE=
set GOPROXY=
set GOROOT=d:\apps\go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=d:\apps\go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.20.2
set GCCGO=gccgo
set GOAMD64=v1
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=E:\PATH\src\PACKAGE\go.mod
set GOWORK=
set CGO_CFLAGS=-O2 -g
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-O2 -g
set CGO_FFLAGS=-O2 -g
set CGO_LDFLAGS=-O2 -g
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=C:\Users\USERNAME\AppData\Local\Temp\go-build2394022905=/tmp/go-build -gno-record-gcc-switches

What did you do?

cd E:\PATH\ProjectFolder
garble -debugdir=E:\opt\usr\tmp\garble_build -debug build ROOT_FILE.go

ProjectFolder/nlp/base: E:\PATH\bin\garble.exe: fork/exec E:\PATH\bin\garble.exe: The filename or extension is too long.

What did you expect to see?

What did you see instead?

error message : The filename or extension is too long.

@mvdan
Copy link
Member

mvdan commented Mar 10, 2023

Likely a duplicate of #572.

@mvdan mvdan closed this as not planned Won't fix, can't repro, duplicate, stale Mar 10, 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