I have the following problem:
/root/bin/quietgcc -c -ggdb -I"/root/go"/include -O2 -fno-inline -
DGOOS='"linux"' -DGOARCH='"386"' -DGOROOT='"/root/go"' -
DGOVERSION='"'"$(../version.bash)"'"' goos.c
/root/bin/quietgcc -ggdb -I"/root/go"/include -O2 -fno-inline -c "/
root/go/src/lib9"/main.c
/root/bin/quietgcc -ggdb -I"/root/go"/include -O2 -fno-inline -c "/
root/go/src/lib9"/nan.c
/root/bin/quietgcc -ggdb -I"/root/go"/include -O2 -fno-inline -c "/
root/go/src/lib9"/nulldir.c
hg identify: option -n not recognized
/root/bin/quietgcc -ggdb -I"/root/go"/include -O2 -fno-inline -c "/
root/go/src/lib9"/open.c
/root/bin/quietgcc -ggdb -I"/root/go"/include -O2 -fno-inline -c "/
root/go/src/lib9"/readn.c
/root/bin/quietgcc -ggdb -I"/root/go"/include -O2 -fno-inline -c "/
root/go/src/lib9"/seek.c
hg identify: option -t not recognized
/root/bin/quietgcc -ggdb -I"/root/go"/include -O2 -fno-inline -c "/
root/go/src/lib9"/strecpy.c
/root/bin/quietgcc -ggdb -I"/root/go"/include -O2 -fno-inline -c "/
root/go/src/lib9"/sysfatal.c
/root/bin/quietgcc -ggdb -I"/root/go"/include -O2 -fno-inline -c "/
root/go/src/lib9"/time.c
goos.c:40: error: invalid operands to binary +
make: *** [goos.o] Error 1
make: *** Waiting for unfinished jobs....
I have no idea why is obtained provided that step by step instruction
from the site.
Does anyone have any ideas?
Thanks again
Strange, I have no problem on Debian 4.0 etch.
Kenji
Sorry, I'm running lenny.☺
$GOROOT/src/version.bash
hg identify: option -n not recognized
hg identify: option -t not recognized
hg identify print information about the working copy Print a short
summary of th e current
state of the repo. This summary identifies the repository state
using one or two parent
hash identifiers, followed by a "+" if there are uncommitted
c hanges in the working
directory, followed by a list of tags for this revision.
a liases: id hg identify
print information about the working copy Print a short
su mmary of the current
state of the repo. This summary identifies the repository
s tate using one or two
parent hash identifiers, followed by a "+" if there are
un committed changes in the
working directory, followed by a list of tags for
this revision. aliases: id
Any idea?
10x in advance
sudo apt-get remove mercurial
sudo rm -rf /etc/mercurial # blow away vestiges of old Mercurial
sudo easy_install mercurial
is typically a good way to do that on Debian/Ubuntu.
Russ
hg update release
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
Would write that everything is up-to-date.
10x in advance
Everything is installed properly now.
Again I want to thank everyone who helped me and that gave me a chance
to embark in this wonderful adventure Go Lang :))
Would it make sense for version.bash to try and deal
w/ the output from older versions of hg? There
is probably a better way, but something like:
diff -r 0b7cedc4de63 src/version.bash
--- a/src/version.bash Sun Mar 07 12:41:49 2010 +1100
+++ b/src/version.bash Tue Mar 09 06:39:23 2010 -0700
@@ -10,10 +10,10 @@
fi
# Get numerical revision
-VERSION="`hg identify -n`"
+VERSION="`hg identify -n | sed -e 1q -e 's!"!!g'`"
# Append tag if not 'tip'
-TAG=$(hg identify -t | sed 's!/release!!')
+TAG=$(hg identify -t | sed -e 's!/release!!' -e 1q -e 's!"!!g')
if [[ "$TAG" != "tip" ]]; then
VERSION="$VERSION $TAG"
fi
diff -r ac91dbef6192 src/version.bash
--- a/src/version.bash Mon Mar 08 14:19:28 2010 -0800
+++ b/src/version.bash Tue Mar 09 09:06:40 2010 -0700
@@ -10,10 +10,14 @@
fi
# Get numerical revision
-VERSION="`hg identify -n`"
+VERSION="`hg identify -n | sed 's!.*".*!!'`"
+if [[ "$VERSION" == "" ]]; then
+ echo 'hg possibly needs upgrade' 1>&2
+ exit 2
+fi
# Append tag if not 'tip'
-TAG=$(hg identify -t | sed 's!/release!!')
+TAG=$(hg identify -t | sed -e 's!/release!!' -e 's!.*".*!!')
if [[ "$TAG" != "tip" ]]; then
VERSION="$VERSION $TAG"
fi