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

Issue 4978047: code review 4978047: ld: Fixes issue 1899 ("cannot create 8.out.exe") (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 8 months ago by jp
Modified:
12 years, 7 months ago
Reviewers:
CC:
rsc, brainman, bsiegert, hector, bradfitz, golang-dev
Visibility:
Public.

Description

ld: Fixes issue 1899 ("cannot create 8.out.exe") http://code.google.com/p/go/issues/detail?id=1899

Patch Set 1 #

Patch Set 2 : diff -r 070b7cc84e48 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 070b7cc84e48 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 070b7cc84e48 https://go.googlecode.com/hg/ #

Total comments: 3

Patch Set 5 : diff -r 070b7cc84e48 https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 6 : diff -r 070b7cc84e48 https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r 070b7cc84e48 https://go.googlecode.com/hg/ #

Patch Set 8 : diff -r 070b7cc84e48 https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 9 : diff -r 1d40e9b94b91 https://go.googlecode.com/hg/ #

Patch Set 10 : diff -r 1d40e9b94b91 https://go.googlecode.com/hg/ #

Patch Set 11 : diff -r 2a748f320ba5 https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 12 : diff -r 546f21eebee8 https://go.googlecode.com/hg/ #

Total comments: 4

Patch Set 13 : diff -r 546f21eebee8 https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 14 : diff -r 0eaf2652c608 https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 15 : diff -r e3fce1a757cb https://go.googlecode.com/hg/ #

Patch Set 16 : diff -r e3fce1a757cb https://go.googlecode.com/hg/ #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -3 lines) Patch
M doc/progs/run View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +8 lines, -3 lines 1 comment Download
M src/cmd/ld/lib.c View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 66
jp
Hello golang-dev@googlegroups.com (cc: alex.brainman@gmail.com, golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 8 months ago (2011-08-31 02:57:00 UTC) #1
rsc
This fixes two links in a row trying to use the same output file name. ...
12 years, 8 months ago (2011-08-31 10:52:18 UTC) #2
jp
Three in a row work for me. On 2011/08/31 10:52:18, rsc wrote: > This fixes ...
12 years, 8 months ago (2011-08-31 21:14:57 UTC) #3
rsc
Okay, sounds good. Please remove the ifdef and use just "~". We might as well ...
12 years, 8 months ago (2011-08-31 21:16:18 UTC) #4
rsc
temp = smprint("%s~", outfile)
12 years, 8 months ago (2011-08-31 21:16:39 UTC) #5
jp
Hello golang-dev@googlegroups.com, rsc@golang.org (cc: alex.brainman@gmail.com, golang-dev@googlegroups.com), Please take another look.
12 years, 8 months ago (2011-08-31 21:40:41 UTC) #6
rsc
With the changes below it would look fine except that the rename has the arguments ...
12 years, 8 months ago (2011-08-31 21:46:58 UTC) #7
brainman
Please, change CL description to something like: " ld: rename + remove to work around ...
12 years, 8 months ago (2011-08-31 23:45:01 UTC) #8
jp
On 2011/08/31 21:46:58, rsc wrote: > They were backward in your original CL too. Oops. ...
12 years, 8 months ago (2011-09-01 04:26:40 UTC) #9
rsc
yay portability http://codereview.appspot.com/4978047/diff/17003/src/cmd/ld/lib.c File src/cmd/ld/lib.c (left): http://codereview.appspot.com/4978047/diff/17003/src/cmd/ld/lib.c#oldcode73 src/cmd/ld/lib.c:73: remove(outfile); Skipping the remove is not okay ...
12 years, 8 months ago (2011-09-01 17:55:34 UTC) #10
jp
PTAL http://codereview.appspot.com/4978047/diff/17003/src/cmd/ld/lib.c File src/cmd/ld/lib.c (left): http://codereview.appspot.com/4978047/diff/17003/src/cmd/ld/lib.c#oldcode73 src/cmd/ld/lib.c:73: remove(outfile); On 2011/09/01 17:55:35, rsc wrote: Hereinafter: 'Windows' ...
12 years, 8 months ago (2011-09-01 23:54:47 UTC) #11
rsc
I don't think you have to check the return values. Just do a rename + ...
12 years, 8 months ago (2011-09-01 23:59:48 UTC) #12
jp
On 2011/09/01 23:59:48, rsc wrote: Do you mean? cout = create(outfile, 1, 0775); if(cout < ...
12 years, 8 months ago (2011-09-02 00:15:59 UTC) #13
jp
Hello rsc@golang.org, alex.brainman@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 8 months ago (2011-09-02 00:33:40 UTC) #14
bsiegert
On Thu, Sep 1, 2011 at 19:55, <rsc@golang.org> wrote: > Maybe Windows is keeping the ...
12 years, 8 months ago (2011-09-02 08:24:06 UTC) #15
rsc
http://codereview.appspot.com/4978047/diff/11006/src/cmd/ld/lib.c File src/cmd/ld/lib.c (right): http://codereview.appspot.com/4978047/diff/11006/src/cmd/ld/lib.c#newcode75 src/cmd/ld/lib.c:75: // It is essencial to try create() first No, ...
12 years, 8 months ago (2011-09-02 17:21:22 UTC) #16
jp
On 2011/09/02 17:21:22, rsc wrote: > http://codereview.appspot.com/4978047/diff/11006/src/cmd/ld/lib.c > File src/cmd/ld/lib.c (right): > > http://codereview.appspot.com/4978047/diff/11006/src/cmd/ld/lib.c#newcode75 > ...
12 years, 8 months ago (2011-09-05 16:25:04 UTC) #17
rsc
Okay, then let's just go back to replacing remove(outfile); with #ifndef _WIN32 remove(outfile); #endif
12 years, 8 months ago (2011-09-05 17:07:53 UTC) #18
brainman
http://codereview.appspot.com/4978047/diff/11006/src/cmd/ld/lib.c File src/cmd/ld/lib.c (right): http://codereview.appspot.com/4978047/diff/11006/src/cmd/ld/lib.c#newcode80 src/cmd/ld/lib.c:80: if(0 != remove(outfile)) { I still get errors with ...
12 years, 8 months ago (2011-09-06 02:25:05 UTC) #19
brainman
On 2011/09/05 16:25:04, jp wrote: > > Third ld's run will fail on rename(), then ...
12 years, 8 months ago (2011-09-06 02:30:48 UTC) #20
brainman
On 2011/09/05 17:07:53, rsc wrote: > > #ifndef _WIN32 > remove(outfile); > #endif This fails ...
12 years, 8 months ago (2011-09-06 02:31:32 UTC) #21
jp
On 2011/09/06 02:30:48, brainman wrote: > On 2011/09/05 16:25:04, jp wrote: > > > > ...
12 years, 8 months ago (2011-09-06 04:24:55 UTC) #22
brainman
On 2011/09/06 04:24:55, jp wrote: > > PTAL, tha last patch is Russ' one (which ...
12 years, 8 months ago (2011-09-06 07:09:47 UTC) #23
rsc
I am confused. I thought we had finished enumerating the reasons that rename+remove was not ...
12 years, 8 months ago (2011-09-07 17:52:19 UTC) #24
brainman
On 2011/09/07 17:52:19, rsc wrote: > > #ifndef _WIN32 > remove(outfile); > #endif > I ...
12 years, 8 months ago (2011-09-07 23:12:52 UTC) #25
rsc
On Wed, Sep 7, 2011 at 19:12, <alex.brainman@gmail.com> wrote: > On 2011/09/07 17:52:19, rsc wrote: ...
12 years, 8 months ago (2011-09-08 00:53:40 UTC) #26
brainman
On 2011/09/08 00:53:40, rsc wrote: > ... What is the problem that you are seeing? ...
12 years, 8 months ago (2011-09-08 03:05:26 UTC) #27
jp
On 2011/09/08 03:05:26, brainman wrote: > - remove(outfile); > +// remove(outfile); > $ for i ...
12 years, 8 months ago (2011-09-08 07:44:49 UTC) #28
jp
Reproduced with an external USB drive. It seems to be a bug of MinGW's bash.exe ...
12 years, 8 months ago (2011-09-08 09:50:11 UTC) #29
rsc
http://codereview.appspot.com/4978047/diff/15003/doc/progs/run File doc/progs/run (right): http://codereview.appspot.com/4978047/diff/15003/doc/progs/run#newcode45 doc/progs/run:45: TMPFILE="/tmp/gotest3-$$-$USER" # Write to temporary file to avoid mingw ...
12 years, 8 months ago (2011-09-12 17:00:24 UTC) #30
jp
http://codereview.appspot.com/4978047/diff/15003/doc/progs/run File doc/progs/run (right): http://codereview.appspot.com/4978047/diff/15003/doc/progs/run#newcode45 doc/progs/run:45: TMPFILE="/tmp/gotest3-$$-$USER" On 2011/09/12 17:00:24, rsc wrote: > # Write ...
12 years, 8 months ago (2011-09-12 18:10:05 UTC) #31
rsc
http://codereview.appspot.com/4978047/diff/6004/doc/progs/run File doc/progs/run (right): http://codereview.appspot.com/4978047/diff/6004/doc/progs/run#newcode45 doc/progs/run:45: # Write to temporary file to avoid mingw bash ...
12 years, 8 months ago (2011-09-12 18:29:47 UTC) #32
jp
http://codereview.appspot.com/4978047/diff/6004/doc/progs/run File doc/progs/run (right): http://codereview.appspot.com/4978047/diff/6004/doc/progs/run#newcode45 doc/progs/run:45: # Write to temporary file to avoid mingw bash ...
12 years, 8 months ago (2011-09-12 19:21:57 UTC) #33
rsc
LGTM Thanks for seeing it through.
12 years, 8 months ago (2011-09-14 15:19:45 UTC) #34
brainman
On 2011/09/14 15:19:45, rsc wrote: > LGTM > Can I have more time to test ...
12 years, 8 months ago (2011-09-15 07:38:12 UTC) #35
rsc
On Thu, Sep 15, 2011 at 03:38, <alex.brainman@gmail.com> wrote: > Can I have more time ...
12 years, 8 months ago (2011-09-15 15:21:39 UTC) #36
brainman
Thank you for sticking with this. http://codereview.appspot.com/4978047/diff/11011/doc/progs/run File doc/progs/run (right): http://codereview.appspot.com/4978047/diff/11011/doc/progs/run#newcode46 doc/progs/run:46: TMPFILE="/tmp/gotest3-$$-$USER" I didn't ...
12 years, 8 months ago (2011-09-16 02:27:50 UTC) #37
jp
On 2011/09/16 02:27:50, brainman wrote: > http://codereview.appspot.com/4978047/diff/11011/doc/progs/run > File doc/progs/run (right): > > http://codereview.appspot.com/4978047/diff/11011/doc/progs/run#newcode46 > ...
12 years, 8 months ago (2011-09-16 02:38:29 UTC) #38
brainman
On 2011/09/16 02:38:29, jp wrote: > 1. does test/run fail on your machine ? I ...
12 years, 8 months ago (2011-09-16 02:51:56 UTC) #39
jp
On 2011/09/16 02:51:56, brainman wrote: > On 2011/09/16 02:38:29, jp wrote: > > 1. does ...
12 years, 8 months ago (2011-09-16 03:01:12 UTC) #40
brainman
I see no way to improve on your change to ld. Please fix problem with ...
12 years, 8 months ago (2011-09-19 03:49:15 UTC) #41
jp
On 2011/09/19 03:49:15, brainman wrote: PTAL > I see no way to improve on your ...
12 years, 7 months ago (2011-09-23 23:56:05 UTC) #42
brainman
On 2011/09/23 23:56:05, jp wrote: > On 2011/09/19 03:49:15, brainman wrote: > PTAL Please, see ...
12 years, 7 months ago (2011-09-24 00:32:10 UTC) #43
hector
On Sep 24, 2:18 am, jp wrote: > > > I wonder what happens if ...
12 years, 7 months ago (2011-09-24 12:18:57 UTC) #44
brainman
On 2011/09/24 12:18:57, hector wrote: > > I think we need to clarify what we ...
12 years, 7 months ago (2011-09-24 13:08:13 UTC) #45
hector
On 2011/09/24 13:08:13, brainman wrote: > On 2011/09/24 12:18:57, hector wrote: > > > > ...
12 years, 7 months ago (2011-09-24 14:26:03 UTC) #46
jp
> I think the only sane thing to do now is to revert the change ...
12 years, 7 months ago (2011-09-24 19:12:38 UTC) #47
brainman
It seems to me, we have wasted enough time with this. As I said earlier, ...
12 years, 7 months ago (2011-10-03 06:39:48 UTC) #48
rsc
LGTM
12 years, 7 months ago (2011-10-03 14:24:43 UTC) #49
brainman
Tried to submit it, but build fails now: doc/progs/run fails, because "testit helloworld3 ..." fails ...
12 years, 7 months ago (2011-10-04 05:32:40 UTC) #50
rsc
On Tue, Oct 4, 2011 at 01:32, <alex.brainman@gmail.com> wrote: > Tried to submit it, but ...
12 years, 7 months ago (2011-10-05 15:33:46 UTC) #51
brainman
On 2011/10/05 15:33:46, rsc wrote: > On Tue, Oct 4, 2011 at 01:32, <mailto:alex.brainman@gmail.com> wrote: ...
12 years, 7 months ago (2011-10-06 00:21:54 UTC) #52
rsc
Aha! Put the 8.out command in ( ) I guess. Russ
12 years, 7 months ago (2011-10-06 17:38:03 UTC) #53
brainman
On 2011/10/06 17:38:03, rsc wrote: > > Put the 8.out command in ( ) I ...
12 years, 7 months ago (2011-10-06 23:10:36 UTC) #54
rsc
On Thu, Oct 6, 2011 at 19:10, <alex.brainman@gmail.com> wrote: > I don't think we want ...
12 years, 7 months ago (2011-10-06 23:14:37 UTC) #55
brainman
On 2011/10/06 23:14:37, rsc wrote: > > Add || true to the end of the ...
12 years, 7 months ago (2011-10-06 23:17:05 UTC) #56
jp
I did not understand which change do you want to be done. On 2011/10/06 23:17:05, ...
12 years, 7 months ago (2011-10-07 08:56:39 UTC) #57
brainman
http://codereview.appspot.com/4978047/diff/41001/doc/progs/run File doc/progs/run (right): http://codereview.appspot.com/4978047/diff/41001/doc/progs/run#newcode60 doc/progs/run:60: ./$O.out | $2 2>&1 >"$TMPFILE" I think you could ...
12 years, 7 months ago (2011-10-07 11:05:04 UTC) #58
bradfitz
Is this still unresolved? I'm hitting this problem on windows-386 on Windows 7. Why are ...
12 years, 7 months ago (2011-10-14 17:37:17 UTC) #59
hector
The buildbots are slower than our PCs? If jp would move this forward, we can ...
12 years, 7 months ago (2011-10-14 17:40:50 UTC) #60
jp
Hello rsc@golang.org, alex.brainman@gmail.com, bsiegert@gmail.com, hectorchu@gmail.com, bradfitz@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 7 months ago (2011-10-14 19:03:41 UTC) #61
rsc
LGTM
12 years, 7 months ago (2011-10-14 19:22:17 UTC) #62
hector
Don't submit yet - I'm looking at this CL now and I don't think it ...
12 years, 7 months ago (2011-10-14 19:24:19 UTC) #63
hector
http://codereview.appspot.com/4978047/diff/67001/doc/progs/run File doc/progs/run (right): http://codereview.appspot.com/4978047/diff/67001/doc/progs/run#newcode50 doc/progs/run:50: ./$O.out $2 2>&1 >"$TMPFILE" You need to add || ...
12 years, 7 months ago (2011-10-14 19:29:55 UTC) #64
hector
Since it's close enough, and I've made the necessary change locally, I'll go ahead and ...
12 years, 7 months ago (2011-10-14 19:35:46 UTC) #65
hector
12 years, 7 months ago (2011-10-14 19:37:32 UTC) #66
*** Submitted as http://code.google.com/p/go/source/detail?r=f650efd9ed8d ***

ld: Fixes issue 1899 ("cannot create 8.out.exe")

http://code.google.com/p/go/issues/detail?id=1899

R=rsc, alex.brainman, bsiegert, hectorchu, bradfitz
CC=golang-dev
http://codereview.appspot.com/4978047

Committer: Hector Chu <hectorchu@gmail.com>
Sign in to reply to this message.

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