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

Issue 28050043: code review 28050043: cmd/go: When linking with gccgo pass .a files in the or... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 5 months ago by mwhudson
Modified:
10 years, 2 months ago
Reviewers:
gobot, rsc, dave, dvyukov
CC:
golang-codereviews, minux1, rsc, dave_cheney.net
Visibility:
Public.

Description

cmd/go: When linking with gccgo pass .a files in the order they are discovered Under some circumstances linking a test binary with gccgo can fail, because the installed version of the library ends up before the version built for the test on the linker command line. This admittedly slightly hackish fix fixes this by putting the library archives on the linker command line in the order that a pre-order depth first traversal of the dependencies gives them, which has the side effect of always putting the version of the library built for the test first. Fixes issue 6768

Patch Set 1 #

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

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

Total comments: 2

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -11 lines) Patch
M src/cmd/go/build.go View 1 2 3 4 chunks +9 lines, -11 lines 0 comments Download

Messages

Total messages: 17
mwhudson
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
10 years, 5 months ago (2013-11-17 23:30:51 UTC) #1
minux1
can we solve this problem by surrounding the archive files with -Wl,--start-group and -Wl,--end-group?
10 years, 5 months ago (2013-11-18 00:42:58 UTC) #2
mwhudson
On 2013/11/18 00:42:58, minux wrote: > can we solve this problem by surrounding the archive ...
10 years, 5 months ago (2013-11-18 00:57:27 UTC) #3
mwhudson
On 2013/11/18 00:42:58, minux wrote: > can we solve this problem by surrounding the archive ...
10 years, 5 months ago (2013-11-18 00:59:31 UTC) #4
mwhudson
Ping?
10 years, 4 months ago (2013-12-17 03:12:42 UTC) #5
gobot
Replacing golang-dev with golang-codereviews.
10 years, 4 months ago (2013-12-20 16:26:08 UTC) #6
gobot
R=rsc@golang.org (assigned by dave@cheney.net)
10 years, 3 months ago (2014-01-21 04:50:14 UTC) #7
rsc
LGTM https://codereview.appspot.com/28050043/diff/40001/src/cmd/go/build.go File src/cmd/go/build.go (right): https://codereview.appspot.com/28050043/diff/40001/src/cmd/go/build.go#newcode1701 src/cmd/go/build.go:1701: afiles_seen := make(map[*Package]bool) afilesSeen please do the same ...
10 years, 3 months ago (2014-01-22 04:03:05 UTC) #8
dave_cheney.net
Michael. If you want to address rsc's comments, I'll submit this for you when ready. ...
10 years, 3 months ago (2014-01-22 04:17:22 UTC) #9
mwhudson
https://codereview.appspot.com/28050043/diff/40001/src/cmd/go/build.go File src/cmd/go/build.go (right): https://codereview.appspot.com/28050043/diff/40001/src/cmd/go/build.go#newcode1701 src/cmd/go/build.go:1701: afiles_seen := make(map[*Package]bool) On 2014/01/22 04:03:05, rsc wrote: > ...
10 years, 3 months ago (2014-01-23 00:47:52 UTC) #10
dave_cheney.net
*** Submitted as https://code.google.com/p/go/source/detail?r=369547fa0881 *** cmd/go: When linking with gccgo pass .a files in the ...
10 years, 3 months ago (2014-01-28 05:47:27 UTC) #11
gobot
This CL appears to have broken the linux-amd64-race builder.
10 years, 3 months ago (2014-01-28 05:52:06 UTC) #12
dave_cheney.net
Interesting. I can't make the linux race build fail on my machine. On Tue, Jan ...
10 years, 3 months ago (2014-01-28 06:03:13 UTC) #13
dvyukov
On Tue, Jan 28, 2014 at 9:52 AM, <gobot@golang.org> wrote: > This CL appears to ...
10 years, 3 months ago (2014-01-28 07:18:28 UTC) #14
minux1
On Tue, Jan 28, 2014 at 2:18 AM, Dmitry Vyukov <dvyukov@google.com> wrote: > On Tue, ...
10 years, 3 months ago (2014-01-28 07:21:25 UTC) #15
dave_cheney.net
Is it this one ? http://build.golang.org/log/75fba5c70ac0a60131d5327018acb152a0897b92 > On 28 Jan 2014, at 18:18, Dmitry Vyukov ...
10 years, 3 months ago (2014-01-28 07:35:14 UTC) #16
dvyukov
10 years, 3 months ago (2014-01-28 08:16:14 UTC) #17
Filed https://code.google.com/p/go/issues/detail?id=7224

On Tue, Jan 28, 2014 at 9:52 AM,  <gobot@golang.org> wrote:
> This CL appears to have broken the linux-amd64-race builder.
>
>
> https://codereview.appspot.com/28050043/
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-codereviews" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-codereviews+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
Sign in to reply to this message.

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