Discussion:
[9fans] mercurial poisoning
(too old to reply)
Skip Tavakkolian
2013-04-14 19:27:11 UTC
Permalink
I can build Go from tip on Plan 9 using a local repo clone. I want
to build it using a repo exported from a Linux box (via u9fs) -- because
of codereview extensions and keeping a consistent repo. Trying to build a
remotely mounted clone, I get:

cpue% ./all.rc
# Building C bootstrap tool.
cmd/dist

# Building compilers and Go bootstrap tool for host, plan9/386.
*** failed to import extension codereview from
$GOROOT/lib/codereview/codereview.py: [Errno 12] Invalid argument
abort: There is no Mercurial repository here (.hg not found)

go tool dist: FAILED: /bin/hg identify -b:
'/n/zotac/usr/local/go/VERSION.cache' does not exist
cpue%

/n/zotac is the Linux filesystem that is served by u9fs. Any hints?

-Skip
Skip Tavakkolian
2013-04-14 21:53:30 UTC
Permalink
Unfortunately doesn't seem to help:

cpue% ./all.rc
# Building C bootstrap tool.
cmd/dist
go tool dist: FAILED: /bin/hg identify -b:
'/n/zotac/usr/local/go/VERSION.cache' does not exist
abort:: '/bin/abort:' directory entry not found
cpue%
Post by Skip Tavakkolian
I can build Go from tip on Plan 9 using a local repo clone. I want
to build it using a repo exported from a Linux box (via u9fs) -- because
of codereview extensions and keeping a consistent repo. Trying to build a
cpue% ./all.rc
# Building C bootstrap tool.
cmd/dist
# Building compilers and Go bootstrap tool for host, plan9/386.
*** failed to import extension codereview from
$GOROOT/lib/codereview/codereview.py: [Errno 12] Invalid argument
abort: There is no Mercurial repository here (.hg not found)
you should disable the codereview plugin in .hg/hgrc.
another workaround is to create $GOROOT/VERSION file manually so that
the build process won't need mercurial.
Post by Skip Tavakkolian
'/n/zotac/usr/local/go/VERSION.cache' does not exist
cpue%
/n/zotac is the Linux filesystem that is served by u9fs. Any hints?
andrey mirtchovski
2013-04-14 22:30:02 UTC
Permalink
it's "$GOROOT/VERSION.cache". just put whatever you want in there or
bind it from /tmp if you don't want to pollute the non-plan9 side of
things.

On Sun, Apr 14, 2013 at 3:53 PM, Skip Tavakkolian
Post by Skip Tavakkolian
cpue% ./all.rc
# Building C bootstrap tool.
cmd/dist
'/n/zotac/usr/local/go/VERSION.cache' does not exist
abort:: '/bin/abort:' directory entry not found
cpue%
I can build Go from tip on Plan 9 using a local repo clone. I want to
build it using a repo exported from a Linux box (via u9fs) -- because of
codereview extensions and keeping a consistent repo. Trying to build a
cpue% ./all.rc
# Building C bootstrap tool.
cmd/dist
# Building compilers and Go bootstrap tool for host, plan9/386.
*** failed to import extension codereview from
$GOROOT/lib/codereview/codereview.py: [Errno 12] Invalid argument
abort: There is no Mercurial repository here (.hg not found)
you should disable the codereview plugin in .hg/hgrc.
another workaround is to create $GOROOT/VERSION file manually so that
the build process won't need mercurial.
'/n/zotac/usr/local/go/VERSION.cache' does not exist
cpue%
/n/zotac is the Linux filesystem that is served by u9fs. Any hints?
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/groups/opt_out.
Skip Tavakkolian
2013-04-14 23:05:33 UTC
Permalink
thank you minux and andrey.

I realized I needed something in the file; 'touch VERSION' wasn't fooling
it.



On Sun, Apr 14, 2013 at 3:30 PM, andrey mirtchovski
Post by andrey mirtchovski
it's "$GOROOT/VERSION.cache". just put whatever you want in there or
bind it from /tmp if you don't want to pollute the non-plan9 side of
things.
On Sun, Apr 14, 2013 at 3:53 PM, Skip Tavakkolian
Post by Skip Tavakkolian
cpue% ./all.rc
# Building C bootstrap tool.
cmd/dist
'/n/zotac/usr/local/go/VERSION.cache' does not exist
abort:: '/bin/abort:' directory entry not found
cpue%
I can build Go from tip on Plan 9 using a local repo clone. I want to
build it using a repo exported from a Linux box (via u9fs) -- because
of
Post by Skip Tavakkolian
codereview extensions and keeping a consistent repo. Trying to build a
cpue% ./all.rc
# Building C bootstrap tool.
cmd/dist
# Building compilers and Go bootstrap tool for host, plan9/386.
*** failed to import extension codereview from
$GOROOT/lib/codereview/codereview.py: [Errno 12] Invalid argument
abort: There is no Mercurial repository here (.hg not found)
you should disable the codereview plugin in .hg/hgrc.
another workaround is to create $GOROOT/VERSION file manually so that
the build process won't need mercurial.
'/n/zotac/usr/local/go/VERSION.cache' does not exist
cpue%
/n/zotac is the Linux filesystem that is served by u9fs. Any hints?
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/groups/opt_out.
l***@proxima.alt.za
2013-04-15 04:21:36 UTC
Permalink
Post by Skip Tavakkolian
'/n/zotac/usr/local/go/VERSION.cache' does not exist
cpue%
If you have a VERSION file (not VERSION.cache), the build won't look
for VERSION.cache, nor try to build it. It's not the ideal solution,
nor is aliasing hg to "echo" with some arbitrary string as argument.
I tend to build Go on the host computer, specially after a recent "hg
sync" (or "hg pull"), then reanme VERSIOn.cache to CACHE. If you
delete VERSION* before the build:

$ cd $GOROOT/src
$ rm -f $GOROOT/VERSION
$ ./all.bash &&
mv $GOROOT/VERSION.cache $GOROOT/VERSION

then subsequent Plan 9 builds will work.

Also, while you're at it, add an arbitrary "echo" at the end of
make.rc and remove the leading dot in ". ./make.rc" in all.rc to
allow the procedure to run without interruption. The tests are still
incomplete, though, in my experience.

++L

PS: This works for me for 386 and arm. Let me know if you encounter
any further problems, by now I ought to know all possible tricks :-)
Loading...