You will have to compile a newer gccgo to.compile that program.
BTW, did you know what go 1.5 and later support arm64 natively?
Thanks
Dave
Dave
--
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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
ubuntu@ubuntu-zesty:~$ gccgo-7 -vUsing built-in specs.COLLECT_GCC=gccgo-7COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapperOFFLOAD_TARGET_NAMES=nvptx-noneOFFLOAD_TARGET_DEFAULT=1Target: x86_64-linux-gnuConfigured with: ../src/configure -v --with-pkgversion='Ubuntu 7-20170407-0ubuntu2' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnuThread model: posixgcc version 7.0.1 20170407 (experimental) [trunk revision 246759] (Ubuntu 7-20170407-0ubuntu2)
ubuntu@ubuntu-zesty:~$ go build -compiler gccgo server.gogo/src/github.com/valyala/fasttemplate/template.go:12:35: error: import file ‘github.com/valyala/bytebufferpool’ not found ^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) }) ^
Does the missing package exist in your gopath?
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 envGOARCH="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"
ubuntu@ubuntu-zesty:~$ cat server.gopackage main
import ( "net/http")
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"))}
ubuntu@ubuntu-zesty:~$ go build -x -compiler gc server.goWORK=/tmp/go-build058937444mkdir -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.gocd ./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.amv $WORK/command-line-arguments/_obj/exe/a.out server
ubuntu@ubuntu-zesty:~$ go build -x -compiler gccgo server.goWORK=/tmp/go-build118667055mkdir -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.gomkdir -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.goar rc $WORK/github.com/mattn/libgo-colorable.a $WORK/github.com/mattn/go-colorable/_obj/_go_.omkdir -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.gocd /home/ubuntu/go/src/github.com/mattn/go-isattyar rc $WORK/github.com/mattn/libgo-isatty.a $WORK/github.com/mattn/go-isatty/_obj/_go_.omkdir -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.gocd /home/ubuntu/go/src/github.com/valyala/fasttemplate/vendor/github.com/valyala/bytebufferpoolar rc $WORK/github.com/valyala/fasttemplate/vendor/github.com/valyala/libbytebufferpool.a $WORK/github.com/valyala/fasttemplate/vendor/github.com/valyala/bytebufferpool/_obj/_go_.omkdir -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
go/src/github.com/valyala/fasttemplate/template.go:12:35: error: import file ‘github.com/valyala/bytebufferpool’ not found ^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/golang.org/x/crypto/acme/usr/bin/gccgo -I $WORK -c -g -m64 -fgo-pkgpath=golang.org/x/crypto/acme -fgo-relative-import-path=_/home/ubuntu/go/src/golang.org/x/crypto/acme -o $WORK/golang.org/x/crypto/acme/_obj/_go_.o ./acme.go ./jws.go ./types.gocd /home/ubuntu/go/src/github.com/labstack/gommon/colorar rc $WORK/github.com/labstack/gommon/libcolor.a $WORK/github.com/labstack/gommon/color/_obj/_go_.ocd /home/ubuntu/go/src/golang.org/x/crypto/acmear rc $WORK/golang.org/x/crypto/libacme.a $WORK/golang.org/x/crypto/acme/_obj/_go_.omkdir -p $WORK/golang.org/x/crypto/acme/autocert/_obj/mkdir -p $WORK/golang.org/x/crypto/acme/cd /home/ubuntu/go/src/golang.org/x/crypto/acme/autocert/usr/bin/gccgo -I $WORK -I /home/ubuntu/go/pkg/gccgo_linux_amd64 -c -g -m64 -fgo-pkgpath=golang.org/x/crypto/acme/autocert -fgo-relative-import-path=_/home/ubuntu/go/src/golang.org/x/crypto/acme/autocert -o $WORK/golang.org/x/crypto/acme/autocert/_obj/_go_.o ./autocert.go ./cache.go ./listener.go ./renewal.go
I'd say gccgo does not support vendoring.
which is OK
WORK=/tmp/go-buildxxxmkdir -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.goar 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.goar rc $WORK/libcommand-line-arguments.a $WORK/command-line-arguments/_obj/_go_.ocd ./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
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
i know that gccgo vendor not support.hi, Dave, but even gopath also not supported ?
and what's the road map?
cd /home/ubuntu/go/src/github.com/valyala/fasttemplate/vendor/github.com/valyala/bytebufferpool