which is OK WORK=/tmp/go-buildxxx mkdir -p $WORK/github.com/BurntSushi/toml/_obj/ mkdir -p $WORK/github.com/BurntSushi/ cd /home/ubuntu/go/src/github.com/BurntSushi/toml /usr/bin/gccgo -I $WORK -c -g -m64 -fgo-pkgpath=github.com/BurntSushi/toml -fgo-relative-import-path=_/home/ubuntu/go/src/github.com/BurntSushi/toml -o $WORK/github.com/BurntSushi/toml/_obj/_go_.o ./decode.go ./decode_meta.go ./doc.go ./encode.go ./encoding_types.go ./lex.go ./parse.go ./type_check.go ./type_fields.go ar rc $WORK/github.com/BurntSushi/libtoml.a $WORK/github.com/BurntSushi/toml/_obj/_go_.o mkdir -p $WORK/command-line-arguments/_obj/ mkdir -p $WORK/command-line-arguments/_obj/exe/ cd /home/ubuntu/go/src/github.com/BurntSushi/toml/cmd/tomlv /usr/bin/gccgo -I $WORK -I /home/ubuntu/go/pkg/gccgo_linux_amd64 -c -g -m64 -fgo-relative-import-path=_/home/ubuntu/go/src/github.com/BurntSushi/toml/cmd/tomlv -o $WORK/command-line-arguments/_obj/_go_.o ./main.go ar rc $WORK/libcommand-line-arguments.a $WORK/command-line-arguments/_obj/_go_.o cd . /usr/bin/gccgo -o $WORK/command-line-arguments/_obj/exe/a.out $WORK/command-line-arguments/_obj/_go_.o -Wl,-( -m64 -Wl,--whole-archive $WORK/github.com/BurntSushi/libtoml.a -Wl,--no-whole-archive -Wl,-) mv $WORK/command-line-arguments/_obj/exe/a.out main
在 2017年6月6日星期二 UTC+8下午6:46:38,Joost Shao写道: > > > i know that gccgo vendor not support. > > hi, Dave, but even gopath also not supported ? > > and what's the road map? > > 在 2017年6月6日星期二 UTC+8下午6:38:32,Dave Cheney写道: >> >> I'd say gccgo does not support vendoring. >> >> On Tue, 6 Jun 2017, 20:35 Joost Shao <joosts...@gmail.com> wrote: >> >>> >>> >>> 在 2017年6月6日星期二 UTC+8下午6:35:23,Joost Shao写道: >>> >>>> >>>> >>>> 在 2017年6月6日星期二 UTC+8下午6:34:02,Joost Shao写道: >>>>> >>>>> thank you first, i have been stuck by gccgo-7.x for gopath and >>>>> govendor many days. >>>>> >>>>> gopath is ok, like below. >>>>> >>>>> ubuntu@ubuntu-zesty:~/go/src/github.com/valyala$ tree >>>>> . >>>>> └── fasttemplate >>>>> ├── example_test.go >>>>> ├── LICENSE >>>>> ├── README.md >>>>> ├── template.go >>>>> ├── template_test.go >>>>> ├── template_timing_test.go >>>>> ├── unsafe_gae.go >>>>> ├── unsafe.go >>>>> └── vendor >>>>> └── github.com >>>>> └── valyala >>>>> └── bytebufferpool >>>>> ├── bytebuffer_example_test.go >>>>> ├── bytebuffer.go >>>>> ├── bytebuffer_test.go >>>>> ├── bytebuffer_timing_test.go >>>>> ├── doc.go >>>>> ├── LICENSE >>>>> ├── pool.go >>>>> ├── pool_test.go >>>>> └── README.md >>>>> >>>>> 5 directories, 17 files >>>>> >>>>> >>>>> >>>>> ubuntu@ubuntu-zesty:~$ go env >>>>> GOARCH="amd64" >>>>> GOBIN="" >>>>> GOEXE="" >>>>> GOHOSTARCH="amd64" >>>>> GOHOSTOS="linux" >>>>> GOOS="linux" >>>>> GOPATH="/home/ubuntu/go" >>>>> GORACE="" >>>>> GOROOT="/usr/lib/go-1.7" >>>>> GOTOOLDIR="/usr/lib/go-1.7/pkg/tool/linux_amd64" >>>>> CC="gcc" >>>>> GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 >>>>> -fdebug-prefix-map=/tmp/go-build060029979=/tmp/go-build >>>>> -gno-record-gcc-switches" >>>>> CXX="g++" >>>>> CGO_ENABLED="1" >>>>> >>>>> >>>>> content of main.go >>>>> ubuntu@ubuntu-zesty:~$ cat server.go >>>>> package main >>>>> >>>>> import ( >>>>> "net/http" >>>>> "github.com/labstack/echo" >>>>> ) >>>>> >>>>> func main() { >>>>> e := echo.New() >>>>> e.GET("/", func(c echo.Context) error { >>>>> return c.String(http.StatusOK, "Hello, World!") >>>>> }) >>>>> e.Logger.Fatal(e.Start(":1323")) >>>>> } >>>>> >>>>> by gc compile , the result is OK. >>>>> ubuntu@ubuntu-zesty:~$ go build -x -compiler gc server.go >>>>> WORK=/tmp/go-build058937444 >>>>> mkdir -p $WORK/command-line-arguments/_obj/ >>>>> mkdir -p $WORK/command-line-arguments/_obj/exe/ >>>>> cd /home/ubuntu >>>>> /usr/lib/go-1.7/pkg/tool/linux_amd64/compile -o >>>>> $WORK/command-line-arguments.a -trimpath $WORK -p main -complete -buildid >>>>> 10569227a53a83251f5b0ba912d076c91ac34779 -D _/home/ubuntu -I $WORK -I >>>>> ./go/pkg/linux_amd64 -pack ./server.go >>>>> cd . >>>>> /usr/lib/go-1.7/pkg/tool/linux_amd64/link -o >>>>> $WORK/command-line-arguments/_obj/exe/a.out -L $WORK -L >>>>> /home/ubuntu/go/pkg/linux_amd64 -extld=gcc -buildmode=exe >>>>> -buildid=10569227a53a83251f5b0ba912d076c91ac34779 >>>>> $WORK/command-line-arguments.a >>>>> mv $WORK/command-line-arguments/_obj/exe/a.out server >>>>> >>>>> but by gccgo-7.0 >>>>> ubuntu@ubuntu-zesty:~$ go build -x -compiler gccgo server.go >>>>> WORK=/tmp/go-build118667055 >>>>> mkdir -p $WORK/github.com/mattn/go-isatty/_obj/ >>>>> mkdir -p $WORK/github.com/mattn/ >>>>> cd /home/ubuntu/go/src/github.com/mattn/go-isatty >>>>> /usr/bin/gccgo -I $WORK -c -g -m64 -fgo-pkgpath= >>>>> github.com/mattn/go-isatty >>>>> -fgo-relative-import-path=_/home/ubuntu/go/src/ >>>>> github.com/mattn/go-isatty -o $WORK/ >>>>> github.com/mattn/go-isatty/_obj/_go_.o ./doc.go ./isatty_linux.go >>>>> ./isatty_others.go >>>>> mkdir -p $WORK/github.com/mattn/go-colorable/_obj/ >>>>> cd /home/ubuntu/go/src/github.com/mattn/go-colorable >>>>> /usr/bin/gccgo -I $WORK -c -g -m64 -fgo-pkgpath= >>>>> github.com/mattn/go-colorable >>>>> -fgo-relative-import-path=_/home/ubuntu/go/src/ >>>>> github.com/mattn/go-colorable -o $WORK/ >>>>> github.com/mattn/go-colorable/_obj/_go_.o ./colorable_others.go >>>>> ./noncolorable.go >>>>> ar rc $WORK/github.com/mattn/libgo-colorable.a $WORK/ >>>>> github.com/mattn/go-colorable/_obj/_go_.o >>>>> mkdir -p $WORK/ >>>>> github.com/valyala/fasttemplate/vendor/github.com/valyala/bytebufferpool/_obj/ >>>>> mkdir -p $WORK/ >>>>> github.com/valyala/fasttemplate/vendor/github.com/valyala/ >>>>> cd /home/ubuntu/go/src/ >>>>> github.com/valyala/fasttemplate/vendor/github.com/valyala/bytebufferpool >>>>> /usr/bin/gccgo -I $WORK -c -g -m64 -fgo-pkgpath= >>>>> github.com/valyala/fasttemplate/vendor/github.com/valyala/bytebufferpool >>>>> -fgo-relative-import-path=_/home/ubuntu/go/src/ >>>>> github.com/valyala/fasttemplate/vendor/github.com/valyala/bytebufferpool >>>>> -o $WORK/ >>>>> github.com/valyala/fasttemplate/vendor/github.com/valyala/bytebufferpool/_obj/_go_.o >>>>> >>>>> ./bytebuffer.go ./doc.go ./pool.go >>>>> cd /home/ubuntu/go/src/github.com/mattn/go-isatty >>>>> ar rc $WORK/github.com/mattn/libgo-isatty.a $WORK/ >>>>> github.com/mattn/go-isatty/_obj/_go_.o >>>>> mkdir -p $WORK/github.com/labstack/gommon/color/_obj/ >>>>> mkdir -p $WORK/github.com/labstack/gommon/ >>>>> cd /home/ubuntu/go/src/github.com/labstack/gommon/color >>>>> /usr/bin/gccgo -I $WORK -I /home/ubuntu/go/pkg/gccgo_linux_amd64 -c -g >>>>> -m64 -fgo-pkgpath=github.com/labstack/gommon/color >>>>> -fgo-relative-import-path=_/home/ubuntu/go/src/ >>>>> github.com/labstack/gommon/color -o $WORK/ >>>>> github.com/labstack/gommon/color/_obj/_go_.o ./color.go >>>>> cd /home/ubuntu/go/src/ >>>>> github.com/valyala/fasttemplate/vendor/github.com/valyala/bytebufferpool >>>>> ar rc $WORK/ >>>>> github.com/valyala/fasttemplate/vendor/github.com/valyala/libbytebufferpool.a >>>>> >>>>> $WORK/ >>>>> github.com/valyala/fasttemplate/vendor/github.com/valyala/bytebufferpool/_obj/_go_.o >>>>> mkdir -p $WORK/github.com/valyala/fasttemplate/_obj/ >>>>> mkdir -p $WORK/github.com/valyala/ >>>>> cd /home/ubuntu/go/src/github.com/valyala/fasttemplate >>>>> /usr/bin/gccgo -I $WORK -I /home/ubuntu/go/pkg/gccgo_linux_amd64 -c -g >>>>> -m64 -fgo-pkgpath=github.com/valyala/fasttemplate >>>>> -fgo-relative-import-path=_/home/ubuntu/go/src/ >>>>> github.com/valyala/fasttemplate -o $WORK/ >>>>> github.com/valyala/fasttemplate/_obj/_go_.o ./template.go ./unsafe.go >>>>> # github.com/valyala/fasttemplate >>>>> go/src/github.com/valyala/fasttemplate/template.go:12:35: error: >>>>> import file ‘github.com/valyala/bytebufferpool’ not found >>>>> "github.com/valyala/bytebufferpool" >>>>> ^ >>>>> go/src/github.com/valyala/fasttemplate/template.go:99:34: error: >>>>> expected package >>>>> var byteBufferPool bytebufferpool.Pool >>>>> ^ >>>>> go/src/github.com/valyala/fasttemplate/template.go:124:31: error: >>>>> expected package >>>>> byteBufferPool bytebufferpool.Pool >>>>> ^ >>>>> go/src/github.com/valyala/fasttemplate/template.go:140:2: error: >>>>> return with value in function with no return type >>>>> return t >>>>> ^ >>>>> go/src/github.com/valyala/fasttemplate/template.go:152:3: error: >>>>> return with value in function with no return type >>>>> return nil, err >>>>> ^ >>>>> go/src/github.com/valyala/fasttemplate/template.go:154:2: error: >>>>> return with value in function with no return type >>>>> return &t, nil >>>>> ^ >>>>> go/src/github.com/valyala/fasttemplate/template.go:267:2: error: not >>>>> enough arguments to return >>>>> return t.ExecuteFunc(w, func(w io.Writer, tag string) (int, error) { >>>>> return stdTagFunc(w, tag, m) }) >>>>> ^ >>>>> mkdir -p $WORK/golang.org/x/crypto/acme/_obj/ >>>>> mkdir -p $WORK/golang.org/x/crypto/ >>>>> cd /home/ubuntu/go/src/<a href="http://golang.org/x/crypto/acme" >>>>> rel="nofollow" target="_blank" onmousedown="this.href=' >>>>> http://golang.org/x/crypto/acme >>>>> >>>> -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.