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

Issue 6465060: code review 6465060: misc/cgo/life: remove -lmsvcrt to fix windows/amd64 build (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 10 months ago by minux1
Modified:
12 years, 10 months ago
Reviewers:
brainman
CC:
golang-dev
Visibility:
Public.

Description

misc/cgo/life: remove -lmsvcrt to fix windows/amd64 build I guess this is the problem as I can't reproduce the failure.

Patch Set 1 #

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -1 line) Patch
M misc/cgo/life/life.go View 1 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 7
minux1
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
12 years, 10 months ago (2012-08-16 20:19:49 UTC) #1
minux1
could someone who can reproduce this problem help me test this CL?
12 years, 10 months ago (2012-08-16 20:22:51 UTC) #2
brainman
On 2012/08/16 20:22:51, minux wrote: > could someone who can reproduce this problem help me ...
12 years, 10 months ago (2012-08-17 00:39:20 UTC) #3
minux1
*** Submitted as http://code.google.com/p/go/source/detail?r=833bc91ca720 *** misc/cgo/life: remove -lmsvcrt to fix windows/amd64 build I guess this ...
12 years, 10 months ago (2012-08-17 01:10:26 UTC) #4
minux1
On Fri, Aug 17, 2012 at 8:39 AM, <alex.brainman@gmail.com> wrote: > On the other hand, ...
12 years, 10 months ago (2012-08-17 16:00:59 UTC) #5
brainman
On 2012/08/17 16:00:59, minux wrote: > > > can we shorten the path of the ...
12 years, 10 months ago (2012-08-18 07:42:25 UTC) #6
brainman
12 years, 10 months ago (2012-08-27 02:27:21 UTC) #7
On 2012/08/18 07:42:25, brainman wrote:
> 
> Yes, I was trying to refresh my memory the other day about why go command use
> import paths that have double of absolute path. ...

Looked again, and here is how it works.

For directories outside of GOPATH it uses package directory absolute path as
import path. Sounds sensible to me. Really it needs to be unique, but, if you
are building more then one package in one command, then these should have
separate import paths. We can use short hash of full path instead, but using
absolute paths also makes it easy to reason about them.

During tests, go command creates special test package that is different from
tested package in a way that it includes *_test.go files. This package is
treated as separate package and is copied into _test directory under package
directory. So, for example, for package unicode/utf8 we create both
$WORK/unicode/utf8.a and $WORK/unicode/utf8/_test/unicode/utf8.a (contains test
version of the package). I tried moving it into $WORK/_test/unicode/utf8.a
instead, and it works for our case, but it also breaks when multiple packages
are tested in one command. So, as before, _test directory is not good enough, it
needs to be unique. So keeping those in a privacy of package directory sounds
reasonable.

I have not found a good solution. But, on the other hand, I discovered that part
of our problem is that we are running outside of GOPATH. Our scenario is
special.

I think, we should use directory with short absolute path on our go builder, as
you suggested. If we could rely on builder owners to set it up correctly, we
could just use -buildroot go builder flag to specify that. Alternatively, we
could change go builder to use "c:\" as default build root on windows.

Lets wait for Russ before we make decision.

Alex
Sign in to reply to this message.

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