Re: [go-nuts] Generating x/sys/unix cross-platform

2016-08-22 Thread Elliot Morrison-Reed
Okay, I was running qemu behind a corporate proxy which is probably why the zsysnum update failed. I suppose the my best course of action could be just to cherry pick the generated differences that have to do with my additional structure, and leave everything else as is. Thanks for the Info. On

Re: [go-nuts] Generating x/sys/unix cross-platform

2016-08-22 Thread Aram Hăvărneanu
In general, the z files are generated on the target platforms; if you need to generate ppc64 files, you need a ppc64. They usually don't cross-generate, so to speak. However, by obtaining a cross-compiler, setting CC, and modifying the generation scripts, they can be generated on any host. After

Re: [go-nuts] Generating x/sys/unix cross-platform

2016-08-22 Thread Ian Lance Taylor
On Mon, Aug 22, 2016 at 2:45 PM, wrote: > > A few months ago I asked about adding a new struct type to syscall. > (https://groups.google.com/d/msg/golang-nuts/5HTN3QVC_lQ/QuYxNl5UAgAJ) and I > got a great answer from Ian Lance Taylor that it would make sense to use the >

[go-nuts] Generating x/sys/unix cross-platform

2016-08-22 Thread elliotmr
Hello Go-Nuts, A few months ago I asked about adding a new struct type to syscall. (https://groups.google.com/d/msg/golang-nuts/5HTN3QVC_lQ/QuYxNl5UAgAJ) and I got a great answer from Ian Lance Taylor that it would make sense to use the x/sys/unix library for my implementation. This worked