Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1505)

Issue 128230046: code review 128230046: cmd/dist: goc2c ignores GOROOT_FINAL

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 8 months ago by hgschmie
Modified:
9 years, 8 months ago
Reviewers:
gobot, iant
CC:
golang-codereviews, iant
Visibility:
Public.

Description

cmd/dist: goc2c ignores GOROOT_FINAL When building golang, the environment variable GOROOT_FINAL can be set to indicate a different installation location from the build location. This works fine, except that the goc2c build step embeds line numbers in the resulting c source files that refer to the build location, no the install location. This would not be a big deal, except that in turn the linker uses the location of runtime/string.goc to embed the gdb script in the resulting binary and as a net result, the debugger now complains that the script is outside its load path (it has the install location configured). See https://code.google.com/p/go/issues/detail?id=8524 for the full description. Fixes issue 8524.

Patch Set 1 #

Patch Set 2 : diff -r 3b864e02b987171e05e2e9d0840b85b5b6476386 https://code.google.com/p/go #

Patch Set 3 : diff -r 3b864e02b987171e05e2e9d0840b85b5b6476386 https://code.google.com/p/go #

Total comments: 2

Patch Set 4 : diff -r db1c196c7e1b5c983d07f4964fb5ed8f4f342fbb https://code.google.com/p/go #

Patch Set 5 : diff -r db1c196c7e1b5c983d07f4964fb5ed8f4f342fbb https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -6 lines) Patch
M src/cmd/dist/a.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/dist/build.c View 1 4 chunks +6 lines, -2 lines 0 comments Download
M src/cmd/dist/goc2c.c View 1 2 3 4 5 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 10
hgschmie
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
9 years, 8 months ago (2014-08-14 17:38:53 UTC) #1
iant
https://codereview.appspot.com/128230046/diff/40001/src/cmd/dist/goc2c.c File src/cmd/dist/goc2c.c (right): https://codereview.appspot.com/128230046/diff/40001/src/cmd/dist/goc2c.c#newcode783 src/cmd/dist/goc2c.c:783: file = goc_final; This means that any errors during ...
9 years, 8 months ago (2014-08-15 14:02:15 UTC) #2
hgschmie
Hello golang-codereviews@googlegroups.com, iant@golang.org (cc: golang-codereviews@googlegroups.com), Please take another look.
9 years, 8 months ago (2014-08-15 18:49:02 UTC) #3
hgschmie
https://codereview.appspot.com/128230046/diff/40001/src/cmd/dist/goc2c.c File src/cmd/dist/goc2c.c (right): https://codereview.appspot.com/128230046/diff/40001/src/cmd/dist/goc2c.c#newcode783 src/cmd/dist/goc2c.c:783: file = goc_final; Fixed that in #5.
9 years, 8 months ago (2014-08-15 18:50:46 UTC) #4
iant
LGTM
9 years, 8 months ago (2014-08-15 19:03:08 UTC) #5
iant
Have you signed the CLA as described at http://golang.org/doc/contribute.html#copyright ?
9 years, 8 months ago (2014-08-15 19:03:54 UTC) #6
hgschmie
On 2014/08/15 19:03:54, iant wrote: > Have you signed the CLA as described at > ...
9 years, 8 months ago (2014-08-15 22:12:52 UTC) #7
iant
*** Submitted as https://code.google.com/p/go/source/detail?r=42926452c8c0 *** cmd/dist: goc2c ignores GOROOT_FINAL When building golang, the environment variable ...
9 years, 8 months ago (2014-08-15 22:19:04 UTC) #8
gobot
This CL appears to have broken the windows-386 builder. See http://build.golang.org/log/836e83f493d3400c324d5102bbf45840a7c23136
9 years, 8 months ago (2014-08-15 23:38:32 UTC) #9
iant
9 years, 8 months ago (2014-08-16 00:43:00 UTC) #10
On Fri, Aug 15, 2014 at 4:38 PM,  <gobot@golang.org> wrote:
> This CL appears to have broken the windows-386 builder.
> See http://build.golang.org/log/836e83f493d3400c324d5102bbf45840a7c23136
>
> https://codereview.appspot.com/128230046/

Not real failures.  All timeouts.

Ian
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b