Problem with installation on Debian 4.0 etch

9 views
Skip to first unread message

m.i...@gmail.com

unread,
Mar 8, 2010, 9:52:45 AM3/8/10
to golang-nuts
Hi guys,
I want to thank you in advance for your help and your time.

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

Dean Prichard

unread,
Mar 8, 2010, 12:04:48 PM3/8/10
to golang-nuts
what do you get if you run $GOROOT/src/version.bash ?

Kenji Okamoto

unread,
Mar 8, 2010, 8:15:58 PM3/8/10
to golan...@googlegroups.com
> I have the following problem:

Strange, I have no problem on Debian 4.0 etch.

Kenji

Kenji Okamoto

unread,
Mar 8, 2010, 8:18:28 PM3/8/10
to golan...@googlegroups.com
>> I have the following problem:
>
> Strange, I have no problem on Debian 4.0 etch.

Sorry, I'm running lenny.☺

m.i...@gmail.com

unread,
Mar 9, 2010, 1:56:11 AM3/9/10
to golang-nuts
When i run run $GOROOT/src/version.bash ...

$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

Russ Cox

unread,
Mar 9, 2010, 1:58:48 AM3/9/10
to m.i...@gmail.com, golang-nuts
What does "hg version" print?
It sounds like you have an incompatible version of hg.
If it is incompatible because it is old (before 1.3), the
solution is to upgrade your Mercurial.

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

m.i...@gmail.com

unread,
Mar 9, 2010, 2:02:47 AM3/9/10
to golang-nuts
As far as I understood my mistakes can not say that everything is
apdeytnato repository or someone did not commit somethnig. As an
update I'm trying to write it.

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

m.i...@gmail.com

unread,
Mar 9, 2010, 3:23:16 AM3/9/10
to golang-nuts
I want to thank you all for your help. Obviously after installing the
latest version of Mercurial get everything right. I have no idea why
apt is a Debian package so old.

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 :))

Dean Prichard

unread,
Mar 9, 2010, 8:52:21 AM3/9/10
to golang-nuts, r...@golang.org
Russ,

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

Dean Prichard

unread,
Mar 9, 2010, 11:11:28 AM3/9/10
to golang-nuts, r...@golang.org
or maybe like:

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

Reply all
Reply to author
Forward
0 new messages