what about now ? i used gccgo-7 to compile framework echo, but failed .

error is blow:

ubuntu@ubuntu-zesty:~$ gccgo-7 -v
Using built-in specs.
COLLECT_GCC=gccgo-7
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured 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-gnu
Thread model: posix
gcc version 7.0.1 20170407 (experimental) [trunk revision 246759] (Ubuntu 
7-20170407-0ubuntu2)


ubuntu@ubuntu-zesty:~$ go build -compiler gccgo  server.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) })
  ^


it seems not support import third party package.

anyone can help me ?

在 2015年12月11日星期五 UTC+8上午10:48:49,Zhongwei Yao写道:
>
> OK, I'll give a try to newer gccgo.
>
> On 11 December 2015 at 10:28, Dave Cheney <da...@cheney.net <javascript:>> 
> wrote:
>
>> I think gccgo is well supported and benefits from the mature gcc 
>> toolchain, ubuntu is just shipping an out of date version.
>>
>> On Friday, 11 December 2015 13:17:12 UTC+11, Zhongwei Yao wrote:
>>>
>>> Hi, Dave, Thanks for your information! I've built and run several 
>>> programs by gc without any problem on arm64. Programs include benchmark 
>>> cases like build, garbage, http, json in golang.org/x/benchmark 
>>> package. The gc is built from recently master branch. And we also have 
>>> tried go 1.5.1 to run docker on arm64, it also works. If you want more 
>>> details, please tell me.
>>>
>>> What I want to do is comparing the performance between gccgo and gc. 
>>> BTW, I'm new to golang. And I don't know why the community is supporting 
>>> both gccgo and gc. Gccgo seems support a lot of architecture, but it is not 
>>> well supported in cases like my problem.
>>>
>>> On 10 December 2015 at 20:17, Dave Cheney <da...@cheney.net> wrote:
>>>
>>>> I believe gccgo 4.9 only implements the go 1.3 spec. sync.Pool was 
>>>> added in 1.4.
>>>>
>>>> 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
>>>>
>>>> --
>>>> 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.
>>>>
>>>
>>>
>>>
>>> -- 
>>> Best regards,
>>> Zhongwei
>>>
>> -- 
>> 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 <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Best regards,
> Zhongwei
>

-- 
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.

Reply via email to