[9fans] Go tip build fails

2013-05-01 Thread Skip Tavakkolian
Go build is failing today and no mention of it in issue tracker. Anyone else seeing this problem? ... cmd/go main.parseMetaGoImports: pc-relative relocation address is too big: 0x10003b677 main.parseMetaGoImports: pc-relative relocation address is too big: 0x100040cf3 main.parseMetaGoImports:

Re: [9fans] Go tip build fails

2013-05-01 Thread Rob Pike
Are you using Plan 9? Because I don't understand how you could get those messages on Plan 9, but I do on other systems. -rob

Re: [9fans] Go tip build fails

2013-05-01 Thread Jacob Todd
I'm experiencing the same problem.

Re: [9fans] Go tip build fails

2013-05-01 Thread sl
troubleshooting First * STATE YOUR ASSUMPTIONS. * cat /etc/os-release to verify you are not, in fact, running Ubuntu Linux with a Plan 9 theme. * Try the latest ISO image. -sl

Re: [9fans] Go tip build fails

2013-05-01 Thread David du Colombier
Go build is failing today and no mention of it in issue tracker. Anyone else seeing this problem? Same problem here. cmd/go main.parseMetaGoImports: pc-relative relocation address is too big: 0x10003b677 main.parseMetaGoImports: pc-relative relocation address is too big: 0x100040cf3

Re: [9fans] Go tip build fails

2013-05-01 Thread Skip Tavakkolian
yes. On Wed, May 1, 2013 at 11:11 AM, Rob Pike robp...@gmail.com wrote: Are you using Plan 9? Because I don't understand how you could get those messages on Plan 9, but I do on other systems. -rob

Re: [9fans] Go tip build fails

2013-05-01 Thread Rob Pike
that means you are building from source in the ld directory, look for assignments to rd-add from calls to e32. two do not do a cast to int32. try casting those two and let me know if you can i will be at work in a couple of hours, not on a phone, and can offer more help then. -rob On May

Re: [9fans] Go tip build fails

2013-05-01 Thread Skip Tavakkolian
the diagnostic string only appears in one place; it's in this presumably abandoned patch: https://codereview.appspot.com/9036046/ On Wed, May 1, 2013 at 11:30 AM, David du Colombier 0in...@gmail.comwrote: Go build is failing today and no mention of it in issue tracker. Anyone else seeing

Re: [9fans] Go tip build fails

2013-05-01 Thread Skip Tavakkolian
bootes% grep -n 'rp-add' *.[ch] | grep e32 ldelf.c:709: rp-add = e-e32(sect-base+rp-off); ldmacho.c:807: rp-add = (int32)e-e32(s-p+rp-off) + rp-off + 4 - secaddr; ldmacho.c:809: rp-add = (int32)e-e32(s-p+rp-off); ldpe.c:294: rp-add = (int32)le32(rsect-base+rp-off); ldpe.c:300: rp-add =

Re: [9fans] Go tip build fails

2013-05-01 Thread David du Colombier
in the ld directory, look for assignments to rd-add from calls to e32. two do not do a cast to int32. try casting those two and let me know if you can I made this change and it doesn't seem to fix the problem. diff -r 3478ecc801f6 src/cmd/ld/ldelf.c --- a/src/cmd/ld/ldelf.cWed May 01

Re: [9fans] Go tip build fails

2013-05-01 Thread Skip Tavakkolian
found the other instance at line ldelf.c:681; the assignment from e32 is indirect via add. same results as before. On Wed, May 1, 2013 at 12:14 PM, Skip Tavakkolian skip.tavakkol...@gmail.com wrote: bootes% grep -n 'rp-add' *.[ch] | grep e32 ldelf.c:709: rp-add = e-e32(sect-base+rp-off);

Re: [9fans] Go tip build fails

2013-05-01 Thread Matthew Veety
I don't think changing ldelf.c would fix this issue. IIRC we don't use it on Plan 9. On May 1, 2013, at 15:25, Skip Tavakkolian skip.tavakkol...@gmail.com wrote: found the other instance at line ldelf.c:681; the assignment from e32 is indirect via add. same results as before. On Wed,

Re: [9fans] Go tip build fails

2013-05-01 Thread Rob Pike
The patch was not abandoned; that message was a codereview glitch. It's checked in. We need to find where the bogus relocation is coming from. It *is* bogus, but the error catching it is new. To make progress, feel free to comment out the code that prints the error. I'm pretty sure you'll be

Re: [9fans] Go tip build fails

2013-05-01 Thread Russ Cox
Are you all using 386 or amd64 systems? Russ

Re: [9fans] Go tip build fails

2013-05-01 Thread Skip Tavakkolian
386 here. On Wed, May 1, 2013 at 1:46 PM, Russ Cox r...@swtch.com wrote: Are you all using 386 or amd64 systems? Russ

Re: [9fans] Go tip build fails

2013-05-01 Thread Rob Pike
It would be easier to debug this if there was a way I could log in to a Plan 9 machine (or virtual machine) capable of compiling and running the Go distribution. Such public services have existed in the past; does one exist today? Please contact me privately if you can help. -rob

Re: [9fans] Go tip build fails

2013-05-01 Thread Rob Pike
Thanks to machines offered by Erik Quanstrom and David du Colombier, I found the bug. Trivial fix is out for review. C's usual integer conversions apply. -rob