[Buildroot] [PATCH 1/1] go: bump to 1.10

Peter Korsgaard peter at korsgaard.com
Tue May 1 20:06:40 UTC 2018


>>>>> "Christian" == Christian Stewart <christian at paral.in> writes:

 > Hi Peter,
 > Peter Korsgaard <peter at korsgaard.com> writes:
 >> What is common for all the failures is that the target arch == host arch
 >> (x86-64) AND the C library is different (musl/uclibc-ng).
 >> 
 >> I did a quick test here and the reason is that host-go gets linked with
 >> the target C library:
 >> 
 >> ls -lah build/host-go-1.10/bin/go
 >> -rwxr-xr-x 1 peko peko 11M Apr  1 16:44 build/host-go-1.10/bin/go
 >> 
 >> ./build/host-go-1.10/bin/go
 >> zsh: no such file or directory: ./build/host-go-1.10/bin/go
 >> 
 >> ldd ./build/host-go-1.10/bin/go
 >> linux-vdso.so.1 (0x00007ffcd2bae000)
 >> libc.so.0 => not found
 >> 
 >> libc.so.0 is uClibc-ng.
 >> 
 >> Care to take a look?

 > I haven't had a chance to check on this yet. I'm puzzled why the
 > behavior would be different between glibc and uclibc.

It probably isn't, but if the host uses glibc and the target you build
for also uses glibc (and the same architecture), then it probably works
to link with the target libc instead of the host one.

 > Will do some testing when possible.

Thanks!

-- 
Bye, Peter Korsgaard


More information about the buildroot mailing list